IpProtocol
- class aws_cdk.aws_ec2.IpProtocol(value)
Bases:
Enum
The types of IP addresses provisioned in the VPC.
- ExampleMetadata:
infused
Example:
vpc = ec2.Vpc(self, "TheVPC", ip_protocol=ec2.IpProtocol.DUAL_STACK, subnet_configuration=[ec2.SubnetConfiguration( # general properties name="Public", subnet_type=ec2.SubnetType.PUBLIC, reserved=False, # IPv4 specific properties map_public_ip_on_launch=True, cidr_mask=24, # new IPv6 specific property ipv6_assign_address_on_creation=True ) ] )
Attributes
- DUAL_STACK
The vpc will have both IPv4 and IPv6 addresses.
Unless specified, public IPv4 addresses will not be auto assigned, an egress only internet gateway (EIGW) will be created and configured, and NATs and internet gateways (IGW) will be configured with IPv6 addresses.
- IPV4_ONLY
The vpc will be configured with only IPv4 addresses.
This is the default protocol if unset.