@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:51.220Z") public class DatabaseInstanceFromSnapshot extends DatabaseInstanceBase implements IDatabaseInstance
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();
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseInstanceFromSnapshot.Builder
A fluent builder for
DatabaseInstanceFromSnapshot . |
IDatabaseInstance.Jsii$Default, IDatabaseInstance.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
DatabaseInstanceFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DatabaseInstanceFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef) |
|
DatabaseInstanceFromSnapshot(software.constructs.Construct scope,
java.lang.String id,
DatabaseInstanceFromSnapshotProps props) |
Modifier and Type | Method and Description |
---|---|
SecretRotation |
addRotationMultiUser(java.lang.String id,
RotationMultiUserOptions options)
Adds the multi user rotation to this instance.
|
SecretRotation |
addRotationSingleUser()
Adds the single user rotation of the master password to this instance.
|
SecretRotation |
addRotationSingleUser(RotationSingleUserOptions options)
Adds the single user rotation of the master password to this instance.
|
Connections |
getConnections()
Access to network connections.
|
java.lang.String |
getDbInstanceEndpointAddress()
The instance endpoint address.
|
java.lang.String |
getDbInstanceEndpointPort()
The instance endpoint port.
|
protected java.lang.Boolean |
getEnableIamAuthentication() |
IInstanceEngine |
getEngine()
The engine of this database Instance.
|
Endpoint |
getInstanceEndpoint()
The instance endpoint.
|
java.lang.String |
getInstanceIdentifier()
The instance identifier.
|
protected InstanceType |
getInstanceType() |
protected CfnDBInstanceProps |
getNewCfnProps() |
ISecret |
getSecret()
The AWS Secrets Manager secret attached to the instance.
|
protected CfnDBInstanceProps |
getSourceCfnProps() |
IVpc |
getVpc()
The VPC where this database instance is deployed.
|
protected SubnetSelection |
getVpcPlacement() |
protected void |
setEnableIamAuthentication(java.lang.Boolean value) |
protected void |
setLogRetention() |
addProxy, asSecretAttachmentTarget, fromDatabaseInstanceAttributes, getInstanceArn, grantConnect, metric, metric, metricCPUUtilization, metricCPUUtilization, metricDatabaseConnections, metricDatabaseConnections, metricFreeableMemory, metricFreeableMemory, metricFreeStorageSpace, metricFreeStorageSpace, metricReadIOPS, metricReadIOPS, metricWriteIOPS, metricWriteIOPS, onEvent, onEvent
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
addProxy, getInstanceArn, grantConnect, metric, metric, metricCPUUtilization, metricCPUUtilization, metricDatabaseConnections, metricDatabaseConnections, metricFreeableMemory, metricFreeableMemory, metricFreeStorageSpace, metricFreeStorageSpace, metricReadIOPS, metricReadIOPS, metricWriteIOPS, metricWriteIOPS, onEvent, onEvent
applyRemovalPolicy, getEnv, getStack
getNode
asSecretAttachmentTarget
protected DatabaseInstanceFromSnapshot(software.amazon.jsii.JsiiObjectRef objRef)
protected DatabaseInstanceFromSnapshot(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public DatabaseInstanceFromSnapshot(software.constructs.Construct scope, java.lang.String id, DatabaseInstanceFromSnapshotProps 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
- the options for the rotation, if you want to override the defaults.public SecretRotation addRotationSingleUser()
protected void setLogRetention()
public Connections getConnections()
getConnections
in interface IConnectable
getConnections
in class DatabaseInstanceBase
public java.lang.String getDbInstanceEndpointAddress()
getDbInstanceEndpointAddress
in interface IDatabaseInstance
getDbInstanceEndpointAddress
in class DatabaseInstanceBase
public java.lang.String getDbInstanceEndpointPort()
getDbInstanceEndpointPort
in interface IDatabaseInstance
getDbInstanceEndpointPort
in class DatabaseInstanceBase
public Endpoint getInstanceEndpoint()
getInstanceEndpoint
in interface IDatabaseInstance
getInstanceEndpoint
in class DatabaseInstanceBase
public java.lang.String getInstanceIdentifier()
getInstanceIdentifier
in interface IDatabaseInstance
getInstanceIdentifier
in class DatabaseInstanceBase
protected InstanceType getInstanceType()
protected CfnDBInstanceProps getNewCfnProps()
protected CfnDBInstanceProps getSourceCfnProps()
public IVpc getVpc()
public IInstanceEngine getEngine()
May be not known for imported Instances if it wasn't provided explicitly, or for read replicas.
getEngine
in interface IDatabaseInstance
getEngine
in class DatabaseInstanceBase
public ISecret getSecret()
protected SubnetSelection getVpcPlacement()
protected java.lang.Boolean getEnableIamAuthentication()
getEnableIamAuthentication
in class DatabaseInstanceBase
protected void setEnableIamAuthentication(java.lang.Boolean value)
setEnableIamAuthentication
in class DatabaseInstanceBase