interface VpcCidrOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ec2.Alpha.VpcCidrOptions |
Go | github.com/aws/aws-cdk-go/awsec2alpha/v2#VpcCidrOptions |
Java | software.amazon.awscdk.services.ec2.alpha.VpcCidrOptions |
Python | aws_cdk.aws_ec2_alpha.VpcCidrOptions |
TypeScript (source) | @aws-cdk/aws-ec2-alpha ยป VpcCidrOptions |
Consolidated return parameters to pass to VPC construct.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';
import * as cdk from 'aws-cdk-lib';
declare const cfnResource: cdk.CfnResource;
declare const ipamPool: ec2_alpha.IIpamPool;
const vpcCidrOptions: ec2_alpha.VpcCidrOptions = {
amazonProvided: false,
cidrBlockName: 'cidrBlockName',
dependencies: [cfnResource],
ipv4CidrBlock: 'ipv4CidrBlock',
ipv4IpamPool: ipamPool,
ipv4IpamProvisionedCidrs: ['ipv4IpamProvisionedCidrs'],
ipv4NetmaskLength: 123,
ipv6IpamPool: ipamPool,
ipv6NetmaskLength: 123,
};
Properties
Name | Type | Description |
---|---|---|
amazon | boolean | Use amazon provided IP range. |
cidr | string | Required to set Secondary cidr block resource name in order to generate unique logical id for the resource. |
dependencies? | Cfn [] | Dependency to associate Ipv6 CIDR block. |
ipv4 | string | IPv4 CIDR Block. |
ipv4 | IIpam | Ipv4 IPAM Pool. |
ipv4 | string[] | IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool. |
ipv4 | number | CIDR Mask for Vpc. |
ipv6 | IIpam | Ipv6 IPAM pool id for VPC range, can only be defined under public scope. |
ipv6 | number | CIDR Mask for Vpc. |
amazonProvided?
Type:
boolean
(optional, default: false)
Use amazon provided IP range.
cidrBlockName?
Type:
string
(optional, default: no name for primary addresses)
Required to set Secondary cidr block resource name in order to generate unique logical id for the resource.
dependencies?
Type:
Cfn
[]
(optional, default: No dependency)
Dependency to associate Ipv6 CIDR block.
ipv4CidrBlock?
Type:
string
(optional, default: '10.0.0.0/16')
IPv4 CIDR Block.
ipv4IpamPool?
Type:
IIpam
(optional, default: Only required when using IPAM Ipv4)
Ipv4 IPAM Pool.
ipv4IpamProvisionedCidrs?
Type:
string[]
(optional, default: no IPAM IPv4 CIDR range is provisioned using IPAM)
IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool.
ipv4NetmaskLength?
Type:
number
(optional, default: Only required when using IPAM Ipv4)
CIDR Mask for Vpc.
ipv6IpamPool?
Type:
IIpam
(optional, default: no pool id)
Ipv6 IPAM pool id for VPC range, can only be defined under public scope.
ipv6NetmaskLength?
Type:
number
(optional, default: Only required when using AWS Ipam)
CIDR Mask for Vpc.