software.amazon.jsii.JsiiObject.InitializationModeVpcProps.Builder, VpcProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String cidr,
DefaultInstanceTenancy defaultInstanceTenancy,
Boolean enableDnsHostnames,
Boolean enableDnsSupport,
Map<String,? extends FlowLogOptions> flowLogs,
Map<String,? extends GatewayVpcEndpointOptions> gatewayEndpoints,
Number maxAzs,
NatProvider natGatewayProvider,
Number natGateways,
SubnetSelection natGatewaySubnets,
List<? extends SubnetConfiguration> subnetConfiguration,
Map<String,? extends VpnConnectionOptions> vpnConnections,
Boolean vpnGateway,
Number vpnGatewayAsn,
List<? extends SubnetSelection> vpnRoutePropagation)
Constructor that initializes the object based on literal property values passed by the
VpcProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getCidr()
(experimental) The CIDR range to use for the VPC, e.g.
|
DefaultInstanceTenancy |
getDefaultInstanceTenancy()
(experimental) The default tenancy of instances launched into the VPC.
|
Boolean |
getEnableDnsHostnames()
(experimental) Indicates whether the instances launched in the VPC get public DNS hostnames.
|
Boolean |
getEnableDnsSupport()
(experimental) Indicates whether the DNS resolution is supported for the VPC.
|
Map<String,FlowLogOptions> |
getFlowLogs()
(experimental) Flow logs to add to this VPC.
|
Map<String,GatewayVpcEndpointOptions> |
getGatewayEndpoints()
(experimental) Gateway endpoints to add to this VPC.
|
Number |
getMaxAzs()
(experimental) Define the maximum number of AZs to use in this region.
|
NatProvider |
getNatGatewayProvider()
(experimental) What type of NAT provider to use.
|
Number |
getNatGateways()
(experimental) The number of NAT Gateways/Instances to create.
|
SubnetSelection |
getNatGatewaySubnets()
(experimental) Configures the subnets which will have NAT Gateways/Instances.
|
List<SubnetConfiguration> |
getSubnetConfiguration()
(experimental) Configure the subnets to build for each AZ.
|
Map<String,VpnConnectionOptions> |
getVpnConnections()
(experimental) VPN connections to this VPC.
|
Boolean |
getVpnGateway()
(experimental) Indicates whether a VPN gateway should be created and attached to this VPC.
|
Number |
getVpnGatewayAsn()
(experimental) The private Autonomous System Number (ASN) for the VPN gateway.
|
List<SubnetSelection> |
getVpnRoutePropagation()
(experimental) Where to propagate VPN routes.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String cidr, DefaultInstanceTenancy defaultInstanceTenancy, Boolean enableDnsHostnames, Boolean enableDnsSupport, Map<String,? extends FlowLogOptions> flowLogs, Map<String,? extends GatewayVpcEndpointOptions> gatewayEndpoints, Number maxAzs, NatProvider natGatewayProvider, Number natGateways, SubnetSelection natGatewaySubnets, List<? extends SubnetConfiguration> subnetConfiguration, Map<String,? extends VpnConnectionOptions> vpnConnections, Boolean vpnGateway, Number vpnGatewayAsn, List<? extends SubnetSelection> vpnRoutePropagation)
VpcProps.Builder.public final String getCidr()
VpcPropsShould 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
public final DefaultInstanceTenancy getDefaultInstanceTenancy()
VpcPropsBy 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
getDefaultInstanceTenancy in interface VpcPropspublic final Boolean getEnableDnsHostnames()
VpcPropsIf 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
getEnableDnsHostnames in interface VpcPropspublic final Boolean getEnableDnsSupport()
VpcPropsIf 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
getEnableDnsSupport in interface VpcPropspublic final Map<String,FlowLogOptions> getFlowLogs()
VpcPropsDefault: - No flow logs.
getFlowLogs in interface VpcPropspublic final Map<String,GatewayVpcEndpointOptions> getGatewayEndpoints()
VpcPropsDefault: - None.
getGatewayEndpoints in interface VpcPropspublic final Number getMaxAzs()
VpcPropsIf 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
public final NatProvider getNatGatewayProvider()
VpcPropsSelect between NAT gateways or NAT instances. NAT gateways may not be available in all AWS regions.
Default: NatProvider.gateway()
getNatGatewayProvider in interface VpcPropspublic final Number getNatGateways()
VpcProps
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
getNatGateways in interface VpcPropspublic final SubnetSelection getNatGatewaySubnets()
VpcPropsYou 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.
getNatGatewaySubnets in interface VpcPropspublic final List<SubnetConfiguration> getSubnetConfiguration()
VpcPropsEach 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.
getSubnetConfiguration in interface VpcPropspublic final Map<String,VpnConnectionOptions> getVpnConnections()
VpcPropsDefault: - No connections.
getVpnConnections in interface VpcPropspublic final Boolean getVpnGateway()
VpcPropsDefault: - true when vpnGatewayAsn or vpnConnections is specified
getVpnGateway in interface VpcPropspublic final Number getVpnGatewayAsn()
VpcPropsDefault: - Amazon default ASN.
getVpnGatewayAsn in interface VpcPropspublic final List<SubnetSelection> getVpnRoutePropagation()
VpcPropsDefault: - 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.
getVpnRoutePropagation in interface VpcProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.