Class VpcSubnetGroup
A group of subnets returned by the VPC provider.
Inheritance
System.Object
VpcSubnetGroup
Implements
Namespace: Amazon.CDK.CXAPI
Assembly: Amazon.CDK.CXAPI.dll
Syntax (csharp)
public class VpcSubnetGroup : Object, IVpcSubnetGroup
Syntax (vb)
Public Class VpcSubnetGroup
Inherits Object
Implements 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
Constructors
VpcSubnetGroup() |
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. |
Constructors
VpcSubnetGroup()
public VpcSubnetGroup()
Properties
Name
The name of the subnet group, determined by looking at the tags of of the subnets that belong to it.
public string Name { get; set; }
Property Value
System.String
Subnets
The subnets that are part of this group.
public IVpcSubnet[] Subnets { get; set; }
Property Value
Remarks
There is no condition that the subnets have to be symmetric in the group.
Type
The type of the subnet group.
public VpcSubnetGroupType Type { get; set; }
Property Value