Interface DatabaseInstanceFromSnapshotProps
- All Superinterfaces:
DatabaseInstanceNewProps
,DatabaseInstanceSourceProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DatabaseInstanceFromSnapshotProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-24T11:33:21.672Z")
@Stability(Stable)
public interface DatabaseInstanceFromSnapshotProps
extends software.amazon.jsii.JsiiSerializable, DatabaseInstanceSourceProps
Construction properties for a DatabaseInstanceFromSnapshot.
Example:
Vpc vpc; IInstanceEngine engine = DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_16_3).build()); Key myKey = new Key(this, "MyKey"); DatabaseInstanceFromSnapshot.Builder.create(this, "InstanceFromSnapshotWithCustomizedSecret") .engine(engine) .vpc(vpc) .snapshotIdentifier("mySnapshot") .credentials(SnapshotCredentials.fromGeneratedSecret("username", SnapshotCredentialsFromGeneratedPasswordOptions.builder() .encryptionKey(myKey) .excludeCharacters("!&*^#@()") .replicaRegions(List.of(ReplicaRegion.builder().region("eu-west-1").build(), ReplicaRegion.builder().region("eu-west-2").build())) .build())) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forDatabaseInstanceFromSnapshotProps
static final class
An implementation forDatabaseInstanceFromSnapshotProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The identifier for the Multi-AZ DB cluster snapshot to restore from.default SnapshotCredentials
Master user credentials.default String
The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance.Methods inherited from interface software.amazon.awscdk.services.rds.DatabaseInstanceNewProps
getApplyImmediately, getAutoMinorVersionUpgrade, getAvailabilityZone, getBackupRetention, getCaCertificate, getCloudwatchLogsExports, getCloudwatchLogsRetention, getCloudwatchLogsRetentionRole, getCopyTagsToSnapshot, getDatabaseInsightsMode, getDeleteAutomatedBackups, getDeletionProtection, getDomain, getDomainRole, getEnablePerformanceInsights, getEngineLifecycleSupport, getIamAuthentication, getInstanceIdentifier, getIops, getMaxAllocatedStorage, getMonitoringInterval, getMonitoringRole, getMultiAz, getNetworkType, getOptionGroup, getParameterGroup, getPerformanceInsightEncryptionKey, getPerformanceInsightRetention, getPort, getPreferredBackupWindow, getPreferredMaintenanceWindow, getProcessorFeatures, getPubliclyAccessible, getRemovalPolicy, getS3ExportBuckets, getS3ExportRole, getS3ImportBuckets, getS3ImportRole, getSecurityGroups, getStorageThroughput, getStorageType, getSubnetGroup, getVpc, getVpcSubnets
Methods inherited from interface software.amazon.awscdk.services.rds.DatabaseInstanceSourceProps
getAllocatedStorage, getAllowMajorVersionUpgrade, getDatabaseName, getEngine, getInstanceType, getLicenseModel, getParameters, getTimezone
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterSnapshotIdentifier
The identifier for the Multi-AZ DB cluster snapshot to restore from.For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide .
Constraints:
- Can't be specified when
snapshotIdentifier
is specified. - Must be specified when
snapshotIdentifier
isn't specified. - If you are restoring from a shared manual Multi-AZ DB cluster snapshot, the
clusterSnapshotIdentifier
must be the ARN of the shared snapshot. - Can't be the identifier of an Aurora DB cluster snapshot.
Default: - None
- See Also:
- Can't be specified when
-
getCredentials
Master user credentials.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.
-
getSnapshotIdentifier
The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance.If you're restoring from a shared manual DB snapshot, you must specify the ARN of the snapshot. Constraints:
- Can't be specified when
clusterSnapshotIdentifier
is specified. - Must be specified when
clusterSnapshotIdentifier
isn't specified.
Default: - None
- Can't be specified when
-
builder
-