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 |
Creates a model using the specified model type.
Synopsis
- data CreateModel = CreateModel' {
- description :: Maybe Text
- tags :: Maybe [Tag]
- modelId :: Text
- modelType :: ModelTypeEnum
- eventTypeName :: Text
- newCreateModel :: Text -> ModelTypeEnum -> Text -> CreateModel
- createModel_description :: Lens' CreateModel (Maybe Text)
- createModel_tags :: Lens' CreateModel (Maybe [Tag])
- createModel_modelId :: Lens' CreateModel Text
- createModel_modelType :: Lens' CreateModel ModelTypeEnum
- createModel_eventTypeName :: Lens' CreateModel Text
- data CreateModelResponse = CreateModelResponse' {
- httpStatus :: Int
- newCreateModelResponse :: Int -> CreateModelResponse
- createModelResponse_httpStatus :: Lens' CreateModelResponse Int
Creating a Request
data CreateModel Source #
See: newCreateModel
smart constructor.
CreateModel' | |
|
Instances
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:
CreateModel
, createModel_description
- The model description.
$sel:tags:CreateModel'
, createModel_tags
- A collection of key and value pairs.
CreateModel
, createModel_modelId
- The model ID.
CreateModel
, createModel_modelType
- The model type.
CreateModel
, createModel_eventTypeName
- The name of the event type.
Request Lenses
createModel_description :: Lens' CreateModel (Maybe Text) Source #
The model description.
createModel_tags :: Lens' CreateModel (Maybe [Tag]) Source #
A collection of key and value pairs.
createModel_modelId :: Lens' CreateModel Text Source #
The model ID.
createModel_modelType :: Lens' CreateModel ModelTypeEnum Source #
The model type.
createModel_eventTypeName :: Lens' CreateModel Text Source #
The name of the event type.
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:httpStatus:CreateModelResponse'
, createModelResponse_httpStatus
- The response's http status code.
Response Lenses
createModelResponse_httpStatus :: Lens' CreateModelResponse Int Source #
The response's http status code.