RedshiftServerless.Client.
delete_snapshot
(**kwargs)¶Deletes a snapshot from Amazon Redshift Serverless.
See also: AWS API Documentation
Request Syntax
response = client.delete_snapshot(
snapshotName='string'
)
[REQUIRED]
The name of the snapshot to be deleted.
{
'snapshot': {
'accountsWithProvisionedRestoreAccess': [
'string',
],
'accountsWithRestoreAccess': [
'string',
],
'actualIncrementalBackupSizeInMegaBytes': 123.0,
'adminUsername': 'string',
'backupProgressInMegaBytes': 123.0,
'currentBackupRateInMegaBytesPerSecond': 123.0,
'elapsedTimeInSeconds': 123,
'estimatedSecondsToCompletion': 123,
'kmsKeyId': 'string',
'namespaceArn': 'string',
'namespaceName': 'string',
'ownerAccount': 'string',
'snapshotArn': 'string',
'snapshotCreateTime': datetime(2015, 1, 1),
'snapshotName': 'string',
'snapshotRemainingDays': 123,
'snapshotRetentionPeriod': 123,
'snapshotRetentionStartTime': datetime(2015, 1, 1),
'status': 'AVAILABLE'|'CREATING'|'DELETED'|'CANCELLED'|'FAILED'|'COPYING',
'totalBackupSizeInMegaBytes': 123.0
}
}
Response Structure
The deleted snapshot object.
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
The size of the incremental backup in megabytes.
The username of the database within a snapshot.
The size in megabytes of the data that has been backed up to a snapshot.
The rate at which data is backed up into a snapshot in megabytes per second.
The amount of time it took to back up data into a snapshot.
The estimated amount of seconds until the snapshot completes backup.
The unique identifier of the KMS key used to encrypt the snapshot.
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
The name of the namepsace.
The owner Amazon Web Services; account of the snapshot.
The Amazon Resource Name (ARN) of the snapshot.
The timestamp of when the snapshot was created.
The name of the snapshot.
The amount of days until the snapshot is deleted.
The period of time, in days, of how long the snapshot is retained.
The timestamp of when data within the snapshot started getting retained.
The status of the snapshot.
The total size, in megabytes, of how big the snapshot is.
Exceptions
RedshiftServerless.Client.exceptions.InternalServerException
RedshiftServerless.Client.exceptions.ResourceNotFoundException
RedshiftServerless.Client.exceptions.ConflictException
RedshiftServerless.Client.exceptions.ValidationException