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 the status of a model version.
You can perform the following status updates:
- Change the
TRAINING_COMPLETE
status toACTIVE
. - Change
ACTIVE
toINACTIVE
.
Synopsis
- data UpdateModelVersionStatus = UpdateModelVersionStatus' {}
- newUpdateModelVersionStatus :: Text -> ModelTypeEnum -> Text -> ModelVersionStatus -> UpdateModelVersionStatus
- updateModelVersionStatus_modelId :: Lens' UpdateModelVersionStatus Text
- updateModelVersionStatus_modelType :: Lens' UpdateModelVersionStatus ModelTypeEnum
- updateModelVersionStatus_modelVersionNumber :: Lens' UpdateModelVersionStatus Text
- updateModelVersionStatus_status :: Lens' UpdateModelVersionStatus ModelVersionStatus
- data UpdateModelVersionStatusResponse = UpdateModelVersionStatusResponse' {
- httpStatus :: Int
- newUpdateModelVersionStatusResponse :: Int -> UpdateModelVersionStatusResponse
- updateModelVersionStatusResponse_httpStatus :: Lens' UpdateModelVersionStatusResponse Int
Creating a Request
data UpdateModelVersionStatus Source #
See: newUpdateModelVersionStatus
smart constructor.
UpdateModelVersionStatus' | |
|
Instances
newUpdateModelVersionStatus Source #
Create a value of UpdateModelVersionStatus
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:UpdateModelVersionStatus'
, updateModelVersionStatus_modelId
- The model ID of the model version to update.
$sel:modelType:UpdateModelVersionStatus'
, updateModelVersionStatus_modelType
- The model type.
$sel:modelVersionNumber:UpdateModelVersionStatus'
, updateModelVersionStatus_modelVersionNumber
- The model version number.
$sel:status:UpdateModelVersionStatus'
, updateModelVersionStatus_status
- The model version status.
Request Lenses
updateModelVersionStatus_modelId :: Lens' UpdateModelVersionStatus Text Source #
The model ID of the model version to update.
updateModelVersionStatus_modelType :: Lens' UpdateModelVersionStatus ModelTypeEnum Source #
The model type.
updateModelVersionStatus_modelVersionNumber :: Lens' UpdateModelVersionStatus Text Source #
The model version number.
updateModelVersionStatus_status :: Lens' UpdateModelVersionStatus ModelVersionStatus Source #
The model version status.
Destructuring the Response
data UpdateModelVersionStatusResponse Source #
See: newUpdateModelVersionStatusResponse
smart constructor.
UpdateModelVersionStatusResponse' | |
|
Instances
Eq UpdateModelVersionStatusResponse Source # | |
Read UpdateModelVersionStatusResponse Source # | |
Show UpdateModelVersionStatusResponse Source # | |
Generic UpdateModelVersionStatusResponse Source # | |
NFData UpdateModelVersionStatusResponse Source # | |
Defined in Amazonka.FraudDetector.UpdateModelVersionStatus rnf :: UpdateModelVersionStatusResponse -> () # | |
type Rep UpdateModelVersionStatusResponse Source # | |
Defined in Amazonka.FraudDetector.UpdateModelVersionStatus type Rep UpdateModelVersionStatusResponse = D1 ('MetaData "UpdateModelVersionStatusResponse" "Amazonka.FraudDetector.UpdateModelVersionStatus" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "UpdateModelVersionStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateModelVersionStatusResponse Source #
Create a value of UpdateModelVersionStatusResponse
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:UpdateModelVersionStatusResponse'
, updateModelVersionStatusResponse_httpStatus
- The response's http status code.
Response Lenses
updateModelVersionStatusResponse_httpStatus :: Lens' UpdateModelVersionStatusResponse Int Source #
The response's http status code.