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 |
Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster.
Synopsis
- data CreateHsm = CreateHsm' {}
- newCreateHsm :: Text -> Text -> CreateHsm
- createHsm_ipAddress :: Lens' CreateHsm (Maybe Text)
- createHsm_clusterId :: Lens' CreateHsm Text
- createHsm_availabilityZone :: Lens' CreateHsm Text
- data CreateHsmResponse = CreateHsmResponse' {
- hsm :: Maybe Hsm
- httpStatus :: Int
- newCreateHsmResponse :: Int -> CreateHsmResponse
- createHsmResponse_hsm :: Lens' CreateHsmResponse (Maybe Hsm)
- createHsmResponse_httpStatus :: Lens' CreateHsmResponse Int
Creating a Request
See: newCreateHsm
smart constructor.
CreateHsm' | |
|
Instances
Create a value of CreateHsm
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:ipAddress:CreateHsm'
, createHsm_ipAddress
- The HSM's IP address. If you specify an IP address, use an available
address from the subnet that maps to the Availability Zone where you are
creating the HSM. If you don't specify an IP address, one is chosen for
you from that subnet.
$sel:clusterId:CreateHsm'
, createHsm_clusterId
- The identifier (ID) of the HSM's cluster. To find the cluster ID, use
DescribeClusters.
$sel:availabilityZone:CreateHsm'
, createHsm_availabilityZone
- The Availability Zone where you are creating the HSM. To find the
cluster's Availability Zones, use DescribeClusters.
Request Lenses
createHsm_ipAddress :: Lens' CreateHsm (Maybe Text) Source #
The HSM's IP address. If you specify an IP address, use an available address from the subnet that maps to the Availability Zone where you are creating the HSM. If you don't specify an IP address, one is chosen for you from that subnet.
createHsm_clusterId :: Lens' CreateHsm Text Source #
The identifier (ID) of the HSM's cluster. To find the cluster ID, use DescribeClusters.
createHsm_availabilityZone :: Lens' CreateHsm Text Source #
The Availability Zone where you are creating the HSM. To find the cluster's Availability Zones, use DescribeClusters.
Destructuring the Response
data CreateHsmResponse Source #
See: newCreateHsmResponse
smart constructor.
CreateHsmResponse' | |
|
Instances
Create a value of CreateHsmResponse
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:hsm:CreateHsmResponse'
, createHsmResponse_hsm
- Information about the HSM that was created.
$sel:httpStatus:CreateHsmResponse'
, createHsmResponse_httpStatus
- The response's http status code.
Response Lenses
createHsmResponse_hsm :: Lens' CreateHsmResponse (Maybe Hsm) Source #
Information about the HSM that was created.
createHsmResponse_httpStatus :: Lens' CreateHsmResponse Int Source #
The response's http status code.