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 |
Gets the Routes for an API.
This operation returns paginated results.
Synopsis
- data GetRoutes = GetRoutes' {}
- newGetRoutes :: Text -> GetRoutes
- getRoutes_nextToken :: Lens' GetRoutes (Maybe Text)
- getRoutes_maxResults :: Lens' GetRoutes (Maybe Text)
- getRoutes_apiId :: Lens' GetRoutes Text
- data GetRoutesResponse = GetRoutesResponse' {}
- newGetRoutesResponse :: Int -> GetRoutesResponse
- getRoutesResponse_items :: Lens' GetRoutesResponse (Maybe [Route])
- getRoutesResponse_nextToken :: Lens' GetRoutesResponse (Maybe Text)
- getRoutesResponse_httpStatus :: Lens' GetRoutesResponse Int
Creating a Request
See: newGetRoutes
smart constructor.
Instances
Create a value of GetRoutes
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:GetRoutes'
, getRoutes_nextToken
- The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:maxResults:GetRoutes'
, getRoutes_maxResults
- The maximum number of elements to be returned for this resource.
$sel:apiId:GetRoutes'
, getRoutes_apiId
- The API identifier.
Request Lenses
getRoutes_nextToken :: Lens' GetRoutes (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getRoutes_maxResults :: Lens' GetRoutes (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
Destructuring the Response
data GetRoutesResponse Source #
See: newGetRoutesResponse
smart constructor.
Instances
Create a value of GetRoutesResponse
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:items:GetRoutesResponse'
, getRoutesResponse_items
- The elements from this collection.
$sel:nextToken:GetRoutes'
, getRoutesResponse_nextToken
- The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:httpStatus:GetRoutesResponse'
, getRoutesResponse_httpStatus
- The response's http status code.
Response Lenses
getRoutesResponse_items :: Lens' GetRoutesResponse (Maybe [Route]) Source #
The elements from this collection.
getRoutesResponse_nextToken :: Lens' GetRoutesResponse (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getRoutesResponse_httpStatus :: Lens' GetRoutesResponse Int Source #
The response's http status code.