update_rule
async
¶
update_rule(
rule_id: RuleId,
instance_id: InstanceId,
name: RuleName,
function: RuleFunction,
actions: RuleActions,
publish_status: RulePublishStatus,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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/async_connect.py
28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 28656 28657 28658 28659 28660 28661 28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 28672 | |