VpcSubnetGroup Struct
A group of subnets returned by the VPC provider.
The included subnets do NOT have to be symmetric!
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cx_api } from 'aws-cdk-lib';
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
The name of the subnet group, determined by looking at the tags of of the subnets that belong to it.
subnetsVpcSubnet[]subnetstyping.List[VpcSubnet]subnetsList<VpcSubnet>SubnetsVpcSubnet[]Subnets*[]VpcSubnetrequired#The subnets that are part of this group.
There is no condition that the subnets have to be symmetric in the group.
typeVpcSubnetGroupTypetypeVpcSubnetGroupTypetypeVpcSubnetGroupTypeTypeVpcSubnetGroupTypeTypeVpcSubnetGroupTyperequired#The type of the subnet group.