Class DatabaseClusterBase

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.neptune.DatabaseClusterBase
All Implemented Interfaces:
IConstruct, IDependable, IResource, IConnectable, IDatabaseCluster, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct
Direct Known Subclasses:
DatabaseCluster

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.334Z") @Stability(Experimental) public abstract class DatabaseClusterBase extends Resource implements IDatabaseCluster
(experimental) A new or imported database cluster.

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.ec2.*;
 import software.amazon.awscdk.services.neptune.*;
 SecurityGroup securityGroup;
 IDatabaseCluster databaseClusterBase = DatabaseClusterBase.fromDatabaseClusterAttributes(this, "MyDatabaseClusterBase", DatabaseClusterAttributes.builder()
         .clusterEndpointAddress("clusterEndpointAddress")
         .clusterIdentifier("clusterIdentifier")
         .clusterResourceIdentifier("clusterResourceIdentifier")
         .port(123)
         .readerEndpointAddress("readerEndpointAddress")
         .securityGroup(securityGroup)
         .build());
 
  • Constructor Details

    • DatabaseClusterBase

      protected DatabaseClusterBase(software.amazon.jsii.JsiiObjectRef objRef)
    • DatabaseClusterBase

      protected DatabaseClusterBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • DatabaseClusterBase

      @Stability(Stable) protected DatabaseClusterBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • DatabaseClusterBase

      @Stability(Stable) protected DatabaseClusterBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • fromDatabaseClusterAttributes

      @Stability(Experimental) @NotNull public static IDatabaseCluster fromDatabaseClusterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DatabaseClusterAttributes attrs)
      (experimental) Import an existing DatabaseCluster from properties.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • grantConnect

      @Stability(Experimental) @NotNull public Grant grantConnect(@NotNull IGrantable grantee)
      (experimental) Grant the given identity connection access to the database.

      Specified by:
      grantConnect in interface IDatabaseCluster
      Parameters:
      grantee - This parameter is required.
    • getClusterEndpoint

      @Stability(Experimental) @NotNull public abstract Endpoint getClusterEndpoint()
      (experimental) The endpoint to use for read/write operations.
      Specified by:
      getClusterEndpoint in interface IDatabaseCluster
    • getClusterIdentifier

      @Stability(Experimental) @NotNull public abstract String getClusterIdentifier()
      (experimental) Identifier of the cluster.
      Specified by:
      getClusterIdentifier in interface IDatabaseCluster
    • getClusterReadEndpoint

      @Stability(Experimental) @NotNull public abstract Endpoint getClusterReadEndpoint()
      (experimental) Endpoint to use for load-balanced read-only operations.
      Specified by:
      getClusterReadEndpoint in interface IDatabaseCluster
    • getClusterResourceIdentifier

      @Stability(Experimental) @NotNull public abstract String getClusterResourceIdentifier()
      (experimental) Resource identifier of the cluster.
      Specified by:
      getClusterResourceIdentifier in interface IDatabaseCluster
    • getConnections

      @Stability(Experimental) @NotNull public abstract Connections getConnections()
      (experimental) The connections object to implement IConnectable.
      Specified by:
      getConnections in interface IConnectable
    • getEnableIamAuthentication

      @Stability(Experimental) @Nullable protected abstract Boolean getEnableIamAuthentication()
    • setEnableIamAuthentication

      @Stability(Experimental) protected abstract void setEnableIamAuthentication(@Nullable Boolean value)