Class ServerlessClusterFromSnapshot
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.rds.ServerlessClusterFromSnapshot
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IConnectable
,IServerlessCluster
,ISecretAttachmentTarget
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.262Z")
@Stability(Stable)
public class ServerlessClusterFromSnapshot
extends Resource
implements IServerlessCluster
A Aurora Serverless Cluster restored from a snapshot.
Example:
Vpc vpc; ServerlessClusterFromSnapshot.Builder.create(this, "Cluster") .engine(DatabaseClusterEngine.AURORA_MYSQL) .vpc(vpc) .snapshotIdentifier("mySnapshot") .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forServerlessClusterFromSnapshot
.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.core.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IServerlessCluster
IServerlessCluster.Jsii$Default, IServerlessCluster.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServerlessClusterFromSnapshot
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ServerlessClusterFromSnapshot
(software.amazon.jsii.JsiiObjectRef objRef) ServerlessClusterFromSnapshot
(software.constructs.Construct scope, String id, ServerlessClusterFromSnapshotProps props) -
Method Summary
Modifier and TypeMethodDescriptionRenders the secret attachment target specifications.The ARN of the cluster.The endpoint to use for read/write operations.Identifier of the cluster.The endpoint to use for read/write operations.Access to the network connections.protected Boolean
protected CfnDBClusterProps
The secret attached to this cluster.protected List<ISecurityGroup>
grantDataApiAccess
(IGrantable grantee) Grant the given identity to access to the Data API, including read access to the secret attached to the cluster if present.protected void
setEnableDataApi
(Boolean value) 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
-
ServerlessClusterFromSnapshot
protected ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) -
ServerlessClusterFromSnapshot
protected ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ServerlessClusterFromSnapshot
@Stability(Stable) public ServerlessClusterFromSnapshot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ServerlessClusterFromSnapshotProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
asSecretAttachmentTarget
Renders the secret attachment target specifications.- Specified by:
asSecretAttachmentTarget
in interfaceISecretAttachmentTarget
-
grantDataApiAccess
Grant the given identity to access to the Data API, including read access to the secret attached to the cluster if present.- Specified by:
grantDataApiAccess
in interfaceIServerlessCluster
- Parameters:
grantee
- The principal to grant access to. This parameter is required.
-
getClusterArn
The ARN of the cluster.- Specified by:
getClusterArn
in interfaceIServerlessCluster
-
getClusterEndpoint
The endpoint to use for read/write operations.- Specified by:
getClusterEndpoint
in interfaceIServerlessCluster
-
getClusterIdentifier
Identifier of the cluster.- Specified by:
getClusterIdentifier
in interfaceIServerlessCluster
-
getClusterReadEndpoint
The endpoint to use for read/write operations.- Specified by:
getClusterReadEndpoint
in interfaceIServerlessCluster
-
getConnections
Access to the network connections.- Specified by:
getConnections
in interfaceIConnectable
-
getNewCfnProps
-
getSecurityGroups
-
getSecret
The secret attached to this cluster. -
getEnableDataApi
-
setEnableDataApi
-