@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.457Z") @Stability(value=Stable) public interface DatabaseInstanceFromSnapshotProps extends software.amazon.jsii.JsiiSerializable, DatabaseInstanceSourceProps
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 | Interface and Description |
|---|---|
static class |
DatabaseInstanceFromSnapshotProps.Builder
A builder for
DatabaseInstanceFromSnapshotProps |
static class |
DatabaseInstanceFromSnapshotProps.Jsii$Proxy
An implementation for
DatabaseInstanceFromSnapshotProps |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseInstanceFromSnapshotProps.Builder |
builder() |
default SnapshotCredentials |
getCredentials()
Master user credentials.
|
String |
getSnapshotIdentifier()
The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance.
|
getAllocatedStorage, getAllowMajorVersionUpgrade, getDatabaseName, getEngine, getInstanceType, getLicenseModel, getParameters, getTimezonegetAutoMinorVersionUpgrade, getAvailabilityZone, getBackupRetention, getCloudwatchLogsExports, getCloudwatchLogsRetention, getCloudwatchLogsRetentionRole, getCopyTagsToSnapshot, getDeleteAutomatedBackups, getDeletionProtection, getDomain, getDomainRole, getEnablePerformanceInsights, getIamAuthentication, getInstanceIdentifier, getIops, getMaxAllocatedStorage, getMonitoringInterval, getMonitoringRole, getMultiAz, getOptionGroup, getParameterGroup, getPerformanceInsightEncryptionKey, getPerformanceInsightRetention, getPort, getPreferredBackupWindow, getPreferredMaintenanceWindow, getProcessorFeatures, getPubliclyAccessible, getRemovalPolicy, getS3ExportBuckets, getS3ExportRole, getS3ImportBuckets, getS3ImportRole, getSecurityGroups, getStorageType, getSubnetGroup, getVpc, getVpcSubnets@Stability(value=Stable) @NotNull String getSnapshotIdentifier()
If you're restoring from a shared manual DB snapshot, you must specify the ARN of the snapshot.
@Stability(value=Stable) @Nullable default SnapshotCredentials getCredentials()
Note - It is not possible to change the master username for a snapshot; however, it is possible to provide (or generate) a new password.
Default: - The existing username and password from the snapshot will be used.
@Stability(value=Stable) static DatabaseInstanceFromSnapshotProps.Builder builder()
builder in interface DatabaseInstanceNewPropsbuilder in interface DatabaseInstanceSourcePropsDatabaseInstanceFromSnapshotProps.Builder of DatabaseInstanceFromSnapshotPropsCopyright © 2022. All rights reserved.