amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeFleets

Description

Describes the specified EC2 Fleets or all of your EC2 Fleets.

For more information, see Monitor your EC2 Fleet in the Amazon EC2 User Guide.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeFleets Source #

See: newDescribeFleets smart constructor.

Constructors

DescribeFleets' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • filters :: Maybe [Filter]

    The filters.

    • activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment | pending-termination | fulfilled).
    • excess-capacity-termination-policy - Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true | false).
    • fleet-state - The state of the EC2 Fleet (submitted | active | deleted | failed | deleted-running | deleted-terminating | modifying).
    • replace-unhealthy-instances - Indicates whether EC2 Fleet should replace unhealthy instances (true | false).
    • type - The type of request (instant | request | maintain).
  • fleetIds :: Maybe [Text]

    The IDs of the EC2 Fleets.

    If a fleet is of type instant, you must specify the fleet ID, otherwise it does not appear in the response.

  • maxResults :: Maybe Int

    The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

  • nextToken :: Maybe Text

    The token for the next set of results.

Instances

Instances details
ToHeaders DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

ToPath DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

ToQuery DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

AWSPager DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

AWSRequest DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Associated Types

type AWSResponse DescribeFleets #

Generic DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Associated Types

type Rep DescribeFleets :: Type -> Type #

Read DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Show DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

NFData DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Methods

rnf :: DescribeFleets -> () #

Eq DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Hashable DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

type AWSResponse DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

type Rep DescribeFleets Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

type Rep DescribeFleets = D1 ('MetaData "DescribeFleets" "Amazonka.EC2.DescribeFleets" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeFleets'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "fleetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDescribeFleets :: DescribeFleets Source #

Create a value of DescribeFleets with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:DescribeFleets', describeFleets_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:filters:DescribeFleets', describeFleets_filters - The filters.

  • activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment | pending-termination | fulfilled).
  • excess-capacity-termination-policy - Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true | false).
  • fleet-state - The state of the EC2 Fleet (submitted | active | deleted | failed | deleted-running | deleted-terminating | modifying).
  • replace-unhealthy-instances - Indicates whether EC2 Fleet should replace unhealthy instances (true | false).
  • type - The type of request (instant | request | maintain).

$sel:fleetIds:DescribeFleets', describeFleets_fleetIds - The IDs of the EC2 Fleets.

If a fleet is of type instant, you must specify the fleet ID, otherwise it does not appear in the response.

$sel:maxResults:DescribeFleets', describeFleets_maxResults - The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

DescribeFleets, describeFleets_nextToken - The token for the next set of results.

Request Lenses

describeFleets_dryRun :: Lens' DescribeFleets (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

describeFleets_filters :: Lens' DescribeFleets (Maybe [Filter]) Source #

The filters.

  • activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment | pending-termination | fulfilled).
  • excess-capacity-termination-policy - Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true | false).
  • fleet-state - The state of the EC2 Fleet (submitted | active | deleted | failed | deleted-running | deleted-terminating | modifying).
  • replace-unhealthy-instances - Indicates whether EC2 Fleet should replace unhealthy instances (true | false).
  • type - The type of request (instant | request | maintain).

describeFleets_fleetIds :: Lens' DescribeFleets (Maybe [Text]) Source #

The IDs of the EC2 Fleets.

If a fleet is of type instant, you must specify the fleet ID, otherwise it does not appear in the response.

describeFleets_maxResults :: Lens' DescribeFleets (Maybe Int) Source #

The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

describeFleets_nextToken :: Lens' DescribeFleets (Maybe Text) Source #

The token for the next set of results.

Destructuring the Response

data DescribeFleetsResponse Source #

See: newDescribeFleetsResponse smart constructor.

Constructors

DescribeFleetsResponse' 

Fields

Instances

Instances details
Generic DescribeFleetsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Associated Types

type Rep DescribeFleetsResponse :: Type -> Type #

Read DescribeFleetsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Show DescribeFleetsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

NFData DescribeFleetsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

Methods

rnf :: DescribeFleetsResponse -> () #

Eq DescribeFleetsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

type Rep DescribeFleetsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleets

type Rep DescribeFleetsResponse = D1 ('MetaData "DescribeFleetsResponse" "Amazonka.EC2.DescribeFleets" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeFleetsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fleets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FleetData])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeFleetsResponse Source #

Create a value of DescribeFleetsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:fleets:DescribeFleetsResponse', describeFleetsResponse_fleets - Information about the EC2 Fleets.

DescribeFleets, describeFleetsResponse_nextToken - The token for the next set of results.

$sel:httpStatus:DescribeFleetsResponse', describeFleetsResponse_httpStatus - The response's http status code.

Response Lenses