Update Rule
connect_update_rule | R Documentation |
Updates a rule for the specified Amazon Connect instance¶
Description¶
Updates a rule for the specified Amazon Connect instance.
Use the Rules Function language to code conditions for the rule.
Usage¶
Arguments¶
RuleId
[required] A unique identifier for the rule.
InstanceId
[required] The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Name
[required] The name of the rule. You can change the name only if
TriggerEventSource
is one of the following values:OnZendeskTicketCreate
|OnZendeskTicketStatusUpdate
|OnSalesforceCaseCreate
Function
[required] The conditions of the rule.
Actions
[required] A list of actions to be run when the rule is triggered.
PublishStatus
[required] The publish status of the rule.
Value¶
An empty list.
Request syntax¶
svc$update_rule(
RuleId = "string",
InstanceId = "string",
Name = "string",
Function = "string",
Actions = list(
list(
ActionType = "CREATE_TASK"|"ASSIGN_CONTACT_CATEGORY"|"GENERATE_EVENTBRIDGE_EVENT"|"SEND_NOTIFICATION"|"CREATE_CASE"|"UPDATE_CASE"|"END_ASSOCIATED_TASKS"|"SUBMIT_AUTO_EVALUATION",
TaskAction = list(
Name = "string",
Description = "string",
ContactFlowId = "string",
References = list(
list(
Value = "string",
Type = "URL"|"ATTACHMENT"|"NUMBER"|"STRING"|"DATE"|"EMAIL"
)
)
),
EventBridgeAction = list(
Name = "string"
),
AssignContactCategoryAction = list(),
SendNotificationAction = list(
DeliveryMethod = "EMAIL",
Subject = "string",
Content = "string",
ContentType = "PLAIN_TEXT",
Recipient = list(
UserTags = list(
"string"
),
UserIds = list(
"string"
)
)
),
CreateCaseAction = list(
Fields = list(
list(
Id = "string",
Value = list(
BooleanValue = TRUE|FALSE,
DoubleValue = 123.0,
EmptyValue = list(),
StringValue = "string"
)
)
),
TemplateId = "string"
),
UpdateCaseAction = list(
Fields = list(
list(
Id = "string",
Value = list(
BooleanValue = TRUE|FALSE,
DoubleValue = 123.0,
EmptyValue = list(),
StringValue = "string"
)
)
)
),
EndAssociatedTasksAction = list(),
SubmitAutoEvaluationAction = list(
EvaluationFormId = "string"
)
)
),
PublishStatus = "DRAFT"|"PUBLISHED"
)