interface CfnIPAMAllocationMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnIPAMAllocationMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnIPAMAllocationMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnIPAMAllocationMixinProps |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnIPAMAllocationMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnIPAMAllocationMixinProps |
Properties for CfnIPAMAllocationPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipamallocation.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const cfnIPAMAllocationMixinProps: ec2_mixins.CfnIPAMAllocationMixinProps = {
cidr: 'cidr',
description: 'description',
ipamPoolId: 'ipamPoolId',
netmaskLength: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| cidr? | string | The CIDR you would like to allocate from the IPAM pool. Note the following:. |
| description? | string | A description for the allocation. |
| ipam | string | The ID of the IPAM pool from which you would like to allocate a CIDR. |
| netmask | number | The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:. |
cidr?
Type:
string
(optional)
The CIDR you would like to allocate from the IPAM pool. Note the following:.
- If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
- If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
Possible values: Any available IPv4 or IPv6 CIDR.
description?
Type:
string
(optional)
A description for the allocation.
ipamPoolId?
Type:
string
(optional)
The ID of the IPAM pool from which you would like to allocate a CIDR.
netmaskLength?
Type:
number
(optional)
The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:.
- If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
- If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.

.NET
Go
Java
Python
TypeScript