libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.Types.TopicRule

Description

 
Synopsis

Documentation

data TopicRule Source #

Describes a rule.

See: newTopicRule smart constructor.

Constructors

TopicRule' 

Fields

Instances

Instances details
Eq TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

Read TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

Show TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

Generic TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

Associated Types

type Rep TopicRule :: Type -> Type #

NFData TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

Methods

rnf :: TopicRule -> () #

Hashable TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

FromJSON TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

type Rep TopicRule Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRule

newTopicRule :: TopicRule Source #

Create a value of TopicRule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:createdAt:TopicRule', topicRule_createdAt - The date and time the rule was created.

$sel:actions:TopicRule', topicRule_actions - The actions associated with the rule.

$sel:awsIotSqlVersion:TopicRule', topicRule_awsIotSqlVersion - The version of the SQL rules engine to use when evaluating the rule.

$sel:errorAction:TopicRule', topicRule_errorAction - The action to perform when an error occurs.

$sel:ruleDisabled:TopicRule', topicRule_ruleDisabled - Specifies whether the rule is disabled.

$sel:ruleName:TopicRule', topicRule_ruleName - The name of the rule.

$sel:sql:TopicRule', topicRule_sql - The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.

$sel:description:TopicRule', topicRule_description - The description of the rule.

topicRule_createdAt :: Lens' TopicRule (Maybe UTCTime) Source #

The date and time the rule was created.

topicRule_actions :: Lens' TopicRule (Maybe [Action]) Source #

The actions associated with the rule.

topicRule_awsIotSqlVersion :: Lens' TopicRule (Maybe Text) Source #

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

topicRule_errorAction :: Lens' TopicRule (Maybe Action) Source #

The action to perform when an error occurs.

topicRule_ruleDisabled :: Lens' TopicRule (Maybe Bool) Source #

Specifies whether the rule is disabled.

topicRule_ruleName :: Lens' TopicRule (Maybe Text) Source #

The name of the rule.

topicRule_sql :: Lens' TopicRule (Maybe Text) Source #

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

topicRule_description :: Lens' TopicRule (Maybe Text) Source #

The description of the rule.