create_detector_version
async
¶
create_detector_version(
detector_id: identifier,
rules: RuleList,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
description: Optional[description] = None,
external_model_endpoints: Optional[ListOfStrings] = None,
model_versions: Optional[ListOfModelVersions] = None,
rule_execution_mode: Optional[RuleExecutionMode] = None,
tags: Optional[tagList] = None,
) -> CreateDetectorVersionResult
Creates a detector version. The detector version starts in a DRAFT status.
Parameters:
-
detector_id(identifier) –The ID of the detector under which you want to create a new version.
-
description(Optional[description], default:None) –The description of the detector version.
-
external_model_endpoints(Optional[ListOfStrings], default:None) –The Amazon Sagemaker model endpoints to include in the detector version.
-
rules(RuleList) –The rules to include in the detector version.
-
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 for the rules included in the detector version.
You can define and edit the rule mode at the detector version level, when it is in draft status.
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.The default behavior is
FIRST_MATCHED. -
tags(Optional[tagList], default:None) –A collection of key and value pairs.
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. -
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
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 | |