Interface IVpcContextResponse
Properties of a discovered VPC.
Namespace: Amazon.CDK.CXAPI
Assembly: Amazon.CDK.CXAPI.dll
Syntax (csharp)
public interface IVpcContextResponse
Syntax (vb)
Public Interface IVpcContextResponse
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CXAPI;
var vpcContextResponse = new VpcContextResponse {
AvailabilityZones = new [] { "availabilityZones" },
VpcId = "vpcId",
// the properties below are optional
IsolatedSubnetIds = new [] { "isolatedSubnetIds" },
IsolatedSubnetNames = new [] { "isolatedSubnetNames" },
IsolatedSubnetRouteTableIds = new [] { "isolatedSubnetRouteTableIds" },
PrivateSubnetIds = new [] { "privateSubnetIds" },
PrivateSubnetNames = new [] { "privateSubnetNames" },
PrivateSubnetRouteTableIds = new [] { "privateSubnetRouteTableIds" },
PublicSubnetIds = new [] { "publicSubnetIds" },
PublicSubnetNames = new [] { "publicSubnetNames" },
PublicSubnetRouteTableIds = new [] { "publicSubnetRouteTableIds" },
SubnetGroups = new [] { new VpcSubnetGroup {
Name = "name",
Subnets = new [] { new VpcSubnet {
AvailabilityZone = "availabilityZone",
RouteTableId = "routeTableId",
SubnetId = "subnetId",
// the properties below are optional
Cidr = "cidr"
} },
Type = VpcSubnetGroupType.PUBLIC
} },
VpcCidrBlock = "vpcCidrBlock",
VpnGatewayId = "vpnGatewayId"
};
Synopsis
Properties
AvailabilityZones | AZs. |
IsolatedSubnetIds | IDs of all isolated subnets. |
IsolatedSubnetNames | Name of isolated subnet groups. |
IsolatedSubnetRouteTableIds | Route Table IDs of isolated subnet groups. |
PrivateSubnetIds | IDs of all private subnets. |
PrivateSubnetNames | Name of private subnet groups. |
PrivateSubnetRouteTableIds | Route Table IDs of private subnet groups. |
PublicSubnetIds | IDs of all public subnets. |
PublicSubnetNames | Name of public subnet groups. |
PublicSubnetRouteTableIds | Route Table IDs of public subnet groups. |
SubnetGroups | The subnet groups discovered for the given VPC. |
VpcCidrBlock | VPC cidr. |
VpcId | VPC id. |
VpnGatewayId | The VPN gateway ID. |
Properties
AvailabilityZones
AZs.
string[] AvailabilityZones { get; }
Property Value
System.String[]
IsolatedSubnetIds
IDs of all isolated subnets.
virtual string[] IsolatedSubnetIds { get; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(isolatedGroups)
IsolatedSubnetNames
Name of isolated subnet groups.
virtual string[] IsolatedSubnetNames { get; }
Property Value
System.String[]
Remarks
Element count: #(isolatedGroups)
IsolatedSubnetRouteTableIds
Route Table IDs of isolated subnet groups.
virtual string[] IsolatedSubnetRouteTableIds { get; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(isolatedGroups)
PrivateSubnetIds
IDs of all private subnets.
virtual string[] PrivateSubnetIds { get; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(privateGroups)
PrivateSubnetNames
Name of private subnet groups.
virtual string[] PrivateSubnetNames { get; }
Property Value
System.String[]
Remarks
Element count: #(privateGroups)
PrivateSubnetRouteTableIds
Route Table IDs of private subnet groups.
virtual string[] PrivateSubnetRouteTableIds { get; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(privateGroups)
PublicSubnetIds
IDs of all public subnets.
virtual string[] PublicSubnetIds { get; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(publicGroups)
PublicSubnetNames
Name of public subnet groups.
virtual string[] PublicSubnetNames { get; }
Property Value
System.String[]
Remarks
Element count: #(publicGroups)
PublicSubnetRouteTableIds
Route Table IDs of public subnet groups.
virtual string[] PublicSubnetRouteTableIds { get; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(publicGroups)
SubnetGroups
The subnet groups discovered for the given VPC.
virtual IVpcSubnetGroup[] SubnetGroups { get; }
Property Value
Remarks
Unlike the above properties, this will include asymmetric subnets, if the VPC has any. This property will only be populated if {@link VpcContextQuery.returnAsymmetricSubnets} is true.
Default: - no subnet groups will be returned unless {@link VpcContextQuery.returnAsymmetricSubnets} is true
VpcCidrBlock
VPC cidr.
virtual string VpcCidrBlock { get; }
Property Value
System.String
Remarks
Default: - CIDR information not available
VpcId
VPC id.
string VpcId { get; }
Property Value
System.String
VpnGatewayId
The VPN gateway ID.
virtual string VpnGatewayId { get; }
Property Value
System.String