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 of summaries of all vehicles associated with a fleet.
This API operation uses pagination. Specify the nextToken
parameter in
the request to return more results.
This operation returns paginated results.
Synopsis
- data ListVehiclesInFleet = ListVehiclesInFleet' {}
- newListVehiclesInFleet :: Text -> ListVehiclesInFleet
- listVehiclesInFleet_maxResults :: Lens' ListVehiclesInFleet (Maybe Natural)
- listVehiclesInFleet_nextToken :: Lens' ListVehiclesInFleet (Maybe Text)
- listVehiclesInFleet_fleetId :: Lens' ListVehiclesInFleet Text
- data ListVehiclesInFleetResponse = ListVehiclesInFleetResponse' {}
- newListVehiclesInFleetResponse :: Int -> ListVehiclesInFleetResponse
- listVehiclesInFleetResponse_nextToken :: Lens' ListVehiclesInFleetResponse (Maybe Text)
- listVehiclesInFleetResponse_vehicles :: Lens' ListVehiclesInFleetResponse (Maybe [Text])
- listVehiclesInFleetResponse_httpStatus :: Lens' ListVehiclesInFleetResponse Int
Creating a Request
data ListVehiclesInFleet Source #
See: newListVehiclesInFleet
smart constructor.
ListVehiclesInFleet' | |
|
Instances
newListVehiclesInFleet Source #
Create a value of ListVehiclesInFleet
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:maxResults:ListVehiclesInFleet'
, listVehiclesInFleet_maxResults
- The maximum number of items to return, between 1 and 100, inclusive.
ListVehiclesInFleet
, listVehiclesInFleet_nextToken
- A pagination token for the next set of results.
If the results of a search are large, only a portion of the results are
returned, and a nextToken
pagination token is returned in the
response. To retrieve the next set of results, reissue the search
request and include the returned token. When all results have been
returned, the response does not contain a pagination token value.
$sel:fleetId:ListVehiclesInFleet'
, listVehiclesInFleet_fleetId
- The ID of a fleet.
Request Lenses
listVehiclesInFleet_maxResults :: Lens' ListVehiclesInFleet (Maybe Natural) Source #
The maximum number of items to return, between 1 and 100, inclusive.
listVehiclesInFleet_nextToken :: Lens' ListVehiclesInFleet (Maybe Text) Source #
A pagination token for the next set of results.
If the results of a search are large, only a portion of the results are
returned, and a nextToken
pagination token is returned in the
response. To retrieve the next set of results, reissue the search
request and include the returned token. When all results have been
returned, the response does not contain a pagination token value.
listVehiclesInFleet_fleetId :: Lens' ListVehiclesInFleet Text Source #
The ID of a fleet.
Destructuring the Response
data ListVehiclesInFleetResponse Source #
See: newListVehiclesInFleetResponse
smart constructor.
Instances
newListVehiclesInFleetResponse Source #
Create a value of ListVehiclesInFleetResponse
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:
ListVehiclesInFleet
, listVehiclesInFleetResponse_nextToken
- The token to retrieve the next set of results, or null
if there are no
more results.
$sel:vehicles:ListVehiclesInFleetResponse'
, listVehiclesInFleetResponse_vehicles
- A list of vehicles associated with the fleet.
$sel:httpStatus:ListVehiclesInFleetResponse'
, listVehiclesInFleetResponse_httpStatus
- The response's http status code.
Response Lenses
listVehiclesInFleetResponse_nextToken :: Lens' ListVehiclesInFleetResponse (Maybe Text) Source #
The token to retrieve the next set of results, or null
if there are no
more results.
listVehiclesInFleetResponse_vehicles :: Lens' ListVehiclesInFleetResponse (Maybe [Text]) Source #
A list of vehicles associated with the fleet.
listVehiclesInFleetResponse_httpStatus :: Lens' ListVehiclesInFleetResponse Int Source #
The response's http status code.