Interface DatabaseInstanceReadReplicaProps

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:12.671Z") @Stability(Stable) public interface DatabaseInstanceReadReplicaProps extends software.amazon.jsii.JsiiSerializable, DatabaseInstanceNewProps
Construction properties for a DatabaseInstanceReadReplica.

Example:

 Vpc vpc;
 DatabaseInstance sourceInstance;
 DatabaseInstanceFromSnapshot.Builder.create(this, "Instance")
         .snapshotIdentifier("my-snapshot")
         .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_15_2).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

    • getInstanceType

      @Stability(Stable) @NotNull InstanceType getInstanceType()
      The name of the compute and memory capacity classes.
    • getSourceDatabaseInstance

      @Stability(Stable) @NotNull IDatabaseInstance getSourceDatabaseInstance()
      The source database instance.

      Each DB instance can have a limited number of read replicas. For more information, see https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_ReadRepl.html.

    • getAllocatedStorage

      @Stability(Stable) @Nullable default Number getAllocatedStorage()
      The allocated storage size, specified in gibibytes (GiB).

      Default: - The replica will inherit the allocated storage of the source database instance

    • getStorageEncrypted

      @Stability(Stable) @Nullable default Boolean getStorageEncrypted()
      Indicates whether the DB instance is encrypted.

      Default: - true if storageEncryptionKey has been provided, false otherwise

    • getStorageEncryptionKey

      @Stability(Stable) @Nullable default IKey getStorageEncryptionKey()
      The KMS key that's used to encrypt the DB instance.

      Default: - default master key if storageEncrypted is true, no key otherwise

    • builder

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