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 |
Returns session information for a specified bot, alias, and user ID.
Synopsis
- data GetSession = GetSession' {}
- newGetSession :: Text -> Text -> Text -> GetSession
- getSession_checkpointLabelFilter :: Lens' GetSession (Maybe Text)
- getSession_botName :: Lens' GetSession Text
- getSession_botAlias :: Lens' GetSession Text
- getSession_userId :: Lens' GetSession Text
- data GetSessionResponse = GetSessionResponse' {}
- newGetSessionResponse :: Int -> GetSessionResponse
- getSessionResponse_activeContexts :: Lens' GetSessionResponse (Maybe [ActiveContext])
- getSessionResponse_sessionId :: Lens' GetSessionResponse (Maybe Text)
- getSessionResponse_recentIntentSummaryView :: Lens' GetSessionResponse (Maybe [IntentSummary])
- getSessionResponse_dialogAction :: Lens' GetSessionResponse (Maybe DialogAction)
- getSessionResponse_sessionAttributes :: Lens' GetSessionResponse (Maybe (HashMap Text Text))
- getSessionResponse_httpStatus :: Lens' GetSessionResponse Int
Creating a Request
data GetSession Source #
See: newGetSession
smart constructor.
GetSession' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> GetSession |
Create a value of GetSession
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:checkpointLabelFilter:GetSession'
, getSession_checkpointLabelFilter
- A string used to filter the intents returned in the
recentIntentSummaryView
structure.
When you specify a filter, only intents with their checkpointLabel
field set to that string are returned.
$sel:botName:GetSession'
, getSession_botName
- The name of the bot that contains the session data.
$sel:botAlias:GetSession'
, getSession_botAlias
- The alias in use for the bot that contains the session data.
$sel:userId:GetSession'
, getSession_userId
- The ID of the client application user. Amazon Lex uses this to identify
a user's conversation with your bot.
Request Lenses
getSession_checkpointLabelFilter :: Lens' GetSession (Maybe Text) Source #
A string used to filter the intents returned in the
recentIntentSummaryView
structure.
When you specify a filter, only intents with their checkpointLabel
field set to that string are returned.
getSession_botName :: Lens' GetSession Text Source #
The name of the bot that contains the session data.
getSession_botAlias :: Lens' GetSession Text Source #
The alias in use for the bot that contains the session data.
getSession_userId :: Lens' GetSession Text Source #
The ID of the client application user. Amazon Lex uses this to identify a user's conversation with your bot.
Destructuring the Response
data GetSessionResponse Source #
See: newGetSessionResponse
smart constructor.
GetSessionResponse' | |
|
Instances
newGetSessionResponse Source #
Create a value of GetSessionResponse
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:activeContexts:GetSessionResponse'
, getSessionResponse_activeContexts
- A list of active contexts for the session. A context can be set when an
intent is fulfilled or by calling the PostContent
, PostText
, or
PutSession
operation.
You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
$sel:sessionId:GetSessionResponse'
, getSessionResponse_sessionId
- A unique identifier for the session.
$sel:recentIntentSummaryView:GetSessionResponse'
, getSessionResponse_recentIntentSummaryView
- An array of information about the intents used in the session. The array
can contain a maximum of three summaries. If more than three intents are
used in the session, the recentIntentSummaryView
operation contains
information about the last three intents used.
If you set the checkpointLabelFilter
parameter in the request, the
array contains only the intents with the specified label.
$sel:dialogAction:GetSessionResponse'
, getSessionResponse_dialogAction
- Describes the current state of the bot.
$sel:sessionAttributes:GetSessionResponse'
, getSessionResponse_sessionAttributes
- Map of key/value pairs representing the session-specific context
information. It contains application information passed between Amazon
Lex and a client application.
$sel:httpStatus:GetSessionResponse'
, getSessionResponse_httpStatus
- The response's http status code.
Response Lenses
getSessionResponse_activeContexts :: Lens' GetSessionResponse (Maybe [ActiveContext]) Source #
A list of active contexts for the session. A context can be set when an
intent is fulfilled or by calling the PostContent
, PostText
, or
PutSession
operation.
You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
getSessionResponse_sessionId :: Lens' GetSessionResponse (Maybe Text) Source #
A unique identifier for the session.
getSessionResponse_recentIntentSummaryView :: Lens' GetSessionResponse (Maybe [IntentSummary]) Source #
An array of information about the intents used in the session. The array
can contain a maximum of three summaries. If more than three intents are
used in the session, the recentIntentSummaryView
operation contains
information about the last three intents used.
If you set the checkpointLabelFilter
parameter in the request, the
array contains only the intents with the specified label.
getSessionResponse_dialogAction :: Lens' GetSessionResponse (Maybe DialogAction) Source #
Describes the current state of the bot.
getSessionResponse_sessionAttributes :: Lens' GetSessionResponse (Maybe (HashMap Text Text)) Source #
Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.
getSessionResponse_httpStatus :: Lens' GetSessionResponse Int Source #
The response's http status code.