update_rule_version
async
¶
update_rule_version(
rule: Rule,
expression: ruleExpression,
language: Language,
outcomes: NonEmptyListOfStrings,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
description: Optional[description] = None,
tags: Optional[tagList] = None,
) -> UpdateRuleVersionResult
Updates a rule version resulting in a new rule version. Updates a rule version resulting in a new rule version (version 1, 2, 3 ...).
Parameters:
-
rule(Rule) –The rule to update.
-
description(Optional[description], default:None) –The description.
-
expression(ruleExpression) –The rule expression.
-
language(Language) –The language.
-
outcomes(NonEmptyListOfStrings) –The outcomes.
-
tags(Optional[tagList], default:None) –The tags to assign to the rule version.
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
5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 | |