update_rule
¶
update_rule(
rule_id: RuleId,
instance_id: InstanceId,
name: RuleName,
function: RuleFunction,
actions: RuleActions,
publish_status: RulePublishStatus,
*,
config_overrides: Optional[ConnectClientConfig] = None,
pre_evaluation_filters: Optional[PreEvaluationFilters] = None,
) -> None
Updates a rule for the specified Connect Customer instance.
Use the Rules Function language to code conditions for the rule.
Parameters:
-
rule_id(RuleId) –A unique identifier for the rule.
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
name(RuleName) –The name of the rule. You can change the name only if
TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate -
function(RuleFunction) –The conditions of the rule.
-
actions(RuleActions) –A list of actions to be run when the rule is triggered.
-
publish_status(RulePublishStatus) –The publish status of the rule.
-
pre_evaluation_filters(Optional[PreEvaluationFilters], default:None) –The pre-evaluation filters for the rule, that restrict the rule to be applied to only certain resources based on the resource's attributes, such as tags assigned to a contact. The pre-evaluation filters are applied even before rule conditions are evaluated and are used to enforce tag-based-access-control while applying rules.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
ResourceConflictException–A resource already has that name.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 28244 28245 28246 28247 28248 28249 28250 28251 28252 28253 28254 28255 28256 28257 28258 28259 28260 28261 28262 28263 28264 28265 28266 28267 28268 28269 28270 28271 28272 28273 28274 28275 28276 28277 28278 28279 28280 28281 28282 28283 28284 28285 28286 | |