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 version of the model using the specified model type and model id.
Synopsis
- data CreateModelVersion = CreateModelVersion' {}
- newCreateModelVersion :: Text -> ModelTypeEnum -> TrainingDataSourceEnum -> TrainingDataSchema -> CreateModelVersion
- createModelVersion_externalEventsDetail :: Lens' CreateModelVersion (Maybe ExternalEventsDetail)
- createModelVersion_ingestedEventsDetail :: Lens' CreateModelVersion (Maybe IngestedEventsDetail)
- createModelVersion_tags :: Lens' CreateModelVersion (Maybe [Tag])
- createModelVersion_modelId :: Lens' CreateModelVersion Text
- createModelVersion_modelType :: Lens' CreateModelVersion ModelTypeEnum
- createModelVersion_trainingDataSource :: Lens' CreateModelVersion TrainingDataSourceEnum
- createModelVersion_trainingDataSchema :: Lens' CreateModelVersion TrainingDataSchema
- data CreateModelVersionResponse = CreateModelVersionResponse' {}
- newCreateModelVersionResponse :: Int -> CreateModelVersionResponse
- createModelVersionResponse_status :: Lens' CreateModelVersionResponse (Maybe Text)
- createModelVersionResponse_modelType :: Lens' CreateModelVersionResponse (Maybe ModelTypeEnum)
- createModelVersionResponse_modelId :: Lens' CreateModelVersionResponse (Maybe Text)
- createModelVersionResponse_modelVersionNumber :: Lens' CreateModelVersionResponse (Maybe Text)
- createModelVersionResponse_httpStatus :: Lens' CreateModelVersionResponse Int
Creating a Request
data CreateModelVersion Source #
See: newCreateModelVersion
smart constructor.
CreateModelVersion' | |
|
Instances
newCreateModelVersion Source #
Create a value of CreateModelVersion
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:externalEventsDetail:CreateModelVersion'
, createModelVersion_externalEventsDetail
- Details of the external events data used for model version training.
Required if trainingDataSource
is EXTERNAL_EVENTS
.
$sel:ingestedEventsDetail:CreateModelVersion'
, createModelVersion_ingestedEventsDetail
- Details of the ingested events data used for model version training.
Required if trainingDataSource
is INGESTED_EVENTS
.
$sel:tags:CreateModelVersion'
, createModelVersion_tags
- A collection of key and value pairs.
$sel:modelId:CreateModelVersion'
, createModelVersion_modelId
- The model ID.
$sel:modelType:CreateModelVersion'
, createModelVersion_modelType
- The model type.
$sel:trainingDataSource:CreateModelVersion'
, createModelVersion_trainingDataSource
- The training data source location in Amazon S3.
$sel:trainingDataSchema:CreateModelVersion'
, createModelVersion_trainingDataSchema
- The training data schema.
Request Lenses
createModelVersion_externalEventsDetail :: Lens' CreateModelVersion (Maybe ExternalEventsDetail) Source #
Details of the external events data used for model version training.
Required if trainingDataSource
is EXTERNAL_EVENTS
.
createModelVersion_ingestedEventsDetail :: Lens' CreateModelVersion (Maybe IngestedEventsDetail) Source #
Details of the ingested events data used for model version training.
Required if trainingDataSource
is INGESTED_EVENTS
.
createModelVersion_tags :: Lens' CreateModelVersion (Maybe [Tag]) Source #
A collection of key and value pairs.
createModelVersion_modelId :: Lens' CreateModelVersion Text Source #
The model ID.
createModelVersion_modelType :: Lens' CreateModelVersion ModelTypeEnum Source #
The model type.
createModelVersion_trainingDataSource :: Lens' CreateModelVersion TrainingDataSourceEnum Source #
The training data source location in Amazon S3.
createModelVersion_trainingDataSchema :: Lens' CreateModelVersion TrainingDataSchema Source #
The training data schema.
Destructuring the Response
data CreateModelVersionResponse Source #
See: newCreateModelVersionResponse
smart constructor.
CreateModelVersionResponse' | |
|
Instances
newCreateModelVersionResponse Source #
Create a value of CreateModelVersionResponse
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:status:CreateModelVersionResponse'
, createModelVersionResponse_status
- The model version status.
$sel:modelType:CreateModelVersion'
, createModelVersionResponse_modelType
- The model type.
$sel:modelId:CreateModelVersion'
, createModelVersionResponse_modelId
- The model ID.
$sel:modelVersionNumber:CreateModelVersionResponse'
, createModelVersionResponse_modelVersionNumber
- The model version number of the model version created.
$sel:httpStatus:CreateModelVersionResponse'
, createModelVersionResponse_httpStatus
- The response's http status code.
Response Lenses
createModelVersionResponse_status :: Lens' CreateModelVersionResponse (Maybe Text) Source #
The model version status.
createModelVersionResponse_modelType :: Lens' CreateModelVersionResponse (Maybe ModelTypeEnum) Source #
The model type.
createModelVersionResponse_modelId :: Lens' CreateModelVersionResponse (Maybe Text) Source #
The model ID.
createModelVersionResponse_modelVersionNumber :: Lens' CreateModelVersionResponse (Maybe Text) Source #
The model version number of the model version created.
createModelVersionResponse_httpStatus :: Lens' CreateModelVersionResponse Int Source #
The response's http status code.