Skip to content

TopicRule

Source code in docs_src/capo_iot/types/topic_rule.py
class TopicRule(TypedDict, closed=True):
    rule_name: NotRequired["capo_iot.types.rule_name.RuleName"]
    """<p>The name of the rule.</p>"""
    sql: NotRequired["capo_iot.types.sql.SQL"]
    """<p>The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.</p>"""
    description: NotRequired["capo_iot.types.description.Description"]
    """<p>The description of the rule.</p>"""
    created_at: NotRequired["capo_iot.types.created_at_date.CreatedAtDate"]
    """<p>The date and time the rule was created.</p>"""
    actions: NotRequired["capo_iot.types.action_list.ActionList"]
    """<p>The actions associated with the rule.</p>"""
    rule_disabled: NotRequired["capo_iot.types.is_disabled.IsDisabled"]
    """<p>Specifies whether the rule is disabled.</p>"""
    aws_iot_sql_version: NotRequired[
        "capo_iot.types.aws_iot_sql_version.AwsIotSqlVersion"
    ]
    """<p>The version of the SQL rules engine to use when evaluating the rule.</p>"""
    error_action: NotRequired["capo_iot.types.action.Action"]
    """<p>The action to perform when an error occurs.</p>"""

actions instance-attribute

actions: NotRequired[ActionList]

The actions associated with the rule.

aws_iot_sql_version instance-attribute

aws_iot_sql_version: NotRequired[AwsIotSqlVersion]

The version of the SQL rules engine to use when evaluating the rule.

created_at instance-attribute

created_at: NotRequired[CreatedAtDate]

The date and time the rule was created.

description instance-attribute

description: NotRequired[Description]

The description of the rule.

error_action instance-attribute

error_action: NotRequired[Action]

The action to perform when an error occurs.

rule_disabled instance-attribute

rule_disabled: NotRequired[IsDisabled]

Specifies whether the rule is disabled.

rule_name instance-attribute

rule_name: NotRequired[RuleName]

The name of the rule.

sql instance-attribute

sql: NotRequired[SQL]

The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.