update_model_version_status
async
¶
update_model_version_status(
model_id: modelIdentifier,
model_type: ModelTypeEnum,
model_version_number: floatVersionString,
status: ModelVersionStatus,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
) -> UpdateModelVersionStatusResult
Updates the status of a model version.
You can perform the following status updates:
-
Change the
TRAINING_IN_PROGRESSstatus toTRAINING_CANCELLED. -
Change the
TRAINING_COMPLETEstatus toACTIVE. -
Change
ACTIVEtoINACTIVE.
Parameters:
-
model_id(modelIdentifier) –The model ID of the model version to update.
-
model_type(ModelTypeEnum) –The model type.
-
model_version_number(floatVersionString) –The model version number.
-
status(ModelVersionStatus) –The model version status.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
ConflictException–An exception indicating there was a conflict during a delete operation.
-
InternalServerException–An exception indicating an internal server error.
-
ResourceNotFoundException–An exception indicating the specified resource was not found.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.