Interface IVpcSubnetGroup
A group of subnets returned by the VPC provider.
Namespace: Amazon.CDK.CXAPI
Assembly: Amazon.CDK.CXAPI.dll
Syntax (csharp)
public interface IVpcSubnetGroup
Syntax (vb)
Public Interface IVpcSubnetGroup
Remarks
The included subnets do NOT have to be symmetric!
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 vpcSubnetGroup = new VpcSubnetGroup {
Name = "name",
Subnets = new [] { new VpcSubnet {
AvailabilityZone = "availabilityZone",
RouteTableId = "routeTableId",
SubnetId = "subnetId",
// the properties below are optional
Cidr = "cidr"
} },
Type = VpcSubnetGroupType.PUBLIC
};
Synopsis
Properties
Name | The name of the subnet group, determined by looking at the tags of of the subnets that belong to it. |
Subnets | The subnets that are part of this group. |
Type | The type of the subnet group. |
Properties
Name
The name of the subnet group, determined by looking at the tags of of the subnets that belong to it.
string Name { get; }
Property Value
System.String
Subnets
The subnets that are part of this group.
IVpcSubnet[] Subnets { get; }
Property Value
Remarks
There is no condition that the subnets have to be symmetric in the group.