Class DatabaseClusterBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.neptune.alpha.DatabaseClusterBase
- All Implemented Interfaces:
IResource,IConnectable,IDatabaseCluster,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
DatabaseCluster
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:23.727Z")
@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.neptune.alpha.*;
import software.amazon.awscdk.services.ec2.*;
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.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$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabaseClusterBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDatabaseClusterBase(software.amazon.jsii.JsiiObjectRef objRef) protectedDatabaseClusterBase(software.constructs.Construct scope, String id) protectedDatabaseClusterBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IDatabaseClusterfromDatabaseClusterAttributes(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 Booleangrant(IGrantable grantee, String... actions) (experimental) Grant the given identity the specified actions.grantConnect(IGrantable grantee) (experimental) Grant the given identity connection access to the database.(experimental) Return the given named metric associated with this DatabaseCluster instance.metric(String metricName, MetricOptions props) (experimental) Return the given named metric associated with this DatabaseCluster instance.protected abstract voidMethods 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.IResource
applyRemovalPolicy, getEnv, getStackMethods 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.
-
grant
@Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) Grant the given identity the specified actions.- Specified by:
grantin interfaceIDatabaseCluster- Parameters:
grantee- This parameter is required.actions- This parameter is required.- See Also:
-
grantConnect
(experimental) Grant the given identity connection access to the database.- Specified by:
grantConnectin interfaceIDatabaseCluster- Parameters:
grantee- This parameter is required.
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric associated with this DatabaseCluster instance.- Specified by:
metricin interfaceIDatabaseCluster- Parameters:
metricName- This parameter is required.props-- See Also:
-
metric
(experimental) Return the given named metric associated with this DatabaseCluster instance.- Specified by:
metricin interfaceIDatabaseCluster- Parameters:
metricName- This parameter is required.- See Also:
-
getClusterEndpoint
(experimental) The endpoint to use for read/write operations.- Specified by:
getClusterEndpointin interfaceIDatabaseCluster
-
getClusterIdentifier
(experimental) Identifier of the cluster.- Specified by:
getClusterIdentifierin interfaceIDatabaseCluster
-
getClusterReadEndpoint
(experimental) Endpoint to use for load-balanced read-only operations.- Specified by:
getClusterReadEndpointin interfaceIDatabaseCluster
-
getClusterResourceIdentifier
(experimental) Resource identifier of the cluster.- Specified by:
getClusterResourceIdentifierin interfaceIDatabaseCluster
-
getConnections
(experimental) The connections object to implement IConnectable.- Specified by:
getConnectionsin interfaceIConnectable
-
getEnableIamAuthentication
-
setEnableIamAuthentication
@Stability(Experimental) protected abstract void setEnableIamAuthentication(@Nullable Boolean value)
-