Skip to content
v2.274.0

CfnSecondaryNetworkProps Struct Added in v2.274.0 ​

Properties for defining a CfnSecondaryNetwork.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnSecondaryNetworkProps: ec2.CfnSecondaryNetworkProps = {
  ipv4CidrBlock: 'ipv4CidrBlock',
  networkType: 'networkType',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

ipv4CidrBlockstringipv4_cidr_blockstripv4CidrBlockStringIpv4CidrBlockstringIpv4CidrBlock*stringrequired#
The IPv4 CIDR block for the secondary network.

The CIDR block size must be between /12 and /28.

networkTypestringnetwork_typestrnetworkTypeStringNetworkTypestringNetworkType*stringrequired#
The type of secondary network.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags for the secondary network.