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 version. Updating a model version retrains an existing model version using updated training data and produces a new minor version of the model. You can update the training data set location and data access role attributes using this action. This action creates and trains a new minor version of the model, for example version 1.01, 1.02, 1.03.
Synopsis
- data UpdateModelVersion = UpdateModelVersion' {}
- newUpdateModelVersion :: Text -> ModelTypeEnum -> Text -> UpdateModelVersion
- updateModelVersion_externalEventsDetail :: Lens' UpdateModelVersion (Maybe ExternalEventsDetail)
- updateModelVersion_ingestedEventsDetail :: Lens' UpdateModelVersion (Maybe IngestedEventsDetail)
- updateModelVersion_tags :: Lens' UpdateModelVersion (Maybe [Tag])
- updateModelVersion_modelId :: Lens' UpdateModelVersion Text
- updateModelVersion_modelType :: Lens' UpdateModelVersion ModelTypeEnum
- updateModelVersion_majorVersionNumber :: Lens' UpdateModelVersion Text
- data UpdateModelVersionResponse = UpdateModelVersionResponse' {}
- newUpdateModelVersionResponse :: Int -> UpdateModelVersionResponse
- updateModelVersionResponse_status :: Lens' UpdateModelVersionResponse (Maybe Text)
- updateModelVersionResponse_modelType :: Lens' UpdateModelVersionResponse (Maybe ModelTypeEnum)
- updateModelVersionResponse_modelId :: Lens' UpdateModelVersionResponse (Maybe Text)
- updateModelVersionResponse_modelVersionNumber :: Lens' UpdateModelVersionResponse (Maybe Text)
- updateModelVersionResponse_httpStatus :: Lens' UpdateModelVersionResponse Int
Creating a Request
data UpdateModelVersion Source #
See: newUpdateModelVersion
smart constructor.
UpdateModelVersion' | |
|
Instances
newUpdateModelVersion Source #
:: Text | |
-> ModelTypeEnum | |
-> Text | |
-> UpdateModelVersion |
Create a value of UpdateModelVersion
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:UpdateModelVersion'
, updateModelVersion_externalEventsDetail
- The details of the external events data used for training the model
version. Required if trainingDataSource
is EXTERNAL_EVENTS
.
$sel:ingestedEventsDetail:UpdateModelVersion'
, updateModelVersion_ingestedEventsDetail
- The details of the ingested event used for training the model version.
Required if your trainingDataSource
is INGESTED_EVENTS
.
$sel:tags:UpdateModelVersion'
, updateModelVersion_tags
- A collection of key and value pairs.
$sel:modelId:UpdateModelVersion'
, updateModelVersion_modelId
- The model ID.
$sel:modelType:UpdateModelVersion'
, updateModelVersion_modelType
- The model type.
$sel:majorVersionNumber:UpdateModelVersion'
, updateModelVersion_majorVersionNumber
- The major version number.
Request Lenses
updateModelVersion_externalEventsDetail :: Lens' UpdateModelVersion (Maybe ExternalEventsDetail) Source #
The details of the external events data used for training the model
version. Required if trainingDataSource
is EXTERNAL_EVENTS
.
updateModelVersion_ingestedEventsDetail :: Lens' UpdateModelVersion (Maybe IngestedEventsDetail) Source #
The details of the ingested event used for training the model version.
Required if your trainingDataSource
is INGESTED_EVENTS
.
updateModelVersion_tags :: Lens' UpdateModelVersion (Maybe [Tag]) Source #
A collection of key and value pairs.
updateModelVersion_modelId :: Lens' UpdateModelVersion Text Source #
The model ID.
updateModelVersion_modelType :: Lens' UpdateModelVersion ModelTypeEnum Source #
The model type.
updateModelVersion_majorVersionNumber :: Lens' UpdateModelVersion Text Source #
The major version number.
Destructuring the Response
data UpdateModelVersionResponse Source #
See: newUpdateModelVersionResponse
smart constructor.
UpdateModelVersionResponse' | |
|
Instances
newUpdateModelVersionResponse Source #
Create a value of UpdateModelVersionResponse
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:UpdateModelVersionResponse'
, updateModelVersionResponse_status
- The status of the updated model version.
$sel:modelType:UpdateModelVersion'
, updateModelVersionResponse_modelType
- The model type.
$sel:modelId:UpdateModelVersion'
, updateModelVersionResponse_modelId
- The model ID.
$sel:modelVersionNumber:UpdateModelVersionResponse'
, updateModelVersionResponse_modelVersionNumber
- The model version number of the model version updated.
$sel:httpStatus:UpdateModelVersionResponse'
, updateModelVersionResponse_httpStatus
- The response's http status code.
Response Lenses
updateModelVersionResponse_status :: Lens' UpdateModelVersionResponse (Maybe Text) Source #
The status of the updated model version.
updateModelVersionResponse_modelType :: Lens' UpdateModelVersionResponse (Maybe ModelTypeEnum) Source #
The model type.
updateModelVersionResponse_modelId :: Lens' UpdateModelVersionResponse (Maybe Text) Source #
The model ID.
updateModelVersionResponse_modelVersionNumber :: Lens' UpdateModelVersionResponse (Maybe Text) Source #
The model version number of the model version updated.
updateModelVersionResponse_httpStatus :: Lens' UpdateModelVersionResponse Int Source #
The response's http status code.