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

Description

 
Synopsis

Documentation

data Event Source #

Specifies the actions to be performed when the condition evaluates to TRUE.

See: newEvent smart constructor.

Constructors

Event' 

Fields

  • actions :: Maybe [Action]

    The actions to be performed.

  • condition :: Maybe Text

    Optional. The Boolean expression that, when TRUE, causes the actions to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).

  • eventName :: Text

    The name of the event.

Instances

Instances details
Eq Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Read Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

Show Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Generic Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

Associated Types

type Rep Event :: Type -> Type #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

NFData Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

Methods

rnf :: Event -> () #

Hashable Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

Methods

hashWithSalt :: Int -> Event -> Int #

hash :: Event -> Int #

ToJSON Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

FromJSON Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

type Rep Event Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.Event

type Rep Event = D1 ('MetaData "Event" "Amazonka.IoTEvents.Types.Event" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "Event'" 'PrefixI 'True) (S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Action])) :*: (S1 ('MetaSel ('Just "condition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newEvent Source #

Create a value of Event 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:actions:Event', event_actions - The actions to be performed.

$sel:condition:Event', event_condition - Optional. The Boolean expression that, when TRUE, causes the actions to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).

$sel:eventName:Event', event_eventName - The name of the event.

event_actions :: Lens' Event (Maybe [Action]) Source #

The actions to be performed.

event_condition :: Lens' Event (Maybe Text) Source #

Optional. The Boolean expression that, when TRUE, causes the actions to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).

event_eventName :: Lens' Event Text Source #

The name of the event.