amazonka-iotevents-2.0: Amazon IoT Events SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
FromJSON State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

ToJSON State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

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 #

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 #

NFData State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Methods

rnf :: State -> () #

Eq State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Methods

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

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

Hashable State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

Methods

hashWithSalt :: Int -> State -> Int #

hash :: State -> Int #

type Rep State Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.State

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:onExit:State', state_onExit - When exiting this state, perform these actions if the specified condition is TRUE.

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

$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_onExit :: Lens' State (Maybe OnExitLifecycle) Source #

When exiting this state, perform these actions if the specified 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_stateName :: Lens' State Text Source #

The name of the state.