interface SecondaryAddressProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ec2.Alpha.SecondaryAddressProps |
Go | github.com/aws/aws-cdk-go/awsec2alpha/v2#SecondaryAddressProps |
Java | software.amazon.awscdk.services.ec2.alpha.SecondaryAddressProps |
Python | aws_cdk.aws_ec2_alpha.SecondaryAddressProps |
TypeScript (source) | @aws-cdk/aws-ec2-alpha » SecondaryAddressProps |
Additional props needed for secondary Address.
Example
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
Name | Type | Description |
---|---|---|
cidr | string | Required to set Secondary cidr block resource name in order to generate unique logical id for the resource. |
cidrBlockName
Type:
string
Required to set Secondary cidr block resource name in order to generate unique logical id for the resource.