@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:06.378Z") @Stability(value=Stable) public interface CfnVPCProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnVPCProps cfnVPCProps = CfnVPCProps.builder()
.cidrBlock("cidrBlock")
// the properties below are optional
.enableDnsHostnames(false)
.enableDnsSupport(false)
.instanceTenancy("instanceTenancy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnVPCProps.Builder
A builder for
CfnVPCProps |
static class |
CfnVPCProps.Jsii$Proxy
An implementation for
CfnVPCProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnVPCProps.Builder |
builder() |
String |
getCidrBlock()
The primary IPv4 CIDR block for the VPC.
|
default Object |
getEnableDnsHostnames()
Indicates whether the instances launched in the VPC get DNS hostnames.
|
default Object |
getEnableDnsSupport()
Indicates whether the DNS resolution is supported for the VPC.
|
default String |
getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.
|
default List<CfnTag> |
getTags()
The tags for the VPC.
|
@Stability(value=Stable) @NotNull String getCidrBlock()
@Stability(value=Stable) @Nullable default Object getEnableDnsHostnames()
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.
@Stability(value=Stable) @Nullable default Object getEnableDnsSupport()
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 .
@Stability(value=Stable) @Nullable default String getInstanceTenancy()
"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.
@Stability(value=Stable) static CfnVPCProps.Builder builder()
CfnVPCProps.Builder of CfnVPCPropsCopyright © 2022. All rights reserved.