Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_names :: Lens' DescribeFleets (Maybe [Text])
- describeFleets_nextToken :: Lens' DescribeFleets (Maybe Text)
- data DescribeFleetsResponse = DescribeFleetsResponse' {}
- newDescribeFleetsResponse :: Int -> DescribeFleetsResponse
- describeFleetsResponse_fleets :: Lens' DescribeFleetsResponse (Maybe [Fleet])
- describeFleetsResponse_nextToken :: Lens' DescribeFleetsResponse (Maybe Text)
- 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:names:DescribeFleets'
, describeFleets_names
- The names of the fleets to describe.
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.
Request Lenses
describeFleets_names :: Lens' DescribeFleets (Maybe [Text]) Source #
The names of the fleets to describe.
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.
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:fleets:DescribeFleetsResponse'
, describeFleetsResponse_fleets
- Information about the fleets.
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:httpStatus:DescribeFleetsResponse'
, describeFleetsResponse_httpStatus
- The response's http status code.
Response Lenses
describeFleetsResponse_fleets :: Lens' DescribeFleetsResponse (Maybe [Fleet]) Source #
Information about the fleets.
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_httpStatus :: Lens' DescribeFleetsResponse Int Source #
The response's http status code.