| 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 |
Network.AWS.CloudHSMv2.CreateCluster
Description
Creates a new AWS CloudHSM cluster.
- createCluster :: NonEmpty Text -> Text -> CreateCluster
- data CreateCluster
- ccSourceBackupId :: Lens' CreateCluster (Maybe Text)
- ccSubnetIds :: Lens' CreateCluster (NonEmpty Text)
- ccHSMType :: Lens' CreateCluster Text
- createClusterResponse :: Int -> CreateClusterResponse
- data CreateClusterResponse
- ccrsCluster :: Lens' CreateClusterResponse (Maybe Cluster)
- ccrsResponseStatus :: Lens' CreateClusterResponse Int
Creating a Request
Arguments
| :: NonEmpty Text | |
| -> Text | |
| -> CreateCluster |
Creates a value of CreateCluster with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccSourceBackupId- 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, useDescribeBackups.ccSubnetIds- 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.ccHSMType- The type of HSM to use in the cluster. Currently the only allowed value ishsm1.medium.
data CreateCluster Source #
See: createCluster smart constructor.
Instances
Request Lenses
ccSourceBackupId :: 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 .
ccSubnetIds :: 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.
ccHSMType :: Lens' CreateCluster Text Source #
The type of HSM to use in the cluster. Currently the only allowed value is hsm1.medium .
Destructuring the Response
createClusterResponse Source #
Arguments
| :: Int | |
| -> CreateClusterResponse |
Creates a value of CreateClusterResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccrsCluster- Information about the cluster that was created.ccrsResponseStatus- -- | The response status code.
data CreateClusterResponse Source #
See: createClusterResponse smart constructor.
Response Lenses
ccrsCluster :: Lens' CreateClusterResponse (Maybe Cluster) Source #
Information about the cluster that was created.
ccrsResponseStatus :: Lens' CreateClusterResponse Int Source #
- - | The response status code.