UpdatePricingPlan - Amazon IoT TwinMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

UpdatePricingPlan

Update the pricing plan.

Request Syntax

POST /pricingplan HTTP/1.1 Content-type: application/json { "bundleNames": [ "string" ], "pricingMode": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

bundleNames

The bundle names.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 10 items.

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

Pattern: .*

Required: No

pricingMode

The pricing mode.

Type: String

Valid Values: BASIC | STANDARD | TIERED_BUNDLE

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "currentPricingPlan": { "billableEntityCount": number, "bundleInformation": { "bundleNames": [ "string" ], "pricingTier": "string" }, "effectiveDateTime": number, "pricingMode": "string", "updateDateTime": number, "updateReason": "string" }, "pendingPricingPlan": { "billableEntityCount": number, "bundleInformation": { "bundleNames": [ "string" ], "pricingTier": "string" }, "effectiveDateTime": number, "pricingMode": "string", "updateDateTime": number, "updateReason": "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.

currentPricingPlan

Update the current pricing plan.

Type: PricingPlan object

pendingPricingPlan

Update the pending pricing plan.

Type: PricingPlan object

Errors

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

AccessDeniedException

Access is denied.

HTTP Status Code: 403

InternalServerException

An unexpected error has occurred.

HTTP Status Code: 500

ThrottlingException

The rate exceeds the limit.

HTTP Status Code: 429

ValidationException

Failed

HTTP Status Code: 400

See Also

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