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.104.0 (build e79254c)", date="2024-11-27T16:51:07.489Z") @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