class CfnRulePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Connect.Mixins.CfnRulePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsconnect/mixins#CfnRulePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.connect.mixins.CfnRulePropsMixin |
Python | aws_cdk.mixins_preview.aws_connect.mixins.CfnRulePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_connect » mixins » CfnRulePropsMixin |
Implements
IMixin
Extends
Mixin
Creates a rule for the specified Amazon Connect instance.
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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as connect_mixins } from '@aws-cdk/mixins-preview/aws-connect';
declare const assignContactCategoryActions: any;
declare const emptyValue: any;
declare const endAssociatedTasksActions: any;
const cfnRulePropsMixin = new connect_mixins.CfnRulePropsMixin({
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',
},
},
subject: 'subject',
}],
submitAutoEvaluationActions: [{
evaluationFormArn: 'evaluationFormArn',
}],
taskActions: [{
contactFlowArn: 'contactFlowArn',
description: 'description',
name: 'name',
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',
tags: [{
key: 'key',
value: 'value',
}],
triggerEventSource: {
eventSourceName: 'eventSourceName',
integrationAssociationArn: 'integrationAssociationArn',
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnRulePropsMixin(props: CfnRuleMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Rule Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Connect::Rule.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript