libZSservicesZSamazonka-robomakerZSamazonka-robomaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.RobOMaker.ListFleets

Description

Returns a list of fleets. You can optionally provide filters to retrieve specific fleets.

This operation returns paginated results.

Synopsis

Creating a Request

data ListFleets Source #

See: newListFleets smart constructor.

Constructors

ListFleets' 

Fields

  • filters :: Maybe (NonEmpty Filter)

    Optional filters to limit results.

    The filter name name is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.

  • nextToken :: Maybe Text

    If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListFleets again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • maxResults :: Maybe Int

    When this parameter is used, ListFleets only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListFleets request with the returned nextToken value. This value can be between 1 and 200. If this parameter is not used, then ListFleets returns up to 200 results and a nextToken value if applicable.

Instances

Instances details
Eq ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Read ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Show ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Generic ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Associated Types

type Rep ListFleets :: Type -> Type #

NFData ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Methods

rnf :: ListFleets -> () #

Hashable ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

ToJSON ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

AWSPager ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

AWSRequest ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Associated Types

type AWSResponse ListFleets #

ToHeaders ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Methods

toHeaders :: ListFleets -> [Header] #

ToPath ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

ToQuery ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

type Rep ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

type Rep ListFleets = D1 ('MetaData "ListFleets" "Amazonka.RobOMaker.ListFleets" "libZSservicesZSamazonka-robomakerZSamazonka-robomaker" 'False) (C1 ('MetaCons "ListFleets'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Filter))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))
type AWSResponse ListFleets Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

newListFleets :: ListFleets Source #

Create a value of ListFleets 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:filters:ListFleets', listFleets_filters - Optional filters to limit results.

The filter name name is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.

$sel:nextToken:ListFleets', listFleets_nextToken - If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListFleets again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

$sel:maxResults:ListFleets', listFleets_maxResults - When this parameter is used, ListFleets only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListFleets request with the returned nextToken value. This value can be between 1 and 200. If this parameter is not used, then ListFleets returns up to 200 results and a nextToken value if applicable.

Request Lenses

listFleets_filters :: Lens' ListFleets (Maybe (NonEmpty Filter)) Source #

Optional filters to limit results.

The filter name name is supported. When filtering, you must use the complete value of the filtered item. You can use up to three filters.

listFleets_nextToken :: Lens' ListFleets (Maybe Text) Source #

If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListFleets again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

listFleets_maxResults :: Lens' ListFleets (Maybe Int) Source #

When this parameter is used, ListFleets only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListFleets request with the returned nextToken value. This value can be between 1 and 200. If this parameter is not used, then ListFleets returns up to 200 results and a nextToken value if applicable.

Destructuring the Response

data ListFleetsResponse Source #

See: newListFleetsResponse smart constructor.

Constructors

ListFleetsResponse' 

Fields

  • fleetDetails :: Maybe [Fleet]

    A list of fleet details meeting the request criteria.

  • nextToken :: Maybe Text

    If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListFleets again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListFleetsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Read ListFleetsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Show ListFleetsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Generic ListFleetsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Associated Types

type Rep ListFleetsResponse :: Type -> Type #

NFData ListFleetsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

Methods

rnf :: ListFleetsResponse -> () #

type Rep ListFleetsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListFleets

type Rep ListFleetsResponse = D1 ('MetaData "ListFleetsResponse" "Amazonka.RobOMaker.ListFleets" "libZSservicesZSamazonka-robomakerZSamazonka-robomaker" 'False) (C1 ('MetaCons "ListFleetsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fleetDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Fleet])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListFleetsResponse Source #

Create a value of ListFleetsResponse 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:fleetDetails:ListFleetsResponse', listFleetsResponse_fleetDetails - A list of fleet details meeting the request criteria.

$sel:nextToken:ListFleets', listFleetsResponse_nextToken - If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListFleets again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

$sel:httpStatus:ListFleetsResponse', listFleetsResponse_httpStatus - The response's http status code.

Response Lenses

listFleetsResponse_fleetDetails :: Lens' ListFleetsResponse (Maybe [Fleet]) Source #

A list of fleet details meeting the request criteria.

listFleetsResponse_nextToken :: Lens' ListFleetsResponse (Maybe Text) Source #

If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListFleets again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.