1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateJob`](crate::operation::create_job::builders::CreateJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`job_type(JobType)`](crate::operation::create_job::builders::CreateJobFluentBuilder::job_type) / [`set_job_type(Option<JobType>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_job_type):<br>required: **false**<br><p>Defines the type of job that you're creating.</p><br>
    ///   - [`resources(JobResource)`](crate::operation::create_job::builders::CreateJobFluentBuilder::resources) / [`set_resources(Option<JobResource>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_resources):<br>required: **false**<br><p>Defines the Amazon S3 buckets associated with this job.</p> <p>With <code>IMPORT</code> jobs, you specify the bucket or buckets that your transferred data will be imported into.</p> <p>With <code>EXPORT</code> jobs, you specify the bucket or buckets that your transferred data will be exported from. Optionally, you can also specify a <code>KeyRange</code> value. If you choose to export a range, you define the length of the range by providing either an inclusive <code>BeginMarker</code> value, an inclusive <code>EndMarker</code> value, or both. Ranges are UTF-8 binary sorted.</p><br>
    ///   - [`on_device_service_configuration(OnDeviceServiceConfiguration)`](crate::operation::create_job::builders::CreateJobFluentBuilder::on_device_service_configuration) / [`set_on_device_service_configuration(Option<OnDeviceServiceConfiguration>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_on_device_service_configuration):<br>required: **false**<br><p>Specifies the service or services on the Snow Family device that your transferred data will be exported from or imported into. Amazon Web Services Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web Services Storage Gateway service Tape Gateway type.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_description):<br>required: **false**<br><p>Defines an optional description of this specific job, for example <code>Important Photos 2016-08-11</code>.</p><br>
    ///   - [`address_id(impl Into<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::address_id) / [`set_address_id(Option<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_address_id):<br>required: **false**<br><p>The ID for the address that you want the Snow device shipped to.</p><br>
    ///   - [`kms_key_arn(impl Into<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_kms_key_arn):<br>required: **false**<br><p>The <code>KmsKeyARN</code> that you want to associate with this job. <code>KmsKeyARN</code>s are created using the <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html">CreateKey</a> Key Management Service (KMS) API action.</p><br>
    ///   - [`role_arn(impl Into<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_role_arn):<br>required: **false**<br><p>The <code>RoleARN</code> that you want to associate with this job. <code>RoleArn</code>s are created using the <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html">CreateRole</a> Identity and Access Management (IAM) API action.</p><br>
    ///   - [`snowball_capacity_preference(SnowballCapacity)`](crate::operation::create_job::builders::CreateJobFluentBuilder::snowball_capacity_preference) / [`set_snowball_capacity_preference(Option<SnowballCapacity>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_snowball_capacity_preference):<br>required: **false**<br><p>If your job is being created in one of the US regions, you have the option of specifying what size Snow device you'd like for this job. In all other regions, Snowballs come with 80 TB in storage capacity.</p> <p>For more information, see "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the <i>Snowcone User Guide</i> or "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the <i>Snowcone User Guide</i>.</p><br>
    ///   - [`shipping_option(ShippingOption)`](crate::operation::create_job::builders::CreateJobFluentBuilder::shipping_option) / [`set_shipping_option(Option<ShippingOption>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_shipping_option):<br>required: **false**<br><p>The shipping speed for this job. This speed doesn't dictate how soon you'll get the Snow device, rather it represents how quickly the Snow device moves to its destination while in transit. Regional shipping speeds are as follows:</p> <ul>  <li>   <p>In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about a day.</p></li>  <li>   <p>In the European Union (EU), you have access to express shipping. Typically, Snow devices 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.</p></li>  <li>   <p>In India, Snow devices are delivered in one to seven days.</p></li>  <li>   <p>In the US, you have access to one-day shipping and two-day shipping.</p></li> </ul><br>
    ///   - [`notification(Notification)`](crate::operation::create_job::builders::CreateJobFluentBuilder::notification) / [`set_notification(Option<Notification>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_notification):<br>required: **false**<br><p>Defines the Amazon Simple Notification Service (Amazon SNS) notification settings for this job.</p><br>
    ///   - [`cluster_id(impl Into<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_cluster_id):<br>required: **false**<br><p>The ID of a cluster. If you're creating a job for a node in a cluster, you need to provide only this <code>clusterId</code> value. The other job attributes are inherited from the cluster.</p><br>
    ///   - [`snowball_type(SnowballType)`](crate::operation::create_job::builders::CreateJobFluentBuilder::snowball_type) / [`set_snowball_type(Option<SnowballType>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_snowball_type):<br>required: **false**<br><p>The type of Snow Family devices to use for this job.</p><note>  <p>For cluster jobs, Amazon Web Services Snow Family currently supports only the <code>EDGE</code> device type.</p> </note> <p>The type of Amazon Web Services Snow device to use for this job. Currently, the only supported device type for cluster jobs is <code>EDGE</code>.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/snowball/latest/developer-guide/device-differences.html">Snowball Edge Device Options</a> in the Snowball Edge Developer Guide.</p> <p>For more information, see "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the <i>Snowcone User Guide</i> or "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the <i>Snowcone User Guide</i>.</p><br>
    ///   - [`forwarding_address_id(impl Into<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::forwarding_address_id) / [`set_forwarding_address_id(Option<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_forwarding_address_id):<br>required: **false**<br><p>The forwarding address ID for a job. This field is not supported in most Regions.</p><br>
    ///   - [`tax_documents(TaxDocuments)`](crate::operation::create_job::builders::CreateJobFluentBuilder::tax_documents) / [`set_tax_documents(Option<TaxDocuments>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_tax_documents):<br>required: **false**<br><p>The tax documents required in your Amazon Web Services Region.</p><br>
    ///   - [`device_configuration(DeviceConfiguration)`](crate::operation::create_job::builders::CreateJobFluentBuilder::device_configuration) / [`set_device_configuration(Option<DeviceConfiguration>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_device_configuration):<br>required: **false**<br><p>Defines the device configuration for an Snowcone job.</p> <p>For more information, see "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the <i>Snowcone User Guide</i> or "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the <i>Snowcone User Guide</i>.</p><br>
    ///   - [`remote_management(RemoteManagement)`](crate::operation::create_job::builders::CreateJobFluentBuilder::remote_management) / [`set_remote_management(Option<RemoteManagement>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_remote_management):<br>required: **false**<br><p>Allows you to securely operate and manage Snowcone devices remotely from outside of your internal network. When set to <code>INSTALLED_AUTOSTART</code>, remote management will automatically be available when the device arrives at your location. Otherwise, you need to use the Snowball Edge client to manage the device. When set to <code>NOT_INSTALLED</code>, remote management will not be available on the device.</p><br>
    ///   - [`long_term_pricing_id(impl Into<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::long_term_pricing_id) / [`set_long_term_pricing_id(Option<String>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_long_term_pricing_id):<br>required: **false**<br><p>The ID of the long-term pricing type for the device.</p><br>
    ///   - [`impact_level(ImpactLevel)`](crate::operation::create_job::builders::CreateJobFluentBuilder::impact_level) / [`set_impact_level(Option<ImpactLevel>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_impact_level):<br>required: **false**<br><p>The highest impact level of data that will be stored or processed on the device, provided at job creation.</p><br>
    ///   - [`pickup_details(PickupDetails)`](crate::operation::create_job::builders::CreateJobFluentBuilder::pickup_details) / [`set_pickup_details(Option<PickupDetails>)`](crate::operation::create_job::builders::CreateJobFluentBuilder::set_pickup_details):<br>required: **false**<br><p>Information identifying the person picking up the device.</p><br>
    /// - On success, responds with [`CreateJobOutput`](crate::operation::create_job::CreateJobOutput) with field(s):
    ///   - [`job_id(Option<String>)`](crate::operation::create_job::CreateJobOutput::job_id): <p>The automatically generated ID for a job, for example <code>JID123e4567-e89b-12d3-a456-426655440000</code>.</p>
    /// - On failure, responds with [`SdkError<CreateJobError>`](crate::operation::create_job::CreateJobError)
    pub fn create_job(&self) -> crate::operation::create_job::builders::CreateJobFluentBuilder {
        crate::operation::create_job::builders::CreateJobFluentBuilder::new(self.handle.clone())
    }
}