| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoTEvents.Types.State
Description
Synopsis
- data State = State' {}
- newState :: Text -> State
- state_onEnter :: Lens' State (Maybe OnEnterLifecycle)
- state_onExit :: Lens' State (Maybe OnExitLifecycle)
- state_onInput :: Lens' State (Maybe OnInputLifecycle)
- state_stateName :: Lens' State Text
Documentation
Information that defines a state of a detector.
See: newState smart constructor.
Constructors
| State' | |
Fields
| |
Instances
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.