Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster.
Synopsis
- createHSM :: Text -> Text -> CreateHSM
- data CreateHSM
- chIPAddress :: Lens' CreateHSM (Maybe Text)
- chClusterId :: Lens' CreateHSM Text
- chAvailabilityZone :: Lens' CreateHSM Text
- createHSMResponse :: Int -> CreateHSMResponse
- data CreateHSMResponse
- chrsHSM :: Lens' CreateHSMResponse (Maybe HSM)
- chrsResponseStatus :: Lens' CreateHSMResponse Int
Creating a Request
Creates a value of CreateHSM
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chIPAddress
- 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.chClusterId
- The identifier (ID) of the HSM's cluster. To find the cluster ID, useDescribeClusters
.chAvailabilityZone
- The Availability Zone where you are creating the HSM. To find the cluster's Availability Zones, useDescribeClusters
.
See: createHSM
smart constructor.
Instances
Request Lenses
chIPAddress :: 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.
chClusterId :: Lens' CreateHSM Text Source #
The identifier (ID) of the HSM's cluster. To find the cluster ID, use DescribeClusters
.
chAvailabilityZone :: 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
Creates a value of CreateHSMResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chrsHSM
- Information about the HSM that was created.chrsResponseStatus
- -- | The response status code.
data CreateHSMResponse Source #
See: createHSMResponse
smart constructor.
Instances
Response Lenses
chrsResponseStatus :: Lens' CreateHSMResponse Int Source #
- - | The response status code.