UpdateLongTermPricing - AWS Snowball

UpdateLongTermPricing

Updates the long-term pricing type.

Request Syntax

{ "IsLongTermPricingAutoRenew": boolean, "LongTermPricingId": "string", "ReplacementJob": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

IsLongTermPricingAutoRenew

If set to true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.

Type: Boolean

Required: No

LongTermPricingId

The ID of the long-term pricing type for the device.

Type: String

Length Constraints: Fixed length of 41.

Pattern: LTPID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

Required: Yes

ReplacementJob

Specifies that a device that is ordered with long-term pricing should be replaced with a new device.

Type: String

Length Constraints: Fixed length of 39.

Pattern: (M|J)ID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

Required: No

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidResourceException

The specified resource can't be found. Check the information you provided in your last request, and try again.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: