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:
IResource, IConnectable, IDatabaseCluster, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-29T22:54:27.962Z") @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();
 
  • Field Details

    • DEFAULT_NUM_INSTANCES

      @Stability(Experimental) public static final Number DEFAULT_NUM_INSTANCES
      (experimental) The default number of instances in the Neptune cluster if none are specified.
  • 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