| Modifier and Type | Method and Description |
|---|---|
CfnVPC |
build() |
CfnVPC.Builder |
cidrBlock(String cidrBlock)
The primary IPv4 CIDR block for the VPC.
|
static CfnVPC.Builder |
create(Construct scope,
String id) |
CfnVPC.Builder |
enableDnsHostnames(Boolean enableDnsHostnames)
Indicates whether the instances launched in the VPC get DNS hostnames.
|
CfnVPC.Builder |
enableDnsHostnames(IResolvable enableDnsHostnames)
Indicates whether the instances launched in the VPC get DNS hostnames.
|
CfnVPC.Builder |
enableDnsSupport(Boolean enableDnsSupport)
Indicates whether the DNS resolution is supported for the VPC.
|
CfnVPC.Builder |
enableDnsSupport(IResolvable enableDnsSupport)
Indicates whether the DNS resolution is supported for the VPC.
|
CfnVPC.Builder |
instanceTenancy(String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
|
CfnVPC.Builder |
tags(List<? extends CfnTag> tags)
The tags for the VPC.
|
@Stability(value=Stable) public static CfnVPC.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnVPC.Builder.@Stability(value=Stable) public CfnVPC.Builder cidrBlock(String cidrBlock)
cidrBlock - The primary IPv4 CIDR block for the VPC. This parameter is required.this@Stability(value=Stable) public CfnVPC.Builder enableDnsHostnames(Boolean enableDnsHostnames)
If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs. For more information, see DNS Support in Your VPC .
You can only enable DNS hostnames if you've enabled DNS support.
enableDnsHostnames - Indicates whether the instances launched in the VPC get DNS hostnames. This parameter is required.this@Stability(value=Stable) public CfnVPC.Builder enableDnsHostnames(IResolvable enableDnsHostnames)
If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs. For more information, see DNS Support in Your VPC .
You can only enable DNS hostnames if you've enabled DNS support.
enableDnsHostnames - Indicates whether the instances launched in the VPC get DNS hostnames. This parameter is required.this@Stability(value=Stable) public CfnVPC.Builder enableDnsSupport(Boolean enableDnsSupport)
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 Support in Your VPC .
enableDnsSupport - Indicates whether the DNS resolution is supported for the VPC. This parameter is required.this@Stability(value=Stable) public CfnVPC.Builder enableDnsSupport(IResolvable enableDnsSupport)
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 Support in Your VPC .
enableDnsSupport - Indicates whether the DNS resolution is supported for the VPC. This parameter is required.this@Stability(value=Stable) public CfnVPC.Builder instanceTenancy(String instanceTenancy)
"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 is a Dedicated Instance by default, unless you explicitly specify a tenancy of host during instance launch. You cannot specify a tenancy of default during instance launch.
Updating InstanceTenancy requires no replacement only if you are updating its value from "dedicated" to "default" . Updating InstanceTenancy from "default" to "dedicated" requires replacement.
instanceTenancy - The allowed tenancy of instances launched into the VPC. This parameter is required.this@Stability(value=Stable) public CfnVPC.Builder tags(List<? extends CfnTag> tags)
tags - The tags for the VPC. This parameter is required.thisCopyright © 2022. All rights reserved.