Table of Contents
A low-level client representing Amazon CloudHSM:
client = session.create_client('cloudhsm')
These are the available methods:
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
Each tag consists of a key and a value. Tag keys must be unique to each resource.
See also: AWS API Documentation
Request Syntax
response = client.add_tags_to_resource(
ResourceArn='string',
TagList=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
[REQUIRED]
One or more tags.
A key-value pair that identifies or specifies metadata about an AWS CloudHSM resource.
The key of the tag.
The value of the tag.
dict
Response Syntax
{
'Status': 'string'
}
Response Structure
(dict) --
Status (string) --
The status of the operation.
Check if an operation can be paginated.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Creates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.
See also: AWS API Documentation
Request Syntax
response = client.create_hapg(
Label='string'
)
[REQUIRED]
The label of the new high-availability partition group.
{
'HapgArn': 'string'
}
Response Structure
Contains the output of the CreateHAPartitionGroup action.
The ARN of the high-availability partition group.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Creates an uninitialized HSM instance.
There is an upfront fee charged for each HSM instance that you create with the CreateHsm operation. If you accidentally provision an HSM and want to request a refund, delete the instance using the DeleteHsm operation, go to the AWS Support Center , create a new case, and select Account and Billing Support .
Warning
It can take up to 20 minutes to create and provision an HSM. You can monitor the status of the HSM with the DescribeHsm operation. The HSM is ready to be initialized when the status changes to RUNNING .
See also: AWS API Documentation
Request Syntax
response = client.create_hsm(
SubnetId='string',
SshKey='string',
EniIp='string',
IamRoleArn='string',
ExternalId='string',
SubscriptionType='PRODUCTION',
ClientToken='string',
SyslogIp='string'
)
[REQUIRED]
The identifier of the subnet in your VPC in which to place the HSM.
[REQUIRED]
The SSH public key to install on the HSM.
The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
[REQUIRED]
The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
[REQUIRED]
Specifies the type of subscription for the HSM.
dict
Response Syntax
{
'HsmArn': 'string'
}
Response Structure
(dict) --
Contains the output of the CreateHsm operation.
HsmArn (string) --
The ARN of the HSM.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Creates an HSM client.
See also: AWS API Documentation
Request Syntax
response = client.create_luna_client(
Label='string',
Certificate='string'
)
[REQUIRED]
The contents of a Base64-Encoded X.509 v3 certificate to be installed on the HSMs used by this client.
dict
Response Syntax
{
'ClientArn': 'string'
}
Response Structure
(dict) --
Contains the output of the CreateLunaClient action.
ClientArn (string) --
The ARN of the client.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Deletes a high-availability partition group.
See also: AWS API Documentation
Request Syntax
response = client.delete_hapg(
HapgArn='string'
)
[REQUIRED]
The ARN of the high-availability partition group to delete.
{
'Status': 'string'
}
Response Structure
Contains the output of the DeleteHapg action.
The status of the action.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Deletes an HSM. After completion, this operation cannot be undone and your key material cannot be recovered.
See also: AWS API Documentation
Request Syntax
response = client.delete_hsm(
HsmArn='string'
)
[REQUIRED]
The ARN of the HSM to delete.
{
'Status': 'string'
}
Response Structure
Contains the output of the DeleteHsm operation.
The status of the operation.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Deletes a client.
See also: AWS API Documentation
Request Syntax
response = client.delete_luna_client(
ClientArn='string'
)
[REQUIRED]
The ARN of the client to delete.
{
'Status': 'string'
}
Response Structure
The status of the action.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Retrieves information about a high-availability partition group.
See also: AWS API Documentation
Request Syntax
response = client.describe_hapg(
HapgArn='string'
)
[REQUIRED]
The ARN of the high-availability partition group to describe.
{
'HapgArn': 'string',
'HapgSerial': 'string',
'HsmsLastActionFailed': [
'string',
],
'HsmsPendingDeletion': [
'string',
],
'HsmsPendingRegistration': [
'string',
],
'Label': 'string',
'LastModifiedTimestamp': 'string',
'PartitionSerialList': [
'string',
],
'State': 'READY'|'UPDATING'|'DEGRADED'
}
Response Structure
Contains the output of the DescribeHapg action.
The ARN of the high-availability partition group.
The serial number of the high-availability partition group.
An ARN that identifies an HSM.
An ARN that identifies an HSM.
An ARN that identifies an HSM.
The label for the high-availability partition group.
The date and time the high-availability partition group was last modified.
The list of partition serial numbers that belong to the high-availability partition group.
The state of the high-availability partition group.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Retrieves information about an HSM. You can identify the HSM by its ARN or its serial number.
See also: AWS API Documentation
Request Syntax
response = client.describe_hsm(
HsmArn='string',
HsmSerialNumber='string'
)
dict
Response Syntax
{
'HsmArn': 'string',
'Status': 'PENDING'|'RUNNING'|'UPDATING'|'SUSPENDED'|'TERMINATING'|'TERMINATED'|'DEGRADED',
'StatusDetails': 'string',
'AvailabilityZone': 'string',
'EniId': 'string',
'EniIp': 'string',
'SubscriptionType': 'PRODUCTION',
'SubscriptionStartDate': 'string',
'SubscriptionEndDate': 'string',
'VpcId': 'string',
'SubnetId': 'string',
'IamRoleArn': 'string',
'SerialNumber': 'string',
'VendorName': 'string',
'HsmType': 'string',
'SoftwareVersion': 'string',
'SshPublicKey': 'string',
'SshKeyLastUpdated': 'string',
'ServerCertUri': 'string',
'ServerCertLastUpdated': 'string',
'Partitions': [
'string',
]
}
Response Structure
(dict) --
Contains the output of the DescribeHsm operation.
HsmArn (string) --
The ARN of the HSM.
Status (string) --
The status of the HSM.
StatusDetails (string) --
Contains additional information about the status of the HSM.
AvailabilityZone (string) --
The Availability Zone that the HSM is in.
EniId (string) --
The identifier of the elastic network interface (ENI) attached to the HSM.
EniIp (string) --
The IP address assigned to the HSM's ENI.
SubscriptionType (string) --
Specifies the type of subscription for the HSM.
SubscriptionStartDate (string) --
The subscription start date.
SubscriptionEndDate (string) --
The subscription end date.
VpcId (string) --
The identifier of the VPC that the HSM is in.
SubnetId (string) --
The identifier of the subnet that the HSM is in.
IamRoleArn (string) --
The ARN of the IAM role assigned to the HSM.
SerialNumber (string) --
The serial number of the HSM.
VendorName (string) --
The name of the HSM vendor.
HsmType (string) --
The HSM model type.
SoftwareVersion (string) --
The HSM software version.
SshPublicKey (string) --
The public SSH key.
SshKeyLastUpdated (string) --
The date and time that the SSH key was last updated.
ServerCertUri (string) --
The URI of the certificate server.
ServerCertLastUpdated (string) --
The date and time that the server certificate was last updated.
Partitions (list) --
The list of partitions on the HSM.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Retrieves information about an HSM client.
See also: AWS API Documentation
Request Syntax
response = client.describe_luna_client(
ClientArn='string',
CertificateFingerprint='string'
)
dict
Response Syntax
{
'ClientArn': 'string',
'Certificate': 'string',
'CertificateFingerprint': 'string',
'LastModifiedTimestamp': 'string',
'Label': 'string'
}
Response Structure
(dict) --
ClientArn (string) --
The ARN of the client.
Certificate (string) --
The certificate installed on the HSMs used by this client.
CertificateFingerprint (string) --
The certificate fingerprint.
LastModifiedTimestamp (string) --
The date and time the client was last modified.
Label (string) --
The label of the client.
Generate a presigned url given a client, its method, and arguments
The presigned url
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Gets the configuration files necessary to connect to all high availability partition groups the client is associated with.
See also: AWS API Documentation
Request Syntax
response = client.get_config(
ClientArn='string',
ClientVersion='5.1'|'5.3',
HapgList=[
'string',
]
)
[REQUIRED]
The ARN of the client.
[REQUIRED]
The client version.
[REQUIRED]
A list of ARNs that identify the high-availability partition groups that are associated with the client.
dict
Response Syntax
{
'ConfigType': 'string',
'ConfigFile': 'string',
'ConfigCred': 'string'
}
Response Structure
(dict) --
ConfigType (string) --
The type of credentials.
ConfigFile (string) --
The chrystoki.conf configuration file.
ConfigCred (string) --
The certificate file containing the server.pem files of the HSMs.
Create a paginator for an operation.
Returns an object that can wait for some condition.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Lists the Availability Zones that have available AWS CloudHSM capacity.
See also: AWS API Documentation
Request Syntax
response = client.list_available_zones()
{
'AZList': [
'string',
]
}
Response Structure
The list of Availability Zones that have available AWS CloudHSM capacity.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Lists the high-availability partition groups for the account.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items.
See also: AWS API Documentation
Request Syntax
response = client.list_hapgs(
NextToken='string'
)
{
'HapgList': [
'string',
],
'NextToken': 'string'
}
Response Structure
The list of high-availability partition groups.
If not null, more results are available. Pass this value to ListHapgs to retrieve the next set of items.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Retrieves the identifiers of all of the HSMs provisioned for the current customer.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items.
See also: AWS API Documentation
Request Syntax
response = client.list_hsms(
NextToken='string'
)
{
'HsmList': [
'string',
],
'NextToken': 'string'
}
Response Structure
Contains the output of the ListHsms operation.
The list of ARNs that identify the HSMs.
An ARN that identifies an HSM.
If not null, more results are available. Pass this value to ListHsms to retrieve the next set of items.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Lists all of the clients.
This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items.
See also: AWS API Documentation
Request Syntax
response = client.list_luna_clients(
NextToken='string'
)
{
'ClientList': [
'string',
],
'NextToken': 'string'
}
Response Structure
The list of clients.
If not null, more results are available. Pass this to ListLunaClients to retrieve the next set of items.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Returns a list of all tags for the specified AWS CloudHSM resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
{
'TagList': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
One or more tags.
A key-value pair that identifies or specifies metadata about an AWS CloudHSM resource.
The key of the tag.
The value of the tag.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Modifies an existing high-availability partition group.
See also: AWS API Documentation
Request Syntax
response = client.modify_hapg(
HapgArn='string',
Label='string',
PartitionSerialList=[
'string',
]
)
[REQUIRED]
The ARN of the high-availability partition group to modify.
The list of partition serial numbers to make members of the high-availability partition group.
dict
Response Syntax
{
'HapgArn': 'string'
}
Response Structure
(dict) --
HapgArn (string) --
The ARN of the high-availability partition group.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Modifies an HSM.
Warning
This operation can result in the HSM being offline for up to 15 minutes while the AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure that your AWS CloudHSM service is configured for high availability, and consider executing this operation during a maintenance window.
See also: AWS API Documentation
Request Syntax
response = client.modify_hsm(
HsmArn='string',
SubnetId='string',
EniIp='string',
IamRoleArn='string',
ExternalId='string',
SyslogIp='string'
)
[REQUIRED]
The ARN of the HSM to modify.
The new IP address for the elastic network interface (ENI) attached to the HSM.
If the HSM is moved to a different subnet, and an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the new subnet.
dict
Response Syntax
{
'HsmArn': 'string'
}
Response Structure
(dict) --
Contains the output of the ModifyHsm operation.
HsmArn (string) --
The ARN of the HSM.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Modifies the certificate used by the client.
This action can potentially start a workflow to install the new certificate on the client's HSMs.
See also: AWS API Documentation
Request Syntax
response = client.modify_luna_client(
ClientArn='string',
Certificate='string'
)
[REQUIRED]
The ARN of the client.
[REQUIRED]
The new certificate for the client.
dict
Response Syntax
{
'ClientArn': 'string'
}
Response Structure
(dict) --
ClientArn (string) --
The ARN of the client.
This is documentation for AWS CloudHSM Classic . For more information, see AWS CloudHSM Classic FAQs , the AWS CloudHSM Classic User Guide , and the AWS CloudHSM Classic API Reference .
For information about the current version of AWS CloudHSM , see AWS CloudHSM , the AWS CloudHSM User Guide , and the AWS CloudHSM API Reference .
Removes one or more tags from the specified AWS CloudHSM resource.
To remove a tag, specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource .
See also: AWS API Documentation
Request Syntax
response = client.remove_tags_from_resource(
ResourceArn='string',
TagKeyList=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
[REQUIRED]
The tag key or keys to remove.
Specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource .
dict
Response Syntax
{
'Status': 'string'
}
Response Structure
(dict) --
Status (string) --
The status of the operation.
The available paginators are: