Skip to main content

hsms

Creates, updates, deletes, gets or lists a hsms resource.

Overview

Namehsms
TypeResource
Idaws.cloudhsm.hsms

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
availability_zonestringThe Availability Zone that the HSM is in. (pattern: <code>[a-zA-Z0-9-]*</code>)
eni_idstringThe identifier of the elastic network interface (ENI) attached to the HSM. (pattern: <code>eni-[0-9a-f]{8}</code>)
eni_ipstringThe IP address assigned to the HSM's ENI. (pattern: <code>\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}</code>)
hsm_arnstringAn ARN that identifies an HSM. (pattern: <code>arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9-]*:[0-9]{12}:hsm-[0-9a-f]{8}</code>)
hsm_typestringThe HSM model type. (pattern: <code>[\w :+=./\-]*</code>)
iam_role_arnstringThe ARN of the IAM role assigned to the HSM. (pattern: <code>arn:aws(-iso)?:iam::[0-9]{12}:role/[a-zA-Z0-9_+=,.-@]{1,64}</code>)
partitionsarrayThe list of partitions on the HSM.
serial_numberstringThe serial number of the HSM. (pattern: <code>\d{1,16}</code>)
server_cert_last_updatedstringThe date and time that the server certificate was last updated. (pattern: <code>\d*</code>)
server_cert_uristringThe URI of the certificate server. (pattern: <code>[\w :+=./\-]*</code>)
software_versionstringThe HSM software version. (pattern: <code>[\w :+=./\-]*</code>)
ssh_key_last_updatedstringThe date and time that the SSH key was last updated. (pattern: <code>\d*</code>)
ssh_public_keystringThe public SSH key. (pattern: <code>[a-zA-Z0-9+/= ._:\@-]*</code>)
statusstringThe status of the HSM. (PENDING, RUNNING, UPDATING, SUSPENDED, TERMINATING, TERMINATED, DEGRADED)
status_detailsstringContains additional information about the status of the HSM. (pattern: <code>[\w :+=./\-]*</code>)
subnet_idstringThe identifier of the subnet that the HSM is in. (pattern: <code>subnet-[0-9a-f]{8}</code>)
subscription_end_datestringThe subscription end date. (pattern: <code>\d*</code>)
subscription_start_datestringThe subscription start date. (pattern: <code>\d*</code>)
subscription_typestringSpecifies the type of subscription for the HSM. PRODUCTION - The HSM is being used in a production environment. TRIAL - The HSM is being used in a product trial. (PRODUCTION)
vendor_namestringThe name of the HSM vendor. (pattern: <code>[\w :+=./\-]*</code>)
vpc_idstringThe identifier of the VPC that the HSM is in. (pattern: <code>vpc-[0-9a-f]{8}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_hsmselectregionThis 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.
list_hsmsselectregionThis 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.
create_hsminsertregion, SubnetId, SshKey, IamRoleArn, SubscriptionTypeThis 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. 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.
modify_hsmupdateregion, HsmArnThis 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. 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.
delete_hsmdeleteregionThis 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
availability_zone,
eni_id,
eni_ip,
hsm_arn,
hsm_type,
iam_role_arn,
partitions,
serial_number,
server_cert_last_updated,
server_cert_uri,
software_version,
ssh_key_last_updated,
ssh_public_key,
status,
status_details,
subnet_id,
subscription_end_date,
subscription_start_date,
subscription_type,
vendor_name,
vpc_id
FROM aws.cloudhsm.hsms
WHERE region = '{{ region }}' -- required
;

INSERT examples

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. 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.

INSERT INTO aws.cloudhsm.hsms (
SubnetId,
SshKey,
EniIp,
IamRoleArn,
ExternalId,
SubscriptionType,
ClientToken,
SyslogIp,
region
)
SELECT
'{{ SubnetId }}' /* required */,
'{{ SshKey }}' /* required */,
'{{ EniIp }}',
'{{ IamRoleArn }}' /* required */,
'{{ ExternalId }}',
'{{ SubscriptionType }}' /* required */,
'{{ ClientToken }}',
'{{ SyslogIp }}',
'{{ region }}'
RETURNING
hsm_arn
;

UPDATE examples

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. 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.

UPDATE aws.cloudhsm.hsms
SET
HsmArn = '{{ HsmArn }}',
SubnetId = '{{ SubnetId }}',
EniIp = '{{ EniIp }}',
IamRoleArn = '{{ IamRoleArn }}',
ExternalId = '{{ ExternalId }}',
SyslogIp = '{{ SyslogIp }}'
WHERE
region = '{{ region }}' --required
AND HsmArn = '{{ HsmArn }}' --required
RETURNING
hsm_arn;

DELETE examples

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.

DELETE FROM aws.cloudhsm.hsms
WHERE region = '{{ region }}' --required
;