Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an uninitialized HSM instance. Running this command provisions an HSM appliance and will result in charges to your AWS account for the HSM.
See: AWS API Reference for CreateHSM.
- createHSM :: Text -> Text -> Text -> SubscriptionType -> CreateHSM
- data CreateHSM
- chClientToken :: Lens' CreateHSM (Maybe Text)
- chSyslogIP :: Lens' CreateHSM (Maybe Text)
- chExternalId :: Lens' CreateHSM (Maybe Text)
- chEniIP :: Lens' CreateHSM (Maybe Text)
- chSubnetId :: Lens' CreateHSM Text
- chSSHKey :: Lens' CreateHSM Text
- chIAMRoleARN :: Lens' CreateHSM Text
- chSubscriptionType :: Lens' CreateHSM SubscriptionType
- createHSMResponse :: Int -> CreateHSMResponse
- data CreateHSMResponse
- chsmrsHSMARN :: Lens' CreateHSMResponse (Maybe Text)
- chsmrsStatus :: Lens' CreateHSMResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Text | |
-> SubscriptionType | |
-> CreateHSM |
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:
Contains the inputs for the CreateHsm action.
See: createHSM
smart constructor.
Request Lenses
chClientToken :: Lens' CreateHSM (Maybe Text) Source
A user-defined token to ensure idempotence. Subsequent calls to this action with the same token will be ignored.
chSubnetId :: Lens' CreateHSM Text Source
The identifier of the subnet in your VPC in which to place the HSM.
chIAMRoleARN :: Lens' CreateHSM Text Source
The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
chSubscriptionType :: Lens' CreateHSM SubscriptionType Source
The subscription type.
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:
data CreateHSMResponse Source
Contains the output of the CreateHsm action.
See: createHSMResponse
smart constructor.
Response Lenses
chsmrsHSMARN :: Lens' CreateHSMResponse (Maybe Text) Source
The ARN of the HSM.
chsmrsStatus :: Lens' CreateHSMResponse Int Source
The response status code.