Skip to main content

hapgs

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

Overview

Namehapgs
TypeResource
Idaws.cloudhsm.hapgs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
hapg_arnstringThe ARN of the high-availability partition group. (pattern: <code>arn:aws(-iso)?:cloudhsm:[a-zA-Z0-9-]*:[0-9]{12}:hapg-[0-9a-f]{8}</code>)
hapg_serialstringThe serial number of the high-availability partition group. (pattern: <code>[\w :+=./\-]*</code>)
hsms_last_action_failedarrayContains a list of ARNs that identify the HSMs.
hsms_pending_deletionarrayContains a list of ARNs that identify the HSMs.
hsms_pending_registrationarrayContains a list of ARNs that identify the HSMs.
labelstringThe label for the high-availability partition group. (pattern: <code>[a-zA-Z0-9_.-]{1,64}</code>)
last_modified_timestampstringThe date and time the high-availability partition group was last modified. (pattern: <code>\d*</code>)
partition_serial_listarrayThe list of partition serial numbers that belong to the high-availability partition group.
statestringThe state of the high-availability partition group. (READY, UPDATING, DEGRADED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_hapgselectregionThis 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.
list_hapgsselectregionThis 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.
create_hapginsertregionThis 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.
modify_hapgupdateregion, HapgArnThis 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.
delete_hapgdeleteregionThis 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.

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 a high-availability partition group.

SELECT
hapg_arn,
hapg_serial,
hsms_last_action_failed,
hsms_pending_deletion,
hsms_pending_registration,
label,
last_modified_timestamp,
partition_serial_list,
state
FROM aws.cloudhsm.hapgs
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 a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.

INSERT INTO aws.cloudhsm.hapgs (
Label,
region
)
SELECT
'{{ Label }}',
'{{ region }}'
RETURNING
hapg_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 existing high-availability partition group.

UPDATE aws.cloudhsm.hapgs
SET
HapgArn = '{{ HapgArn }}',
Label = '{{ Label }}',
PartitionSerialList = '{{ PartitionSerialList }}'
WHERE
region = '{{ region }}' --required
AND HapgArn = '{{ HapgArn }}' --required
RETURNING
hapg_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 a high-availability partition group.

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