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 |
Creates a Model for an API.
Synopsis
- data CreateModel = CreateModel' {}
- newCreateModel :: Text -> Text -> Text -> CreateModel
- createModel_description :: Lens' CreateModel (Maybe Text)
- createModel_contentType :: Lens' CreateModel (Maybe Text)
- createModel_apiId :: Lens' CreateModel Text
- createModel_schema :: Lens' CreateModel Text
- createModel_name :: Lens' CreateModel Text
- data CreateModelResponse = CreateModelResponse' {}
- newCreateModelResponse :: Int -> CreateModelResponse
- createModelResponse_modelId :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_schema :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_name :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_description :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_contentType :: Lens' CreateModelResponse (Maybe Text)
- createModelResponse_httpStatus :: Lens' CreateModelResponse Int
Creating a Request
data CreateModel Source #
Creates a new Model.
See: newCreateModel
smart constructor.
CreateModel' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateModel |
Create a value of CreateModel
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:description:CreateModel'
, createModel_description
- The description of the model.
$sel:contentType:CreateModel'
, createModel_contentType
- The content-type for the model, for example, "application/json".
$sel:apiId:CreateModel'
, createModel_apiId
- The API identifier.
$sel:schema:CreateModel'
, createModel_schema
- The schema for the model. For application/json models, this should be
JSON schema draft 4 model.
$sel:name:CreateModel'
, createModel_name
- The name of the model. Must be alphanumeric.
Request Lenses
createModel_description :: Lens' CreateModel (Maybe Text) Source #
The description of the model.
createModel_contentType :: Lens' CreateModel (Maybe Text) Source #
The content-type for the model, for example, "application/json".
createModel_apiId :: Lens' CreateModel Text Source #
The API identifier.
createModel_schema :: Lens' CreateModel Text Source #
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
createModel_name :: Lens' CreateModel Text Source #
The name of the model. Must be alphanumeric.
Destructuring the Response
data CreateModelResponse Source #
See: newCreateModelResponse
smart constructor.
CreateModelResponse' | |
|
Instances
newCreateModelResponse Source #
Create a value of CreateModelResponse
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:CreateModelResponse'
, createModelResponse_modelId
- The model identifier.
$sel:schema:CreateModel'
, createModelResponse_schema
- The schema for the model. For application/json models, this should be
JSON schema draft 4 model.
$sel:name:CreateModel'
, createModelResponse_name
- The name of the model. Must be alphanumeric.
$sel:description:CreateModel'
, createModelResponse_description
- The description of the model.
$sel:contentType:CreateModel'
, createModelResponse_contentType
- The content-type for the model, for example, "application/json".
$sel:httpStatus:CreateModelResponse'
, createModelResponse_httpStatus
- The response's http status code.
Response Lenses
createModelResponse_modelId :: Lens' CreateModelResponse (Maybe Text) Source #
The model identifier.
createModelResponse_schema :: Lens' CreateModelResponse (Maybe Text) Source #
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
createModelResponse_name :: Lens' CreateModelResponse (Maybe Text) Source #
The name of the model. Must be alphanumeric.
createModelResponse_description :: Lens' CreateModelResponse (Maybe Text) Source #
The description of the model.
createModelResponse_contentType :: Lens' CreateModelResponse (Maybe Text) Source #
The content-type for the model, for example, "application/json".
createModelResponse_httpStatus :: Lens' CreateModelResponse Int Source #
The response's http status code.