Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

initialize_cluster

initialize_cluster(**kwargs)

Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters.

See also: AWS API Documentation

Request Syntax

response = client.initialize_cluster(
    ClusterId='string',
    SignedCert='string',
    TrustAnchor='string'
)
Parameters
  • ClusterId (string) --

    [REQUIRED]

    The identifier (ID) of the cluster that you are claiming. To find the cluster ID, use DescribeClusters.

  • SignedCert (string) --

    [REQUIRED]

    The cluster certificate issued (signed) by your issuing certificate authority (CA). The certificate must be in PEM format and can contain a maximum of 5000 characters.

  • TrustAnchor (string) --

    [REQUIRED]

    The issuing certificate of the issuing certificate authority (CA) that issued (signed) the cluster certificate. You must use a self-signed certificate. The certificate used to sign the HSM CSR must be directly available, and thus must be the root certificate. The certificate must be in PEM format and can contain a maximum of 5000 characters.

Return type

dict

Returns

Response Syntax

{
    'State': 'CREATE_IN_PROGRESS'|'UNINITIALIZED'|'INITIALIZE_IN_PROGRESS'|'INITIALIZED'|'ACTIVE'|'UPDATE_IN_PROGRESS'|'DELETE_IN_PROGRESS'|'DELETED'|'DEGRADED',
    'StateMessage': 'string'
}

Response Structure

  • (dict) --

    • State (string) --

      The cluster's state.

    • StateMessage (string) --

      A description of the cluster's state.

Exceptions

  • CloudHSMV2.Client.exceptions.CloudHsmAccessDeniedException
  • CloudHSMV2.Client.exceptions.CloudHsmInternalFailureException
  • CloudHSMV2.Client.exceptions.CloudHsmInvalidRequestException
  • CloudHSMV2.Client.exceptions.CloudHsmResourceNotFoundException
  • CloudHSMV2.Client.exceptions.CloudHsmServiceException