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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnCluster(Construct scope, String id, CfnClusterProps props) Create a newAWS::DocDBElastic::Cluster.protectedCfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCluster(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAdminUserName(String value) The name of the Amazon DocumentDB elastic clusters administrator.voidsetAdminUserPassword(String value) The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters.voidsetAuthType(String value) The authentication type used to determine where to fetch the password used for accessing the elastic cluster.voidsetClusterName(String value) The name of the new elastic cluster.voidsetKmsKeyId(String value) The KMS key identifier to use to encrypt the new elastic cluster.voidThe weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).voidsetShardCapacity(Number value) The number of vCPUs assigned to each elastic cluster shard.voidsetShardCount(Number value) The number of shards assigned to the elastic cluster.voidsetSubnetIds(List<String> value) The Amazon EC2 subnet IDs for the new elastic cluster.voidsetVpcSecurityGroupIds(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrClusterArn
-
getAttrClusterEndpoint
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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_TEXTorSECRET_ARN. -
setAuthType
The authentication type used to determine where to fetch the password used for accessing the elastic cluster.Valid types are
PLAIN_TEXTorSECRET_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
AdminUserNameentry 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
AdminUserNameentry 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:miDefault : 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:miDefault : 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.
-