Class CfnCluster
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::DocDBElastic::Cluster
.
Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.docdbelastic.*; CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster") .adminUserName("adminUserName") .authType("authType") .clusterName("clusterName") .shardCapacity(123) .shardCount(123) // the properties below are optional .adminUserPassword("adminUserPassword") .kmsKeyId("kmsKeyId") .preferredMaintenanceWindow("preferredMaintenanceWindow") .subnetIds(List.of("subnetIds")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .vpcSecurityGroupIds(List.of("vpcSecurityGroupIds")) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnCluster
(Construct scope, String id, CfnClusterProps props) Create a newAWS::DocDBElastic::Cluster
.protected
CfnCluster
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCluster
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the Amazon DocumentDB elastic clusters administrator.The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters.The authentication type used to determine where to fetch the password used for accessing the elastic cluster.The name of the new elastic cluster.The KMS key identifier to use to encrypt the new elastic cluster.The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).The number of vCPUs assigned to each elastic cluster shard.The number of shards assigned to the elastic cluster.The Amazon EC2 subnet IDs for the new elastic cluster.getTags()
The tags to be assigned to the new elastic cluster.A list of EC2 VPC security groups to associate with the new elastic cluster.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAdminUserName
(String value) The name of the Amazon DocumentDB elastic clusters administrator.void
setAdminUserPassword
(String value) The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters.void
setAuthType
(String value) The authentication type used to determine where to fetch the password used for accessing the elastic cluster.void
setClusterName
(String value) The name of the new elastic cluster.void
setKmsKeyId
(String value) The KMS key identifier to use to encrypt the new elastic cluster.void
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).void
setShardCapacity
(Number value) The number of vCPUs assigned to each elastic cluster shard.void
setShardCount
(Number value) The number of shards assigned to the elastic cluster.void
setSubnetIds
(List<String> value) The Amazon EC2 subnet IDs for the new elastic cluster.void
setVpcSecurityGroupIds
(List<String> value) A list of EC2 VPC security groups to associate with the new elastic cluster.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCluster
@Stability(Stable) public CfnCluster(@NotNull Construct scope, @NotNull String id, @NotNull CfnClusterProps props) Create a newAWS::DocDBElastic::Cluster
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrClusterArn
-
getAttrClusterEndpoint
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
The tags to be assigned to the new elastic cluster. -
getAdminUserName
The name of the Amazon DocumentDB elastic clusters administrator.Constraints :
- Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
-
setAdminUserName
The name of the Amazon DocumentDB elastic clusters administrator.Constraints :
- Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
-
getAuthType
The authentication type used to determine where to fetch the password used for accessing the elastic cluster.Valid types are
PLAIN_TEXT
orSECRET_ARN
. -
setAuthType
The authentication type used to determine where to fetch the password used for accessing the elastic cluster.Valid types are
PLAIN_TEXT
orSECRET_ARN
. -
getClusterName
The name of the new elastic 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
-
setClusterName
The name of the new elastic 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
-
getShardCapacity
The number of vCPUs assigned to each elastic cluster shard.Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
-
setShardCapacity
The number of vCPUs assigned to each elastic cluster shard.Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
-
getShardCount
The number of shards assigned to the elastic cluster.Maximum is 32.
-
setShardCount
The number of shards assigned to the elastic cluster.Maximum is 32.
-
getAdminUserPassword
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 (@).
- A valid
AdminUserName
entry is also required.
-
setAdminUserPassword
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 (@).
- A valid
AdminUserName
entry is also required.
-
getKmsKeyId
The KMS key identifier to use to encrypt the new elastic 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, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
-
setKmsKeyId
The KMS key identifier to use to encrypt the new elastic 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, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
-
getPreferredMaintenanceWindow
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 AWS Region , occurring on a random day of the week.
Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints : Minimum 30-minute window.
-
setPreferredMaintenanceWindow
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 AWS Region , occurring on a random day of the week.
Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints : Minimum 30-minute window.
-
getSubnetIds
The Amazon EC2 subnet IDs for the new elastic cluster. -
setSubnetIds
The Amazon EC2 subnet IDs for the new elastic cluster. -
getVpcSecurityGroupIds
A list of EC2 VPC security groups to associate with the new elastic cluster. -
setVpcSecurityGroupIds
A list of EC2 VPC security groups to associate with the new elastic cluster.
-