@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.133Z") @Stability(value=Experimental) public interface VpcProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
VpcProps.Builder
A builder for
VpcProps |
static class |
VpcProps.Jsii$Proxy
An implementation for
VpcProps |
| Modifier and Type | Method and Description |
|---|---|
static VpcProps.Builder |
builder() |
default String |
getCidr()
(experimental) The CIDR range to use for the VPC, e.g.
|
default DefaultInstanceTenancy |
getDefaultInstanceTenancy()
(experimental) The default tenancy of instances launched into the VPC.
|
default Boolean |
getEnableDnsHostnames()
(experimental) Indicates whether the instances launched in the VPC get public DNS hostnames.
|
default Boolean |
getEnableDnsSupport()
(experimental) Indicates whether the DNS resolution is supported for the VPC.
|
default Map<String,FlowLogOptions> |
getFlowLogs()
(experimental) Flow logs to add to this VPC.
|
default Map<String,GatewayVpcEndpointOptions> |
getGatewayEndpoints()
(experimental) Gateway endpoints to add to this VPC.
|
default Number |
getMaxAzs()
(experimental) Define the maximum number of AZs to use in this region.
|
default NatProvider |
getNatGatewayProvider()
(experimental) What type of NAT provider to use.
|
default Number |
getNatGateways()
(experimental) The number of NAT Gateways/Instances to create.
|
default SubnetSelection |
getNatGatewaySubnets()
(experimental) Configures the subnets which will have NAT Gateways/Instances.
|
default List<SubnetConfiguration> |
getSubnetConfiguration()
(experimental) Configure the subnets to build for each AZ.
|
default Map<String,VpnConnectionOptions> |
getVpnConnections()
(experimental) VPN connections to this VPC.
|
default Boolean |
getVpnGateway()
(experimental) Indicates whether a VPN gateway should be created and attached to this VPC.
|
default Number |
getVpnGatewayAsn()
(experimental) The private Autonomous System Number (ASN) for the VPN gateway.
|
default List<SubnetSelection> |
getVpnRoutePropagation()
(experimental) Where to propagate VPN routes.
|
@Stability(value=Experimental) @Nullable default String getCidr()
Should be a minimum of /28 and maximum size of /16. The range will be split across all subnets per Availability Zone.
Default: Vpc.DEFAULT_CIDR_RANGE
@Stability(value=Experimental) @Nullable default DefaultInstanceTenancy getDefaultInstanceTenancy()
By setting this to dedicated tenancy, instances will be launched on hardware dedicated to a single AWS customer, unless specifically specified at instance launch time. Please note, not all instance types are usable with Dedicated tenancy.
Default: DefaultInstanceTenancy.Default (shared) tenancy
@Stability(value=Experimental) @Nullable default Boolean getEnableDnsHostnames()
If this attribute is true, instances in the VPC get public DNS hostnames, but only if the enableDnsSupport attribute is also set to true.
Default: true
@Stability(value=Experimental) @Nullable default Boolean getEnableDnsSupport()
If this attribute is false, the Amazon-provided DNS server in the VPC that resolves public DNS hostnames to IP addresses is not enabled. If this attribute is true, 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 IPv4 network range plus two will succeed.
Default: true
@Stability(value=Experimental) @Nullable default Map<String,FlowLogOptions> getFlowLogs()
Default: - No flow logs.
@Stability(value=Experimental) @Nullable default Map<String,GatewayVpcEndpointOptions> getGatewayEndpoints()
Default: - None.
@Stability(value=Experimental) @Nullable default Number getMaxAzs()
If the region has more AZs than you want to use (for example, because of EIP limits), pick a lower number here. The AZs will be sorted and picked from the start of the list.
If you pick a higher number than the number of AZs in the region, all AZs in the region will be selected. To use "all AZs" available to your account, use a high number (such as 99).
Be aware that environment-agnostic stacks will be created with access to only 2 AZs, so to use more than 2 AZs, be sure to specify the account and region on your stack.
Default: 3
@Stability(value=Experimental) @Nullable default NatProvider getNatGatewayProvider()
Select between NAT gateways or NAT instances. NAT gateways may not be available in all AWS regions.
Default: NatProvider.gateway()
@Stability(value=Experimental) @Nullable default Number getNatGateways()
The type of NAT gateway or instance will be determined by the
natGatewayProvider parameter.
You can set this number lower than the number of Availability Zones in your VPC in order to save on NAT cost. Be aware you may be charged for cross-AZ data traffic instead.
Default: - One NAT gateway/instance per Availability Zone
@Stability(value=Experimental) @Nullable default SubnetSelection getNatGatewaySubnets()
You can pick a specific group of subnets by specifying the group name; the picked subnets must be public subnets.
Only necessary if you have more than one public subnet group.
Default: - All public subnets.
@Stability(value=Experimental) @Nullable default List<SubnetConfiguration> getSubnetConfiguration()
Each entry in this list configures a Subnet Group; each group will contain a subnet for each Availability Zone.
For example, if you want 1 public subnet, 1 private subnet, and 1 isolated subnet in each AZ provide the following:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
Vpc.Builder.create(this, "VPC")
.subnetConfiguration(asList(Map.of(
"cidrMask", 24,
"name", "ingress",
"subnetType", ec2.SubnetType.getPUBLIC()), Map.of(
"cidrMask", 24,
"name", "application",
"subnetType", ec2.SubnetType.getPRIVATE()), Map.of(
"cidrMask", 28,
"name", "rds",
"subnetType", ec2.SubnetType.getISOLATED())))
.build();
Default: - The VPC CIDR will be evenly divided between 1 public and 1 private subnet per AZ.
@Stability(value=Experimental) @Nullable default Map<String,VpnConnectionOptions> getVpnConnections()
Default: - No connections.
@Stability(value=Experimental) @Nullable default Boolean getVpnGateway()
Default: - true when vpnGatewayAsn or vpnConnections is specified
@Stability(value=Experimental) @Nullable default Number getVpnGatewayAsn()
Default: - Amazon default ASN.
@Stability(value=Experimental) @Nullable default List<SubnetSelection> getVpnRoutePropagation()
Default: - On the route tables associated with private subnets. If no private subnets exists, isolated subnets are used. If no isolated subnets exists, public subnets are used.
@Stability(value=Experimental) static VpcProps.Builder builder()
VpcProps.Builder of VpcPropsCopyright © 2021. All rights reserved.