We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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 dictionarydata "aws-native_ec2_get_capacity_reservation_fleet" "name" {
# arguments
}The following arguments are supported:
- Capacity
Reservation stringFleet Id - The ID of the Capacity Reservation Fleet.
- Capacity
Reservation stringFleet Id - The ID of the Capacity Reservation Fleet.
- capacity_
reservation_ stringfleet_ id - The ID of the Capacity Reservation Fleet.
- capacity
Reservation StringFleet Id - The ID of the Capacity Reservation Fleet.
- capacity
Reservation stringFleet Id - The ID of the Capacity Reservation Fleet.
- capacity_
reservation_ strfleet_ id - The ID of the Capacity Reservation Fleet.
- capacity
Reservation StringFleet Id - The ID of the Capacity Reservation Fleet.
getCapacityReservationFleet Result
The following output properties are available:
- Capacity
Reservation stringFleet Id - The ID of the Capacity Reservation Fleet.
-
List<Pulumi.
Aws Native. Ec2. Outputs. Capacity Reservation Fleet Tag Specification> - The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
- Total
Target intCapacity - 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 stringFleet Id - The ID of the Capacity Reservation Fleet.
-
[]Capacity
Reservation Fleet Tag Specification - The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
- Total
Target intCapacity - 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_ stringfleet_ id - 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_ numbercapacity - 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 StringFleet Id - The ID of the Capacity Reservation Fleet.
-
List<Capacity
Reservation Fleet Tag Specification> - The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
- total
Target IntegerCapacity - 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 stringFleet Id - The ID of the Capacity Reservation Fleet.
-
Capacity
Reservation Fleet Tag Specification[] - The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
- total
Target numberCapacity - 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_ strfleet_ id - The ID of the Capacity Reservation Fleet.
- tag_
specifications Sequence[CapacityReservation Fleet Tag Specification] - The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
- total_
target_ intcapacity - 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 StringFleet Id - The ID of the Capacity Reservation Fleet.
- List<Property Map>
- The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
- total
Target NumberCapacity - 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
CapacityReservationFleetTagSpecification
- 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 .
-
List<Pulumi.
Aws Native. Ec2. Inputs. Capacity Reservation Fleet Tag> - 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 .
-
[]Capacity
Reservation Fleet Tag - 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 .
- list(object)
- 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 .
-
List<Capacity
Reservation Fleet Tag> - 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 .
-
Capacity
Reservation Fleet Tag[] - 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 .
-
Sequence[Capacity
Reservation Fleet Tag] - 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 .
- List<Property Map>
- The 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 Wednesday, Nov 18, 2026 by Pulumi