Class DatabaseInstanceFromSnapshot
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.DatabaseInstanceBase
software.amazon.awscdk.services.rds.DatabaseInstanceFromSnapshot
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IConnectable
,IDatabaseInstance
,ISecretAttachmentTarget
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.125Z")
@Stability(Stable)
public class DatabaseInstanceFromSnapshot
extends DatabaseInstanceBase
implements IDatabaseInstance
A database instance restored from a snapshot.
Example:
Vpc vpc; DatabaseInstance sourceInstance; DatabaseInstanceFromSnapshot.Builder.create(this, "Instance") .snapshotIdentifier("my-snapshot") .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_12_3).build())) // optional, defaults to m5.large .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE)) .vpc(vpc) .build(); DatabaseInstanceReadReplica.Builder.create(this, "ReadReplica") .sourceDatabaseInstance(sourceInstance) .instanceType(InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.LARGE)) .vpc(vpc) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forDatabaseInstanceFromSnapshot
.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.services.rds.IDatabaseInstance
IDatabaseInstance.Jsii$Default, IDatabaseInstance.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
DatabaseInstanceFromSnapshot
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
DatabaseInstanceFromSnapshot
(software.amazon.jsii.JsiiObjectRef objRef) DatabaseInstanceFromSnapshot
(software.constructs.Construct scope, String id, DatabaseInstanceFromSnapshotProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddRotationMultiUser
(String id, RotationMultiUserOptions options) Adds the multi user rotation to this instance.Adds the single user rotation of the master password to this instance.Adds the single user rotation of the master password to this instance.Access to network connections.The instance endpoint address.The instance endpoint port.protected Boolean
The engine of this database Instance.The instance endpoint.The instance identifier.protected InstanceType
protected CfnDBInstanceProps
The AWS Secrets Manager secret attached to the instance.protected CfnDBInstanceProps
getVpc()
The VPC where this database instance is deployed.protected SubnetSelection
protected void
protected void
Methods inherited from class software.amazon.awscdk.services.rds.DatabaseInstanceBase
addProxy, asSecretAttachmentTarget, fromDatabaseInstanceAttributes, getInstanceArn, grantConnect, metric, metric, metricCPUUtilization, metricCPUUtilization, metricDatabaseConnections, metricDatabaseConnections, metricFreeableMemory, metricFreeableMemory, metricFreeStorageSpace, metricFreeStorageSpace, metricReadIOPS, metricReadIOPS, metricWriteIOPS, metricWriteIOPS, onEvent, onEvent
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.services.rds.IDatabaseInstance
addProxy, getInstanceArn, grantConnect, metric, metric, metricCPUUtilization, metricCPUUtilization, metricDatabaseConnections, metricDatabaseConnections, metricFreeableMemory, metricFreeableMemory, metricFreeStorageSpace, metricFreeStorageSpace, metricReadIOPS, metricReadIOPS, metricWriteIOPS, metricWriteIOPS, onEvent, onEvent
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.awscdk.services.secretsmanager.ISecretAttachmentTarget
asSecretAttachmentTarget
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
DatabaseInstanceFromSnapshot
protected DatabaseInstanceFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) -
DatabaseInstanceFromSnapshot
protected DatabaseInstanceFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DatabaseInstanceFromSnapshot
@Stability(Stable) public DatabaseInstanceFromSnapshot(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DatabaseInstanceFromSnapshotProps 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 instance.- 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 instance.- Parameters:
options
- the options for the rotation, if you want to override the defaults.
-
addRotationSingleUser
Adds the single user rotation of the master password to this instance. -
setLogRetention
@Stability(Stable) protected void setLogRetention() -
getConnections
Access to network connections.- Specified by:
getConnections
in interfaceIConnectable
- Specified by:
getConnections
in classDatabaseInstanceBase
-
getDbInstanceEndpointAddress
The instance endpoint address.- Specified by:
getDbInstanceEndpointAddress
in interfaceIDatabaseInstance
- Specified by:
getDbInstanceEndpointAddress
in classDatabaseInstanceBase
-
getDbInstanceEndpointPort
The instance endpoint port.- Specified by:
getDbInstanceEndpointPort
in interfaceIDatabaseInstance
- Specified by:
getDbInstanceEndpointPort
in classDatabaseInstanceBase
-
getInstanceEndpoint
The instance endpoint.- Specified by:
getInstanceEndpoint
in interfaceIDatabaseInstance
- Specified by:
getInstanceEndpoint
in classDatabaseInstanceBase
-
getInstanceIdentifier
The instance identifier.- Specified by:
getInstanceIdentifier
in interfaceIDatabaseInstance
- Specified by:
getInstanceIdentifier
in classDatabaseInstanceBase
-
getInstanceType
-
getNewCfnProps
-
getSourceCfnProps
-
getVpc
The VPC where this database instance is deployed. -
getEngine
The engine of this database Instance.May be not known for imported Instances if it wasn't provided explicitly, or for read replicas.
- Specified by:
getEngine
in interfaceIDatabaseInstance
- Specified by:
getEngine
in classDatabaseInstanceBase
-
getSecret
The AWS Secrets Manager secret attached to the instance. -
getVpcPlacement
-
getEnableIamAuthentication
- Specified by:
getEnableIamAuthentication
in classDatabaseInstanceBase
-
setEnableIamAuthentication
- Specified by:
setEnableIamAuthentication
in classDatabaseInstanceBase
-