| 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.ApiGatewayV2.UpdateModel
Description
Updates a Model.
Synopsis
- data UpdateModel = UpdateModel' {}
- newUpdateModel :: Text -> Text -> UpdateModel
- updateModel_contentType :: Lens' UpdateModel (Maybe Text)
- updateModel_description :: Lens' UpdateModel (Maybe Text)
- updateModel_name :: Lens' UpdateModel (Maybe Text)
- updateModel_schema :: Lens' UpdateModel (Maybe Text)
- updateModel_modelId :: Lens' UpdateModel Text
- updateModel_apiId :: Lens' UpdateModel Text
- data UpdateModelResponse = UpdateModelResponse' {}
- newUpdateModelResponse :: Int -> UpdateModelResponse
- updateModelResponse_contentType :: Lens' UpdateModelResponse (Maybe Text)
- updateModelResponse_description :: Lens' UpdateModelResponse (Maybe Text)
- updateModelResponse_modelId :: Lens' UpdateModelResponse (Maybe Text)
- updateModelResponse_name :: Lens' UpdateModelResponse (Maybe Text)
- updateModelResponse_schema :: Lens' UpdateModelResponse (Maybe Text)
- updateModelResponse_httpStatus :: Lens' UpdateModelResponse Int
Creating a Request
data UpdateModel Source #
Updates a Model.
See: newUpdateModel smart constructor.
Constructors
| UpdateModel' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateModel |
Create a value of UpdateModel 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:
UpdateModel, updateModel_contentType - The content-type for the model, for example, "application/json".
UpdateModel, updateModel_description - The description of the model.
UpdateModel, updateModel_name - The name of the model.
UpdateModel, updateModel_schema - The schema for the model. For application/json models, this should be
JSON schema draft 4 model.
UpdateModel, updateModel_modelId - The model ID.
UpdateModel, updateModel_apiId - The API identifier.
Request Lenses
updateModel_contentType :: Lens' UpdateModel (Maybe Text) Source #
The content-type for the model, for example, "application/json".
updateModel_description :: Lens' UpdateModel (Maybe Text) Source #
The description of the model.
updateModel_name :: Lens' UpdateModel (Maybe Text) Source #
The name of the model.
updateModel_schema :: Lens' UpdateModel (Maybe Text) Source #
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
updateModel_modelId :: Lens' UpdateModel Text Source #
The model ID.
updateModel_apiId :: Lens' UpdateModel Text Source #
The API identifier.
Destructuring the Response
data UpdateModelResponse Source #
See: newUpdateModelResponse smart constructor.
Constructors
| UpdateModelResponse' | |
Fields
| |
Instances
newUpdateModelResponse Source #
Arguments
| :: Int | |
| -> UpdateModelResponse |
Create a value of UpdateModelResponse 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:
UpdateModel, updateModelResponse_contentType - The content-type for the model, for example, "application/json".
UpdateModel, updateModelResponse_description - The description of the model.
UpdateModel, updateModelResponse_modelId - The model identifier.
UpdateModel, updateModelResponse_name - The name of the model. Must be alphanumeric.
UpdateModel, updateModelResponse_schema - The schema for the model. For application/json models, this should be
JSON schema draft 4 model.
$sel:httpStatus:UpdateModelResponse', updateModelResponse_httpStatus - The response's http status code.
Response Lenses
updateModelResponse_contentType :: Lens' UpdateModelResponse (Maybe Text) Source #
The content-type for the model, for example, "application/json".
updateModelResponse_description :: Lens' UpdateModelResponse (Maybe Text) Source #
The description of the model.
updateModelResponse_modelId :: Lens' UpdateModelResponse (Maybe Text) Source #
The model identifier.
updateModelResponse_name :: Lens' UpdateModelResponse (Maybe Text) Source #
The name of the model. Must be alphanumeric.
updateModelResponse_schema :: Lens' UpdateModelResponse (Maybe Text) Source #
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
updateModelResponse_httpStatus :: Lens' UpdateModelResponse Int Source #
The response's http status code.