Class CfnRule.ActionsProperty
A list of actions to be run when the rule is triggered.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Connect
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ActionsProperty : Object, CfnRule.IActionsProperty
Syntax (vb)
Public Class ActionsProperty
Inherits Object
Implements CfnRule.IActionsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Connect;
var assignContactCategoryActions;
var emptyValue;
var endAssociatedTasksActions;
var actionsProperty = new ActionsProperty {
AssignContactCategoryActions = new [] { assignContactCategoryActions },
CreateCaseActions = new [] { new CreateCaseActionProperty {
Fields = new [] { new FieldProperty {
Id = "id",
Value = new FieldValueProperty {
BooleanValue = false,
DoubleValue = 123,
EmptyValue = emptyValue,
StringValue = "stringValue"
}
} },
TemplateId = "templateId"
} },
EndAssociatedTasksActions = new [] { endAssociatedTasksActions },
EventBridgeActions = new [] { new EventBridgeActionProperty {
Name = "name"
} },
SendNotificationActions = new [] { new SendNotificationActionProperty {
Content = "content",
ContentType = "contentType",
DeliveryMethod = "deliveryMethod",
Recipient = new NotificationRecipientTypeProperty {
UserArns = new [] { "userArns" },
UserTags = new Dictionary<string, string> {
{ "userTagsKey", "userTags" }
}
},
// the properties below are optional
Subject = "subject"
} },
TaskActions = new [] { new TaskActionProperty {
ContactFlowArn = "contactFlowArn",
Name = "name",
// the properties below are optional
Description = "description",
References = new Dictionary<string, object> {
{ "referencesKey", new ReferenceProperty {
Type = "type",
Value = "value"
} }
}
} },
UpdateCaseActions = new [] { new UpdateCaseActionProperty {
Fields = new [] { new FieldProperty {
Id = "id",
Value = new FieldValueProperty {
BooleanValue = false,
DoubleValue = 123,
EmptyValue = emptyValue,
StringValue = "stringValue"
}
} }
} }
};
Synopsis
Constructors
ActionsProperty() |
Properties
AssignContactCategoryActions | Information about the contact category action. |
CreateCaseActions | This action will create a case when a rule is triggered. |
EndAssociatedTasksActions | This action will end associated tasks when a rule is triggered. |
EventBridgeActions | Information about the EventBridge action. |
SendNotificationActions | Information about the send notification action. |
TaskActions | Information about the task action. |
UpdateCaseActions | This action will update a case when a rule is triggered. |
Constructors
ActionsProperty()
public ActionsProperty()
Properties
AssignContactCategoryActions
Information about the contact category action.
public object AssignContactCategoryActions { get; set; }
Property Value
System.Object
Remarks
The syntax can be empty, for example, {}
.
CreateCaseActions
This action will create a case when a rule is triggered.
public object CreateCaseActions { get; set; }
Property Value
System.Object
Remarks
EndAssociatedTasksActions
This action will end associated tasks when a rule is triggered.
public object EndAssociatedTasksActions { get; set; }
Property Value
System.Object
Remarks
EventBridgeActions
Information about the EventBridge action.
public object EventBridgeActions { get; set; }
Property Value
System.Object
Remarks
SendNotificationActions
Information about the send notification action.
public object SendNotificationActions { get; set; }
Property Value
System.Object
Remarks
TaskActions
Information about the task action.
public object TaskActions { get; set; }
Property Value
System.Object
Remarks
This field is required if TriggerEventSource
is one of the following values: OnZendeskTicketCreate
| OnZendeskTicketStatusUpdate
| OnSalesforceCaseCreate
UpdateCaseActions
This action will update a case when a rule is triggered.
public object UpdateCaseActions { get; set; }
Property Value
System.Object