Class DatabaseClusterFromSnapshot
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.DatabaseClusterBase
software.amazon.awscdk.services.rds.DatabaseClusterFromSnapshot
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IConnectable,IDatabaseCluster,ISecretAttachmentTarget,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.109Z")
@Stability(Stable)
public class DatabaseClusterFromSnapshot
extends DatabaseClusterBase
A database cluster restored from a snapshot.
Example:
Vpc vpc;
DatabaseClusterFromSnapshot.Builder.create(this, "Database")
.engine(DatabaseClusterEngine.aurora(AuroraClusterEngineProps.builder().version(AuroraEngineVersion.VER_1_22_2).build()))
.instanceProps(InstanceProps.builder()
.vpc(vpc)
.build())
.snapshotIdentifier("mySnapshot")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forDatabaseClusterFromSnapshot.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IDatabaseCluster
IDatabaseCluster.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) DatabaseClusterFromSnapshot(software.constructs.Construct scope, String id, DatabaseClusterFromSnapshotProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddRotationMultiUser(String id, RotationMultiUserOptions options) Adds the multi user rotation to this cluster.Adds the single user rotation of the master password to this cluster.Adds the single user rotation of the master password to this cluster.The endpoint to use for read/write operations.Identifier of the cluster.Endpoint to use for load-balanced read-only operations.Access to the network connections.The engine for this Cluster.Endpoints which address each individual replica.Identifiers of the replicas.Application for multi user rotation to this cluster.protected CfnDBClusterPropsThe secret attached to this cluster.protected List<ISecurityGroup>Application for single user rotation of the master password to this cluster.protected ISubnetGroupgetVpc()The VPC network to place the cluster in.The cluster's subnets.Methods inherited from class software.amazon.awscdk.services.rds.DatabaseClusterBase
addProxy, asSecretAttachmentTarget, metric, metric, metricCPUUtilization, metricCPUUtilization, metricDatabaseConnections, metricDatabaseConnections, metricDeadlocks, metricDeadlocks, metricEngineUptime, metricEngineUptime, metricFreeableMemory, metricFreeableMemory, metricFreeLocalStorage, metricFreeLocalStorage, metricNetworkReceiveThroughput, metricNetworkReceiveThroughput, metricNetworkThroughput, metricNetworkThroughput, metricNetworkTransmitThroughput, metricNetworkTransmitThroughput, metricSnapshotStorageUsed, metricSnapshotStorageUsed, metricTotalBackupStorageBilled, metricTotalBackupStorageBilled, metricVolumeBytesUsed, metricVolumeBytesUsed, metricVolumeReadIOPs, metricVolumeReadIOPs, metricVolumeWriteIOPs, metricVolumeWriteIOPsMethods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
DatabaseClusterFromSnapshot
protected DatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) -
DatabaseClusterFromSnapshot
protected DatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DatabaseClusterFromSnapshot
@Stability(Stable) public DatabaseClusterFromSnapshot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DatabaseClusterFromSnapshotProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
addRotationMultiUser
@Stability(Stable) @NotNull public SecretRotation addRotationMultiUser(@NotNull String id, @NotNull RotationMultiUserOptions options) Adds the multi user rotation to this cluster.- Parameters:
id- This parameter is required.options- This parameter is required.
-
addRotationSingleUser
@Stability(Stable) @NotNull public SecretRotation addRotationSingleUser(@Nullable RotationSingleUserOptions options) Adds the single user rotation of the master password to this cluster.- Parameters:
options-
-
addRotationSingleUser
Adds the single user rotation of the master password to this cluster. -
getClusterEndpoint
The endpoint to use for read/write operations.- Specified by:
getClusterEndpointin interfaceIDatabaseCluster- Specified by:
getClusterEndpointin classDatabaseClusterBase
-
getClusterIdentifier
Identifier of the cluster.- Specified by:
getClusterIdentifierin interfaceIDatabaseCluster- Specified by:
getClusterIdentifierin classDatabaseClusterBase
-
getClusterReadEndpoint
Endpoint to use for load-balanced read-only operations.- Specified by:
getClusterReadEndpointin interfaceIDatabaseCluster- Specified by:
getClusterReadEndpointin classDatabaseClusterBase
-
getConnections
Access to the network connections.- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin classDatabaseClusterBase
-
getInstanceEndpoints
Endpoints which address each individual replica.- Specified by:
getInstanceEndpointsin interfaceIDatabaseCluster- Specified by:
getInstanceEndpointsin classDatabaseClusterBase
-
getInstanceIdentifiers
Identifiers of the replicas.- Specified by:
getInstanceIdentifiersin interfaceIDatabaseCluster- Specified by:
getInstanceIdentifiersin classDatabaseClusterBase
-
getMultiUserRotationApplication
Application for multi user rotation to this cluster. -
getNewCfnProps
-
getSecurityGroups
-
getSingleUserRotationApplication
Application for single user rotation of the master password to this cluster. -
getSubnetGroup
-
getVpc
The VPC network to place the cluster in. -
getEngine
The engine for this Cluster.Never undefined.
- Specified by:
getEnginein interfaceIDatabaseCluster- Specified by:
getEnginein classDatabaseClusterBase
-
getSecret
The secret attached to this cluster. -
getVpcSubnets
The cluster's subnets.
-