

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# UpdatePricingPlan
<a name="API_UpdatePricingPlan"></a>

更新定价计划。

## 请求语法
<a name="API_UpdatePricingPlan_RequestSyntax"></a>

```
POST /pricingplan HTTP/1.1
Content-type: application/json

{
   "bundleNames": [ "{{string}}" ],
   "pricingMode": "{{string}}"
}
```

## URI 请求参数
<a name="API_UpdatePricingPlan_RequestParameters"></a>

该请求不使用任何 URI 参数。

## 请求正文
<a name="API_UpdatePricingPlan_RequestBody"></a>

请求接受采用 JSON 格式的以下数据。

 ** [bundleNames](#API_UpdatePricingPlan_RequestSyntax) **   <a name="tm-UpdatePricingPlan-request-bundleNames"></a>
捆绑包名称。  
类型：字符串数组  
数组成员：最少 1 个物品。最多 10 项。  
长度限制：最小长度为 1。最大长度为 256。  
模式：`.*`  
必需：否

 ** [pricingMode](#API_UpdatePricingPlan_RequestSyntax) **   <a name="tm-UpdatePricingPlan-request-pricingMode"></a>
定价模型。  
类型：字符串  
有效值：`BASIC | STANDARD | TIERED_BUNDLE`  
是否必需：是

## 响应语法
<a name="API_UpdatePricingPlan_ResponseSyntax"></a>

```
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"
   }
}
```

## 响应元素
<a name="API_UpdatePricingPlan_ResponseElements"></a>

如果此操作成功，则该服务将会发送回 HTTP 200 响应。

服务以 JSON 格式返回以下数据。

 ** [currentPricingPlan](#API_UpdatePricingPlan_ResponseSyntax) **   <a name="tm-UpdatePricingPlan-response-currentPricingPlan"></a>
更新当前定价计划。  
类型：[PricingPlan](API_PricingPlan.md) 对象

 ** [pendingPricingPlan](#API_UpdatePricingPlan_ResponseSyntax) **   <a name="tm-UpdatePricingPlan-response-pendingPricingPlan"></a>
更新待定定价计划。  
类型：[PricingPlan](API_PricingPlan.md) 对象

## 错误
<a name="API_UpdatePricingPlan_Errors"></a>

有关所有操作的常见错误的信息，请参阅[常见错误类型](CommonErrors.md)。

 ** AccessDeniedException **   
访问被拒绝。  
HTTP 状态代码：403

 ** InternalServerException **   
出现意外错误。  
HTTP 状态代码：500

 ** ThrottlingException **   
速率超过限制。  
HTTP 状态代码：429

 ** ValidationException **   
失败  
HTTP 状态代码：400

## 另请参阅
<a name="API_UpdatePricingPlan_SeeAlso"></a>

有关以特定语言之一使用此 API 的更多信息 AWS SDKs，请参阅以下内容：
+  [AWS 命令行界面 V2](https://docs.aws.amazon.com/goto/cli2/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS 适用于.NET 的 SDK V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS 适用于 C\+\+ 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS 适用于 Go v2 的 SDK](https://docs.aws.amazon.com/goto/SdkForGoV2/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS 适用于 Java 的 SDK V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS JavaScript V3 版 SDK](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS 适用于 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS 适用于 PHP 的 SDK V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS Python 软件开发工具包](https://docs.aws.amazon.com/goto/boto3/iottwinmaker-2021-11-29/UpdatePricingPlan) 
+  [AWS 适用于 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/iottwinmaker-2021-11-29/UpdatePricingPlan) 