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

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.

    Using getSubnetCidrReservation

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSubnetCidrReservation(args: GetSubnetCidrReservationArgs, opts?: InvokeOptions): Promise<GetSubnetCidrReservationResult>
    function getSubnetCidrReservationOutput(args: GetSubnetCidrReservationOutputArgs, opts?: InvokeOutputOptions): Output<GetSubnetCidrReservationResult>
    def get_subnet_cidr_reservation(subnet_cidr_reservation_id: Optional[str] = None,
                                    subnet_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetSubnetCidrReservationResult
    def get_subnet_cidr_reservation_output(subnet_cidr_reservation_id: pulumi.Input[Optional[str]] = None,
                                    subnet_id: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetSubnetCidrReservationResult]
    func LookupSubnetCidrReservation(ctx *Context, args *LookupSubnetCidrReservationArgs, opts ...InvokeOption) (*LookupSubnetCidrReservationResult, error)
    func LookupSubnetCidrReservationOutput(ctx *Context, args *LookupSubnetCidrReservationOutputArgs, opts ...InvokeOption) LookupSubnetCidrReservationResultOutput

    > Note: This function is named LookupSubnetCidrReservation in the Go SDK.

    public static class GetSubnetCidrReservation 
    {
        public static Task<GetSubnetCidrReservationResult> InvokeAsync(GetSubnetCidrReservationArgs args, InvokeOptions? opts = null)
        public static Output<GetSubnetCidrReservationResult> Invoke(GetSubnetCidrReservationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSubnetCidrReservationResult> Invoke(GetSubnetCidrReservationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSubnetCidrReservationResult> getSubnetCidrReservation(GetSubnetCidrReservationArgs args, InvokeOptions options)
    public static Output<GetSubnetCidrReservationResult> getSubnetCidrReservation(GetSubnetCidrReservationArgs args, InvokeOptions options)
    public static Output<GetSubnetCidrReservationResult> getSubnetCidrReservation(GetSubnetCidrReservationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getSubnetCidrReservation
      arguments:
        # arguments dictionary
    data "aws-native_ec2_get_subnet_cidr_reservation" "name" {
        # arguments
    }

    The following arguments are supported:

    SubnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    SubnetId string
    The identifier of the subnet the CIDR range is reserved in.
    SubnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    SubnetId string
    The identifier of the subnet the CIDR range is reserved in.
    subnet_cidr_reservation_id string
    The identifier of the subnet CIDR reservation.
    subnet_id string
    The identifier of the subnet the CIDR range is reserved in.
    subnetCidrReservationId String
    The identifier of the subnet CIDR reservation.
    subnetId String
    The identifier of the subnet the CIDR range is reserved in.
    subnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    subnetId string
    The identifier of the subnet the CIDR range is reserved in.
    subnet_cidr_reservation_id str
    The identifier of the subnet CIDR reservation.
    subnet_id str
    The identifier of the subnet the CIDR range is reserved in.
    subnetCidrReservationId String
    The identifier of the subnet CIDR reservation.
    subnetId String
    The identifier of the subnet the CIDR range is reserved in.

    getSubnetCidrReservation Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    OwnerId string
    The identifier of the AWS account that owns the subnet CIDR reservation.
    SubnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags assigned to the subnet CIDR reservation.
    Arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    OwnerId string
    The identifier of the AWS account that owns the subnet CIDR reservation.
    SubnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    Tags Tag
    The tags assigned to the subnet CIDR reservation.
    arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    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.
    tags list(object)
    The tags assigned to the subnet CIDR reservation.
    arn String
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    ownerId String
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnetCidrReservationId String
    The identifier of the subnet CIDR reservation.
    tags List<Tag>
    The tags assigned to the subnet CIDR reservation.
    arn string
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    ownerId string
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnetCidrReservationId string
    The identifier of the subnet CIDR reservation.
    tags Tag[]
    The tags assigned to the subnet CIDR reservation.
    arn str
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    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.
    tags Sequence[root_Tag]
    The tags assigned to the subnet CIDR reservation.
    arn String
    The Amazon Resource Name (ARN) of the subnet CIDR reservation.
    ownerId String
    The identifier of the AWS account that owns the subnet CIDR reservation.
    subnetCidrReservationId String
    The identifier of the subnet CIDR reservation.
    tags List<Property Map>
    The tags assigned to the subnet CIDR reservation.

    Supporting Types

    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 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