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 |
Documentation
data ActiveContext Source #
A context is a variable that contains information about the current
state of the conversation between a user and Amazon Lex. Context can be
set automatically by Amazon Lex when an intent is fulfilled, or it can
be set at runtime using the PutContent
, PutText
, or PutSession
operation.
See: newActiveContext
smart constructor.
ActiveContext' | |
|
Instances
Create a value of ActiveContext
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:name:ActiveContext'
, activeContext_name
- The name of the context.
$sel:timeToLive:ActiveContext'
, activeContext_timeToLive
- The length of time or number of turns that a context remains active.
$sel:parameters:ActiveContext'
, activeContext_parameters
- State variables for the current context. You can use these values as
default values for slots in subsequent events.
activeContext_name :: Lens' ActiveContext Text Source #
The name of the context.
activeContext_timeToLive :: Lens' ActiveContext ActiveContextTimeToLive Source #
The length of time or number of turns that a context remains active.
activeContext_parameters :: Lens' ActiveContext (HashMap Text Text) Source #
State variables for the current context. You can use these values as default values for slots in subsequent events.