Class VpcContextResponse
Properties of a discovered VPC.
Inheritance
Implements
Namespace: Amazon.CDK.CXAPI
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpcContextResponse : Object, IVpcContextResponse
Syntax (vb)
Public Class VpcContextResponse
Inherits Object
Implements 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" },
OwnerAccountId = "ownerAccountId",
PrivateSubnetIds = new [] { "privateSubnetIds" },
PrivateSubnetNames = new [] { "privateSubnetNames" },
PrivateSubnetRouteTableIds = new [] { "privateSubnetRouteTableIds" },
PublicSubnetIds = new [] { "publicSubnetIds" },
PublicSubnetNames = new [] { "publicSubnetNames" },
PublicSubnetRouteTableIds = new [] { "publicSubnetRouteTableIds" },
Region = "region",
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
Constructors
VpcContextResponse() |
Properties
AvailabilityZones | AZs. |
IsolatedSubnetIds | IDs of all isolated subnets. |
IsolatedSubnetNames | Name of isolated subnet groups. |
IsolatedSubnetRouteTableIds | Route Table IDs of isolated subnet groups. |
OwnerAccountId | The ID of the AWS account that owns the VPC. |
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. |
Region | The region in which the VPC is in. |
SubnetGroups | The subnet groups discovered for the given VPC. |
VpcCidrBlock | VPC cidr. |
VpcId | VPC id. |
VpnGatewayId | The VPN gateway ID. |
Constructors
VpcContextResponse()
public VpcContextResponse()
Properties
AvailabilityZones
AZs.
public string[] AvailabilityZones { get; set; }
Property Value
System.String[]
IsolatedSubnetIds
IDs of all isolated subnets.
public string[] IsolatedSubnetIds { get; set; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(isolatedGroups)
IsolatedSubnetNames
Name of isolated subnet groups.
public string[] IsolatedSubnetNames { get; set; }
Property Value
System.String[]
Remarks
Element count: #(isolatedGroups)
IsolatedSubnetRouteTableIds
Route Table IDs of isolated subnet groups.
public string[] IsolatedSubnetRouteTableIds { get; set; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(isolatedGroups)
OwnerAccountId
The ID of the AWS account that owns the VPC.
public string OwnerAccountId { get; set; }
Property Value
System.String
Remarks
Default: the account id of the parent stack
PrivateSubnetIds
IDs of all private subnets.
public string[] PrivateSubnetIds { get; set; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(privateGroups)
PrivateSubnetNames
Name of private subnet groups.
public string[] PrivateSubnetNames { get; set; }
Property Value
System.String[]
Remarks
Element count: #(privateGroups)
PrivateSubnetRouteTableIds
Route Table IDs of private subnet groups.
public string[] PrivateSubnetRouteTableIds { get; set; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(privateGroups)
PublicSubnetIds
IDs of all public subnets.
public string[] PublicSubnetIds { get; set; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(publicGroups)
PublicSubnetNames
Name of public subnet groups.
public string[] PublicSubnetNames { get; set; }
Property Value
System.String[]
Remarks
Element count: #(publicGroups)
PublicSubnetRouteTableIds
Route Table IDs of public subnet groups.
public string[] PublicSubnetRouteTableIds { get; set; }
Property Value
System.String[]
Remarks
Element count: #(availabilityZones) · #(publicGroups)
Region
The region in which the VPC is in.
public string Region { get; set; }
Property Value
System.String
Remarks
Default: - Region of the parent stack
SubnetGroups
The subnet groups discovered for the given VPC.
public IVpcSubnetGroup[] SubnetGroups { get; set; }
Property Value
Remarks
Unlike the above properties, this will include asymmetric subnets,
if the VPC has any.
This property will only be populated if VpcContextQuery.returnAsymmetricSubnets
is true.
Default: - no subnet groups will be returned unless VpcContextQuery.returnAsymmetricSubnets
is true
VpcCidrBlock
VPC cidr.
public string VpcCidrBlock { get; set; }
Property Value
System.String
Remarks
Default: - CIDR information not available
VpcId
VPC id.
public string VpcId { get; set; }
Property Value
System.String
VpnGatewayId
The VPN gateway ID.
public string VpnGatewayId { get; set; }
Property Value
System.String