| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@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.
- 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 models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.gmsPosition- The position of the next set of results in theModelsresource to get information about.gmsRestAPIId- TheRestApiidentifier.
Request to list existing Models defined for a RestApi resource.
See: getModels smart constructor.
Request Lenses
gmsLimit :: Lens' GetModels (Maybe Int) #
The maximum number of models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.
gmsPosition :: Lens' GetModels (Maybe Text) #
The position of the next set of results in the Models resource to get information about.
gmsRestAPIId :: Lens' GetModels Text #
The RestApi identifier.
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- Gets the currentModelresource in the collection.gmrsPosition- Undocumented member.gmrsResponseStatus- -- | The response status code.
data GetModelsResponse #
Represents a collection of Model resources.
Method , MethodResponse , Models and Mappings
See: getModelsResponse smart constructor.
Response Lenses
gmrsPosition :: Lens' GetModelsResponse (Maybe Text) #
Undocumented member.
gmrsResponseStatus :: Lens' GetModelsResponse Int #
- - | The response status code.