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 IDs for all fleets that the vehicle is associated with.
This API operation uses pagination. Specify the nextToken
parameter in
the request to return more results.
This operation returns paginated results.
Synopsis
- data ListFleetsForVehicle = ListFleetsForVehicle' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- vehicleName :: Text
- newListFleetsForVehicle :: Text -> ListFleetsForVehicle
- listFleetsForVehicle_maxResults :: Lens' ListFleetsForVehicle (Maybe Natural)
- listFleetsForVehicle_nextToken :: Lens' ListFleetsForVehicle (Maybe Text)
- listFleetsForVehicle_vehicleName :: Lens' ListFleetsForVehicle Text
- data ListFleetsForVehicleResponse = ListFleetsForVehicleResponse' {}
- newListFleetsForVehicleResponse :: Int -> ListFleetsForVehicleResponse
- listFleetsForVehicleResponse_fleets :: Lens' ListFleetsForVehicleResponse (Maybe [Text])
- listFleetsForVehicleResponse_nextToken :: Lens' ListFleetsForVehicleResponse (Maybe Text)
- listFleetsForVehicleResponse_httpStatus :: Lens' ListFleetsForVehicleResponse Int
Creating a Request
data ListFleetsForVehicle Source #
See: newListFleetsForVehicle
smart constructor.
ListFleetsForVehicle' | |
|
Instances
newListFleetsForVehicle Source #
Create a value of ListFleetsForVehicle
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:ListFleetsForVehicle'
, listFleetsForVehicle_maxResults
- The maximum number of items to return, between 1 and 100, inclusive.
ListFleetsForVehicle
, listFleetsForVehicle_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.
ListFleetsForVehicle
, listFleetsForVehicle_vehicleName
- The ID of the vehicle to retrieve information about.
Request Lenses
listFleetsForVehicle_maxResults :: Lens' ListFleetsForVehicle (Maybe Natural) Source #
The maximum number of items to return, between 1 and 100, inclusive.
listFleetsForVehicle_nextToken :: Lens' ListFleetsForVehicle (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.
listFleetsForVehicle_vehicleName :: Lens' ListFleetsForVehicle Text Source #
The ID of the vehicle to retrieve information about.
Destructuring the Response
data ListFleetsForVehicleResponse Source #
See: newListFleetsForVehicleResponse
smart constructor.
Instances
newListFleetsForVehicleResponse Source #
Create a value of ListFleetsForVehicleResponse
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:ListFleetsForVehicleResponse'
, listFleetsForVehicleResponse_fleets
- A list of fleet IDs that the vehicle is associated with.
ListFleetsForVehicle
, listFleetsForVehicleResponse_nextToken
- The token to retrieve the next set of results, or null
if there are no
more results.
$sel:httpStatus:ListFleetsForVehicleResponse'
, listFleetsForVehicleResponse_httpStatus
- The response's http status code.
Response Lenses
listFleetsForVehicleResponse_fleets :: Lens' ListFleetsForVehicleResponse (Maybe [Text]) Source #
A list of fleet IDs that the vehicle is associated with.
listFleetsForVehicleResponse_nextToken :: Lens' ListFleetsForVehicleResponse (Maybe Text) Source #
The token to retrieve the next set of results, or null
if there are no
more results.
listFleetsForVehicleResponse_httpStatus :: Lens' ListFleetsForVehicleResponse Int Source #
The response's http status code.