AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Connect::Rule

CfnRule

Creates a rule for the specified Amazon Connect instance.

Import

import { CfnRule } from 'aws-cdk-lib/aws-connect';

Or use the module namespace:

import * as connect from 'aws-cdk-lib/aws-connect';
// connect.CfnRule

Properties

Configuration passed to the constructor as CfnRuleProps.

actionsRequired
IResolvable | ActionsProperty

A list of actions to be run when the rule is triggered.

functionRequired
string

The conditions of the rule.

instanceArnRequired
string

The Amazon Resource Name (ARN) of the instance.

nameRequired
string

The name of the rule.

publishStatusRequired
string

The publish status of the rule. *Allowed values* : `DRAFT` | `PUBLISHED`

triggerEventSourceRequired
IResolvable | RuleTriggerEventSourceProperty

The event source to trigger the rule.

tagsOptional
CfnTag[]

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter