create_cluster_snapshot
(**kwargs)¶Creates a snapshot of a cluster.
See also: AWS API Documentation
Request Syntax
response = client.create_cluster_snapshot(
clusterArn='string',
snapshotName='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The arn of the Elastic DocumentDB cluster that the snapshot will be taken from.
[REQUIRED]
The name of the Elastic DocumentDB snapshot.
The tags to be assigned to the new Elastic DocumentDB snapshot.
dict
Response Syntax
{
'snapshot': {
'adminUserName': 'string',
'clusterArn': 'string',
'clusterCreationTime': 'string',
'kmsKeyId': 'string',
'snapshotArn': 'string',
'snapshotCreationTime': 'string',
'snapshotName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
(dict) --
snapshot (dict) --
Returns information about the new Elastic DocumentDB snapshot.
adminUserName (string) --
The name of the Elastic DocumentDB cluster administrator.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
clusterCreationTime (string) --
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
kmsKeyId (string) --
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
snapshotArn (string) --
The arn of the Elastic DocumentDB snapshot
snapshotCreationTime (string) --
The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC).
snapshotName (string) --
The name of the Elastic DocumentDB snapshot.
status (string) --
The status of the Elastic DocumentDB snapshot.
subnetIds (list) --
A list of the IDs of subnets associated with the DB cluster snapshot.
vpcSecurityGroupIds (list) --
A list of the IDs of the VPC security groups associated with the cluster snapshot.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.ServiceQuotaExceededException
DocDBElastic.Client.exceptions.ConflictException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException