Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data State = State' {}
- newState :: Text -> State
- state_onEnter :: Lens' State (Maybe OnEnterLifecycle)
- state_onInput :: Lens' State (Maybe OnInputLifecycle)
- state_onExit :: Lens' State (Maybe OnExitLifecycle)
- state_stateName :: Lens' State Text
Documentation
Information that defines a state of a detector.
See: newState
smart constructor.
State' | |
|
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: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
.