Interface ICfnRuleProps
Properties for defining a CfnRule
.
Namespace: Amazon.CDK.AWS.Connect
Assembly: Amazon.CDK.AWS.Connect.dll
Syntax (csharp)
public interface ICfnRuleProps
Syntax (vb)
Public Interface ICfnRuleProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html
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 cfnRuleProps = new CfnRuleProps {
Actions = new ActionsProperty {
AssignContactCategoryActions = new [] { assignContactCategoryActions },
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"
} }
}
} }
},
Function = "function",
InstanceArn = "instanceArn",
Name = "name",
PublishStatus = "publishStatus",
TriggerEventSource = new RuleTriggerEventSourceProperty {
EventSourceName = "eventSourceName",
// the properties below are optional
IntegrationAssociationArn = "integrationAssociationArn"
},
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
Actions | A list of actions to be run when the rule is triggered. |
Function | The conditions of the rule. |
InstanceArn | The Amazon Resource Name (ARN) of the instance. |
Name | The name of the rule. |
PublishStatus | The publish status of the rule. |
Tags | The tags used to organize, track, or control access for this resource. |
TriggerEventSource | The event source to trigger the rule. |
Properties
Actions
A list of actions to be run when the rule is triggered.
object Actions { get; }
Property Value
System.Object
Remarks
Function
The conditions of the rule.
string Function { get; }
Property Value
System.String
Remarks
InstanceArn
The Amazon Resource Name (ARN) of the instance.
string InstanceArn { get; }
Property Value
System.String
Remarks
Name
The name of the rule.
string Name { get; }
Property Value
System.String
Remarks
PublishStatus
The publish status of the rule.
string PublishStatus { get; }
Property Value
System.String
Remarks
Allowed values : DRAFT
| PUBLISHED
Tags
The tags used to organize, track, or control access for this resource.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]
Remarks
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
TriggerEventSource
The event source to trigger the rule.
object TriggerEventSource { get; }
Property Value
System.Object