delete_cluster
(**kwargs)¶Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To delete an HSM, use DeleteHsm.
See also: AWS API Documentation
Request Syntax
response = client.delete_cluster(
ClusterId='string'
)
[REQUIRED]
The identifier (ID) of the cluster that you are deleting. To find the cluster ID, use DescribeClusters.
{
'Cluster': {
'BackupPolicy': 'DEFAULT',
'BackupRetentionPolicy': {
'Type': 'DAYS',
'Value': 'string'
},
'ClusterId': 'string',
'CreateTimestamp': datetime(2015, 1, 1),
'Hsms': [
{
'AvailabilityZone': 'string',
'ClusterId': 'string',
'SubnetId': 'string',
'EniId': 'string',
'EniIp': 'string',
'HsmId': 'string',
'State': 'CREATE_IN_PROGRESS'|'ACTIVE'|'DEGRADED'|'DELETE_IN_PROGRESS'|'DELETED',
'StateMessage': 'string'
},
],
'HsmType': 'string',
'PreCoPassword': 'string',
'SecurityGroup': 'string',
'SourceBackupId': 'string',
'State': 'CREATE_IN_PROGRESS'|'UNINITIALIZED'|'INITIALIZE_IN_PROGRESS'|'INITIALIZED'|'ACTIVE'|'UPDATE_IN_PROGRESS'|'DELETE_IN_PROGRESS'|'DELETED'|'DEGRADED',
'StateMessage': 'string',
'SubnetMapping': {
'string': 'string'
},
'VpcId': 'string',
'Certificates': {
'ClusterCsr': 'string',
'HsmCertificate': 'string',
'AwsHardwareCertificate': 'string',
'ManufacturerHardwareCertificate': 'string',
'ClusterCertificate': 'string'
},
'TagList': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
Information about the cluster that was deleted.
The cluster's backup policy.
A policy that defines how the service retains backups.
The type of backup retention policy. For the DAYS
type, the value is the number of days to retain backups.
Use a value between 7 - 379.
The cluster's identifier (ID).
The date and time when the cluster was created.
Contains information about the HSMs in the cluster.
Contains information about a hardware security module (HSM) in an AWS CloudHSM cluster.
The Availability Zone that contains the HSM.
The identifier (ID) of the cluster that contains the HSM.
The subnet that contains the HSM's elastic network interface (ENI).
The identifier (ID) of the HSM's elastic network interface (ENI).
The IP address of the HSM's elastic network interface (ENI).
The HSM's identifier (ID).
The HSM's state.
A description of the HSM's state.
The type of HSM that the cluster contains.
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
The identifier (ID) of the cluster's security group.
The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
The cluster's state.
A description of the cluster's state.
A map from availability zone to the cluster’s subnet in that availability zone.
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
Contains one or more certificates or a certificate signing request (CSR).
The cluster's certificate signing request (CSR). The CSR exists only when the cluster's state is UNINITIALIZED
.
The HSM certificate issued (signed) by the HSM hardware.
The HSM hardware certificate issued (signed) by AWS CloudHSM.
The HSM hardware certificate issued (signed) by the hardware manufacturer.
The cluster certificate issued (signed) by the issuing certificate authority (CA) of the cluster's owner.
The list of tags for the cluster.
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
CloudHSMV2.Client.exceptions.CloudHsmTagException