libZSservicesZSamazonka-ioteventsZSamazonka-iotevents
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.IoTEvents.Types.SimpleRule

Description

 
Synopsis

Documentation

data SimpleRule Source #

A rule that compares an input property value to a threshold value with a comparison operator.

See: newSimpleRule smart constructor.

Constructors

SimpleRule' 

Fields

  • inputProperty :: Text

    The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.

  • comparisonOperator :: ComparisonOperator

    The comparison operator.

  • threshold :: Text

    The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.

Instances

Instances details
Eq SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

Read SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

Show SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

Generic SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

Associated Types

type Rep SimpleRule :: Type -> Type #

NFData SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

Methods

rnf :: SimpleRule -> () #

Hashable SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

ToJSON SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

FromJSON SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

type Rep SimpleRule Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SimpleRule

type Rep SimpleRule = D1 ('MetaData "SimpleRule" "Amazonka.IoTEvents.Types.SimpleRule" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "SimpleRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "inputProperty") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "comparisonOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ComparisonOperator) :*: S1 ('MetaSel ('Just "threshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newSimpleRule Source #

Create a value of SimpleRule 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:inputProperty:SimpleRule', simpleRule_inputProperty - The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.

$sel:comparisonOperator:SimpleRule', simpleRule_comparisonOperator - The comparison operator.

$sel:threshold:SimpleRule', simpleRule_threshold - The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.

simpleRule_inputProperty :: Lens' SimpleRule Text Source #

The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.

simpleRule_threshold :: Lens' SimpleRule Text Source #

The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.