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

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::EC2::CapacityReservationFleet

    Using getCapacityReservationFleet

    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 getCapacityReservationFleet(args: GetCapacityReservationFleetArgs, opts?: InvokeOptions): Promise<GetCapacityReservationFleetResult>
    function getCapacityReservationFleetOutput(args: GetCapacityReservationFleetOutputArgs, opts?: InvokeOutputOptions): Output<GetCapacityReservationFleetResult>
    def get_capacity_reservation_fleet(capacity_reservation_fleet_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetCapacityReservationFleetResult
    def get_capacity_reservation_fleet_output(capacity_reservation_fleet_id: pulumi.Input[Optional[str]] = None,
                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetCapacityReservationFleetResult]
    func LookupCapacityReservationFleet(ctx *Context, args *LookupCapacityReservationFleetArgs, opts ...InvokeOption) (*LookupCapacityReservationFleetResult, error)
    func LookupCapacityReservationFleetOutput(ctx *Context, args *LookupCapacityReservationFleetOutputArgs, opts ...InvokeOption) LookupCapacityReservationFleetResultOutput

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

    public static class GetCapacityReservationFleet 
    {
        public static Task<GetCapacityReservationFleetResult> InvokeAsync(GetCapacityReservationFleetArgs args, InvokeOptions? opts = null)
        public static Output<GetCapacityReservationFleetResult> Invoke(GetCapacityReservationFleetInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCapacityReservationFleetResult> Invoke(GetCapacityReservationFleetInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCapacityReservationFleetResult> getCapacityReservationFleet(GetCapacityReservationFleetArgs args, InvokeOptions options)
    public static Output<GetCapacityReservationFleetResult> getCapacityReservationFleet(GetCapacityReservationFleetArgs args, InvokeOptions options)
    public static Output<GetCapacityReservationFleetResult> getCapacityReservationFleet(GetCapacityReservationFleetArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getCapacityReservationFleet
      arguments:
        # arguments dictionary
    data "aws-native_ec2_get_capacity_reservation_fleet" "name" {
        # arguments
    }

    The following arguments are supported:

    CapacityReservationFleetId string
    The ID of the Capacity Reservation Fleet.
    CapacityReservationFleetId string
    The ID of the Capacity Reservation Fleet.
    capacity_reservation_fleet_id string
    The ID of the Capacity Reservation Fleet.
    capacityReservationFleetId String
    The ID of the Capacity Reservation Fleet.
    capacityReservationFleetId string
    The ID of the Capacity Reservation Fleet.
    capacity_reservation_fleet_id str
    The ID of the Capacity Reservation Fleet.
    capacityReservationFleetId String
    The ID of the Capacity Reservation Fleet.

    getCapacityReservationFleet Result

    The following output properties are available:

    CapacityReservationFleetId string
    The ID of the Capacity Reservation Fleet.
    TagSpecifications List<Pulumi.AwsNative.Ec2.Outputs.CapacityReservationFleetTagSpecification>
    The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
    TotalTargetCapacity int
    The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide .
    CapacityReservationFleetId string
    The ID of the Capacity Reservation Fleet.
    TagSpecifications []CapacityReservationFleetTagSpecification
    The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
    TotalTargetCapacity int
    The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide .
    capacity_reservation_fleet_id string
    The ID of the Capacity Reservation Fleet.
    tag_specifications list(object)
    The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
    total_target_capacity number
    The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide .
    capacityReservationFleetId String
    The ID of the Capacity Reservation Fleet.
    tagSpecifications List<CapacityReservationFleetTagSpecification>
    The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
    totalTargetCapacity Integer
    The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide .
    capacityReservationFleetId string
    The ID of the Capacity Reservation Fleet.
    tagSpecifications CapacityReservationFleetTagSpecification[]
    The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
    totalTargetCapacity number
    The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide .
    capacity_reservation_fleet_id str
    The ID of the Capacity Reservation Fleet.
    tag_specifications Sequence[CapacityReservationFleetTagSpecification]
    The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
    total_target_capacity int
    The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide .
    capacityReservationFleetId String
    The ID of the Capacity Reservation Fleet.
    tagSpecifications List<Property Map>
    The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
    totalTargetCapacity Number
    The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide .

    Supporting Types

    CapacityReservationFleetTag

    Key string
    The tag key.
    Value string
    The tag value.
    Key string
    The tag key.
    Value string
    The tag value.
    key string
    The tag key.
    value string
    The tag value.
    key String
    The tag key.
    value String
    The tag value.
    key string
    The tag key.
    value string
    The tag value.
    key str
    The tag key.
    value str
    The tag value.
    key String
    The tag key.
    value String
    The tag value.

    CapacityReservationFleetTagSpecification

    ResourceType string

    The type of resource to tag on creation. Specify capacity-reservation-fleet .

    To tag a resource after it has been created, see CreateTags .

    Tags List<Pulumi.AwsNative.Ec2.Inputs.CapacityReservationFleetTag>
    The tags to apply to the resource.
    ResourceType string

    The type of resource to tag on creation. Specify capacity-reservation-fleet .

    To tag a resource after it has been created, see CreateTags .

    Tags []CapacityReservationFleetTag
    The tags to apply to the resource.
    resource_type string

    The type of resource to tag on creation. Specify capacity-reservation-fleet .

    To tag a resource after it has been created, see CreateTags .

    tags list(object)
    The tags to apply to the resource.
    resourceType String

    The type of resource to tag on creation. Specify capacity-reservation-fleet .

    To tag a resource after it has been created, see CreateTags .

    tags List<CapacityReservationFleetTag>
    The tags to apply to the resource.
    resourceType string

    The type of resource to tag on creation. Specify capacity-reservation-fleet .

    To tag a resource after it has been created, see CreateTags .

    tags CapacityReservationFleetTag[]
    The tags to apply to the resource.
    resource_type str

    The type of resource to tag on creation. Specify capacity-reservation-fleet .

    To tag a resource after it has been created, see CreateTags .

    tags Sequence[CapacityReservationFleetTag]
    The tags to apply to the resource.
    resourceType String

    The type of resource to tag on creation. Specify capacity-reservation-fleet .

    To tag a resource after it has been created, see CreateTags .

    tags List<Property Map>
    The tags to apply to the resource.

    Package Details

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

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

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial