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