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

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.ec2.getEc2Fleet

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 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
    FleetId string
    fleetId String
    fleetId string
    fleetId String

    getEc2Fleet Result

    The following output properties are available:

    Supporting Types

    Ec2FleetExcessCapacityTerminationPolicy

    Ec2FleetTargetCapacitySpecificationRequest

    Ec2FleetTargetCapacitySpecificationRequestDefaultTargetCapacityType

    Ec2FleetTargetCapacitySpecificationRequestTargetCapacityUnitType

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi