delete_db_cluster_snapshot
(**kwargs)¶Deletes a cluster snapshot. If the snapshot is being copied, the copy operation is terminated.
Note
The cluster snapshot must be in the available
state to be deleted.
See also: AWS API Documentation
Request Syntax
response = client.delete_db_cluster_snapshot(
DBClusterSnapshotIdentifier='string'
)
[REQUIRED]
The identifier of the cluster snapshot to delete.
Constraints: Must be the name of an existing cluster snapshot in the available
state.
{
'DBClusterSnapshot': {
'AvailabilityZones': [
'string',
],
'DBClusterSnapshotIdentifier': 'string',
'DBClusterIdentifier': 'string',
'SnapshotCreateTime': datetime(2015, 1, 1),
'Engine': 'string',
'Status': 'string',
'Port': 123,
'VpcId': 'string',
'ClusterCreateTime': datetime(2015, 1, 1),
'MasterUsername': 'string',
'EngineVersion': 'string',
'SnapshotType': 'string',
'PercentProgress': 123,
'StorageEncrypted': True|False,
'KmsKeyId': 'string',
'DBClusterSnapshotArn': 'string',
'SourceDBClusterSnapshotArn': 'string'
}
}
Response Structure
Detailed information about a cluster snapshot.
Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored in.
Specifies the identifier for the cluster snapshot.
Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
Provides the time when the snapshot was taken, in UTC.
Specifies the name of the database engine.
Specifies the status of this cluster snapshot.
Specifies the port that the cluster was listening on at the time of the snapshot.
Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
Provides the master user name for the cluster snapshot.
Provides the version of the database engine for this cluster snapshot.
Provides the type of the cluster snapshot.
Specifies the percentage of the estimated data that has been transferred.
Specifies whether the cluster snapshot is encrypted.
If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster snapshot.
The Amazon Resource Name (ARN) for the cluster snapshot.
If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster snapshot; otherwise, a null value.
Exceptions
DocDB.Client.exceptions.InvalidDBClusterSnapshotStateFault
DocDB.Client.exceptions.DBClusterSnapshotNotFoundFault