CloudHSMV2.Client.
delete_backup
(**kwargs)¶Deletes a specified AWS CloudHSM backup. A backup can be restored up to 7 days after the DeleteBackup request is made. For more information on restoring a backup, see RestoreBackup.
See also: AWS API Documentation
Request Syntax
response = client.delete_backup(
BackupId='string'
)
[REQUIRED]
The ID of the backup to be deleted. To find the ID of a backup, use the DescribeBackups operation.
{
'Backup': {
'BackupId': 'string',
'BackupState': 'CREATE_IN_PROGRESS'|'READY'|'DELETED'|'PENDING_DELETION',
'ClusterId': 'string',
'CreateTimestamp': datetime(2015, 1, 1),
'CopyTimestamp': datetime(2015, 1, 1),
'NeverExpires': True|False,
'SourceRegion': 'string',
'SourceBackup': 'string',
'SourceCluster': 'string',
'DeleteTimestamp': datetime(2015, 1, 1),
'TagList': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
Information on the Backup
object deleted.
The identifier (ID) of the backup.
The state of the backup.
The identifier (ID) of the cluster that was backed up.
The date and time when the backup was created.
The date and time when the backup was copied from a source backup.
Specifies whether the service should exempt a backup from the retention policy for the cluster. True
exempts a backup from the retention policy. False
means the service applies the backup retention policy defined at the cluster.
The AWS Region that contains the source backup from which the new backup was copied.
The identifier (ID) of the source backup from which the new backup was copied.
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
The date and time when the backup will be permanently deleted.
The list of tags for the backup.
Contains a tag. A tag is a key-value pair.
The key of the tag.
The value of the tag.
Exceptions
CloudHSMV2.Client.exceptions.CloudHsmAccessDeniedException
CloudHSMV2.Client.exceptions.CloudHsmInternalFailureException
CloudHSMV2.Client.exceptions.CloudHsmInvalidRequestException
CloudHSMV2.Client.exceptions.CloudHsmResourceNotFoundException
CloudHSMV2.Client.exceptions.CloudHsmServiceException