AWS::IoT::TopicRuleUse the `AWS::IoT::TopicRule` resource to declare an AWS IoT rule. For information about working with AWS IoT rules, see [Rules for AWS IoT](https://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html) in the *AWS IoT Developer Guide* .
import { CfnTopicRule } from 'aws-cdk-lib/aws-iot';Or use the module namespace:
import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnTopicRuleConfiguration passed to the constructor as CfnTopicRuleProps.
topicRulePayloadRequiredIResolvable | TopicRulePayloadPropertyThe rule payload.
ruleNameOptionalstringThe name of the rule.
tagsOptionalCfnTag[]Metadata which can be used to manage the topic rule. > For URI Request parameters use format: ...key1=value1&key2=value2... > > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..." > > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotAWS::IoT::TopicRule