Skip to content
v2.273.0

Experimental

@aws-cdk/aws-ec2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

SecondaryAddressProps Struct ​

Additional props needed for secondary Address.

Example ​

ts
const stack = new Stack();
const myVpc = new VpcV2(this, 'Vpc',{
      primaryAddressBlock: IpAddresses.ipv4('10.1.0.0/16'),
      secondaryAddressBlocks: [IpAddresses.amazonProvidedIpv6({
      cidrBlockName: 'AmazonProvided',
    })]
    });

const eigw = new EgressOnlyInternetGateway(this, 'EIGW', {
  vpc: myVpc,
});

const routeTable = new RouteTable(this, 'RouteTable', {
  vpc: myVpc,
});

routeTable.addRoute('EIGW', '::/0', { gateway: eigw });

Properties ​

cidrBlockNamestringcidr_block_namestrcidrBlockNameStringCidrBlockNamestringCidrBlockName*stringrequired#
Required to set Secondary cidr block resource name in order to generate unique logical id for the resource.