| 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 |
Amazonka.WorkLink.ListFleets
Description
Retrieves a list of fleets for the current account and Region.
Synopsis
- data ListFleets = ListFleets' {}
- newListFleets :: ListFleets
- listFleets_nextToken :: Lens' ListFleets (Maybe Text)
- listFleets_maxResults :: Lens' ListFleets (Maybe Natural)
- data ListFleetsResponse = ListFleetsResponse' {
- fleetSummaryList :: Maybe [FleetSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListFleetsResponse :: Int -> ListFleetsResponse
- listFleetsResponse_fleetSummaryList :: Lens' ListFleetsResponse (Maybe [FleetSummary])
- listFleetsResponse_nextToken :: Lens' ListFleetsResponse (Maybe Text)
- listFleetsResponse_httpStatus :: Lens' ListFleetsResponse Int
Creating a Request
data ListFleets Source #
See: newListFleets smart constructor.
Constructors
| ListFleets' | |
Instances
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:nextToken:ListFleets', listFleets_nextToken - The pagination token used to retrieve the next page of results for this
operation. If this value is null, it retrieves the first page.
$sel:maxResults:ListFleets', listFleets_maxResults - The maximum number of results to be included in the next page.
Request Lenses
listFleets_nextToken :: Lens' ListFleets (Maybe Text) Source #
The pagination token used to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
listFleets_maxResults :: Lens' ListFleets (Maybe Natural) Source #
The maximum number of results to be included in the next page.
Destructuring the Response
data ListFleetsResponse Source #
See: newListFleetsResponse smart constructor.
Constructors
| ListFleetsResponse' | |
Fields
| |
Instances
newListFleetsResponse Source #
Arguments
| :: Int | |
| -> ListFleetsResponse |
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:fleetSummaryList:ListFleetsResponse', listFleetsResponse_fleetSummaryList - The summary list of the fleets.
$sel:nextToken:ListFleets', listFleetsResponse_nextToken - The pagination token used to retrieve the next page of results for this
operation. If there are no more pages, this value is null.
$sel:httpStatus:ListFleetsResponse', listFleetsResponse_httpStatus - The response's http status code.
Response Lenses
listFleetsResponse_fleetSummaryList :: Lens' ListFleetsResponse (Maybe [FleetSummary]) Source #
The summary list of the fleets.
listFleetsResponse_nextToken :: Lens' ListFleetsResponse (Maybe Text) Source #
The pagination token used to retrieve the next page of results for this operation. If there are no more pages, this value is null.
listFleetsResponse_httpStatus :: Lens' ListFleetsResponse Int Source #
The response's http status code.