Interface DatabaseInstanceFromSnapshotProps

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:08.306Z") @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_16_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