createAddress
Creates an address for a Snow device to be shipped to. In most regions, addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown. If providing an address as a JSON file through the cli-input-json
option, include the full file path. For example, --cli-input-json file://create-address.json
.
Samples
import aws.sdk.kotlin.services.snowball.model.Address
fun main() {
//sampleStart
// This operation creates an address for a job. Addresses are validated at the time of creation. The
// address you provide must be located within the serviceable area of your region. If the address is invalid
// or unsupported, then an exception is thrown.
val resp = snowballClient.createAddress {
address = Address {
city = "Seattle"
company = "My Company's Name"
country = "USA"
name = "My Name"
phoneNumber = "425-555-5555"
postalCode = "98101"
stateOrProvince = "WA"
street1 = "123 Main Street"
}
}
//sampleEnd
}