Class CfnVPCMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCMixinProps>
- Enclosing interface:
CfnVPCMixinProps
@Stability(Stable)
public static final class CfnVPCMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCMixinProps>
A builder for
CfnVPCMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVPCMixinProps.getCidrBlock()enableDnsHostnames(Boolean enableDnsHostnames) Sets the value ofCfnVPCMixinProps.getEnableDnsHostnames()enableDnsHostnames(IResolvable enableDnsHostnames) Sets the value ofCfnVPCMixinProps.getEnableDnsHostnames()enableDnsSupport(Boolean enableDnsSupport) Sets the value ofCfnVPCMixinProps.getEnableDnsSupport()enableDnsSupport(IResolvable enableDnsSupport) Sets the value ofCfnVPCMixinProps.getEnableDnsSupport()instanceTenancy(String instanceTenancy) Sets the value ofCfnVPCMixinProps.getInstanceTenancy()ipv4IpamPoolId(String ipv4IpamPoolId) Sets the value ofCfnVPCMixinProps.getIpv4IpamPoolId()ipv4NetmaskLength(Number ipv4NetmaskLength) Sets the value ofCfnVPCMixinProps.getIpv4NetmaskLength()Sets the value ofCfnVPCMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrBlock
Sets the value ofCfnVPCMixinProps.getCidrBlock()- Parameters:
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
CidrBlockorIpv4IpamPoolId.- Returns:
this
-
enableDnsHostnames
Sets the value ofCfnVPCMixinProps.getEnableDnsHostnames()- Parameters:
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.
- Returns:
this
-
enableDnsHostnames
@Stability(Stable) public CfnVPCMixinProps.Builder enableDnsHostnames(IResolvable enableDnsHostnames) Sets the value ofCfnVPCMixinProps.getEnableDnsHostnames()- Parameters:
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.
- Returns:
this
-
enableDnsSupport
Sets the value ofCfnVPCMixinProps.getEnableDnsSupport()- Parameters:
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 .- Returns:
this
-
enableDnsSupport
Sets the value ofCfnVPCMixinProps.getEnableDnsSupport()- Parameters:
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 .- Returns:
this
-
instanceTenancy
Sets the value ofCfnVPCMixinProps.getInstanceTenancy()- Parameters:
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 ofhostduring instance launch. You cannot specify a tenancy ofdefaultduring instance launch.
Updating
InstanceTenancyrequires no replacement only if you are updating its value fromdedicatedtodefault. UpdatingInstanceTenancyfromdefaulttodedicatedrequires replacement.- Returns:
this
-
ipv4IpamPoolId
Sets the value ofCfnVPCMixinProps.getIpv4IpamPoolId()- Parameters:
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
CidrBlockorIpv4IpamPoolId.- Returns:
this
-
ipv4NetmaskLength
Sets the value ofCfnVPCMixinProps.getIpv4NetmaskLength()- 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. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .- Returns:
this
-
tags
Sets the value ofCfnVPCMixinProps.getTags()- Parameters:
tags- The tags for the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCMixinProps>- Returns:
- a new instance of
CfnVPCMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-