AWS Native is in preview. AWS Classic is fully supported.
aws-native.ec2.getEc2Fleet
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ec2:getEc2Fleet
arguments:
# arguments dictionary
The following arguments are supported:
- Fleet
Id string - The ID of the EC2 Fleet.
- Fleet
Id string - The ID of the EC2 Fleet.
- fleet
Id String - The ID of the EC2 Fleet.
- fleet
Id string - The ID of the EC2 Fleet.
- fleet_
id str - The ID of the EC2 Fleet.
- fleet
Id String - The ID of the EC2 Fleet.
getEc2Fleet Result
The following output properties are available:
- Context string
- Reserved.
- Excess
Capacity 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
.- Fleet
Id string - The ID of the EC2 Fleet.
- Target
Capacity Pulumi.Specification Aws Native. Ec2. Outputs. Ec2Fleet Target Capacity Specification Request - The number of units to request.
- Context string
- 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 string - The ID of the EC2 Fleet.
- Target
Capacity Ec2FleetSpecification Target Capacity Specification Request - The number of units to request.
- context String
- 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 String - The ID of the EC2 Fleet.
- target
Capacity Ec2FleetSpecification Target Capacity Specification Request - The number of units to request.
- context string
- 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 string - The ID of the EC2 Fleet.
- target
Capacity 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.
- excess
Capacity "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
.- fleet
Id String - The ID of the EC2 Fleet.
- target
Capacity Property MapSpecification - The number of units to request.
Supporting Types
Ec2FleetExcessCapacityTerminationPolicy
Ec2FleetTargetCapacitySpecificationRequest
- Total
Target intCapacity - The number of units to request, filled using the default target capacity type.
- Default
Target Pulumi.Capacity Type Aws Native. Ec2. Ec2Fleet 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 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)
- 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)
- total
Target IntegerCapacity - 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 IntegerTarget Capacity - The number of On-Demand units to request.
- spot
Target IntegerCapacity - 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)
- total
Target numberCapacity - 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 numberTarget Capacity - The number of On-Demand units to request.
- spot
Target numberCapacity - 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)
- 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)
- total
Target NumberCapacity - The number of units to request, filled using the default target capacity type.
- default
Target "on-demand" | "spot"Capacity Type - The default target capacity type.
- on
Demand NumberTarget Capacity - The number of On-Demand units to request.
- spot
Target NumberCapacity - The number of Spot units to request.
- target
Capacity "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
AWS Native is in preview. AWS Classic is fully supported.