@Stability(value=Stable) public static final class CfnVPCProps.Builder extends Object implements software.amazon.jsii.Builder<CfnVPCProps>
CfnVPCProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnVPCProps |
build()
Builds the configured instance.
|
CfnVPCProps.Builder |
cidrBlock(String cidrBlock)
Sets the value of
CfnVPCProps.getCidrBlock() |
CfnVPCProps.Builder |
enableDnsHostnames(Boolean enableDnsHostnames)
Sets the value of
CfnVPCProps.getEnableDnsHostnames() |
CfnVPCProps.Builder |
enableDnsHostnames(IResolvable enableDnsHostnames)
Sets the value of
CfnVPCProps.getEnableDnsHostnames() |
CfnVPCProps.Builder |
enableDnsSupport(Boolean enableDnsSupport)
Sets the value of
CfnVPCProps.getEnableDnsSupport() |
CfnVPCProps.Builder |
enableDnsSupport(IResolvable enableDnsSupport)
Sets the value of
CfnVPCProps.getEnableDnsSupport() |
CfnVPCProps.Builder |
instanceTenancy(String instanceTenancy)
Sets the value of
CfnVPCProps.getInstanceTenancy() |
CfnVPCProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnVPCProps.getTags() |
@Stability(value=Stable) public CfnVPCProps.Builder cidrBlock(String cidrBlock)
CfnVPCProps.getCidrBlock()cidrBlock - The primary IPv4 CIDR block for the VPC. This parameter is required.this@Stability(value=Stable) public CfnVPCProps.Builder enableDnsHostnames(Boolean enableDnsHostnames)
CfnVPCProps.getEnableDnsHostnames()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 Support in Your VPC .
You can only enable DNS hostnames if you've enabled DNS support.
this@Stability(value=Stable) public CfnVPCProps.Builder enableDnsHostnames(IResolvable enableDnsHostnames)
CfnVPCProps.getEnableDnsHostnames()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 Support in Your VPC .
You can only enable DNS hostnames if you've enabled DNS support.
this@Stability(value=Stable) public CfnVPCProps.Builder enableDnsSupport(Boolean enableDnsSupport)
CfnVPCProps.getEnableDnsSupport()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 Support in Your VPC .this@Stability(value=Stable) public CfnVPCProps.Builder enableDnsSupport(IResolvable enableDnsSupport)
CfnVPCProps.getEnableDnsSupport()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 Support in Your VPC .this@Stability(value=Stable) public CfnVPCProps.Builder instanceTenancy(String instanceTenancy)
CfnVPCProps.getInstanceTenancy()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 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.
this@Stability(value=Stable) public CfnVPCProps.Builder tags(List<? extends CfnTag> tags)
CfnVPCProps.getTags()tags - The tags for the VPC.this@Stability(value=Stable) public CfnVPCProps build()
build in interface software.amazon.jsii.Builder<CfnVPCProps>CfnVPCPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.