@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:51.195Z") public class DatabaseClusterFromSnapshot extends DatabaseClusterBase
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();
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseClusterFromSnapshot.Builder
A fluent builder for
DatabaseClusterFromSnapshot . |
IDatabaseCluster.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
DatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) |
|
DatabaseClusterFromSnapshot(software.constructs.Construct scope,
java.lang.String id,
DatabaseClusterFromSnapshotProps props) |
Modifier and Type | Method and Description |
---|---|
SecretRotation |
addRotationMultiUser(java.lang.String id,
RotationMultiUserOptions options)
Adds the multi user rotation to this cluster.
|
SecretRotation |
addRotationSingleUser()
Adds the single user rotation of the master password to this cluster.
|
SecretRotation |
addRotationSingleUser(RotationSingleUserOptions options)
Adds the single user rotation of the master password to this cluster.
|
Endpoint |
getClusterEndpoint()
The endpoint to use for read/write operations.
|
java.lang.String |
getClusterIdentifier()
Identifier of the cluster.
|
Endpoint |
getClusterReadEndpoint()
Endpoint to use for load-balanced read-only operations.
|
Connections |
getConnections()
Access to the network connections.
|
IClusterEngine |
getEngine()
The engine for this Cluster.
|
java.util.List<Endpoint> |
getInstanceEndpoints()
Endpoints which address each individual replica.
|
java.util.List<java.lang.String> |
getInstanceIdentifiers()
Identifiers of the replicas.
|
SecretRotationApplication |
getMultiUserRotationApplication()
Application for multi user rotation to this cluster.
|
protected CfnDBClusterProps |
getNewCfnProps() |
ISecret |
getSecret()
The secret attached to this cluster.
|
protected java.util.List<ISecurityGroup> |
getSecurityGroups() |
SecretRotationApplication |
getSingleUserRotationApplication()
Application for single user rotation of the master password to this cluster.
|
protected ISubnetGroup |
getSubnetGroup() |
IVpc |
getVpc()
The VPC network to place the cluster in.
|
SubnetSelection |
getVpcSubnets()
The cluster's subnets.
|
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, metricVolumeWriteIOPs
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 DatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef)
protected DatabaseClusterFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public DatabaseClusterFromSnapshot(software.constructs.Construct scope, java.lang.String id, DatabaseClusterFromSnapshotProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public SecretRotation addRotationMultiUser(java.lang.String id, RotationMultiUserOptions options)
id
- This parameter is required.options
- This parameter is required.public SecretRotation addRotationSingleUser(RotationSingleUserOptions options)
options
- public SecretRotation addRotationSingleUser()
public Endpoint getClusterEndpoint()
getClusterEndpoint
in interface IDatabaseCluster
getClusterEndpoint
in class DatabaseClusterBase
public java.lang.String getClusterIdentifier()
getClusterIdentifier
in interface IDatabaseCluster
getClusterIdentifier
in class DatabaseClusterBase
public Endpoint getClusterReadEndpoint()
getClusterReadEndpoint
in interface IDatabaseCluster
getClusterReadEndpoint
in class DatabaseClusterBase
public Connections getConnections()
getConnections
in interface IConnectable
getConnections
in class DatabaseClusterBase
public java.util.List<Endpoint> getInstanceEndpoints()
getInstanceEndpoints
in interface IDatabaseCluster
getInstanceEndpoints
in class DatabaseClusterBase
public java.util.List<java.lang.String> getInstanceIdentifiers()
getInstanceIdentifiers
in interface IDatabaseCluster
getInstanceIdentifiers
in class DatabaseClusterBase
public SecretRotationApplication getMultiUserRotationApplication()
protected CfnDBClusterProps getNewCfnProps()
protected java.util.List<ISecurityGroup> getSecurityGroups()
public SecretRotationApplication getSingleUserRotationApplication()
protected ISubnetGroup getSubnetGroup()
public IVpc getVpc()
public IClusterEngine getEngine()
Never undefined.
getEngine
in interface IDatabaseCluster
getEngine
in class DatabaseClusterBase
public ISecret getSecret()
public SubnetSelection getVpcSubnets()