

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

# Cluster
<a name="API_elastic_Cluster"></a>

返回有关特定静态集群的信息。

## 目录
<a name="API_elastic_Cluster_Contents"></a>

**注意**  
下表中首先描述了必需参数。

 ** adminUserName **   <a name="documentdb-Type-elastic_Cluster-adminUserName"></a>
弹性集群管理员的名称。  
类型：字符串  
必需：是

 ** authType **   <a name="documentdb-Type-elastic_Cluster-authType"></a>
弹性集群的身份验证类型。  
类型：字符串  
有效值：`PLAIN_TEXT | SECRET_ARN`  
必需：是

 ** clusterArn **   <a name="documentdb-Type-elastic_Cluster-clusterArn"></a>
弹性集群的 ARN 标识符。  
类型：字符串  
必需：是

 ** clusterEndpoint **   <a name="documentdb-Type-elastic_Cluster-clusterEndpoint"></a>
用于连接到弹性集群的 URL。  
类型：字符串  
必需：是

 ** clusterName **   <a name="documentdb-Type-elastic_Cluster-clusterName"></a>
弹性集群的名称。  
类型：字符串  
必需：是

 ** createTime **   <a name="documentdb-Type-elastic_Cluster-createTime"></a>
创建弹性集群的时间，采用通用协调时间 (UTC)。  
类型：字符串  
必需：是

 ** kmsKeyId **   <a name="documentdb-Type-elastic_Cluster-kmsKeyId"></a>
用于弹性集群加密的 KMS 密钥标识符。  
类型：字符串  
必需：是

 ** preferredMaintenanceWindow **   <a name="documentdb-Type-elastic_Cluster-preferredMaintenanceWindow"></a>
可进行系统维护的每周时间范围（采用通用协调时间（UTC））。  
 *格式*：`ddd:hh24:mi-ddd:hh24:mi`  
类型：字符串  
必需：是

 ** shardCapacity **   <a name="documentdb-Type-elastic_Cluster-shardCapacity"></a>
分配给每个弹性集群分片的 vCPU 数目。最大值为 64。允许值为 2、4、8、16、32、64。  
类型：整数  
必需：是

 ** shardCount **   <a name="documentdb-Type-elastic_Cluster-shardCount"></a>
分配给弹性集群的分片数目。最大值为 32。  
类型：整数  
必需：是

 ** status **   <a name="documentdb-Type-elastic_Cluster-status"></a>
弹性集群的状态。  
类型：字符串  
有效值：`CREATING | ACTIVE | DELETING | UPDATING | VPC_ENDPOINT_LIMIT_EXCEEDED | IP_ADDRESS_LIMIT_EXCEEDED | INVALID_SECURITY_GROUP_ID | INVALID_SUBNET_ID | INACCESSIBLE_ENCRYPTION_CREDS | INACCESSIBLE_SECRET_ARN | INACCESSIBLE_VPC_ENDPOINT | INCOMPATIBLE_NETWORK | MERGING | MODIFYING | SPLITTING | COPYING | STARTING | STOPPING | STOPPED | MAINTENANCE | INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE`  
必需：是

 ** subnetIds **   <a name="documentdb-Type-elastic_Cluster-subnetIds"></a>
弹性集群的 Amazon EC2 子网 ID。  
类型：字符串数组  
必需：是

 ** vpcSecurityGroupIds **   <a name="documentdb-Type-elastic_Cluster-vpcSecurityGroupIds"></a>
与此集群关联的 EC2 VPC 安全组的列表。  
类型：字符串数组  
必需：是

 ** backupRetentionPeriod **   <a name="documentdb-Type-elastic_Cluster-backupRetentionPeriod"></a>
自动快照的保留天数。  
类型：整数  
必需：否

 ** preferredBackupWindow **   <a name="documentdb-Type-elastic_Cluster-preferredBackupWindow"></a>
在启用自动备份的情况下每日执行自动备份的时间范围，如 `backupRetentionPeriod` 所规定。  
类型：字符串  
必需：否

 ** shardInstanceCount **   <a name="documentdb-Type-elastic_Cluster-shardInstanceCount"></a>
适用于此集群中所有分片的副本实例数量。`shardInstanceCount` 值为 1 表示有一个写入器实例，其他任何实例都是可用于读取和提高可用性的副本。  
类型：整数  
必需：否

 ** shards **   <a name="documentdb-Type-elastic_Cluster-shards"></a>
集群中的分片总数。  
类型：[Shard](API_elastic_Shard.md) 对象数组  
必需：否

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

有关在特定语言的 AWS SDK 中使用此 API 的更多信息，请参阅以下内容：
+  [适用于 C\$1\$1 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForCpp/docdb-elastic-2022-11-28/Cluster) 
+  [适用于 Java V2 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForJavaV2/docdb-elastic-2022-11-28/Cluster) 
+  [适用于 Ruby V3 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/docdb-elastic-2022-11-28/Cluster) 