createJob

abstract suspend fun createJob(input: CreateJobRequest = CreateJobRequest { }): CreateJobResponse

Creates a job to import or export data between Amazon S3 and your on-premises data center. Your Amazon Web Services account must have the right trust policies and permissions in place to create a job for a Snow device. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster.

Only the Snowball; Edge device type is supported when ordering clustered jobs.

The device capacity is optional.

Availability of device types differ by Amazon Web Services Region. For more information about Region availability, see Amazon Web Services Regional Services.

Snow Family devices and their capacities.

  • Device type: SNC1_SSD

    • Capacity: T14

    • Description: Snowcone

  • Device type: SNC1_HDD

    • Capacity: T8

    • Description: Snowcone

  • Device type: EDGE_S

    • Capacity: T98

    • Description: Snowball Edge Storage Optimized for data transfer only

  • Device type: EDGE_CG

    • Capacity: T42

    • Description: Snowball Edge Compute Optimized with GPU

  • Device type: EDGE_C

    • Capacity: T42

    • Description: Snowball Edge Compute Optimized without GPU

  • Device type: EDGE

    • Capacity: T100

    • Description: Snowball Edge Storage Optimized with EC2 Compute This device is replaced with T98.

  • Device type: STANDARD

    • Capacity: T50

    • Description: Original Snowball deviceThis device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region

  • Device type: STANDARD

    • Capacity: T80

    • Description: Original Snowball deviceThis device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region.

  • Snow Family device type: RACK_5U_C

    • Capacity: T13

    • Description: Snowblade.

  • Device type: V3_5S

    • Capacity: T240

    • Description: Snowball Edge Storage Optimized 210TB

Samples

import aws.sdk.kotlin.services.snowball.model.JobState
import aws.sdk.kotlin.services.snowball.model.S3Resource
fun main() { 
   //sampleStart 
   // Creates a job to import or export data between Amazon S3 and your on premises data center. Your AWS
// account must have the right trust policies and permissions in place to create a job for Snowball. If you re
// creating a job for a node in a cluster, you only need to provide the clusterId value the other job
// attributes are inherited from the cluster.
val resp = snowballClient.createJob {
    jobType = JobType.fromValue("IMPORT")
    resources = JobResource {
        s3Resources = listOf<S3Resource>(
            S3Resource {
                bucketArn = "arn:aws:s3:::MyBucket"
                keyRange = KeyRange {
                }
            }                
        )
    }
    description = "My Job"
    addressId = "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b"
    kmsKeyArn = "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456"
    roleArn = "arn:aws:iam::123456789012:role/snowball-import-S3-role"
    snowballCapacityPreference = SnowballCapacity.fromValue("T80")
    shippingOption = ShippingOption.fromValue("SECOND_DAY")
    notification = Notification {
        notifyAll = false
        jobStatesToNotify = listOf<JobState>(
        )
    }
    snowballType = SnowballType.fromValue("STANDARD")
} 
   //sampleEnd
}