Class CfnIPAMAllocationPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnIPAMAllocationPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIPAMAllocationPropsMixin>
- Enclosing class:
CfnIPAMAllocationPropsMixin
@Stability(Stable)
public static final class CfnIPAMAllocationPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIPAMAllocationPropsMixin>
A fluent builder for
CfnIPAMAllocationPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()The CIDR you would like to allocate from the IPAM pool.create()create(CfnPropertyMixinOptions options) description(String description) A description for the allocation.ipamPoolId(String ipamPoolId) The ID of the IPAM pool from which you would like to allocate a CIDR.netmaskLength(Number netmaskLength) The netmask length of the CIDR you would like to allocate from the IPAM pool.
-
Method Details
-
create
@Stability(Stable) public static CfnIPAMAllocationPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnIPAMAllocationPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnIPAMAllocationPropsMixin.Builder.
-
cidr
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.
- Parameters:
cidr- The CIDR you would like to allocate from the IPAM pool. Note the following:. This parameter is required.- Returns:
this- See Also:
-
description
A description for the allocation.- Parameters:
description- A description for the allocation. This parameter is required.- Returns:
this- See Also:
-
ipamPoolId
The ID of the IPAM pool from which you would like to allocate a CIDR.- Parameters:
ipamPoolId- The ID of the IPAM pool from which you would like to allocate a CIDR. This parameter is required.- Returns:
this- See Also:
-
netmaskLength
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.
- Parameters:
netmaskLength- The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIPAMAllocationPropsMixin>- Returns:
- a newly built instance of
CfnIPAMAllocationPropsMixin.
-