amazonka-lex-runtime-2.0: Amazon Lex Runtime Service 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.LexRuntime.GetSession

Description

Returns session information for a specified bot, alias, and user ID.

Synopsis

Creating a Request

data GetSession Source #

See: newGetSession smart constructor.

Constructors

GetSession' 

Fields

  • checkpointLabelFilter :: Maybe Text

    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.

  • botName :: Text

    The name of the bot that contains the session data.

  • botAlias :: Text

    The alias in use for the bot that contains the session data.

  • userId :: Text

    The ID of the client application user. Amazon Lex uses this to identify a user's conversation with your bot.

Instances

Instances details
ToHeaders GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Methods

toHeaders :: GetSession -> [Header] #

ToPath GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

ToQuery GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

AWSRequest GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Associated Types

type AWSResponse GetSession #

Generic GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Associated Types

type Rep GetSession :: Type -> Type #

Read GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Show GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

NFData GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Methods

rnf :: GetSession -> () #

Eq GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Hashable GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

type AWSResponse GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

type Rep GetSession Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

type Rep GetSession = D1 ('MetaData "GetSession" "Amazonka.LexRuntime.GetSession" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "GetSession'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "checkpointLabelFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "botName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "botAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetSession Source #

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.

Constructors

GetSessionResponse' 

Fields

  • activeContexts :: Maybe (Sensitive [ActiveContext])

    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.

  • dialogAction :: Maybe DialogAction

    Describes the current state of the bot.

  • recentIntentSummaryView :: Maybe [IntentSummary]

    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.

  • sessionAttributes :: Maybe (Sensitive (HashMap Text Text))

    Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.

  • sessionId :: Maybe Text

    A unique identifier for the session.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetSessionResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Associated Types

type Rep GetSessionResponse :: Type -> Type #

Show GetSessionResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

NFData GetSessionResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

Methods

rnf :: GetSessionResponse -> () #

Eq GetSessionResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

type Rep GetSessionResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.GetSession

type Rep GetSessionResponse = D1 ('MetaData "GetSessionResponse" "Amazonka.LexRuntime.GetSession" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "GetSessionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activeContexts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive [ActiveContext]))) :*: (S1 ('MetaSel ('Just "dialogAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DialogAction)) :*: S1 ('MetaSel ('Just "recentIntentSummaryView") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [IntentSummary])))) :*: (S1 ('MetaSel ('Just "sessionAttributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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:dialogAction:GetSessionResponse', getSessionResponse_dialogAction - Describes the current state of the bot.

$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: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:sessionId:GetSessionResponse', getSessionResponse_sessionId - A unique identifier for the session.

$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_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_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_sessionId :: Lens' GetSessionResponse (Maybe Text) Source #

A unique identifier for the session.