update_detector_version
¶
update_detector_version(
detector_id: identifier,
detector_version_id: wholeNumberVersionString,
external_model_endpoints: ListOfStrings,
rules: RuleList,
*,
config_overrides: Optional[FraudDetectorClientConfig] = 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/fraud_detector.py
4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 | |