enum NetworkType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.NetworkType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#NetworkType |
Java | software.amazon.awscdk.services.rds.NetworkType |
Python | aws_cdk.aws_rds.NetworkType |
TypeScript (source) | aws-cdk-lib » aws_rds » NetworkType |
The network type of the DB instance.
Example
declare const vpc: ec2.Vpc; // VPC and subnets must have IPv6 CIDR blocks
const cluster = new rds.DatabaseCluster(this, 'Database', {
engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_3_02_1 }),
writer: rds.ClusterInstance.provisioned('writer', {
publiclyAccessible: false,
}),
vpc,
networkType: rds.NetworkType.DUAL,
});
Members
Name | Description |
---|---|
IPV4 | IPv4 only network type. |
DUAL | Dual-stack network type. |
IPV4
IPv4 only network type.
DUAL
Dual-stack network type.