

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

# BatchUpdateCluster
<a name="API_BatchUpdateCluster"></a>

将服务更新应用于所提供的集群列表。有关服务更新及其应用的更多信息，请参阅[应用服务更新](https://docs.aws.amazon.com/MemoryDB/latest/devguide/managing-updates.html#applying-updates)。

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

```
{
   "ClusterNames": [ "string" ],
   "ServiceUpdate": { 
      "ServiceUpdateNameToApply": "string"
   }
}
```

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

有关所有操作的通用参数的信息，请参阅[常用参数](CommonParameters.md)。

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

 ** [ClusterNames](#API_BatchUpdateCluster_RequestSyntax) **   <a name="MemoryDB-BatchUpdateCluster-request-ClusterNames"></a>
要应用更新的集群名称。  
类型：字符串数组  
数组成员：最多 20 项。  
是否必需：是

 ** [ServiceUpdate](#API_BatchUpdateCluster_RequestSyntax) **   <a name="MemoryDB-BatchUpdateCluster-request-ServiceUpdate"></a>
服务更新的唯一 ID  
类型：[ServiceUpdateRequest](API_ServiceUpdateRequest.md) 对象  
必需：否

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

```
{
   "ProcessedClusters": [ 
      { 
         "ACLName": "string",
         "ARN": "string",
         "AutoMinorVersionUpgrade": boolean,
         "AvailabilityMode": "string",
         "ClusterEndpoint": { 
            "Address": "string",
            "Port": number
         },
         "DataTiering": "string",
         "Description": "string",
         "Engine": "string",
         "EnginePatchVersion": "string",
         "EngineVersion": "string",
         "IpDiscovery": "string",
         "KmsKeyId": "string",
         "MaintenanceWindow": "string",
         "MultiRegionClusterName": "string",
         "Name": "string",
         "NetworkType": "string",
         "NodeType": "string",
         "NumberOfShards": number,
         "ParameterGroupName": "string",
         "ParameterGroupStatus": "string",
         "PendingUpdates": { 
            "ACLs": { 
               "ACLToApply": "string"
            },
            "Resharding": { 
               "SlotMigration": { 
                  "ProgressPercentage": number
               }
            },
            "ServiceUpdates": [ 
               { 
                  "ServiceUpdateName": "string",
                  "Status": "string"
               }
            ]
         },
         "SecurityGroups": [ 
            { 
               "SecurityGroupId": "string",
               "Status": "string"
            }
         ],
         "Shards": [ 
            { 
               "Name": "string",
               "Nodes": [ 
                  { 
                     "AvailabilityZone": "string",
                     "CreateTime": number,
                     "Endpoint": { 
                        "Address": "string",
                        "Port": number
                     },
                     "Name": "string",
                     "Status": "string"
                  }
               ],
               "NumberOfNodes": number,
               "Slots": "string",
               "Status": "string"
            }
         ],
         "SnapshotRetentionLimit": number,
         "SnapshotWindow": "string",
         "SnsTopicArn": "string",
         "SnsTopicStatus": "string",
         "Status": "string",
         "SubnetGroupName": "string",
         "TLSEnabled": boolean
      }
   ],
   "UnprocessedClusters": [ 
      { 
         "ClusterName": "string",
         "ErrorMessage": "string",
         "ErrorType": "string"
      }
   ]
}
```

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

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

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

 ** [ProcessedClusters](#API_BatchUpdateCluster_ResponseSyntax) **   <a name="MemoryDB-BatchUpdateCluster-response-ProcessedClusters"></a>
已更新的集群列表。  
类型：[Cluster](API_Cluster.md) 对象数组

 ** [UnprocessedClusters](#API_BatchUpdateCluster_ResponseSyntax) **   <a name="MemoryDB-BatchUpdateCluster-response-UnprocessedClusters"></a>
尚未应用更新的集群列表。  
类型：[UnprocessedCluster](API_UnprocessedCluster.md) 对象数组

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

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

 ** InvalidParameterValueException **   
  
HTTP 状态代码：400

 ** ServiceUpdateNotFoundFault **   
  
HTTP 状态代码：400

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

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