| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.Types.TopicRulePayload
Description
Synopsis
- data TopicRulePayload = TopicRulePayload' {
- awsIotSqlVersion :: Maybe Text
- description :: Maybe Text
- errorAction :: Maybe Action
- ruleDisabled :: Maybe Bool
- sql :: Text
- actions :: [Action]
- newTopicRulePayload :: Text -> TopicRulePayload
- topicRulePayload_awsIotSqlVersion :: Lens' TopicRulePayload (Maybe Text)
- topicRulePayload_description :: Lens' TopicRulePayload (Maybe Text)
- topicRulePayload_errorAction :: Lens' TopicRulePayload (Maybe Action)
- topicRulePayload_ruleDisabled :: Lens' TopicRulePayload (Maybe Bool)
- topicRulePayload_sql :: Lens' TopicRulePayload Text
- topicRulePayload_actions :: Lens' TopicRulePayload [Action]
Documentation
data TopicRulePayload Source #
Describes a rule.
See: newTopicRulePayload smart constructor.
Constructors
| TopicRulePayload' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> TopicRulePayload |
Create a value of TopicRulePayload 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:awsIotSqlVersion:TopicRulePayload', topicRulePayload_awsIotSqlVersion - The version of the SQL rules engine to use when evaluating the rule.
$sel:description:TopicRulePayload', topicRulePayload_description - The description of the rule.
$sel:errorAction:TopicRulePayload', topicRulePayload_errorAction - The action to take when an error occurs.
$sel:ruleDisabled:TopicRulePayload', topicRulePayload_ruleDisabled - Specifies whether the rule is disabled.
$sel:sql:TopicRulePayload', topicRulePayload_sql - The SQL statement used to query the topic. For more information, see
IoT SQL Reference
in the IoT Developer Guide.
$sel:actions:TopicRulePayload', topicRulePayload_actions - The actions associated with the rule.
topicRulePayload_awsIotSqlVersion :: Lens' TopicRulePayload (Maybe Text) Source #
The version of the SQL rules engine to use when evaluating the rule.
topicRulePayload_description :: Lens' TopicRulePayload (Maybe Text) Source #
The description of the rule.
topicRulePayload_errorAction :: Lens' TopicRulePayload (Maybe Action) Source #
The action to take when an error occurs.
topicRulePayload_ruleDisabled :: Lens' TopicRulePayload (Maybe Bool) Source #
Specifies whether the rule is disabled.
topicRulePayload_sql :: Lens' TopicRulePayload Text Source #
The SQL statement used to query the topic. For more information, see IoT SQL Reference in the IoT Developer Guide.
topicRulePayload_actions :: Lens' TopicRulePayload [Action] Source #
The actions associated with the rule.