update_detector_version_status
async
¶
update_detector_version_status(
detector_id: identifier,
detector_version_id: wholeNumberVersionString,
status: DetectorVersionStatus,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
) -> UpdateDetectorVersionStatusResult
Updates the detector version’s status. You can perform the following promotions or demotions using UpdateDetectorVersionStatus: DRAFT to ACTIVE, ACTIVE to INACTIVE, and INACTIVE to ACTIVE.
Parameters:
-
detector_id(identifier) –The detector ID.
-
detector_version_id(wholeNumberVersionString) –The detector version ID.
-
status(DetectorVersionStatus) –The new status.
The only supported values are
ACTIVEandINACTIVE
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.