Enum NetworkType

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:56:04.846Z") @Stability(Stable) public enum NetworkType extends Enum<NetworkType>
The network type of the DB instance.

Example:

 Vpc vpc;
 // VPC and subnets must have IPv6 CIDR blocks
 DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
         .engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder().version(AuroraMysqlEngineVersion.VER_3_02_1).build()))
         .writer(ClusterInstance.provisioned("writer", ProvisionedClusterInstanceProps.builder()
                 .publiclyAccessible(false)
                 .build()))
         .vpc(vpc)
         .networkType(NetworkType.DUAL)
         .build();
 
  • Enum Constant Details

    • IPV4

      @Stability(Stable) public static final NetworkType IPV4
      IPv4 only network type.
    • DUAL

      @Stability(Stable) public static final NetworkType DUAL
      Dual-stack network type.
  • Method Details

    • values

      public static NetworkType[] 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 NetworkType 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