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.TopicRulePayload

Description

 
Synopsis

Documentation

data TopicRulePayload Source #

Describes a rule.

See: newTopicRulePayload smart constructor.

Constructors

TopicRulePayload' 

Fields

Instances

Instances details
Eq TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

Read TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

Show TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

Generic TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

Associated Types

type Rep TopicRulePayload :: Type -> Type #

NFData TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

Methods

rnf :: TopicRulePayload -> () #

Hashable TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

ToJSON TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

type Rep TopicRulePayload Source # 
Instance details

Defined in Amazonka.IoT.Types.TopicRulePayload

type Rep TopicRulePayload = D1 ('MetaData "TopicRulePayload" "Amazonka.IoT.Types.TopicRulePayload" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "TopicRulePayload'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "awsIotSqlVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "errorAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Action)) :*: S1 ('MetaSel ('Just "ruleDisabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sql") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Action])))))

newTopicRulePayload Source #

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:errorAction:TopicRulePayload', topicRulePayload_errorAction - The action to take when an error occurs.

$sel:ruleDisabled:TopicRulePayload', topicRulePayload_ruleDisabled - Specifies whether the rule is disabled.

$sel:description:TopicRulePayload', topicRulePayload_description - The description of the rule.

$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_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.