Interface VpcAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcAttributes.Jsii$Proxy
Example:
IVpc vpc = Vpc.fromVpcAttributes(this, "VPC", VpcAttributes.builder() .vpcId("vpc-1234") .availabilityZones(List.of("us-east-1a", "us-east-1b")) // Either pass literals for all IDs .publicSubnetIds(List.of("s-12345", "s-67890")) // OR: import a list of known length .privateSubnetIds(Fn.importListValue("PrivateSubnetIds", 2)) // OR: split an imported string to a list of known length .isolatedSubnetIds(Fn.split(",", StringParameter.valueForStringParameter(this, "MyParameter"), 2)) .build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forVpcAttributes
static final class
An implementation forVpcAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpcAttributes.Builder
builder()
List of availability zones for the subnets in this VPC.List of isolated subnet IDs.List of IPv4 CIDR blocks for the isolated subnets.List of names for the isolated subnets.List of IDs of route tables for the isolated subnets.List of private subnet IDs.List of IPv4 CIDR blocks for the private subnets.List of names for the private subnets.List of IDs of route tables for the private subnets.List of public subnet IDs.List of IPv4 CIDR blocks for the public subnets.List of names for the public subnets.List of IDs of route tables for the public subnets.default String
The region the VPC is in.default String
VPC's CIDR range.getVpcId()
VPC's identifier.default String
VPN gateway's identifier.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZones
List of availability zones for the subnets in this VPC. -
getVpcId
VPC's identifier. -
getIsolatedSubnetIds
List of isolated subnet IDs.Must be undefined or match the availability zones in length and order.
Default: - The VPC does not have any isolated subnets
-
getIsolatedSubnetIpv4CidrBlocks
List of IPv4 CIDR blocks for the isolated subnets.Must be undefined or have an entry for every isolated subnet group.
Default: - Retrieving the IPv4 CIDR block of any isolated subnet will fail
-
getIsolatedSubnetNames
List of names for the isolated subnets.Must be undefined or have a name for every isolated subnet group.
Default: - All isolated subnets will have the name `Isolated`
-
getIsolatedSubnetRouteTableIds
List of IDs of route tables for the isolated subnets.Must be undefined or have a name for every isolated subnet group.
Default: - Retrieving the route table ID of any isolated subnet will fail
-
getPrivateSubnetIds
List of private subnet IDs.Must be undefined or match the availability zones in length and order.
Default: - The VPC does not have any private subnets
-
getPrivateSubnetIpv4CidrBlocks
List of IPv4 CIDR blocks for the private subnets.Must be undefined or have an entry for every private subnet group.
Default: - Retrieving the IPv4 CIDR block of any private subnet will fail
-
getPrivateSubnetNames
List of names for the private subnets.Must be undefined or have a name for every private subnet group.
Default: - All private subnets will have the name `Private`
-
getPrivateSubnetRouteTableIds
List of IDs of route tables for the private subnets.Must be undefined or have a name for every private subnet group.
Default: - Retrieving the route table ID of any private subnet will fail
-
getPublicSubnetIds
List of public subnet IDs.Must be undefined or match the availability zones in length and order.
Default: - The VPC does not have any public subnets
-
getPublicSubnetIpv4CidrBlocks
List of IPv4 CIDR blocks for the public subnets.Must be undefined or have an entry for every public subnet group.
Default: - Retrieving the IPv4 CIDR block of any public subnet will fail
-
getPublicSubnetNames
List of names for the public subnets.Must be undefined or have a name for every public subnet group.
Default: - All public subnets will have the name `Public`
-
getPublicSubnetRouteTableIds
List of IDs of route tables for the public subnets.Must be undefined or have a name for every public subnet group.
Default: - Retrieving the route table ID of any public subnet will fail
-
getRegion
The region the VPC is in.Default: - The region of the stack where the VPC belongs to
-
getVpcCidrBlock
VPC's CIDR range.Default: - Retrieving the CIDR from the VPC will fail
-
getVpnGatewayId
VPN gateway's identifier. -
builder
- Returns:
- a
VpcAttributes.Builder
ofVpcAttributes
-