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
28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 | |