Class CfnVPC.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPC>
- Enclosing class:
CfnVPC
CfnVPC
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The IPv4 network range for the VPC, in CIDR notation.static CfnVPC.Builder
enableDnsHostnames
(Boolean enableDnsHostnames) Indicates whether the instances launched in the VPC get DNS hostnames.enableDnsHostnames
(IResolvable enableDnsHostnames) Indicates whether the instances launched in the VPC get DNS hostnames.enableDnsSupport
(Boolean enableDnsSupport) Indicates whether the DNS resolution is supported for the VPC.enableDnsSupport
(IResolvable enableDnsSupport) Indicates whether the DNS resolution is supported for the VPC.instanceTenancy
(String instanceTenancy) The allowed tenancy of instances launched into the VPC.ipv4IpamPoolId
(String ipv4IpamPoolId) The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR.ipv4NetmaskLength
(Number ipv4NetmaskLength) The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool.The tags for the VPC.
-
Method Details
-
create
@Stability(Stable) public static CfnVPC.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnVPC.Builder
.
-
cidrBlock
The IPv4 network range for the VPC, in CIDR notation.For example,
10.0.0.0/16
. We modify the specified CIDR block to its canonical form; for example, if you specify100.68.0.18/18
, we modify it to100.68.0.0/18
.You must specify either
CidrBlock
orIpv4IpamPoolId
.- Parameters:
cidrBlock
- The IPv4 network range for the VPC, in CIDR notation. This parameter is required.- Returns:
this
- See Also:
-
enableDnsHostnames
Indicates whether the instances launched in the VPC get DNS hostnames.If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs. For more information, see DNS attributes in your VPC .
You can only enable DNS hostnames if you've enabled DNS support.
- Parameters:
enableDnsHostnames
- Indicates whether the instances launched in the VPC get DNS hostnames. This parameter is required.- Returns:
this
- See Also:
-
enableDnsHostnames
Indicates whether the instances launched in the VPC get DNS hostnames.If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs. For more information, see DNS attributes in your VPC .
You can only enable DNS hostnames if you've enabled DNS support.
- Parameters:
enableDnsHostnames
- Indicates whether the instances launched in the VPC get DNS hostnames. This parameter is required.- Returns:
this
- See Also:
-
enableDnsSupport
Indicates whether the DNS resolution is supported for the VPC.If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled. Enabled by default. For more information, see DNS attributes in your VPC .
- Parameters:
enableDnsSupport
- Indicates whether the DNS resolution is supported for the VPC. This parameter is required.- Returns:
this
- See Also:
-
enableDnsSupport
Indicates whether the DNS resolution is supported for the VPC.If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled. Enabled by default. For more information, see DNS attributes in your VPC .
- Parameters:
enableDnsSupport
- Indicates whether the DNS resolution is supported for the VPC. This parameter is required.- Returns:
this
- See Also:
-
instanceTenancy
The allowed tenancy of instances launched into the VPC.default
: An instance launched into the VPC runs on shared hardware by default, unless you explicitly specify a different tenancy during instance launch.dedicated
: An instance launched into the VPC runs on dedicated hardware by default, unless you explicitly specify a tenancy ofhost
during instance launch. You cannot specify a tenancy ofdefault
during instance launch.
Updating
InstanceTenancy
requires no replacement only if you are updating its value fromdedicated
todefault
. UpdatingInstanceTenancy
fromdefault
todedicated
requires replacement.- Parameters:
instanceTenancy
- The allowed tenancy of instances launched into the VPC. This parameter is required.- Returns:
this
- See Also:
-
ipv4IpamPoolId
The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR.For more information, see What is IPAM? in the Amazon VPC IPAM User Guide .
You must specify either
CidrBlock
orIpv4IpamPoolId
.- Parameters:
ipv4IpamPoolId
- The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. This parameter is required.- Returns:
this
- See Also:
-
ipv4NetmaskLength
The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool.For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .
- Parameters:
ipv4NetmaskLength
- The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags for the VPC.- Parameters:
tags
- The tags for the VPC. This parameter is required.- Returns:
this
- See Also:
-
build
-