Enum DBClusterStorageType

java.lang.Object
java.lang.Enum<DBClusterStorageType>
software.amazon.awscdk.services.rds.DBClusterStorageType
All Implemented Interfaces:
Serializable, Comparable<DBClusterStorageType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:25.832Z") @Stability(Stable) public enum DBClusterStorageType extends Enum<DBClusterStorageType>
The storage type to be associated with the DB cluster.

Example:

 Vpc vpc;
 DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
         .engine(DatabaseClusterEngine.auroraPostgres(AuroraPostgresClusterEngineProps.builder().version(AuroraPostgresEngineVersion.VER_15_2).build()))
         .credentials(Credentials.fromUsername("adminuser", CredentialsFromUsernameOptions.builder().password(SecretValue.unsafePlainText("7959866cacc02c2d243ecfe177464fe6")).build()))
         .writer(ClusterInstance.provisioned("writer", ProvisionedClusterInstanceProps.builder()
                 .publiclyAccessible(false)
                 .build()))
         .readers(List.of(ClusterInstance.provisioned("reader")))
         .storageType(DBClusterStorageType.AURORA_IOPT1)
         .vpcSubnets(SubnetSelection.builder()
                 .subnetType(SubnetType.PRIVATE_WITH_EGRESS)
                 .build())
         .vpc(vpc)
         .build();
 
  • Enum Constant Details

    • AURORA

      @Stability(Stable) public static final DBClusterStorageType AURORA
      Storage type for Aurora DB standard clusters.
    • AURORA_IOPT1

      @Stability(Stable) public static final DBClusterStorageType AURORA_IOPT1
      Storage type for Aurora DB I/O-Optimized clusters.
  • Method Details

    • values

      public static DBClusterStorageType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DBClusterStorageType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null