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 Models for an API.
This operation returns paginated results.
Synopsis
- data GetModels = GetModels' {}
- newGetModels :: Text -> GetModels
- getModels_nextToken :: Lens' GetModels (Maybe Text)
- getModels_maxResults :: 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.
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:nextToken:GetModels'
, getModels_nextToken
- The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:maxResults:GetModels'
, getModels_maxResults
- The maximum number of elements to be returned for this resource.
$sel:apiId:GetModels'
, getModels_apiId
- The API identifier.
Request Lenses
getModels_nextToken :: Lens' GetModels (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getModels_maxResults :: Lens' GetModels (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
Destructuring the Response
data GetModelsResponse Source #
See: newGetModelsResponse
smart constructor.
Instances
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.
$sel:nextToken: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.