interface CfnRuleProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Connect.CfnRuleProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsconnect#CfnRuleProps |
Java | software.amazon.awscdk.services.connect.CfnRuleProps |
Python | aws_cdk.aws_connect.CfnRuleProps |
TypeScript | aws-cdk-lib » aws_connect » CfnRuleProps |
Properties for defining a CfnRule
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
declare const assignContactCategoryActions: any;
declare const emptyValue: any;
declare const endAssociatedTasksActions: any;
const cfnRuleProps: connect.CfnRuleProps = {
actions: {
assignContactCategoryActions: [assignContactCategoryActions],
createCaseActions: [{
fields: [{
id: 'id',
value: {
booleanValue: false,
doubleValue: 123,
emptyValue: emptyValue,
stringValue: 'stringValue',
},
}],
templateId: 'templateId',
}],
endAssociatedTasksActions: [endAssociatedTasksActions],
eventBridgeActions: [{
name: 'name',
}],
sendNotificationActions: [{
content: 'content',
contentType: 'contentType',
deliveryMethod: 'deliveryMethod',
recipient: {
userArns: ['userArns'],
userTags: {
userTagsKey: 'userTags',
},
},
// the properties below are optional
subject: 'subject',
}],
submitAutoEvaluationActions: [{
evaluationFormArn: 'evaluationFormArn',
}],
taskActions: [{
contactFlowArn: 'contactFlowArn',
name: 'name',
// the properties below are optional
description: 'description',
references: {
referencesKey: {
type: 'type',
value: 'value',
},
},
}],
updateCaseActions: [{
fields: [{
id: 'id',
value: {
booleanValue: false,
doubleValue: 123,
emptyValue: emptyValue,
stringValue: 'stringValue',
},
}],
}],
},
function: 'function',
instanceArn: 'instanceArn',
name: 'name',
publishStatus: 'publishStatus',
triggerEventSource: {
eventSourceName: 'eventSourceName',
// the properties below are optional
integrationAssociationArn: 'integrationAssociationArn',
},
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
actions | IResolvable | Actions | A list of actions to be run when the rule is triggered. |
function | string | The conditions of the rule. |
instance | string | The Amazon Resource Name (ARN) of the instance. |
name | string | The name of the rule. |
publish | string | The publish status of the rule. |
trigger | IResolvable | Rule | The event source to trigger the rule. |
tags? | Cfn [] | The tags used to organize, track, or control access for this resource. |
actions
Type:
IResolvable
|
Actions
A list of actions to be run when the rule is triggered.
function
Type:
string
The conditions of the rule.
instanceArn
Type:
string
The Amazon Resource Name (ARN) of the instance.
name
Type:
string
The name of the rule.
publishStatus
Type:
string
The publish status of the rule.
Allowed values : DRAFT
| PUBLISHED
triggerEventSource
Type:
IResolvable
|
Rule
The event source to trigger the rule.
tags?
Type:
Cfn
[]
(optional)
The tags used to organize, track, or control access for this resource.
For example, { "tags": {"key1":"value1", "key2":"value2"} }.