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

Description

 
Synopsis

Documentation

data State Source #

Information that defines a state of a detector.

See: newState smart constructor.

Constructors

State' 

Fields

Instances

Instances details
Eq State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Methods

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

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

Read State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Show State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

Generic State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Associated Types

type Rep State :: Type -> Type #

Methods

from :: State -> Rep State x #

to :: Rep State x -> State #

NFData State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Methods

rnf :: State -> () #

Hashable State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Methods

hashWithSalt :: Int -> State -> Int #

hash :: State -> Int #

ToJSON State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

FromJSON State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

type Rep State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

type Rep State = D1 ('MetaData "State" "Amazonka.IoTEvents.Types.State" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "State'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "onEnter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OnEnterLifecycle)) :*: S1 ('MetaSel ('Just "onInput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OnInputLifecycle))) :*: (S1 ('MetaSel ('Just "onExit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OnExitLifecycle)) :*: S1 ('MetaSel ('Just "stateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newState Source #

Create a value of State 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:onEnter:State', state_onEnter - When entering this state, perform these actions if the condition is TRUE.

$sel:onInput:State', state_onInput - When an input is received and the condition is TRUE, perform the specified actions.

$sel:onExit:State', state_onExit - When exiting this state, perform these actions if the specified condition is TRUE.

$sel:stateName:State', state_stateName - The name of the state.

state_onEnter :: Lens' State (Maybe OnEnterLifecycle) Source #

When entering this state, perform these actions if the condition is TRUE.

state_onInput :: Lens' State (Maybe OnInputLifecycle) Source #

When an input is received and the condition is TRUE, perform the specified actions.

state_onExit :: Lens' State (Maybe OnExitLifecycle) Source #

When exiting this state, perform these actions if the specified condition is TRUE.

state_stateName :: Lens' State Text Source #

The name of the state.