@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.505Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIServerlessCluster.Jsii$Default, IServerlessCluster.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ServerlessClusterFromSnapshot(software.constructs.Construct scope,
String id,
ServerlessClusterFromSnapshotProps props) |
protected |
ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
SecretAttachmentTargetProps |
asSecretAttachmentTarget()
Renders the secret attachment target specifications.
|
String |
getClusterArn()
The ARN of the cluster.
|
Endpoint |
getClusterEndpoint()
The endpoint to use for read/write operations.
|
String |
getClusterIdentifier()
Identifier of the cluster.
|
Endpoint |
getClusterReadEndpoint()
The endpoint to use for read/write operations.
|
Connections |
getConnections()
Access to the network connections.
|
protected Boolean |
getEnableDataApi() |
protected CfnDBClusterProps |
getNewCfnProps() |
ISecret |
getSecret()
The secret attached to this cluster.
|
protected 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(Boolean value) |
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef)
protected ServerlessClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ServerlessClusterFromSnapshot(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ServerlessClusterFromSnapshotProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public SecretAttachmentTargetProps asSecretAttachmentTarget()
asSecretAttachmentTarget in interface ISecretAttachmentTarget@Stability(value=Stable) @NotNull public Grant grantDataApiAccess(@NotNull IGrantable grantee)
grantDataApiAccess in interface IServerlessClustergrantee - The principal to grant access to. This parameter is required.@Stability(value=Stable) @NotNull public String getClusterArn()
getClusterArn in interface IServerlessCluster@Stability(value=Stable) @NotNull public Endpoint getClusterEndpoint()
getClusterEndpoint in interface IServerlessCluster@Stability(value=Stable) @NotNull public String getClusterIdentifier()
getClusterIdentifier in interface IServerlessCluster@Stability(value=Stable) @NotNull public Endpoint getClusterReadEndpoint()
getClusterReadEndpoint in interface IServerlessCluster@Stability(value=Stable) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Stable) @NotNull protected CfnDBClusterProps getNewCfnProps()
@Stability(value=Stable) @NotNull protected List<ISecurityGroup> getSecurityGroups()
@Stability(value=Stable) @Nullable public ISecret getSecret()
@Stability(value=Stable) @Nullable protected Boolean getEnableDataApi()
@Stability(value=Stable)
protected void setEnableDataApi(@Nullable
Boolean value)
Copyright © 2022. All rights reserved.