We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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.
- Reservation
Type Pulumi.Aws Native. Ec2. Subnet Cidr Reservation Reservation Type - 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.
-
List<Pulumi.
Aws Native. 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.
- Reservation
Type SubnetCidr Reservation Reservation Type - 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.
-
Tag
Args - 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.
- 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.
- reservation
Type SubnetCidr Reservation Reservation Type - 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.
- 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.
- reservation
Type SubnetCidr Reservation Reservation Type - 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.
- 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 SubnetCidr Reservation Reservation Type - 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.
-
Sequence[Tag
Args] - 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.
- 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.
- Owner
Id string - The identifier of the AWS account that owns the subnet CIDR reservation.
- Subnet
Cidr stringReservation Id - 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 stringReservation Id - 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_ stringreservation_ id - 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 StringReservation Id - 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 stringReservation Id - 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_ strreservation_ id - 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 StringReservation Id - The identifier of the subnet CIDR reservation.
Supporting Types
SubnetCidrReservationReservationType, SubnetCidrReservationReservationTypeArgs
- Prefix
prefix- Explicit
explicit
- Subnet
Cidr Reservation Reservation Type Prefix prefix- Subnet
Cidr Reservation Reservation Type Explicit 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.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi