ListLongTermPricing - AWS Snowball

ListLongTermPricing

Lists all long-term pricing types.

Request Syntax

{ "MaxResults": number, "NextToken": "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.

MaxResults

The maximum number of ListLongTermPricing objects to return.

Type: Integer

Valid Range: Minimum value of 0. Maximum value of 100.

Required: No

NextToken

Because HTTP requests are stateless, this is the starting point for your next list of ListLongTermPricing to return.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Required: No

Response Syntax

{ "LongTermPricingEntries": [ { "CurrentActiveJob": "string", "IsLongTermPricingAutoRenew": boolean, "JobIds": [ "string" ], "LongTermPricingEndDate": number, "LongTermPricingId": "string", "LongTermPricingStartDate": number, "LongTermPricingStatus": "string", "LongTermPricingType": "string", "ReplacementJob": "string", "SnowballType": "string" } ], "NextToken": "string" }

Response Elements

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

The following data is returned in JSON format by the service.

LongTermPricingEntries

Each LongTermPricingEntry object contains a status, ID, and other information about the LongTermPricing type.

Type: Array of LongTermPricingListEntry objects

NextToken

Because HTTP requests are stateless, this is the starting point for your next list of returned ListLongTermPricing list.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Errors

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

InvalidNextTokenException

The NextToken string was altered unexpectedly, and the operation has stopped. Run the operation without changing the NextToken string, and try again.

HTTP Status Code: 400

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: