We recommend new projects start with resources from the AWS provider.
aws-native.ec2.getEc2Fleet
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EC2::EC2Fleet
Using getEc2Fleet
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 getEc2Fleet(args: GetEc2FleetArgs, opts?: InvokeOptions): Promise<GetEc2FleetResult>
function getEc2FleetOutput(args: GetEc2FleetOutputArgs, opts?: InvokeOptions): Output<GetEc2FleetResult>def get_ec2_fleet(fleet_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetEc2FleetResult
def get_ec2_fleet_output(fleet_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetEc2FleetResult]func LookupEc2Fleet(ctx *Context, args *LookupEc2FleetArgs, opts ...InvokeOption) (*LookupEc2FleetResult, error)
func LookupEc2FleetOutput(ctx *Context, args *LookupEc2FleetOutputArgs, opts ...InvokeOption) LookupEc2FleetResultOutput> Note: This function is named LookupEc2Fleet in the Go SDK.
public static class GetEc2Fleet 
{
    public static Task<GetEc2FleetResult> InvokeAsync(GetEc2FleetArgs args, InvokeOptions? opts = null)
    public static Output<GetEc2FleetResult> Invoke(GetEc2FleetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEc2FleetResult> getEc2Fleet(GetEc2FleetArgs args, InvokeOptions options)
public static Output<GetEc2FleetResult> getEc2Fleet(GetEc2FleetArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:ec2:getEc2Fleet
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FleetId string
- The ID of the EC2 Fleet.
- FleetId string
- The ID of the EC2 Fleet.
- fleetId String
- The ID of the EC2 Fleet.
- fleetId string
- The ID of the EC2 Fleet.
- fleet_id str
- The ID of the EC2 Fleet.
- fleetId String
- The ID of the EC2 Fleet.
getEc2Fleet Result
The following output properties are available:
- Context string
- Reserved.
- ExcessCapacity Pulumi.Termination Policy Aws Native. Ec2. Ec2Fleet Excess Capacity Termination Policy 
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. - Supported only for fleets of type - maintain.
- FleetId string
- The ID of the EC2 Fleet.
- TargetCapacity Pulumi.Specification Aws Native. Ec2. Outputs. Ec2Fleet Target Capacity Specification Request 
- The number of units to request.
- Context string
- Reserved.
- ExcessCapacity Ec2FleetTermination Policy Excess Capacity Termination Policy 
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. - Supported only for fleets of type - maintain.
- FleetId string
- The ID of the EC2 Fleet.
- TargetCapacity Ec2FleetSpecification Target Capacity Specification Request 
- The number of units to request.
- context String
- Reserved.
- excessCapacity Ec2FleetTermination Policy Excess Capacity Termination Policy 
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. - Supported only for fleets of type - maintain.
- fleetId String
- The ID of the EC2 Fleet.
- targetCapacity Ec2FleetSpecification Target Capacity Specification Request 
- The number of units to request.
- context string
- Reserved.
- excessCapacity Ec2FleetTermination Policy Excess Capacity Termination Policy 
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. - Supported only for fleets of type - maintain.
- fleetId string
- The ID of the EC2 Fleet.
- targetCapacity Ec2FleetSpecification Target Capacity Specification Request 
- The number of units to request.
- context str
- Reserved.
- excess_capacity_ Ec2Fleettermination_ policy Excess Capacity Termination Policy 
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. - Supported only for fleets of type - maintain.
- fleet_id str
- The ID of the EC2 Fleet.
- target_capacity_ Ec2Fleetspecification Target Capacity Specification Request 
- The number of units to request.
- context String
- Reserved.
- excessCapacity "termination" | "no-termination"Termination Policy 
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. - Supported only for fleets of type - maintain.
- fleetId String
- The ID of the EC2 Fleet.
- targetCapacity Property MapSpecification 
- The number of units to request.
Supporting Types
Ec2FleetExcessCapacityTerminationPolicy    
Ec2FleetTargetCapacitySpecificationRequest    
- TotalTarget intCapacity 
- The number of units to request, filled using the default target capacity type.
- DefaultTarget Pulumi.Capacity Type Aws Native. Ec2. Ec2Fleet Target Capacity Specification Request Default Target Capacity Type 
- The default target capacity type.
- OnDemand intTarget Capacity 
- The number of On-Demand units to request.
- SpotTarget intCapacity 
- The number of Spot units to request.
- TargetCapacity Pulumi.Unit Type Aws Native. Ec2. Ec2Fleet Target Capacity Specification Request Target Capacity Unit Type 
- The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. - Default: - units(the number of instances)
- TotalTarget intCapacity 
- The number of units to request, filled using the default target capacity type.
- DefaultTarget Ec2FleetCapacity Type Target Capacity Specification Request Default Target Capacity Type 
- The default target capacity type.
- OnDemand intTarget Capacity 
- The number of On-Demand units to request.
- SpotTarget intCapacity 
- The number of Spot units to request.
- TargetCapacity Ec2FleetUnit Type Target Capacity Specification Request Target Capacity Unit Type 
- The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. - Default: - units(the number of instances)
- totalTarget IntegerCapacity 
- The number of units to request, filled using the default target capacity type.
- defaultTarget Ec2FleetCapacity Type Target Capacity Specification Request Default Target Capacity Type 
- The default target capacity type.
- onDemand IntegerTarget Capacity 
- The number of On-Demand units to request.
- spotTarget IntegerCapacity 
- The number of Spot units to request.
- targetCapacity Ec2FleetUnit Type Target Capacity Specification Request Target Capacity Unit Type 
- The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. - Default: - units(the number of instances)
- totalTarget numberCapacity 
- The number of units to request, filled using the default target capacity type.
- defaultTarget Ec2FleetCapacity Type Target Capacity Specification Request Default Target Capacity Type 
- The default target capacity type.
- onDemand numberTarget Capacity 
- The number of On-Demand units to request.
- spotTarget numberCapacity 
- The number of Spot units to request.
- targetCapacity Ec2FleetUnit Type Target Capacity Specification Request Target Capacity Unit Type 
- The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. - Default: - units(the number of instances)
- total_target_ intcapacity 
- The number of units to request, filled using the default target capacity type.
- default_target_ Ec2Fleetcapacity_ type Target Capacity Specification Request Default Target Capacity Type 
- The default target capacity type.
- on_demand_ inttarget_ capacity 
- The number of On-Demand units to request.
- spot_target_ intcapacity 
- The number of Spot units to request.
- target_capacity_ Ec2Fleetunit_ type Target Capacity Specification Request Target Capacity Unit Type 
- The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. - Default: - units(the number of instances)
- totalTarget NumberCapacity 
- The number of units to request, filled using the default target capacity type.
- defaultTarget "on-demand" | "spot"Capacity Type 
- The default target capacity type.
- onDemand NumberTarget Capacity 
- The number of On-Demand units to request.
- spotTarget NumberCapacity 
- The number of Spot units to request.
- targetCapacity "vcpu" | "memory-mib" | "units"Unit Type 
- The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. - Default: - units(the number of instances)
Ec2FleetTargetCapacitySpecificationRequestDefaultTargetCapacityType        
Ec2FleetTargetCapacitySpecificationRequestTargetCapacityUnitType        
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.