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:
IEnvironmentAware,IInspectable,ISubnetCidrBlockRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:03.657Z")
@Stability(Stable)
public class CfnSubnetCidrBlock
extends CfnResource
implements IInspectable, ISubnetCidrBlockRef
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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ISubnetCidrBlockRef
ISubnetCidrBlockRef.Jsii$Default, ISubnetCidrBlockRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSubnetCidrBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSubnetCidrBlock(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.A reference to a SubnetCidrBlock resource.The ID of the subnet.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetIpv6CidrBlock(String value) The IPv6 network range for the subnet, in CIDR notation.voidsetIpv6IpamPoolId(String value) An IPv6 IPAM pool ID for the subnet.voidsetIpv6NetmaskLength(Number value) An IPv6 netmask length for the subnet.voidsetSubnetId(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, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
The ID of the association. -
getAttrIpSource
The source that allocated the IP address space.byoiporamazonindicates public IP address space allocated by Amazon or space that you have allocated with Bring your own IP (BYOIP).noneindicates 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:
getCfnPropertiesin classCfnResource
-
getSubnetCidrBlockRef
A reference to a SubnetCidrBlock resource.- Specified by:
getSubnetCidrBlockRefin interfaceISubnetCidrBlockRef
-
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.
-