1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getEc2Fleet

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

AWS Cloud Control v1.0.1 published on Tuesday, Oct 1, 2024 by Pulumi

aws-native.ec2.getEc2Fleet

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.0.1 published on Tuesday, Oct 1, 2024 by Pulumi

    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:

    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.
    ExcessCapacityTerminationPolicy Pulumi.AwsNative.Ec2.Ec2FleetExcessCapacityTerminationPolicy

    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.
    TargetCapacitySpecification Pulumi.AwsNative.Ec2.Outputs.Ec2FleetTargetCapacitySpecificationRequest
    The number of units to request.
    Context string
    Reserved.
    ExcessCapacityTerminationPolicy Ec2FleetExcessCapacityTerminationPolicy

    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.
    TargetCapacitySpecification Ec2FleetTargetCapacitySpecificationRequest
    The number of units to request.
    context String
    Reserved.
    excessCapacityTerminationPolicy Ec2FleetExcessCapacityTerminationPolicy

    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.
    targetCapacitySpecification Ec2FleetTargetCapacitySpecificationRequest
    The number of units to request.
    context string
    Reserved.
    excessCapacityTerminationPolicy Ec2FleetExcessCapacityTerminationPolicy

    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.
    targetCapacitySpecification Ec2FleetTargetCapacitySpecificationRequest
    The number of units to request.
    context str
    Reserved.
    excess_capacity_termination_policy Ec2FleetExcessCapacityTerminationPolicy

    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_specification Ec2FleetTargetCapacitySpecificationRequest
    The number of units to request.
    context String
    Reserved.
    excessCapacityTerminationPolicy "termination" | "no-termination"

    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.
    targetCapacitySpecification Property Map
    The number of units to request.

    Supporting Types

    Ec2FleetExcessCapacityTerminationPolicy

    Ec2FleetTargetCapacitySpecificationRequest

    TotalTargetCapacity int
    The number of units to request, filled using the default target capacity type.
    DefaultTargetCapacityType Pulumi.AwsNative.Ec2.Ec2FleetTargetCapacitySpecificationRequestDefaultTargetCapacityType
    The default target capacity type.
    OnDemandTargetCapacity int
    The number of On-Demand units to request.
    SpotTargetCapacity int
    The number of Spot units to request.
    TargetCapacityUnitType Pulumi.AwsNative.Ec2.Ec2FleetTargetCapacitySpecificationRequestTargetCapacityUnitType

    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)

    TotalTargetCapacity int
    The number of units to request, filled using the default target capacity type.
    DefaultTargetCapacityType Ec2FleetTargetCapacitySpecificationRequestDefaultTargetCapacityType
    The default target capacity type.
    OnDemandTargetCapacity int
    The number of On-Demand units to request.
    SpotTargetCapacity int
    The number of Spot units to request.
    TargetCapacityUnitType Ec2FleetTargetCapacitySpecificationRequestTargetCapacityUnitType

    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)

    totalTargetCapacity Integer
    The number of units to request, filled using the default target capacity type.
    defaultTargetCapacityType Ec2FleetTargetCapacitySpecificationRequestDefaultTargetCapacityType
    The default target capacity type.
    onDemandTargetCapacity Integer
    The number of On-Demand units to request.
    spotTargetCapacity Integer
    The number of Spot units to request.
    targetCapacityUnitType Ec2FleetTargetCapacitySpecificationRequestTargetCapacityUnitType

    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)

    totalTargetCapacity number
    The number of units to request, filled using the default target capacity type.
    defaultTargetCapacityType Ec2FleetTargetCapacitySpecificationRequestDefaultTargetCapacityType
    The default target capacity type.
    onDemandTargetCapacity number
    The number of On-Demand units to request.
    spotTargetCapacity number
    The number of Spot units to request.
    targetCapacityUnitType Ec2FleetTargetCapacitySpecificationRequestTargetCapacityUnitType

    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_capacity int
    The number of units to request, filled using the default target capacity type.
    default_target_capacity_type Ec2FleetTargetCapacitySpecificationRequestDefaultTargetCapacityType
    The default target capacity type.
    on_demand_target_capacity int
    The number of On-Demand units to request.
    spot_target_capacity int
    The number of Spot units to request.
    target_capacity_unit_type Ec2FleetTargetCapacitySpecificationRequestTargetCapacityUnitType

    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)

    totalTargetCapacity Number
    The number of units to request, filled using the default target capacity type.
    defaultTargetCapacityType "on-demand" | "spot"
    The default target capacity type.
    onDemandTargetCapacity Number
    The number of On-Demand units to request.
    spotTargetCapacity Number
    The number of Spot units to request.
    targetCapacityUnitType "vcpu" | "memory-mib" | "units"

    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 logo

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

    AWS Cloud Control v1.0.1 published on Tuesday, Oct 1, 2024 by Pulumi