delete_global_cluster
(**kwargs)¶Deletes a global cluster. The primary and secondary clusters must already be detached or deleted before attempting to delete a global cluster.
Note
This action only applies to Amazon DocumentDB clusters.
See also: AWS API Documentation
Request Syntax
response = client.delete_global_cluster(
GlobalClusterIdentifier='string'
)
[REQUIRED]
The cluster identifier of the global cluster being deleted.
{
'GlobalCluster': {
'GlobalClusterIdentifier': 'string',
'GlobalClusterResourceId': 'string',
'GlobalClusterArn': 'string',
'Status': 'string',
'Engine': 'string',
'EngineVersion': 'string',
'DatabaseName': 'string',
'StorageEncrypted': True|False,
'DeletionProtection': True|False,
'GlobalClusterMembers': [
{
'DBClusterArn': 'string',
'Readers': [
'string',
],
'IsWriter': True|False
},
]
}
}
Response Structure
A data type representing an Amazon DocumentDB global cluster.
Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a global cluster.
The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS customer master key (CMK) for the cluster is accessed.
The Amazon Resource Name (ARN) for the global cluster.
Specifies the current state of this global cluster.
The Amazon DocumentDB database engine used by the global cluster.
Indicates the database engine version.
The default database name within the new global cluster.
The storage encryption setting for the global cluster.
The deletion protection setting for the new global cluster.
The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item.
A data structure with information about any primary and secondary clusters associated with an Amazon DocumentDB global clusters.
The Amazon Resource Name (ARN) for each Amazon DocumentDB cluster.
The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Aurora global cluster.
Specifies whether the Amazon DocumentDB cluster is the primary cluster (that is, has read-write capability) for the Amazon DocumentDB global cluster with which it is associated.
Exceptions
DocDB.Client.exceptions.GlobalClusterNotFoundFault
DocDB.Client.exceptions.InvalidGlobalClusterStateFault