| 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 |
Amazonka.ApiGatewayV2.GetRoutes
Description
Gets the Routes for an API.
This operation returns paginated results.
Synopsis
- data GetRoutes = GetRoutes' {}
- newGetRoutes :: Text -> GetRoutes
- getRoutes_maxResults :: Lens' GetRoutes (Maybe Text)
- getRoutes_nextToken :: 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.
Constructors
| GetRoutes' | |
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:maxResults:GetRoutes', getRoutes_maxResults - The maximum number of elements to be returned for this resource.
GetRoutes, getRoutes_nextToken - The next page of elements from this collection. Not valid for the last
element of the collection.
GetRoutes, getRoutes_apiId - The API identifier.
Request Lenses
getRoutes_maxResults :: Lens' GetRoutes (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
getRoutes_nextToken :: Lens' GetRoutes (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
Destructuring the Response
data GetRoutesResponse Source #
See: newGetRoutesResponse smart constructor.
Constructors
| GetRoutesResponse' | |
Instances
Arguments
| :: Int | |
| -> GetRoutesResponse |
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.
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.