Class CfnCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.docdbelastic.CfnCluster
- All Implemented Interfaces:
IInspectable,ITaggable,IClusterRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:35.176Z")
@Stability(Stable)
public class CfnCluster
extends CfnResource
implements IInspectable, IClusterRef, ITaggable
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")
.backupRetentionPeriod(123)
.kmsKeyId("kmsKeyId")
.preferredBackupWindow("preferredBackupWindow")
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.shardInstanceCount(123)
.subnetIds(List.of("subnetIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
.build();
- See Also:
-
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.services.docdbelastic.IClusterRef
IClusterRef.Jsii$Default, IClusterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnCluster(software.constructs.Construct scope, String id, CfnClusterProps props) -
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 URL used to connect to the elastic cluster.The authentication type used to determine where to fetch the password used for accessing the elastic cluster.The number of days for which automatic snapshots are retained.The name of the new elastic cluster.A reference to a Cluster resource.The KMS key identifier to use to encrypt the new elastic cluster.The daily time range during which automated backups are created if automated backups are enabled, as determined bybackupRetentionPeriod.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 number of replica instances applying to all shards in the cluster.The Amazon EC2 subnet IDs for the new elastic cluster.getTags()Tag Manager which manages the tags for this resource.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.voidsetBackupRetentionPeriod(Number value) The number of days for which automatic snapshots are retained.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.voidsetPreferredBackupWindow(String value) The daily time range during which automated backups are created if automated backups are enabled, as determined bybackupRetentionPeriod.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.voidsetShardInstanceCount(Number value) The number of replica instances applying to all shards in the cluster.voidsetSubnetIds(List<String> value) The Amazon EC2 subnet IDs for the new elastic cluster.voidsetTagsRaw(List<CfnTag> value) The tags to be assigned to 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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnClusterProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
The URL used to connect to the elastic cluster. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getClusterRef
A reference to a Cluster resource.- Specified by:
getClusterRefin interfaceIClusterRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAdminUserName
The name of the Amazon DocumentDB elastic clusters administrator. -
setAdminUserName
The name of the Amazon DocumentDB elastic clusters administrator. -
getAuthType
The authentication type used to determine where to fetch the password used for accessing the elastic cluster. -
setAuthType
The authentication type used to determine where to fetch the password used for accessing the elastic cluster. -
getClusterName
The name of the new elastic cluster.This parameter is stored as a lowercase string.
-
setClusterName
The name of the new elastic cluster.This parameter is stored as a lowercase string.
-
getShardCapacity
The number of vCPUs assigned to each elastic cluster shard. -
setShardCapacity
The number of vCPUs assigned to each elastic cluster shard. -
getShardCount
The number of shards assigned to the elastic cluster. -
setShardCount
The number of shards assigned to the elastic cluster. -
getAdminUserPassword
The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. -
setAdminUserPassword
The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. -
getBackupRetentionPeriod
The number of days for which automatic snapshots are retained. -
setBackupRetentionPeriod
The number of days for which automatic snapshots are retained. -
getKmsKeyId
The KMS key identifier to use to encrypt the new elastic cluster. -
setKmsKeyId
The KMS key identifier to use to encrypt the new elastic cluster. -
getPreferredBackupWindow
The daily time range during which automated backups are created if automated backups are enabled, as determined bybackupRetentionPeriod. -
setPreferredBackupWindow
The daily time range during which automated backups are created if automated backups are enabled, as determined bybackupRetentionPeriod. -
getPreferredMaintenanceWindow
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). -
setPreferredMaintenanceWindow
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). -
getShardInstanceCount
The number of replica instances applying to all shards in the cluster. -
setShardInstanceCount
The number of replica instances applying to all shards in the cluster. -
getSubnetIds
The Amazon EC2 subnet IDs for the new elastic cluster. -
setSubnetIds
The Amazon EC2 subnet IDs for the new elastic cluster. -
getTagsRaw
The tags to be assigned to the new elastic cluster. -
setTagsRaw
The tags to be assigned to 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.
-