Interface DatabaseInstanceFromSnapshotProps

All Superinterfaces:
DatabaseInstanceNewProps, DatabaseInstanceSourceProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DatabaseInstanceFromSnapshotProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.129Z") @Stability(Stable) public interface DatabaseInstanceFromSnapshotProps extends software.amazon.jsii.JsiiSerializable, DatabaseInstanceSourceProps
Construction properties for a DatabaseInstanceFromSnapshot.

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();
 
  • Method Details

    • getSnapshotIdentifier

      @Stability(Stable) @NotNull String 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.

    • getCredentials

      @Stability(Stable) @Nullable default SnapshotCredentials 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.

    • builder

      @Stability(Stable) static DatabaseInstanceFromSnapshotProps.Builder builder()
      Returns:
      a DatabaseInstanceFromSnapshotProps.Builder of DatabaseInstanceFromSnapshotProps