Class VpcProps.Jsii$Proxy
- All Implemented Interfaces:
VpcProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- VpcProps
VpcProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.VpcProps
VpcProps.Builder, VpcProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(VpcProps.Builder builder) Constructor that initializes the object based on literal property values passed by theVpcProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringgetCidr()The CIDR range to use for the VPC, e.g.final DefaultInstanceTenancyThe default tenancy of instances launched into the VPC.final BooleanIndicates whether the instances launched in the VPC get public DNS hostnames.final BooleanIndicates whether the DNS resolution is supported for the VPC.final Map<String,FlowLogOptions> Flow logs to add to this VPC.final Map<String,GatewayVpcEndpointOptions> Gateway endpoints to add to this VPC.final NumberDefine the maximum number of AZs to use in this region.final NatProviderWhat type of NAT provider to use.final NumberThe number of NAT Gateways/Instances to create.final SubnetSelectionConfigures the subnets which will have NAT Gateways/Instances.final List<SubnetConfiguration>Configure the subnets to build for each AZ.final StringThe VPC name.final Map<String,VpnConnectionOptions> VPN connections to this VPC.final BooleanIndicates whether a VPN gateway should be created and attached to this VPC.final NumberThe private Autonomous System Number (ASN) for the VPN gateway.final List<SubnetSelection>Where to propagate VPN routes.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theVpcProps.Builder.
-
-
Method Details
-
getCidr
Description copied from interface:VpcPropsThe CIDR range to use for the VPC, e.g. '10.0.0.0/16'.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
-
getDefaultInstanceTenancy
Description copied from interface:VpcPropsThe default tenancy of instances launched into the VPC.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
- Specified by:
getDefaultInstanceTenancyin interfaceVpcProps
-
getEnableDnsHostnames
Description copied from interface:VpcPropsIndicates whether the instances launched in the VPC get public DNS hostnames.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
- Specified by:
getEnableDnsHostnamesin interfaceVpcProps
-
getEnableDnsSupport
Description copied from interface:VpcPropsIndicates whether the DNS resolution is supported for the VPC.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
- Specified by:
getEnableDnsSupportin interfaceVpcProps
-
getFlowLogs
Description copied from interface:VpcPropsFlow logs to add to this VPC.Default: - No flow logs.
- Specified by:
getFlowLogsin interfaceVpcProps
-
getGatewayEndpoints
Description copied from interface:VpcPropsGateway endpoints to add to this VPC.Default: - None.
- Specified by:
getGatewayEndpointsin interfaceVpcProps
-
getMaxAzs
Description copied from interface:VpcPropsDefine the maximum number of AZs to use in this region.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
-
getNatGatewayProvider
Description copied from interface:VpcPropsWhat type of NAT provider to use.Select between NAT gateways or NAT instances. NAT gateways may not be available in all AWS regions.
Default: NatProvider.gateway()
- Specified by:
getNatGatewayProviderin interfaceVpcProps
-
getNatGateways
Description copied from interface:VpcPropsThe number of NAT Gateways/Instances to create.The type of NAT gateway or instance will be determined by the
natGatewayProviderparameter.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
- Specified by:
getNatGatewaysin interfaceVpcProps
-
getNatGatewaySubnets
Description copied from interface:VpcPropsConfigures the subnets which will have NAT Gateways/Instances.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.
- Specified by:
getNatGatewaySubnetsin interfaceVpcProps
-
getSubnetConfiguration
Description copied from interface:VpcPropsConfigure the subnets to build for each AZ.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:
Vpc.Builder.create(this, "VPC") .subnetConfiguration(List.of(SubnetConfiguration.builder() .cidrMask(24) .name("ingress") .subnetType(SubnetType.PUBLIC) .build(), SubnetConfiguration.builder() .cidrMask(24) .name("application") .subnetType(SubnetType.PRIVATE_WITH_NAT) .build(), SubnetConfiguration.builder() .cidrMask(28) .name("rds") .subnetType(SubnetType.PRIVATE_ISOLATED) .build())) .build();Default: - The VPC CIDR will be evenly divided between 1 public and 1 private subnet per AZ.
- Specified by:
getSubnetConfigurationin interfaceVpcProps
-
getVpcName
Description copied from interface:VpcPropsThe VPC name.Since the VPC resource doesn't support providing a physical name, the value provided here will be recorded in the
NametagDefault: this.node.path
- Specified by:
getVpcNamein interfaceVpcProps
-
getVpnConnections
Description copied from interface:VpcPropsVPN connections to this VPC.Default: - No connections.
- Specified by:
getVpnConnectionsin interfaceVpcProps
-
getVpnGateway
Description copied from interface:VpcPropsIndicates whether a VPN gateway should be created and attached to this VPC.Default: - true when vpnGatewayAsn or vpnConnections is specified
- Specified by:
getVpnGatewayin interfaceVpcProps
-
getVpnGatewayAsn
Description copied from interface:VpcPropsThe private Autonomous System Number (ASN) for the VPN gateway.Default: - Amazon default ASN.
- Specified by:
getVpnGatewayAsnin interfaceVpcProps
-
getVpnRoutePropagation
Description copied from interface:VpcPropsWhere to propagate VPN routes.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.
- Specified by:
getVpnRoutePropagationin interfaceVpcProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-