Class Cluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.dsql.alpha.Cluster
- All Implemented Interfaces:
IEnvironmentAware,IResource,ICluster,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-24T20:29:52.776Z")
@Stability(Experimental)
public class Cluster
extends Resource
implements ICluster
(experimental) Create an Aurora DSQL cluster.
Example:
Cluster cluster = Cluster.Builder.create(this, "Cluster")
.clusterName("my-dsql-cluster")
.deletionProtection(true)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.dsql.alpha.ICluster
ICluster.Jsii$Default, ICluster.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCluster(software.amazon.jsii.JsiiObjectRef objRef) Cluster(software.constructs.Construct scope, String id, ClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IClusterfromClusterAttributes(software.constructs.Construct scope, String id, ClusterAttributes attrs) (experimental) Import an existing Cluster from attributes.(experimental) Arn of the cluster.(experimental) Connection endpoint for the cluster.(experimental) Identifier of the cluster.(experimental) VPC endpoint service name for the cluster.grant(IGrantable grantee, String... actions) (experimental) Grant the given identity the specified actions.grantConnect(IGrantable grantee) (experimental) Grant the given identity permission to connect to the database.grantConnectAdmin(IGrantable grantee) (experimental) Grant the given identity permission to connect to the database with admin role.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods 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
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Cluster
protected Cluster(software.amazon.jsii.JsiiObjectRef objRef) -
Cluster
protected Cluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Cluster
@Stability(Experimental) public Cluster(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ClusterProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
Cluster
@Stability(Experimental) public Cluster(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromClusterAttributes
@Stability(Experimental) @NotNull public static ICluster fromClusterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClusterAttributes attrs) (experimental) Import an existing Cluster from attributes.- 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. -
grantConnect
(experimental) Grant the given identity permission to connect to the database.[disable-awslint:no-grants]
- Specified by:
grantConnectin interfaceICluster- Parameters:
grantee- This parameter is required.
-
grantConnectAdmin
(experimental) Grant the given identity permission to connect to the database with admin role.[disable-awslint:no-grants]
- Specified by:
grantConnectAdminin interfaceICluster- Parameters:
grantee- This parameter is required.
-
getClusterArn
(experimental) Arn of the cluster.- Specified by:
getClusterArnin interfaceICluster
-
getClusterEndpoint
(experimental) Connection endpoint for the cluster.- Specified by:
getClusterEndpointin interfaceICluster
-
getClusterIdentifier
(experimental) Identifier of the cluster.- Specified by:
getClusterIdentifierin interfaceICluster
-
getVpcEndpointServiceName
(experimental) VPC endpoint service name for the cluster.- Specified by:
getVpcEndpointServiceNamein interfaceICluster
-