updateJob
While a job's JobState
value is New
, you can update some of the information associated with a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.
Samples
import aws.sdk.kotlin.services.snowball.model.ShippingOption
import aws.sdk.kotlin.services.snowball.model.SnowballCapacity
fun main() {
//sampleStart
// This action allows you to update certain parameters for a job. Once the job changes to a different
// job state, usually within 60 minutes of the job being created, this action is no longer available.
snowballClient.updateJob {
jobId = "JID123e4567-e89b-12d3-a456-426655440000"
addressId = "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b"
shippingOption = ShippingOption.fromValue("NEXT_DAY")
description = "updated-job-name"
snowballCapacityPreference = SnowballCapacity.fromValue("T100")
}
//sampleEnd
}