Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.Snowball.CreateJob
Description
Creates a job to import or export data between Amazon S3 and your on-premises data center. Note that your AWS account must have the right trust policies and permissions in place to create a job for Snowball. For more information, see api-reference-policies.
- createJob :: JobType -> JobResource -> Text -> Text -> ShippingOption -> CreateJob
- data CreateJob
- cjKMSKeyARN :: Lens' CreateJob (Maybe Text)
- cjNotification :: Lens' CreateJob (Maybe Notification)
- cjDescription :: Lens' CreateJob (Maybe Text)
- cjSnowballCapacityPreference :: Lens' CreateJob (Maybe SnowballCapacity)
- cjJobType :: Lens' CreateJob JobType
- cjResources :: Lens' CreateJob JobResource
- cjAddressId :: Lens' CreateJob Text
- cjRoleARN :: Lens' CreateJob Text
- cjShippingOption :: Lens' CreateJob ShippingOption
- createJobResponse :: Int -> CreateJobResponse
- data CreateJobResponse
- cjrsJobId :: Lens' CreateJobResponse (Maybe Text)
- cjrsResponseStatus :: Lens' CreateJobResponse Int
Creating a Request
Arguments
:: JobType | |
-> JobResource | |
-> Text | |
-> Text | |
-> ShippingOption | |
-> CreateJob |
Creates a value of CreateJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
See: createJob
smart constructor.
Instances
Request Lenses
cjKMSKeyARN :: Lens' CreateJob (Maybe Text) Source #
The KmsKeyARN
that you want to associate with this job. KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
cjNotification :: Lens' CreateJob (Maybe Notification) Source #
Defines the Amazon Simple Notification Service (Amazon SNS) notification settings for this job.
cjDescription :: Lens' CreateJob (Maybe Text) Source #
Defines an optional description of this specific job, for example 'Important Photos 2016-08-11'.
cjSnowballCapacityPreference :: Lens' CreateJob (Maybe SnowballCapacity) Source #
If your job is being created in one of the US regions, you have the option of specifying what size Snowball you'd like for this job. In all other regions, Snowballs come with 80 TB in storage capacity.
cjResources :: Lens' CreateJob JobResource Source #
Defines the Amazon S3 buckets associated with this job.
With IMPORT
jobs, you specify the bucket or buckets that your transferred data will be imported into.
With EXPORT
jobs, you specify the bucket or buckets that your transferred data will be exported from. Optionally, you can also specify a KeyRange
value. If you choose to export a range, you define the length of the range by providing either an inclusive BeginMarker
value, an inclusive EndMarker
value, or both. Ranges are UTF-8 binary sorted.
cjAddressId :: Lens' CreateJob Text Source #
The ID for the address that you want the Snowball shipped to.
cjRoleARN :: Lens' CreateJob Text Source #
The RoleARN
that you want to associate with this job. RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API action.
cjShippingOption :: Lens' CreateJob ShippingOption Source #
The shipping speed for this job. Note that this speed does not dictate how soon you'll get the Snowball, rather it represents how quickly the Snowball moves to its destination while in transit. Regional shipping speeds are as follows:
- In Australia, you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day.
- In the European Union (EU), you have access to express shipping. Typically, Snowballs shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.
- In India, Snowballs are delivered in one to seven days.
- In the US, you have access to one-day shipping and two-day shipping.
Destructuring the Response
Arguments
:: Int | |
-> CreateJobResponse |
Creates a value of CreateJobResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateJobResponse Source #
See: createJobResponse
smart constructor.
Response Lenses
cjrsJobId :: Lens' CreateJobResponse (Maybe Text) Source #
The automatically generated ID for a job, for example 'JID123e4567-e89b-12d3-a456-426655440000'.
cjrsResponseStatus :: Lens' CreateJobResponse Int Source #
The response status code.