@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:46.775Z") @Stability(value=Stable) public class CfnIPAMAllocation extends CfnResource implements IInspectable
In IPAM, an allocation is a CIDR assignment from an IPAM pool to another resource or IPAM pool.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; CfnIPAMAllocation cfnIPAMAllocation = CfnIPAMAllocation.Builder.create(this, "MyCfnIPAMAllocation") .ipamPoolId("ipamPoolId") // the properties below are optional .cidr("cidr") .description("description") .netmaskLength(123) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnIPAMAllocation.Builder
A fluent builder for
CfnIPAMAllocation . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnIPAMAllocation(software.constructs.Construct scope,
String id,
CfnIPAMAllocationProps props)
Create a new `AWS::EC2::IPAMAllocation`.
|
protected |
CfnIPAMAllocation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnIPAMAllocation(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrIpamPoolAllocationId()
The ID of an allocation.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCidr()
The CIDR you would like to allocate from the IPAM pool.
|
String |
getDescription()
A description for the allocation.
|
String |
getIpamPoolId()
The ID of the IPAM pool from which you would like to allocate a CIDR.
|
Number |
getNetmaskLength()
The netmask length of the CIDR you would like to allocate from the IPAM pool.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCidr(String value)
The CIDR you would like to allocate from the IPAM pool.
|
void |
setDescription(String value)
A description for the allocation.
|
void |
setIpamPoolId(String value)
The ID of the IPAM pool from which you would like to allocate a CIDR.
|
void |
setNetmaskLength(Number value)
The netmask length of the CIDR you would like to allocate from the IPAM pool.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnIPAMAllocation(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnIPAMAllocation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnIPAMAllocation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIPAMAllocationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull public String getAttrIpamPoolAllocationId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public String getIpamPoolId()
@Stability(value=Stable) public void setIpamPoolId(@NotNull String value)
@Stability(value=Stable) @Nullable public String getCidr()
Possible values: Any available IPv4 or IPv6 CIDR.
@Stability(value=Stable) public void setCidr(@Nullable String value)
Possible values: Any available IPv4 or IPv6 CIDR.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable) public void setDescription(@Nullable String value)
@Stability(value=Stable) @Nullable public Number getNetmaskLength()
Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
@Stability(value=Stable) public void setNetmaskLength(@Nullable Number value)
Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
Copyright © 2022. All rights reserved.