interface VpcSubnetGroup
Language | Type name |
---|---|
.NET | Amazon.CDK.CXAPI.VpcSubnetGroup |
Java | software.amazon.awscdk.cxapi.VpcSubnetGroup |
Python | aws_cdk.cx_api.VpcSubnetGroup |
TypeScript (source) | @aws-cdk/cx-api » VpcSubnetGroup |
A group of subnets returned by the VPC provider.
The included subnets do NOT have to be symmetric!
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cx_api from '@aws-cdk/cx-api';
const vpcSubnetGroup: cx_api.VpcSubnetGroup = {
name: 'name',
subnets: [{
availabilityZone: 'availabilityZone',
routeTableId: 'routeTableId',
subnetId: 'subnetId',
// the properties below are optional
cidr: 'cidr',
}],
type: cx_api.VpcSubnetGroupType.PUBLIC,
};
Properties
Name | Type | Description |
---|---|---|
name | string | The name of the subnet group, determined by looking at the tags of of the subnets that belong to it. |
subnets | Vpc [] | The subnets that are part of this group. |
type | Vpc | The type of the subnet group. |
name
Type:
string
The name of the subnet group, determined by looking at the tags of of the subnets that belong to it.
subnets
Type:
Vpc
[]
The subnets that are part of this group.
There is no condition that the subnets have to be symmetric in the group.
type
Type:
Vpc
The type of the subnet group.