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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.constructs.Construct
software.constructs.Construct.Builder
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.neptune.IDatabaseCluster
IDatabaseCluster.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
DatabaseClusterBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
DatabaseClusterBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
DatabaseClusterBase
(software.constructs.Construct scope, String id) protected
DatabaseClusterBase
(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IDatabaseCluster
fromDatabaseClusterAttributes
(software.constructs.Construct scope, String id, DatabaseClusterAttributes attrs) (experimental) Import an existing DatabaseCluster from properties.abstract Endpoint
(experimental) The endpoint to use for read/write operations.abstract String
(experimental) Identifier of the cluster.abstract Endpoint
(experimental) Endpoint to use for load-balanced read-only operations.abstract String
(experimental) Resource identifier of the cluster.abstract Connections
(experimental) The connections object to implement IConnectable.protected abstract Boolean
grantConnect
(IGrantable grantee) (experimental) Grant the given identity connection access to the database.protected abstract void
Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
(experimental) Grant the given identity connection access to the database.- Specified by:
grantConnect
in interfaceIDatabaseCluster
- Parameters:
grantee
- This parameter is required.
-
getClusterEndpoint
(experimental) The endpoint to use for read/write operations.- Specified by:
getClusterEndpoint
in interfaceIDatabaseCluster
-
getClusterIdentifier
(experimental) Identifier of the cluster.- Specified by:
getClusterIdentifier
in interfaceIDatabaseCluster
-
getClusterReadEndpoint
(experimental) Endpoint to use for load-balanced read-only operations.- Specified by:
getClusterReadEndpoint
in interfaceIDatabaseCluster
-
getClusterResourceIdentifier
(experimental) Resource identifier of the cluster.- Specified by:
getClusterResourceIdentifier
in interfaceIDatabaseCluster
-
getConnections
(experimental) The connections object to implement IConnectable.- Specified by:
getConnections
in interfaceIConnectable
-
getEnableIamAuthentication
-
setEnableIamAuthentication
@Stability(Experimental) protected abstract void setEnableIamAuthentication(@Nullable Boolean value)
-