| 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.GetModels
Description
Gets the Models for an API.
This operation returns paginated results.
Synopsis
- data GetModels = GetModels' {}
- newGetModels :: Text -> GetModels
- getModels_maxResults :: Lens' GetModels (Maybe Text)
- getModels_nextToken :: Lens' GetModels (Maybe Text)
- getModels_apiId :: Lens' GetModels Text
- data GetModelsResponse = GetModelsResponse' {}
- newGetModelsResponse :: Int -> GetModelsResponse
- getModelsResponse_items :: Lens' GetModelsResponse (Maybe [Model])
- getModelsResponse_nextToken :: Lens' GetModelsResponse (Maybe Text)
- getModelsResponse_httpStatus :: Lens' GetModelsResponse Int
Creating a Request
See: newGetModels smart constructor.
Constructors
| GetModels' | |
Instances
Create a value of GetModels 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:GetModels', getModels_maxResults - The maximum number of elements to be returned for this resource.
GetModels, getModels_nextToken - The next page of elements from this collection. Not valid for the last
element of the collection.
GetModels, getModels_apiId - The API identifier.
Request Lenses
getModels_maxResults :: Lens' GetModels (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
getModels_nextToken :: Lens' GetModels (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
Destructuring the Response
data GetModelsResponse Source #
See: newGetModelsResponse smart constructor.
Constructors
| GetModelsResponse' | |
Instances
Arguments
| :: Int | |
| -> GetModelsResponse |
Create a value of GetModelsResponse 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:GetModelsResponse', getModelsResponse_items - The elements from this collection.
GetModels, getModelsResponse_nextToken - The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:httpStatus:GetModelsResponse', getModelsResponse_httpStatus - The response's http status code.
Response Lenses
getModelsResponse_items :: Lens' GetModelsResponse (Maybe [Model]) Source #
The elements from this collection.
getModelsResponse_nextToken :: Lens' GetModelsResponse (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getModelsResponse_httpStatus :: Lens' GetModelsResponse Int Source #
The response's http status code.