Class CfnRuleProps
Properties for defining a CfnRule.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Connect
Assembly: Amazon.CDK.AWS.Connect.dll
Syntax (csharp)
public class CfnRuleProps : Object, ICfnRuleProps
  Syntax (vb)
Public Class CfnRuleProps
    Inherits Object
    Implements 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
Constructors
| CfnRuleProps() | 
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.  | 
    
Constructors
CfnRuleProps()
public CfnRuleProps()
  Properties
Actions
A list of actions to be run when the rule is triggered.
public object Actions { get; set; }
  Property Value
System.Object
Remarks
Function
The conditions of the rule.
public string Function { get; set; }
  Property Value
System.String
Remarks
InstanceArn
The Amazon Resource Name (ARN) of the instance.
public string InstanceArn { get; set; }
  Property Value
System.String
Remarks
Name
The name of the rule.
public string Name { get; set; }
  Property Value
System.String
Remarks
PublishStatus
The publish status of the rule.
public string PublishStatus { get; set; }
  Property Value
System.String
Remarks
Allowed values : DRAFT | PUBLISHED
Tags
The tags used to organize, track, or control access for this resource.
public ICfnTag[] Tags { get; set; }
  Property Value
ICfnTag[]
Remarks
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
TriggerEventSource
The event source to trigger the rule.
public object TriggerEventSource { get; set; }
  Property Value
System.Object