VpcV2Props
- class aws_cdk.aws_ec2_alpha.VpcV2Props(*, default_instance_tenancy=None, enable_dns_hostnames=None, enable_dns_support=None, primary_address_block=None, secondary_address_blocks=None, vpc_name=None)
Bases:
object
(experimental) Properties to define VPC [disable-awslint:from-method].
- Parameters:
default_instance_tenancy (
Optional
[DefaultInstanceTenancy
]) – (experimental) The default tenancy of instances launched into the VPC. By setting this to dedicated tenancy, instances will be launched on hardware dedicated to a single AWS customer, unless specifically specified at instance launch time. Please note, not all instance types are usable with Dedicated tenancy. Default: DefaultInstanceTenancy.Default (shared) tenancyenable_dns_hostnames (
Optional
[bool
]) – (experimental) Indicates whether the instances launched in the VPC get DNS hostnames. Default: trueenable_dns_support (
Optional
[bool
]) – (experimental) Indicates whether the DNS resolution is supported for the VPC. Default: trueprimary_address_block (
Optional
[IIpAddresses
]) – (experimental) A must IPv4 CIDR block for the VPC. Default: - Ipv4 CIDR Block (‘10.0.0.0/16’)secondary_address_blocks (
Optional
[Sequence
[IIpAddresses
]]) – (experimental) The secondary CIDR blocks associated with the VPC. Can be IPv4 or IPv6, two IPv4 ranges must follow RFC#1918 convention For more information, Default: - No secondary IP addressvpc_name (
Optional
[str
]) – (experimental) Physical name for the VPC. Default: - autogenerated by CDK
- Stability:
experimental
- ExampleMetadata:
infused
Example:
stack = Stack() my_vpc = VpcV2(self, "Vpc", primary_address_block=IpAddresses.ipv4("10.1.0.0/16"), secondary_address_blocks=[IpAddresses.amazon_provided_ipv6( cidr_block_name="AmazonProvided" )] ) eigw = EgressOnlyInternetGateway(self, "EIGW", vpc=my_vpc ) route_table = RouteTable(self, "RouteTable", vpc=my_vpc ) route_table.add_route("EIGW", "::/0", {"gateway": eigw})
Attributes
- default_instance_tenancy
(experimental) The default tenancy of instances launched into the VPC.
By setting this to dedicated tenancy, instances will be launched on hardware dedicated to a single AWS customer, unless specifically specified at instance launch time. Please note, not all instance types are usable with Dedicated tenancy.
- Default:
DefaultInstanceTenancy.Default (shared) tenancy
- Stability:
experimental
- enable_dns_hostnames
(experimental) Indicates whether the instances launched in the VPC get DNS hostnames.
- Default:
true
- Stability:
experimental
- enable_dns_support
(experimental) Indicates whether the DNS resolution is supported for the VPC.
- Default:
true
- Stability:
experimental
- primary_address_block
(experimental) A must IPv4 CIDR block for the VPC.
- Default:
Ipv4 CIDR Block (‘10.0.0.0/16’)
- See:
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html
- Stability:
experimental
- secondary_address_blocks
(experimental) The secondary CIDR blocks associated with the VPC.
Can be IPv4 or IPv6, two IPv4 ranges must follow RFC#1918 convention For more information,
- Default:
No secondary IP address
- See:
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize}.
- Stability:
experimental
- vpc_name
(experimental) Physical name for the VPC.
- Default:
autogenerated by CDK
- Stability:
experimental