| 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 |
Amazonka.CloudHSMV2.CreateCluster
Description
Creates a new AWS CloudHSM cluster.
Synopsis
- data CreateCluster = CreateCluster' {}
- newCreateCluster :: Text -> NonEmpty Text -> CreateCluster
- createCluster_backupRetentionPolicy :: Lens' CreateCluster (Maybe BackupRetentionPolicy)
- createCluster_sourceBackupId :: Lens' CreateCluster (Maybe Text)
- createCluster_tagList :: Lens' CreateCluster (Maybe [Tag])
- 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.
Constructors
| CreateCluster' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> NonEmpty Text | |
| -> CreateCluster |
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:
CreateCluster, createCluster_backupRetentionPolicy - A policy that defines how the service retains backups.
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.
CreateCluster, createCluster_tagList - Tags to apply to the CloudHSM cluster during creation.
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_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_tagList :: Lens' CreateCluster (Maybe [Tag]) Source #
Tags to apply to the CloudHSM cluster during creation.
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.
Constructors
| CreateClusterResponse' | |
Fields
| |
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.