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.DocDbElastic.CreateCluster
Description
Creates a new Elastic DocumentDB cluster and returns its Cluster structure.
Synopsis
- data CreateCluster = CreateCluster' {
- clientToken :: Maybe Text
- kmsKeyId :: Maybe Text
- preferredMaintenanceWindow :: Maybe Text
- subnetIds :: Maybe [Text]
- tags :: Maybe (HashMap Text Text)
- vpcSecurityGroupIds :: Maybe [Text]
- adminUserName :: Text
- adminUserPassword :: Sensitive Text
- authType :: Auth
- clusterName :: Text
- shardCapacity :: Int
- shardCount :: Int
- newCreateCluster :: Text -> Text -> Auth -> Text -> Int -> Int -> CreateCluster
- createCluster_clientToken :: Lens' CreateCluster (Maybe Text)
- createCluster_kmsKeyId :: Lens' CreateCluster (Maybe Text)
- createCluster_preferredMaintenanceWindow :: Lens' CreateCluster (Maybe Text)
- createCluster_subnetIds :: Lens' CreateCluster (Maybe [Text])
- createCluster_tags :: Lens' CreateCluster (Maybe (HashMap Text Text))
- createCluster_vpcSecurityGroupIds :: Lens' CreateCluster (Maybe [Text])
- createCluster_adminUserName :: Lens' CreateCluster Text
- createCluster_adminUserPassword :: Lens' CreateCluster Text
- createCluster_authType :: Lens' CreateCluster Auth
- createCluster_clusterName :: Lens' CreateCluster Text
- createCluster_shardCapacity :: Lens' CreateCluster Int
- createCluster_shardCount :: Lens' CreateCluster Int
- data CreateClusterResponse = CreateClusterResponse' {
- httpStatus :: Int
- cluster :: Cluster
- newCreateClusterResponse :: Int -> Cluster -> CreateClusterResponse
- createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int
- createClusterResponse_cluster :: Lens' CreateClusterResponse Cluster
Creating a Request
data CreateCluster Source #
See: newCreateCluster
smart constructor.
Constructors
CreateCluster' | |
Fields
|
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:clientToken:CreateCluster'
, createCluster_clientToken
- The client token for the Elastic DocumentDB cluster.
CreateCluster
, createCluster_kmsKeyId
- The KMS key identifier to use to encrypt the new Elastic DocumentDB
cluster.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.
If an encryption key is not specified, Elastic DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
CreateCluster
, createCluster_preferredMaintenanceWindow
- The weekly time range during which system maintenance can occur, in
Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
CreateCluster
, createCluster_subnetIds
- The Amazon EC2 subnet IDs for the new Elastic DocumentDB cluster.
$sel:tags:CreateCluster'
, createCluster_tags
- The tags to be assigned to the new Elastic DocumentDB cluster.
CreateCluster
, createCluster_vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with the new Elastic
DocumentDB cluster.
CreateCluster
, createCluster_adminUserName
- The name of the Elastic DocumentDB cluster administrator.
Constraints:
- Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
$sel:adminUserPassword:CreateCluster'
, createCluster_adminUserPassword
- The password for the Elastic DocumentDB cluster administrator and can
contain any printable ASCII characters.
Constraints:
- Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
CreateCluster
, createCluster_authType
- The authentication type for the Elastic DocumentDB cluster.
CreateCluster
, createCluster_clusterName
- The name of the new Elastic DocumentDB cluster. This parameter is stored
as a lowercase string.
Constraints:
- Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
CreateCluster
, createCluster_shardCapacity
- The capacity of each shard in the new Elastic DocumentDB cluster.
CreateCluster
, createCluster_shardCount
- The number of shards to create in the new Elastic DocumentDB cluster.
Request Lenses
createCluster_clientToken :: Lens' CreateCluster (Maybe Text) Source #
The client token for the Elastic DocumentDB cluster.
createCluster_kmsKeyId :: Lens' CreateCluster (Maybe Text) Source #
The KMS key identifier to use to encrypt the new Elastic DocumentDB cluster.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.
If an encryption key is not specified, Elastic DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
createCluster_preferredMaintenanceWindow :: Lens' CreateCluster (Maybe Text) Source #
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
createCluster_subnetIds :: Lens' CreateCluster (Maybe [Text]) Source #
The Amazon EC2 subnet IDs for the new Elastic DocumentDB cluster.
createCluster_tags :: Lens' CreateCluster (Maybe (HashMap Text Text)) Source #
The tags to be assigned to the new Elastic DocumentDB cluster.
createCluster_vpcSecurityGroupIds :: Lens' CreateCluster (Maybe [Text]) Source #
A list of EC2 VPC security groups to associate with the new Elastic DocumentDB cluster.
createCluster_adminUserName :: Lens' CreateCluster Text Source #
The name of the Elastic DocumentDB cluster administrator.
Constraints:
- Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
createCluster_adminUserPassword :: Lens' CreateCluster Text Source #
The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters.
Constraints:
- Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
createCluster_authType :: Lens' CreateCluster Auth Source #
The authentication type for the Elastic DocumentDB cluster.
createCluster_clusterName :: Lens' CreateCluster Text Source #
The name of the new Elastic DocumentDB cluster. This parameter is stored as a lowercase string.
Constraints:
- Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
Example: my-cluster
createCluster_shardCapacity :: Lens' CreateCluster Int Source #
The capacity of each shard in the new Elastic DocumentDB cluster.
createCluster_shardCount :: Lens' CreateCluster Int Source #
The number of shards to create in the new Elastic DocumentDB cluster.
Destructuring the Response
data CreateClusterResponse Source #
See: newCreateClusterResponse
smart constructor.
Constructors
CreateClusterResponse' | |
Fields
|
Instances
newCreateClusterResponse Source #
Arguments
:: Int | |
-> Cluster | |
-> CreateClusterResponse |
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:httpStatus:CreateClusterResponse'
, createClusterResponse_httpStatus
- The response's http status code.
$sel:cluster:CreateClusterResponse'
, createClusterResponse_cluster
- The new Elastic DocumentDB cluster that has been created.
Response Lenses
createClusterResponse_httpStatus :: Lens' CreateClusterResponse Int Source #
The response's http status code.
createClusterResponse_cluster :: Lens' CreateClusterResponse Cluster Source #
The new Elastic DocumentDB cluster that has been created.