Class CfnSubnetCidrBlock
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ec2.CfnSubnetCidrBlock
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:06.926Z")
@Stability(Stable)
public class CfnSubnetCidrBlock
extends CfnResource
implements IInspectable
Associates a CIDR block with your subnet.
You can associate a single IPv6 CIDR block with your subnet.
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.*; CfnSubnetCidrBlock cfnSubnetCidrBlock = CfnSubnetCidrBlock.Builder.create(this, "MyCfnSubnetCidrBlock") .subnetId("subnetId") // the properties below are optional .ipv6CidrBlock("ipv6CidrBlock") .ipv6IpamPoolId("ipv6IpamPoolId") .ipv6NetmaskLength(123) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnSubnetCidrBlock
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnSubnetCidrBlock
(software.amazon.jsii.JsiiObjectRef objRef) CfnSubnetCidrBlock
(software.constructs.Construct scope, String id, CfnSubnetCidrBlockProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the association.The source that allocated the IP address space.Public IPv6 addresses are those advertised on the internet from AWS .The IPv6 network range for the subnet, in CIDR notation.An IPv6 IPAM pool ID for the subnet.An IPv6 netmask length for the subnet.The ID of the subnet.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setIpv6CidrBlock
(String value) The IPv6 network range for the subnet, in CIDR notation.void
setIpv6IpamPoolId
(String value) An IPv6 IPAM pool ID for the subnet.void
setIpv6NetmaskLength
(Number value) An IPv6 netmask length for the subnet.void
setSubnetId
(String value) The ID of the subnet.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSubnetCidrBlock
protected CfnSubnetCidrBlock(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSubnetCidrBlock
protected CfnSubnetCidrBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSubnetCidrBlock
@Stability(Stable) public CfnSubnetCidrBlock(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSubnetCidrBlockProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
The ID of the association. -
getAttrIpSource
The source that allocated the IP address space.byoip
oramazon
indicates public IP address space allocated by Amazon or space that you have allocated with Bring your own IP (BYOIP).none
indicates private space. -
getAttrIpv6AddressAttribute
Public IPv6 addresses are those advertised on the internet from AWS .Private IP addresses are not and cannot be advertised on the internet from AWS .
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getSubnetId
The ID of the subnet. -
setSubnetId
The ID of the subnet. -
getIpv6CidrBlock
The IPv6 network range for the subnet, in CIDR notation. -
setIpv6CidrBlock
The IPv6 network range for the subnet, in CIDR notation. -
getIpv6IpamPoolId
An IPv6 IPAM pool ID for the subnet. -
setIpv6IpamPoolId
An IPv6 IPAM pool ID for the subnet. -
getIpv6NetmaskLength
An IPv6 netmask length for the subnet. -
setIpv6NetmaskLength
An IPv6 netmask length for the subnet.
-