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 |
Describes existing Models defined for a RestApi resource.
This operation returns paginated results.
Synopsis
- data GetModels = GetModels' {}
- newGetModels :: Text -> GetModels
- getModels_limit :: Lens' GetModels (Maybe Int)
- getModels_position :: Lens' GetModels (Maybe Text)
- getModels_restApiId :: Lens' GetModels Text
- data GetModelsResponse = GetModelsResponse' {}
- newGetModelsResponse :: Int -> GetModelsResponse
- getModelsResponse_items :: Lens' GetModelsResponse (Maybe [Model])
- getModelsResponse_position :: Lens' GetModelsResponse (Maybe Text)
- getModelsResponse_httpStatus :: Lens' GetModelsResponse Int
Creating a Request
Request to list existing Models defined for a RestApi resource.
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:limit:GetModels'
, getModels_limit
- The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetModels'
, getModels_position
- The current pagination position in the paged result set.
$sel:restApiId:GetModels'
, getModels_restApiId
- [Required] The string identifier of the associated RestApi.
Request Lenses
getModels_limit :: Lens' GetModels (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
getModels_position :: Lens' GetModels (Maybe Text) Source #
The current pagination position in the paged result set.
getModels_restApiId :: Lens' GetModels Text Source #
- Required
- The string identifier of the associated RestApi.
Destructuring the Response
data GetModelsResponse Source #
Represents a collection of Model resources.
Method, MethodResponse, Models and Mappings
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 current page of elements from this collection.
$sel:position:GetModels'
, getModelsResponse_position
- Undocumented member.
$sel:httpStatus:GetModelsResponse'
, getModelsResponse_httpStatus
- The response's http status code.
Response Lenses
getModelsResponse_items :: Lens' GetModelsResponse (Maybe [Model]) Source #
The current page of elements from this collection.
getModelsResponse_position :: Lens' GetModelsResponse (Maybe Text) Source #
Undocumented member.
getModelsResponse_httpStatus :: Lens' GetModelsResponse Int Source #
The response's http status code.