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 AWS CloudHSM cluster.
Synopsis
- data CreateCluster = CreateCluster' {}
- newCreateCluster :: Text -> NonEmpty Text -> CreateCluster
- createCluster_backupRetentionPolicy :: Lens' CreateCluster (Maybe BackupRetentionPolicy)
- createCluster_tagList :: Lens' CreateCluster (Maybe [Tag])
- createCluster_sourceBackupId :: Lens' CreateCluster (Maybe Text)
- createCluster_hsmType :: Lens' CreateCluster Text
- createCluster_subnetIds :: Lens' CreateCluster (NonEmpty Text)
- data CreateClusterResponse = CreateClusterResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newCreateClusterResponse :: Int -> CreateClusterResponse
- createClusterResponse_cluster :: Lens' CreateClusterResponse (Maybe Cluster)
- createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int
Creating a Request
data CreateCluster Source #
See: newCreateCluster
smart constructor.
CreateCluster' | |
|
Instances
Create a value of CreateCluster
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:backupRetentionPolicy:CreateCluster'
, createCluster_backupRetentionPolicy
- A policy that defines how the service retains backups.
$sel:tagList:CreateCluster'
, createCluster_tagList
- Tags to apply to the CloudHSM cluster during creation.
$sel:sourceBackupId:CreateCluster'
, createCluster_sourceBackupId
- The identifier (ID) of the cluster backup to restore. Use this value to
restore the cluster from a backup instead of creating a new cluster. To
find the backup ID, use DescribeBackups.
$sel:hsmType:CreateCluster'
, createCluster_hsmType
- The type of HSM to use in the cluster. Currently the only allowed value
is hsm1.medium
.
$sel:subnetIds:CreateCluster'
, createCluster_subnetIds
- The identifiers (IDs) of the subnets where you are creating the cluster.
You must specify at least one subnet. If you specify multiple subnets,
they must meet the following criteria:
- All subnets must be in the same virtual private cloud (VPC).
- You can specify only one subnet per Availability Zone.
Request Lenses
createCluster_backupRetentionPolicy :: Lens' CreateCluster (Maybe BackupRetentionPolicy) Source #
A policy that defines how the service retains backups.
createCluster_tagList :: Lens' CreateCluster (Maybe [Tag]) Source #
Tags to apply to the CloudHSM cluster during creation.
createCluster_sourceBackupId :: Lens' CreateCluster (Maybe Text) Source #
The identifier (ID) of the cluster backup to restore. Use this value to restore the cluster from a backup instead of creating a new cluster. To find the backup ID, use DescribeBackups.
createCluster_hsmType :: Lens' CreateCluster Text Source #
The type of HSM to use in the cluster. Currently the only allowed value
is hsm1.medium
.
createCluster_subnetIds :: Lens' CreateCluster (NonEmpty Text) Source #
The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:
- All subnets must be in the same virtual private cloud (VPC).
- You can specify only one subnet per Availability Zone.
Destructuring the Response
data CreateClusterResponse Source #
See: newCreateClusterResponse
smart constructor.
CreateClusterResponse' | |
|
Instances
newCreateClusterResponse Source #
Create a value of CreateClusterResponse
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:cluster:CreateClusterResponse'
, createClusterResponse_cluster
- Information about the cluster that was created.
$sel:httpStatus:CreateClusterResponse'
, createClusterResponse_httpStatus
- The response's http status code.
Response Lenses
createClusterResponse_cluster :: Lens' CreateClusterResponse (Maybe Cluster) Source #
Information about the cluster that was created.
createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int Source #
The response's http status code.