Class DatabaseCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.neptune.alpha.DatabaseClusterBase
software.amazon.awscdk.services.neptune.alpha.DatabaseCluster
- All Implemented Interfaces:
IEnvironmentAware,IResource,IConnectable,IDatabaseCluster,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:18.544Z")
@Stability(Experimental)
public class DatabaseCluster
extends DatabaseClusterBase
implements IDatabaseCluster
(experimental) Create a clustered database with a given number of instances.
Example:
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "ServerlessDatabase")
.vpc(vpc)
.instanceType(InstanceType.SERVERLESS)
.serverlessScalingConfiguration(ServerlessScalingConfiguration.builder()
.minCapacity(1)
.maxCapacity(5)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forDatabaseCluster.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.neptune.alpha.IDatabaseCluster
IDatabaseCluster.Jsii$Default, IDatabaseCluster.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabaseCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDatabaseCluster(software.amazon.jsii.JsiiObjectRef objRef) DatabaseCluster(software.constructs.Construct scope, String id, DatabaseClusterProps props) -
Method Summary
Modifier and TypeMethodDescription(experimental) The endpoint to use for read/write operations.(experimental) Identifier of the cluster.(experimental) Endpoint to use for load-balanced read-only operations.(experimental) The resource id for the cluster;(experimental) The connections object to implement IConnectable.protected Boolean(experimental) Endpoints which address each individual instance.(experimental) Identifiers of the instance.(experimental) Subnet group used by the DB.getVpc()(experimental) The VPC where the DB subnet group is created.(experimental) The subnets used by the DB subnet group.protected voidMethods inherited from class software.amazon.awscdk.services.neptune.alpha.DatabaseClusterBase
fromDatabaseClusterAttributes, grant, grantConnect, metric, metricMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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.awscdk.services.neptune.alpha.IDatabaseCluster
grant, grantConnect, metric, metricMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
DEFAULT_NUM_INSTANCES
(experimental) The default number of instances in the Neptune cluster if none are specified. -
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
DatabaseCluster
protected DatabaseCluster(software.amazon.jsii.JsiiObjectRef objRef) -
DatabaseCluster
protected DatabaseCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DatabaseCluster
@Stability(Experimental) public DatabaseCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DatabaseClusterProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
getClusterEndpoint
(experimental) The endpoint to use for read/write operations.- Specified by:
getClusterEndpointin interfaceIDatabaseCluster- Specified by:
getClusterEndpointin classDatabaseClusterBase
-
getClusterIdentifier
(experimental) Identifier of the cluster.- Specified by:
getClusterIdentifierin interfaceIDatabaseCluster- Specified by:
getClusterIdentifierin classDatabaseClusterBase
-
getClusterReadEndpoint
(experimental) Endpoint to use for load-balanced read-only operations.- Specified by:
getClusterReadEndpointin interfaceIDatabaseCluster- Specified by:
getClusterReadEndpointin classDatabaseClusterBase
-
getClusterResourceIdentifier
(experimental) The resource id for the cluster;for example: cluster-ABCD1234EFGH5678IJKL90MNOP. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies.
- Specified by:
getClusterResourceIdentifierin interfaceIDatabaseCluster- Specified by:
getClusterResourceIdentifierin classDatabaseClusterBase
-
getConnections
(experimental) The connections object to implement IConnectable.- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin classDatabaseClusterBase
-
getInstanceEndpoints
(experimental) Endpoints which address each individual instance. -
getInstanceIdentifiers
(experimental) Identifiers of the instance. -
getSubnetGroup
(experimental) Subnet group used by the DB. -
getVpc
(experimental) The VPC where the DB subnet group is created. -
getVpcSubnets
(experimental) The subnets used by the DB subnet group. -
getEnableIamAuthentication
- Specified by:
getEnableIamAuthenticationin classDatabaseClusterBase
-
setEnableIamAuthentication
- Specified by:
setEnableIamAuthenticationin classDatabaseClusterBase
-