1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. SubnetCidrReservation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi

    Resource Type definition for a CIDR range reserved inside an Amazon EC2 subnet.

    Create SubnetCidrReservation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SubnetCidrReservation(name: string, args: SubnetCidrReservationArgs, opts?: CustomResourceOptions);
    @overload
    def SubnetCidrReservation(resource_name: str,
                              args: SubnetCidrReservationArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def SubnetCidrReservation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              cidr: Optional[str] = None,
                              reservation_type: Optional[SubnetCidrReservationReservationType] = None,
                              subnet_id: Optional[str] = None,
                              description: Optional[str] = None,
                              tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewSubnetCidrReservation(ctx *Context, name string, args SubnetCidrReservationArgs, opts ...ResourceOption) (*SubnetCidrReservation, error)
    public SubnetCidrReservation(string name, SubnetCidrReservationArgs args, CustomResourceOptions? opts = null)
    public SubnetCidrReservation(String name, SubnetCidrReservationArgs args)
    public SubnetCidrReservation(String name, SubnetCidrReservationArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:SubnetCidrReservation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ec2_subnet_cidr_reservation" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SubnetCidrReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SubnetCidrReservationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SubnetCidrReservationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SubnetCidrReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SubnetCidrReservationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SubnetCidrReservation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SubnetCidrReservation resource accepts the following input properties:

    Cidr string
    The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
    ReservationType Pulumi.AwsNative.Ec2.SubnetCidrReservationReservationType
    The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
    SubnetId string
    The identifier of the subnet the CIDR range is reserved in.
    Description string
    The description of the subnet CIDR reservation.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    The tags assigned to the subnet CIDR reservation.
    Cidr string
    The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
    ReservationType SubnetCidrReservationReservationType
    The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
    SubnetId string
    The identifier of the subnet the CIDR range is reserved in.
    Description string
    The description of the subnet CIDR reservation.
    Tags TagArgs
    The tags assigned to the subnet CIDR reservation.
    cidr string
    The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
    reservation_type "prefix" | "explicit"
    The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
    subnet_id string
    The identifier of the subnet the CIDR range is reserved in.
    description string
    The description of the subnet CIDR reservation.
    tags list(object)
    The tags assigned to the subnet CIDR reservation.
    cidr String
    The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
    reservationType SubnetCidrReservationReservationType
    The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
    subnetId String
    The identifier of the subnet the CIDR range is reserved in.
    description String
    The description of the subnet CIDR reservation.
    tags List<Tag>
    The tags assigned to the subnet CIDR reservation.
    cidr string
    The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
    reservationType SubnetCidrReservationReservationType
    The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
    subnetId string
    The identifier of the subnet the CIDR range is reserved in.
    description string
    The description of the subnet CIDR reservation.
    tags Tag[]
    The tags assigned to the subnet CIDR reservation.
    cidr str
    The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
    reservation_type SubnetCidrReservationReservationType
    The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
    subnet_id str
    The identifier of the subnet the CIDR range is reserved in.
    description str
    The description of the subnet CIDR reservation.
    tags Sequence[TagArgs]
    The tags assigned to the subnet CIDR reservation.
    cidr String
    The IPv4 or IPv6 CIDR range to reserve. Must lie inside the subnet's CIDR block and must not overlap an existing reservation. Supply an IPv6 range exactly as the service returns it: Amazon EC2 stores an IPv6 CIDR in RFC 5952 compressed form, and a noncanonical spelling of the same range is reported as drift because this property is create-only and read back.
    reservationType "prefix" | "explicit"
    The type of reservation. A prefix reservation is used for an IPv6 prefix delegated to a network interface; an explicit reservation is used for a range that Amazon EC2 must not assign automatically.
    subnetId String
    The identifier of the subnet the CIDR range is reserved in.
    description String
    The description of the subnet CIDR reservation.
    tags List<Property Map>
    The tags assigned to the subnet CIDR reservation.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SubnetCidrReservation resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    The identifier of the AWS account that owns the subnet CIDR reservation.
    SubnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    Arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    The identifier of the AWS account that owns the subnet CIDR reservation.
    SubnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    id string
    The provider-assigned unique ID for this managed resource.
    owner_id string
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnet_cidr_reservation_id string
    The identifier of the subnet CIDR reservation.
    arn String
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnetCidrReservationId String
    The identifier of the subnet CIDR reservation.
    arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerId string
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    arn str
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_id str
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnet_cidr_reservation_id str
    The identifier of the subnet CIDR reservation.
    arn String
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnetCidrReservationId String
    The identifier of the subnet CIDR reservation.

    Supporting Types

    SubnetCidrReservationReservationType, SubnetCidrReservationReservationTypeArgs

    Prefix
    prefix
    Explicit
    explicit
    SubnetCidrReservationReservationTypePrefix
    prefix
    SubnetCidrReservationReservationTypeExplicit
    explicit
    "prefix"
    prefix
    "explicit"
    explicit
    Prefix
    prefix
    Explicit
    explicit
    Prefix
    prefix
    Explicit
    explicit
    PREFIX
    prefix
    EXPLICIT
    explicit
    "prefix"
    prefix
    "explicit"
    explicit

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.81.0
    published on Monday, Sep 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial