update_detector_version
async
¶
update_detector_version(
detector_id: identifier,
detector_version_id: wholeNumberVersionString,
external_model_endpoints: ListOfStrings,
rules: RuleList,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
description: Optional[description] = None,
model_versions: Optional[ListOfModelVersions] = None,
rule_execution_mode: Optional[RuleExecutionMode] = None,
) -> UpdateDetectorVersionResult
Updates a detector version. The detector version attributes that you can update include models, external model endpoints, rules, rule execution mode, and description. You can only update a DRAFT detector version.
Parameters:
-
detector_id(identifier) –The parent detector ID for the detector version you want to update.
-
detector_version_id(wholeNumberVersionString) –The detector version ID.
-
external_model_endpoints(ListOfStrings) –The Amazon SageMaker model endpoints to include in the detector version.
-
rules(RuleList) –The rules to include in the detector version.
-
description(Optional[description], default:None) –The detector version description.
-
model_versions(Optional[ListOfModelVersions], default:None) –The model versions to include in the detector version.
-
rule_execution_mode(Optional[RuleExecutionMode], default:None) –The rule execution mode to add to the detector.
If you specify
FIRST_MATCHED, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.If you specifiy
ALL_MATCHED, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status.The default behavior is
FIRST_MATCHED.
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.
Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 | |