Class CfnSubnetCidrReservation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::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

      @Stability(Stable) @NotNull public static Boolean isCfnSubnetCidrReservation(@NotNull Object x)
      Checks whether the given object is a CfnSubnetCidrReservation.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    • getAttrOwnerId

      @Stability(Stable) @NotNull public String getAttrOwnerId()
      The identifier of the AWS account that owns the subnet CIDR reservation.
    • getAttrSubnetCidrReservationId

      @Stability(Stable) @NotNull public String getAttrSubnetCidrReservationId()
      The identifier of the subnet CIDR reservation.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getSubnetCidrReservationRef

      @Stability(Stable) @NotNull public SubnetCidrReservationReference getSubnetCidrReservationRef()
      A reference to a SubnetCidrReservation resource.
      Specified by:
      getSubnetCidrReservationRef in interface ISubnetCidrReservationRef
    • getCidr

      @Stability(Stable) @NotNull public String getCidr()
      The IPv4 or IPv6 CIDR range to reserve.
    • setCidr

      @Stability(Stable) public void setCidr(@NotNull String value)
      The IPv4 or IPv6 CIDR range to reserve.
    • getReservationType

      @Stability(Stable) @NotNull public String getReservationType()
      The type of reservation.
    • setReservationType

      @Stability(Stable) public void setReservationType(@NotNull String value)
      The type of reservation.
    • getSubnetId

      @Stability(Stable) @NotNull public String getSubnetId()
      The identifier of the subnet the CIDR range is reserved in.
    • setSubnetId

      @Stability(Stable) public void setSubnetId(@NotNull String value)
      The identifier of the subnet the CIDR range is reserved in.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the subnet CIDR reservation.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the subnet CIDR reservation.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags assigned to the subnet CIDR reservation.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags assigned to the subnet CIDR reservation.