| 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.APIGateway.GetModels
Description
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.
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:
GetModels, getModels_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
GetModels, getModels_position - The current pagination position in the paged result set.
GetModels, getModels_restApiId - 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 #
The string identifier of the associated RestApi.
Destructuring the Response
data GetModelsResponse Source #
Represents a collection of Model resources.
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:
GetModelsResponse, getModelsResponse_items - The current page of elements from this collection.
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.