| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.APIGateway.GetModels
Description
Describes existing Models defined for a RestApi resource.
This operation returns paginated results.
Synopsis
- getModels :: Text -> GetModels
- data GetModels
- gmsLimit :: Lens' GetModels (Maybe Int)
- gmsPosition :: Lens' GetModels (Maybe Text)
- gmsRestAPIId :: Lens' GetModels Text
- getModelsResponse :: Int -> GetModelsResponse
- data GetModelsResponse
- gmrsItems :: Lens' GetModelsResponse [Model]
- gmrsPosition :: Lens' GetModelsResponse (Maybe Text)
- gmrsResponseStatus :: Lens' GetModelsResponse Int
Creating a Request
Creates a value of GetModels with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gmsLimit- The maximum number of returned results per page. The default value is 25 and the maximum value is 500.gmsPosition- The current pagination position in the paged result set.gmsRestAPIId- [Required] The string identifier of the associatedRestApi.
Request to list existing Models defined for a RestApi resource.
See: getModels smart constructor.
Instances
Request Lenses
gmsLimit :: Lens' GetModels (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
gmsPosition :: Lens' GetModels (Maybe Text) Source #
The current pagination position in the paged result set.
gmsRestAPIId :: Lens' GetModels Text Source #
- Required
- The string identifier of the associated
RestApi.
Destructuring the Response
Arguments
| :: Int | |
| -> GetModelsResponse |
Creates a value of GetModelsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gmrsItems- The current page of elements from this collection.gmrsPosition- Undocumented member.gmrsResponseStatus- -- | The response status code.
data GetModelsResponse Source #
Represents a collection of Model resources.
Method , MethodResponse , Models and Mappings
See: getModelsResponse smart constructor.
Instances
Response Lenses
gmrsItems :: Lens' GetModelsResponse [Model] Source #
The current page of elements from this collection.
gmrsPosition :: Lens' GetModelsResponse (Maybe Text) Source #
Undocumented member.
gmrsResponseStatus :: Lens' GetModelsResponse Int Source #
- - | The response status code.