

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 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>

如需所有動作的一般參數資訊，請參閱《[Common Parameters](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>

如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊，請參閱下列內容：
+  [AWS 命令列界面 V2](https://docs.aws.amazon.com/goto/cli2/memorydb-2021-01-01/BatchUpdateCluster) 
+  [AWS 適用於 .NET V4 的 SDK](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 的 SDK v2](https://docs.aws.amazon.com/goto/SdkForGoV2/memorydb-2021-01-01/BatchUpdateCluster) 
+  [AWS 適用於 Java V2 的 SDK](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 V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForPHPV3/memorydb-2021-01-01/BatchUpdateCluster) 
+  [AWS 適用於 Python 的 SDK](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) 