Class CfnSubnetCidrReservation
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.CfnSubnetCidrReservation
- All Implemented Interfaces:
IInspectable,ISubnetCidrReservationRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:50.265Z")
@Stability(Stable)
public class CfnSubnetCidrReservation
extends CfnResource
implements IInspectable, ISubnetCidrReservationRef, ITaggableV2
Resource Type definition for a CIDR range reserved inside an Amazon EC2 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.*;
CfnSubnetCidrReservation cfnSubnetCidrReservation = CfnSubnetCidrReservation.Builder.create(this, "MyCfnSubnetCidrReservation")
.cidr("cidr")
.reservationType("reservationType")
.subnetId("subnetId")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSubnetCidrReservation.Nested 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.interfaces.ec2.ISubnetCidrReservationRef
ISubnetCidrReservationRef.Jsii$Default, ISubnetCidrReservationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSubnetCidrReservation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSubnetCidrReservation(software.amazon.jsii.JsiiObjectRef objRef) CfnSubnetCidrReservation(software.constructs.Construct scope, String id, CfnSubnetCidrReservationProps props) Create a newAWS::EC2::SubnetCidrReservation. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe Amazon Resource Name (ARN) of the subnet CIDR reservation.The identifier of the AWS account that owns the subnet CIDR reservation.The identifier of the subnet CIDR reservation.Tag Manager which manages the tags for this resource.getCidr()The IPv4 or IPv6 CIDR range to reserve.The description of the subnet CIDR reservation.The type of reservation.A reference to a SubnetCidrReservation resource.The identifier of the subnet the CIDR range is reserved in.getTags()The tags assigned to the subnet CIDR reservation.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSubnetCidrReservation.renderProperties(Map<String, Object> props) voidThe IPv4 or IPv6 CIDR range to reserve.voidsetDescription(String value) The description of the subnet CIDR reservation.voidsetReservationType(String value) The type of reservation.voidsetSubnetId(String value) The identifier of the subnet the CIDR range is reserved in.voidThe tags assigned to the subnet CIDR reservation.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.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
-
CfnSubnetCidrReservation
protected CfnSubnetCidrReservation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSubnetCidrReservation
protected CfnSubnetCidrReservation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSubnetCidrReservation
@Stability(Stable) public CfnSubnetCidrReservation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSubnetCidrReservationProps props) Create a newAWS::EC2::SubnetCidrReservation.- 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
-
arnForSubnetCidrReservation
@Stability(Stable) @NotNull public static String arnForSubnetCidrReservation(@NotNull ISubnetCidrReservationRef resource) - Parameters:
resource- This parameter is required.
-
isCfnSubnetCidrReservation
Checks whether the given object is a CfnSubnetCidrReservation.- Parameters:
x- This parameter is required.
-
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.
-
getAttrArn
The Amazon Resource Name (ARN) of the subnet CIDR reservation. -
getAttrOwnerId
The identifier of the AWS account that owns the subnet CIDR reservation. -
getAttrSubnetCidrReservationId
The identifier of the subnet CIDR reservation. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getSubnetCidrReservationRef
A reference to a SubnetCidrReservation resource.- Specified by:
getSubnetCidrReservationRefin interfaceISubnetCidrReservationRef
-
getCidr
The IPv4 or IPv6 CIDR range to reserve. -
setCidr
The IPv4 or IPv6 CIDR range to reserve. -
getReservationType
The type of reservation. -
setReservationType
The type of reservation. -
getSubnetId
The identifier of the subnet the CIDR range is reserved in. -
setSubnetId
The identifier of the subnet the CIDR range is reserved in. -
getDescription
The description of the subnet CIDR reservation. -
setDescription
The description of the subnet CIDR reservation. -
getTags
The tags assigned to the subnet CIDR reservation. -
setTags
The tags assigned to the subnet CIDR reservation.
-