CloudHSMV2.Client.
create_hsm
(**kwargs)¶Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster.
See also: AWS API Documentation
Request Syntax
response = client.create_hsm(
ClusterId='string',
AvailabilityZone='string',
IpAddress='string'
)
[REQUIRED]
The identifier (ID) of the HSM's cluster. To find the cluster ID, use DescribeClusters.
[REQUIRED]
The Availability Zone where you are creating the HSM. To find the cluster's Availability Zones, use DescribeClusters.
dict
Response Syntax
{
'Hsm': {
'AvailabilityZone': 'string',
'ClusterId': 'string',
'SubnetId': 'string',
'EniId': 'string',
'EniIp': 'string',
'HsmId': 'string',
'State': 'CREATE_IN_PROGRESS'|'ACTIVE'|'DEGRADED'|'DELETE_IN_PROGRESS'|'DELETED',
'StateMessage': 'string'
}
}
Response Structure
(dict) --
Hsm (dict) --
Information about the HSM that was created.
AvailabilityZone (string) --
The Availability Zone that contains the HSM.
ClusterId (string) --
The identifier (ID) of the cluster that contains the HSM.
SubnetId (string) --
The subnet that contains the HSM's elastic network interface (ENI).
EniId (string) --
The identifier (ID) of the HSM's elastic network interface (ENI).
EniIp (string) --
The IP address of the HSM's elastic network interface (ENI).
HsmId (string) --
The HSM's identifier (ID).
State (string) --
The HSM's state.
StateMessage (string) --
A description of the HSM's state.
Exceptions
CloudHSMV2.Client.exceptions.CloudHsmInternalFailureException
CloudHSMV2.Client.exceptions.CloudHsmServiceException
CloudHSMV2.Client.exceptions.CloudHsmInvalidRequestException
CloudHSMV2.Client.exceptions.CloudHsmResourceNotFoundException
CloudHSMV2.Client.exceptions.CloudHsmAccessDeniedException