Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves a list that describes one or more specified fleets, if the fleet names are provided. Otherwise, all fleets in the account are described.
This operation returns paginated results.
Synopsis
- data DescribeFleets = DescribeFleets' {}
- newDescribeFleets :: DescribeFleets
- describeFleets_nextToken :: Lens' DescribeFleets (Maybe Text)
- describeFleets_names :: Lens' DescribeFleets (Maybe [Text])
- data DescribeFleetsResponse = DescribeFleetsResponse' {}
- newDescribeFleetsResponse :: Int -> DescribeFleetsResponse
- describeFleetsResponse_nextToken :: Lens' DescribeFleetsResponse (Maybe Text)
- describeFleetsResponse_fleets :: Lens' DescribeFleetsResponse (Maybe [Fleet])
- describeFleetsResponse_httpStatus :: Lens' DescribeFleetsResponse Int
Creating a Request
data DescribeFleets Source #
See: newDescribeFleets
smart constructor.
Instances
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:nextToken:DescribeFleets'
, describeFleets_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If this value is null, it retrieves the first page.
$sel:names:DescribeFleets'
, describeFleets_names
- The names of the fleets to describe.
Request Lenses
describeFleets_nextToken :: Lens' DescribeFleets (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
describeFleets_names :: Lens' DescribeFleets (Maybe [Text]) Source #
The names of the fleets to describe.
Destructuring the Response
data DescribeFleetsResponse Source #
See: newDescribeFleetsResponse
smart constructor.
Instances
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:nextToken:DescribeFleets'
, describeFleetsResponse_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If there are no more pages, this value is null.
$sel:fleets:DescribeFleetsResponse'
, describeFleetsResponse_fleets
- Information about the fleets.
$sel:httpStatus:DescribeFleetsResponse'
, describeFleetsResponse_httpStatus
- The response's http status code.
Response Lenses
describeFleetsResponse_nextToken :: Lens' DescribeFleetsResponse (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
describeFleetsResponse_fleets :: Lens' DescribeFleetsResponse (Maybe [Fleet]) Source #
Information about the fleets.
describeFleetsResponse_httpStatus :: Lens' DescribeFleetsResponse Int Source #
The response's http status code.