@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:51.329Z") public class ServerlessClusterFromSnapshot extends Resource implements IServerlessCluster
Example:
Vpc vpc; ServerlessClusterFromSnapshot.Builder.create(this, "Cluster") .engine(DatabaseClusterEngine.AURORA_MYSQL) .vpc(vpc) .snapshotIdentifier("mySnapshot") .build();
Modifier and Type | Class and Description |
---|---|
static class |
ServerlessClusterFromSnapshot.Builder
A fluent builder for
ServerlessClusterFromSnapshot . |
IServerlessCluster.Jsii$Default, IServerlessCluster.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) |
|
ServerlessClusterFromSnapshot(software.constructs.Construct scope,
java.lang.String id,
ServerlessClusterFromSnapshotProps props) |
Modifier and Type | Method and Description |
---|---|
SecretAttachmentTargetProps |
asSecretAttachmentTarget()
Renders the secret attachment target specifications.
|
java.lang.String |
getClusterArn()
The ARN of the cluster.
|
Endpoint |
getClusterEndpoint()
The endpoint to use for read/write operations.
|
java.lang.String |
getClusterIdentifier()
Identifier of the cluster.
|
Endpoint |
getClusterReadEndpoint()
The endpoint to use for read/write operations.
|
Connections |
getConnections()
Access to the network connections.
|
protected java.lang.Boolean |
getEnableDataApi() |
protected CfnDBClusterProps |
getNewCfnProps() |
ISecret |
getSecret()
The secret attached to this cluster.
|
protected java.util.List<ISecurityGroup> |
getSecurityGroups() |
Grant |
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(java.lang.Boolean value) |
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef)
protected ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ServerlessClusterFromSnapshot(software.constructs.Construct scope, java.lang.String id, ServerlessClusterFromSnapshotProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public SecretAttachmentTargetProps asSecretAttachmentTarget()
asSecretAttachmentTarget
in interface ISecretAttachmentTarget
public Grant grantDataApiAccess(IGrantable grantee)
grantDataApiAccess
in interface IServerlessCluster
grantee
- The principal to grant access to. This parameter is required.public java.lang.String getClusterArn()
getClusterArn
in interface IServerlessCluster
public Endpoint getClusterEndpoint()
getClusterEndpoint
in interface IServerlessCluster
public java.lang.String getClusterIdentifier()
getClusterIdentifier
in interface IServerlessCluster
public Endpoint getClusterReadEndpoint()
getClusterReadEndpoint
in interface IServerlessCluster
public Connections getConnections()
getConnections
in interface IConnectable
protected CfnDBClusterProps getNewCfnProps()
protected java.util.List<ISecurityGroup> getSecurityGroups()
public ISecret getSecret()
protected java.lang.Boolean getEnableDataApi()
protected void setEnableDataApi(java.lang.Boolean value)