Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference.
For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference.
Creates an uninitialized HSM instance.
There is an upfront fee charged for each HSM instance that you create
with the CreateHsm
operation. If you accidentally provision an HSM and
want to request a refund, delete the instance using the DeleteHsm
operation, go to the
AWS Support Center, create
a new case, and select Account and Billing Support.
It can take up to 20 minutes to create and provision an HSM. You can
monitor the status of the HSM with the DescribeHsm operation. The HSM is
ready to be initialized when the status changes to RUNNING
.
Synopsis
- data CreateHsm = CreateHsm' {
- clientToken :: Maybe Text
- eniIp :: Maybe Text
- externalId :: Maybe Text
- syslogIp :: Maybe Text
- subnetId :: Text
- sshKey :: Text
- iamRoleArn :: Text
- subscriptionType :: SubscriptionType
- newCreateHsm :: Text -> Text -> Text -> SubscriptionType -> CreateHsm
- createHsm_clientToken :: Lens' CreateHsm (Maybe Text)
- createHsm_eniIp :: Lens' CreateHsm (Maybe Text)
- createHsm_externalId :: Lens' CreateHsm (Maybe Text)
- createHsm_syslogIp :: Lens' CreateHsm (Maybe Text)
- createHsm_subnetId :: Lens' CreateHsm Text
- createHsm_sshKey :: Lens' CreateHsm Text
- createHsm_iamRoleArn :: Lens' CreateHsm Text
- createHsm_subscriptionType :: Lens' CreateHsm SubscriptionType
- data CreateHsmResponse = CreateHsmResponse' {
- hsmArn :: Maybe Text
- httpStatus :: Int
- newCreateHsmResponse :: Int -> CreateHsmResponse
- createHsmResponse_hsmArn :: Lens' CreateHsmResponse (Maybe Text)
- createHsmResponse_httpStatus :: Lens' CreateHsmResponse Int
Creating a Request
Contains the inputs for the CreateHsm
operation.
See: newCreateHsm
smart constructor.
CreateHsm' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> SubscriptionType | |
-> CreateHsm |
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:clientToken:CreateHsm'
, createHsm_clientToken
- A user-defined token to ensure idempotence. Subsequent calls to this
operation with the same token will be ignored.
$sel:eniIp:CreateHsm'
, createHsm_eniIp
- The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
$sel:externalId:CreateHsm'
, createHsm_externalId
- The external ID from IamRoleArn
, if present.
$sel:syslogIp:CreateHsm'
, createHsm_syslogIp
- The IP address for the syslog monitoring server. The AWS CloudHSM
service only supports one syslog monitoring server.
$sel:subnetId:CreateHsm'
, createHsm_subnetId
- The identifier of the subnet in your VPC in which to place the HSM.
$sel:sshKey:CreateHsm'
, createHsm_sshKey
- The SSH public key to install on the HSM.
$sel:iamRoleArn:CreateHsm'
, createHsm_iamRoleArn
- The ARN of an IAM role to enable the AWS CloudHSM service to allocate an
ENI on your behalf.
$sel:subscriptionType:CreateHsm'
, createHsm_subscriptionType
- Undocumented member.
Request Lenses
createHsm_clientToken :: Lens' CreateHsm (Maybe Text) Source #
A user-defined token to ensure idempotence. Subsequent calls to this operation with the same token will be ignored.
createHsm_eniIp :: Lens' CreateHsm (Maybe Text) Source #
The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
createHsm_externalId :: Lens' CreateHsm (Maybe Text) Source #
The external ID from IamRoleArn
, if present.
createHsm_syslogIp :: Lens' CreateHsm (Maybe Text) Source #
The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.
createHsm_subnetId :: Lens' CreateHsm Text Source #
The identifier of the subnet in your VPC in which to place the HSM.
createHsm_iamRoleArn :: Lens' CreateHsm Text Source #
The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
createHsm_subscriptionType :: Lens' CreateHsm SubscriptionType Source #
Undocumented member.
Destructuring the Response
data CreateHsmResponse Source #
Contains the output of the CreateHsm
operation.
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:hsmArn:CreateHsmResponse'
, createHsmResponse_hsmArn
- The ARN of the HSM.
$sel:httpStatus:CreateHsmResponse'
, createHsmResponse_httpStatus
- The response's http status code.
Response Lenses
createHsmResponse_hsmArn :: Lens' CreateHsmResponse (Maybe Text) Source #
The ARN of the HSM.
createHsmResponse_httpStatus :: Lens' CreateHsmResponse Int Source #
The response's http status code.