Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data InitializeCluster = InitializeCluster' {
- clusterId :: Text
- signedCert :: Text
- trustAnchor :: Text
- newInitializeCluster :: Text -> Text -> Text -> InitializeCluster
- initializeCluster_clusterId :: Lens' InitializeCluster Text
- initializeCluster_signedCert :: Lens' InitializeCluster Text
- initializeCluster_trustAnchor :: Lens' InitializeCluster Text
- data InitializeClusterResponse = InitializeClusterResponse' {
- stateMessage :: Maybe Text
- state :: Maybe ClusterState
- httpStatus :: Int
- newInitializeClusterResponse :: Int -> InitializeClusterResponse
- initializeClusterResponse_stateMessage :: Lens' InitializeClusterResponse (Maybe Text)
- initializeClusterResponse_state :: Lens' InitializeClusterResponse (Maybe ClusterState)
- initializeClusterResponse_httpStatus :: Lens' InitializeClusterResponse Int
Creating a Request
data InitializeCluster Source #
See: newInitializeCluster
smart constructor.
InitializeCluster' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> InitializeCluster |
Create a value of InitializeCluster
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clusterId:InitializeCluster'
, initializeCluster_clusterId
- The identifier (ID) of the cluster that you are claiming. To find the
cluster ID, use DescribeClusters.
$sel:signedCert:InitializeCluster'
, initializeCluster_signedCert
- 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.
$sel:trustAnchor:InitializeCluster'
, initializeCluster_trustAnchor
- 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.
Request Lenses
initializeCluster_clusterId :: Lens' InitializeCluster Text Source #
The identifier (ID) of the cluster that you are claiming. To find the cluster ID, use DescribeClusters.
initializeCluster_signedCert :: Lens' InitializeCluster Text Source #
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.
initializeCluster_trustAnchor :: Lens' InitializeCluster Text Source #
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.
Destructuring the Response
data InitializeClusterResponse Source #
See: newInitializeClusterResponse
smart constructor.
InitializeClusterResponse' | |
|
Instances
newInitializeClusterResponse Source #
Create a value of InitializeClusterResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:stateMessage:InitializeClusterResponse'
, initializeClusterResponse_stateMessage
- A description of the cluster's state.
$sel:state:InitializeClusterResponse'
, initializeClusterResponse_state
- The cluster's state.
$sel:httpStatus:InitializeClusterResponse'
, initializeClusterResponse_httpStatus
- The response's http status code.
Response Lenses
initializeClusterResponse_stateMessage :: Lens' InitializeClusterResponse (Maybe Text) Source #
A description of the cluster's state.
initializeClusterResponse_state :: Lens' InitializeClusterResponse (Maybe ClusterState) Source #
The cluster's state.
initializeClusterResponse_httpStatus :: Lens' InitializeClusterResponse Int Source #
The response's http status code.