NetworkType

class aws_cdk.aws_rds.NetworkType(value)

Bases: Enum

The network type of the DB instance.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc
# VPC and subnets must have IPv6 CIDR blocks
cluster = rds.DatabaseCluster(self, "Database",
    engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_02_1),
    writer=rds.ClusterInstance.provisioned("writer",
        publicly_accessible=False
    ),
    vpc=vpc,
    network_type=rds.NetworkType.DUAL
)

Attributes

DUAL

Dual-stack network type.

IPV4

IPv4 only network type.