interface TopicRulePayloadProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IoT.CfnTopicRule.TopicRulePayloadProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_TopicRulePayloadProperty |
Java | software.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty |
Python | aws_cdk.aws_iot.CfnTopicRule.TopicRulePayloadProperty |
TypeScript | aws-cdk-lib » aws_iot » CfnTopicRule » TopicRulePayloadProperty |
Describes a rule.
Example
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
Properties
| Name | Type | Description |
|---|---|---|
| actions | IResolvable | (IResolvable | Action)[] | The actions associated with the rule. |
| sql | string | The SQL statement used to query the topic. |
| aws | string | The version of the SQL rules engine to use when evaluating the rule. |
| description? | string | The description of the rule. |
| error | IResolvable | Action | The action to take when an error occurs. |
| rule | boolean | IResolvable | Specifies whether the rule is disabled. |
actions
Type:
IResolvable | (IResolvable | Action)[]
The actions associated with the rule.
sql
Type:
string
The SQL statement used to query the topic.
For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide .
awsIotSqlVersion?
Type:
string
(optional)
The version of the SQL rules engine to use when evaluating the rule.
The default value is 2015-10-08.
description?
Type:
string
(optional)
The description of the rule.
errorAction?
Type:
IResolvable | Action
(optional)
The action to take when an error occurs.
ruleDisabled?
Type:
boolean | IResolvable
(optional)
Specifies whether the rule is disabled.

.NET
Go
Java
Python
TypeScript