IoTRule
The object describing an IoTRule
event source type.
Creates an AWS::IoT::TopicRule resource to declare an Amazon IoT rule. For more information see Amazon CloudFormation documentation
Syntax
To declare this entity in your Amazon Serverless Application Model (Amazon SAM) template, use the following syntax.
YAML
AwsIotSqlVersion:
String
Sql:String
Properties
-
AwsIotSqlVersion
-
The version of the SQL rules engine to use when evaluating the rule.
Type: String
Required: No
Amazon CloudFormation compatibility: This property is passed directly to the
AwsIotSqlVersion
property of anAWS::IoT::TopicRule TopicRulePayload
resource. -
Sql
-
The SQL statement used to query the topic. For more information, see Amazon IoT SQL Reference in the Amazon IoT Developer Guide.
Type: String
Required: Yes
Amazon CloudFormation compatibility: This property is passed directly to the
Sql
property of anAWS::IoT::TopicRule TopicRulePayload
resource.
Examples
IOT Rule
IOT Rule Example
YAML
IoTRule: Type: IoTRule Properties: Sql: SELECT * FROM 'topic/test'