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.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2016-11-28 of the Amazon Lex Runtime Service SDK configuration.

Errors

_BadGatewayException :: AsError a => Fold a ServiceError Source #

Either the Amazon Lex bot is still building, or one of the dependent services (Amazon Polly, AWS Lambda) failed with an internal service error.

_BadRequestException :: AsError a => Fold a ServiceError Source #

Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes.

_ConflictException :: AsError a => Fold a ServiceError Source #

Two clients are using the same AWS account, Amazon Lex bot, and user ID.

_DependencyFailedException :: AsError a => Fold a ServiceError Source #

One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example,

  • If Amazon Lex does not have sufficient permissions to call a Lambda function.
  • If a Lambda function takes longer than 30 seconds to execute.
  • If a fulfillment Lambda function returns a Delegate dialog action without removing any slot values.

_InternalFailureException :: AsError a => Fold a ServiceError Source #

Internal service error. Retry the call.

_LoopDetectedException :: AsError a => Fold a ServiceError Source #

This exception is not used.

_NotAcceptableException :: AsError a => Fold a ServiceError Source #

The accept header in the request does not have a valid value.

_NotFoundException :: AsError a => Fold a ServiceError Source #

The resource (such as the Amazon Lex bot or an alias) that is referred to is not found.

_RequestTimeoutException :: AsError a => Fold a ServiceError Source #

The input speech is too long.

_UnsupportedMediaTypeException :: AsError a => Fold a ServiceError Source #

The Content-Type header (PostContent API) has an invalid value.

ConfirmationStatus

newtype ConfirmationStatus Source #

Instances

Instances details
FromJSON ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

FromJSONKey ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToJSON ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToJSONKey ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToByteString ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToHeader ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToLog ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToQuery ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

FromText ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToText ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

FromXML ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

ToXML ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

Generic ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

Associated Types

type Rep ConfirmationStatus :: Type -> Type #

Read ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

Show ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

NFData ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

Methods

rnf :: ConfirmationStatus -> () #

Eq ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

Ord ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

Hashable ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

type Rep ConfirmationStatus Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ConfirmationStatus

type Rep ConfirmationStatus = D1 ('MetaData "ConfirmationStatus" "Amazonka.LexRuntime.Types.ConfirmationStatus" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'True) (C1 ('MetaCons "ConfirmationStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromConfirmationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ContentType

newtype ContentType Source #

Constructors

ContentType' 

Instances

Instances details
FromJSON ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

FromJSONKey ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToJSON ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToJSONKey ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToByteString ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToHeader ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToLog ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToQuery ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

FromText ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToText ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

Methods

toText :: ContentType -> Text #

FromXML ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

ToXML ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

Methods

toXML :: ContentType -> XML #

Generic ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

Associated Types

type Rep ContentType :: Type -> Type #

Read ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

Show ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

NFData ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

Methods

rnf :: ContentType -> () #

Eq ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

Ord ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

Hashable ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

type Rep ContentType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ContentType

type Rep ContentType = D1 ('MetaData "ContentType" "Amazonka.LexRuntime.Types.ContentType" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'True) (C1 ('MetaCons "ContentType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromContentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

DialogActionType

newtype DialogActionType Source #

Instances

Instances details
FromJSON DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

FromJSONKey DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToJSON DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToJSONKey DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToByteString DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToHeader DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToLog DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToQuery DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

FromText DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToText DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

FromXML DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

ToXML DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

Generic DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

Associated Types

type Rep DialogActionType :: Type -> Type #

Read DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

Show DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

NFData DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

Methods

rnf :: DialogActionType -> () #

Eq DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

Ord DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

Hashable DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

type Rep DialogActionType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogActionType

type Rep DialogActionType = D1 ('MetaData "DialogActionType" "Amazonka.LexRuntime.Types.DialogActionType" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'True) (C1 ('MetaCons "DialogActionType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromDialogActionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

DialogState

newtype DialogState Source #

Constructors

DialogState' 

Instances

Instances details
FromJSON DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

FromJSONKey DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToJSON DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToJSONKey DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToByteString DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToHeader DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToLog DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToQuery DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

FromText DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToText DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

Methods

toText :: DialogState -> Text #

FromXML DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

ToXML DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

Methods

toXML :: DialogState -> XML #

Generic DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

Associated Types

type Rep DialogState :: Type -> Type #

Read DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

Show DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

NFData DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

Methods

rnf :: DialogState -> () #

Eq DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

Ord DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

Hashable DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

type Rep DialogState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogState

type Rep DialogState = D1 ('MetaData "DialogState" "Amazonka.LexRuntime.Types.DialogState" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'True) (C1 ('MetaCons "DialogState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromDialogState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

FulfillmentState

newtype FulfillmentState Source #

Instances

Instances details
FromJSON FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

FromJSONKey FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToJSON FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToJSONKey FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToByteString FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToHeader FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToLog FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToQuery FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

FromText FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToText FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

FromXML FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

ToXML FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

Generic FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

Associated Types

type Rep FulfillmentState :: Type -> Type #

Read FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

Show FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

NFData FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

Methods

rnf :: FulfillmentState -> () #

Eq FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

Ord FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

Hashable FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

type Rep FulfillmentState Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.FulfillmentState

type Rep FulfillmentState = D1 ('MetaData "FulfillmentState" "Amazonka.LexRuntime.Types.FulfillmentState" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'True) (C1 ('MetaCons "FulfillmentState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromFulfillmentState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

MessageFormatType

newtype MessageFormatType Source #

Instances

Instances details
FromJSON MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

FromJSONKey MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToJSON MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToJSONKey MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToByteString MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToHeader MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToLog MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToQuery MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

FromText MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToText MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

FromXML MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

ToXML MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

Generic MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

Associated Types

type Rep MessageFormatType :: Type -> Type #

Read MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

Show MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

NFData MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

Methods

rnf :: MessageFormatType -> () #

Eq MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

Ord MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

Hashable MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

type Rep MessageFormatType Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.MessageFormatType

type Rep MessageFormatType = D1 ('MetaData "MessageFormatType" "Amazonka.LexRuntime.Types.MessageFormatType" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'True) (C1 ('MetaCons "MessageFormatType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromMessageFormatType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ActiveContext

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.

Constructors

ActiveContext' 

Fields

Instances

Instances details
FromJSON ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

ToJSON ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

Generic ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

Associated Types

type Rep ActiveContext :: Type -> Type #

Show ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

NFData ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

Methods

rnf :: ActiveContext -> () #

Eq ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

Hashable ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

type Rep ActiveContext Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContext

type Rep ActiveContext = D1 ('MetaData "ActiveContext" "Amazonka.LexRuntime.Types.ActiveContext" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "ActiveContext'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "timeToLive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActiveContextTimeToLive) :*: S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text (Sensitive Text))))))

newActiveContext Source #

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.

ActiveContextTimeToLive

data ActiveContextTimeToLive Source #

The length of time or number of turns that a context remains active.

See: newActiveContextTimeToLive smart constructor.

Constructors

ActiveContextTimeToLive' 

Fields

  • timeToLiveInSeconds :: Maybe Natural

    The number of seconds that the context should be active after it is first sent in a PostContent or PostText response. You can set the value between 5 and 86,400 seconds (24 hours).

  • turnsToLive :: Maybe Natural

    The number of conversation turns that the context should be active. A conversation turn is one PostContent or PostText request and the corresponding response from Amazon Lex.

Instances

Instances details
FromJSON ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

ToJSON ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

Generic ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

Associated Types

type Rep ActiveContextTimeToLive :: Type -> Type #

Read ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

Show ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

NFData ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

Methods

rnf :: ActiveContextTimeToLive -> () #

Eq ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

Hashable ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

type Rep ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

type Rep ActiveContextTimeToLive = D1 ('MetaData "ActiveContextTimeToLive" "Amazonka.LexRuntime.Types.ActiveContextTimeToLive" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "ActiveContextTimeToLive'" 'PrefixI 'True) (S1 ('MetaSel ('Just "timeToLiveInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "turnsToLive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

newActiveContextTimeToLive :: ActiveContextTimeToLive Source #

Create a value of ActiveContextTimeToLive 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:timeToLiveInSeconds:ActiveContextTimeToLive', activeContextTimeToLive_timeToLiveInSeconds - The number of seconds that the context should be active after it is first sent in a PostContent or PostText response. You can set the value between 5 and 86,400 seconds (24 hours).

$sel:turnsToLive:ActiveContextTimeToLive', activeContextTimeToLive_turnsToLive - The number of conversation turns that the context should be active. A conversation turn is one PostContent or PostText request and the corresponding response from Amazon Lex.

activeContextTimeToLive_timeToLiveInSeconds :: Lens' ActiveContextTimeToLive (Maybe Natural) Source #

The number of seconds that the context should be active after it is first sent in a PostContent or PostText response. You can set the value between 5 and 86,400 seconds (24 hours).

activeContextTimeToLive_turnsToLive :: Lens' ActiveContextTimeToLive (Maybe Natural) Source #

The number of conversation turns that the context should be active. A conversation turn is one PostContent or PostText request and the corresponding response from Amazon Lex.

Button

data Button Source #

Represents an option to be shown on the client platform (Facebook, Slack, etc.)

See: newButton smart constructor.

Constructors

Button' 

Fields

  • text :: Text

    Text that is visible to the user on the button.

  • value :: Text

    The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."

Instances

Instances details
FromJSON Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Generic Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Associated Types

type Rep Button :: Type -> Type #

Methods

from :: Button -> Rep Button x #

to :: Rep Button x -> Button #

Read Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Show Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

NFData Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Methods

rnf :: Button -> () #

Eq Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Methods

(==) :: Button -> Button -> Bool #

(/=) :: Button -> Button -> Bool #

Hashable Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Methods

hashWithSalt :: Int -> Button -> Int #

hash :: Button -> Int #

type Rep Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

type Rep Button = D1 ('MetaData "Button" "Amazonka.LexRuntime.Types.Button" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "Button'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newButton Source #

Create a value of Button 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:text:Button', button_text - Text that is visible to the user on the button.

$sel:value:Button', button_value - The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."

button_text :: Lens' Button Text Source #

Text that is visible to the user on the button.

button_value :: Lens' Button Text Source #

The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."

DialogAction

data DialogAction Source #

Describes the next action that the bot should take in its interaction with the user and provides information about the context in which the action takes place. Use the DialogAction data type to set the interaction to a specific state, or to return the interaction to a previous state.

See: newDialogAction smart constructor.

Constructors

DialogAction' 

Fields

  • fulfillmentState :: Maybe FulfillmentState

    The fulfillment state of the intent. The possible values are:

    • Failed - The Lambda function associated with the intent failed to fulfill the intent.
    • Fulfilled - The intent has fulfilled by the Lambda function associated with the intent.
    • ReadyForFulfillment - All of the information necessary for the intent is present and the intent ready to be fulfilled by the client application.
  • intentName :: Maybe Text

    The name of the intent.

  • message :: Maybe (Sensitive Text)

    The message that should be shown to the user. If you don't specify a message, Amazon Lex will use the message configured for the intent.

  • messageFormat :: Maybe MessageFormatType
    • PlainText - The message contains plain UTF-8 text.
    • CustomPayload - The message is a custom format for the client.
    • SSML - The message contains text formatted for voice output.
    • Composite - The message contains an escaped JSON object containing one or more messages. For more information, see Message Groups.
  • slotToElicit :: Maybe Text

    The name of the slot that should be elicited from the user.

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

    Map of the slots that have been gathered and their values.

  • type' :: DialogActionType

    The next action that the bot should take in its interaction with the user. The possible values are:

    • ConfirmIntent - The next action is asking the user if the intent is complete and ready to be fulfilled. This is a yes/no question such as "Place the order?"
    • Close - Indicates that the there will not be a response from the user. For example, the statement "Your order has been placed" does not require a response.
    • Delegate - The next action is determined by Amazon Lex.
    • ElicitIntent - The next action is to determine the intent that the user wants to fulfill.
    • ElicitSlot - The next action is to elicit a slot value from the user.

Instances

Instances details
FromJSON DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

ToJSON DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

Generic DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

Associated Types

type Rep DialogAction :: Type -> Type #

Show DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

NFData DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

Methods

rnf :: DialogAction -> () #

Eq DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

Hashable DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

type Rep DialogAction Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.DialogAction

newDialogAction Source #

Create a value of DialogAction 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:fulfillmentState:DialogAction', dialogAction_fulfillmentState - The fulfillment state of the intent. The possible values are:

  • Failed - The Lambda function associated with the intent failed to fulfill the intent.
  • Fulfilled - The intent has fulfilled by the Lambda function associated with the intent.
  • ReadyForFulfillment - All of the information necessary for the intent is present and the intent ready to be fulfilled by the client application.

$sel:intentName:DialogAction', dialogAction_intentName - The name of the intent.

$sel:message:DialogAction', dialogAction_message - The message that should be shown to the user. If you don't specify a message, Amazon Lex will use the message configured for the intent.

$sel:messageFormat:DialogAction', dialogAction_messageFormat - - PlainText - The message contains plain UTF-8 text.

  • CustomPayload - The message is a custom format for the client.
  • SSML - The message contains text formatted for voice output.
  • Composite - The message contains an escaped JSON object containing one or more messages. For more information, see Message Groups.

$sel:slotToElicit:DialogAction', dialogAction_slotToElicit - The name of the slot that should be elicited from the user.

$sel:slots:DialogAction', dialogAction_slots - Map of the slots that have been gathered and their values.

$sel:type':DialogAction', dialogAction_type - The next action that the bot should take in its interaction with the user. The possible values are:

  • ConfirmIntent - The next action is asking the user if the intent is complete and ready to be fulfilled. This is a yes/no question such as "Place the order?"
  • Close - Indicates that the there will not be a response from the user. For example, the statement "Your order has been placed" does not require a response.
  • Delegate - The next action is determined by Amazon Lex.
  • ElicitIntent - The next action is to determine the intent that the user wants to fulfill.
  • ElicitSlot - The next action is to elicit a slot value from the user.

dialogAction_fulfillmentState :: Lens' DialogAction (Maybe FulfillmentState) Source #

The fulfillment state of the intent. The possible values are:

  • Failed - The Lambda function associated with the intent failed to fulfill the intent.
  • Fulfilled - The intent has fulfilled by the Lambda function associated with the intent.
  • ReadyForFulfillment - All of the information necessary for the intent is present and the intent ready to be fulfilled by the client application.

dialogAction_message :: Lens' DialogAction (Maybe Text) Source #

The message that should be shown to the user. If you don't specify a message, Amazon Lex will use the message configured for the intent.

dialogAction_messageFormat :: Lens' DialogAction (Maybe MessageFormatType) Source #

  • PlainText - The message contains plain UTF-8 text.
  • CustomPayload - The message is a custom format for the client.
  • SSML - The message contains text formatted for voice output.
  • Composite - The message contains an escaped JSON object containing one or more messages. For more information, see Message Groups.

dialogAction_slotToElicit :: Lens' DialogAction (Maybe Text) Source #

The name of the slot that should be elicited from the user.

dialogAction_slots :: Lens' DialogAction (Maybe (HashMap Text Text)) Source #

Map of the slots that have been gathered and their values.

dialogAction_type :: Lens' DialogAction DialogActionType Source #

The next action that the bot should take in its interaction with the user. The possible values are:

  • ConfirmIntent - The next action is asking the user if the intent is complete and ready to be fulfilled. This is a yes/no question such as "Place the order?"
  • Close - Indicates that the there will not be a response from the user. For example, the statement "Your order has been placed" does not require a response.
  • Delegate - The next action is determined by Amazon Lex.
  • ElicitIntent - The next action is to determine the intent that the user wants to fulfill.
  • ElicitSlot - The next action is to elicit a slot value from the user.

GenericAttachment

data GenericAttachment Source #

Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.

See: newGenericAttachment smart constructor.

Constructors

GenericAttachment' 

Fields

Instances

Instances details
FromJSON GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Generic GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Associated Types

type Rep GenericAttachment :: Type -> Type #

Read GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Show GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

NFData GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Methods

rnf :: GenericAttachment -> () #

Eq GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Hashable GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

type Rep GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

type Rep GenericAttachment = D1 ('MetaData "GenericAttachment" "Amazonka.LexRuntime.Types.GenericAttachment" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "GenericAttachment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attachmentLinkUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "buttons") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Button]))) :*: (S1 ('MetaSel ('Just "imageUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "subTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newGenericAttachment :: GenericAttachment Source #

Create a value of GenericAttachment 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:attachmentLinkUrl:GenericAttachment', genericAttachment_attachmentLinkUrl - The URL of an attachment to the response card.

$sel:buttons:GenericAttachment', genericAttachment_buttons - The list of options to show to the user.

$sel:imageUrl:GenericAttachment', genericAttachment_imageUrl - The URL of an image that is displayed to the user.

$sel:subTitle:GenericAttachment', genericAttachment_subTitle - The subtitle shown below the title.

$sel:title:GenericAttachment', genericAttachment_title - The title of the option.

genericAttachment_attachmentLinkUrl :: Lens' GenericAttachment (Maybe Text) Source #

The URL of an attachment to the response card.

genericAttachment_buttons :: Lens' GenericAttachment (Maybe [Button]) Source #

The list of options to show to the user.

genericAttachment_imageUrl :: Lens' GenericAttachment (Maybe Text) Source #

The URL of an image that is displayed to the user.

genericAttachment_subTitle :: Lens' GenericAttachment (Maybe Text) Source #

The subtitle shown below the title.

IntentConfidence

data IntentConfidence Source #

Provides a score that indicates the confidence that Amazon Lex has that an intent is the one that satisfies the user's intent.

See: newIntentConfidence smart constructor.

Constructors

IntentConfidence' 

Fields

  • score :: Maybe Double

    A score that indicates how confident Amazon Lex is that an intent satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate higher confidence.

Instances

Instances details
FromJSON IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

Generic IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

Associated Types

type Rep IntentConfidence :: Type -> Type #

Read IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

Show IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

NFData IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

Methods

rnf :: IntentConfidence -> () #

Eq IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

Hashable IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

type Rep IntentConfidence Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentConfidence

type Rep IntentConfidence = D1 ('MetaData "IntentConfidence" "Amazonka.LexRuntime.Types.IntentConfidence" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "IntentConfidence'" 'PrefixI 'True) (S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))

newIntentConfidence :: IntentConfidence Source #

Create a value of IntentConfidence 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:score:IntentConfidence', intentConfidence_score - A score that indicates how confident Amazon Lex is that an intent satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate higher confidence.

intentConfidence_score :: Lens' IntentConfidence (Maybe Double) Source #

A score that indicates how confident Amazon Lex is that an intent satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate higher confidence.

IntentSummary

data IntentSummary Source #

Provides information about the state of an intent. You can use this information to get the current state of an intent so that you can process the intent, or so that you can return the intent to its previous state.

See: newIntentSummary smart constructor.

Constructors

IntentSummary' 

Fields

  • checkpointLabel :: Maybe Text

    A user-defined label that identifies a particular intent. You can use this label to return to a previous intent.

    Use the checkpointLabelFilter parameter of the GetSessionRequest operation to filter the intents returned by the operation to those with only the specified label.

  • confirmationStatus :: Maybe ConfirmationStatus

    The status of the intent after the user responds to the confirmation prompt. If the user confirms the intent, Amazon Lex sets this field to Confirmed. If the user denies the intent, Amazon Lex sets this value to Denied. The possible values are:

    • Confirmed - The user has responded "Yes" to the confirmation prompt, confirming that the intent is complete and that it is ready to be fulfilled.
    • Denied - The user has responded "No" to the confirmation prompt.
    • None - The user has never been prompted for confirmation; or, the user was prompted but did not confirm or deny the prompt.
  • fulfillmentState :: Maybe FulfillmentState

    The fulfillment state of the intent. The possible values are:

    • Failed - The Lambda function associated with the intent failed to fulfill the intent.
    • Fulfilled - The intent has fulfilled by the Lambda function associated with the intent.
    • ReadyForFulfillment - All of the information necessary for the intent is present and the intent ready to be fulfilled by the client application.
  • intentName :: Maybe Text

    The name of the intent.

  • slotToElicit :: Maybe Text

    The next slot to elicit from the user. If there is not slot to elicit, the field is blank.

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

    Map of the slots that have been gathered and their values.

  • dialogActionType :: DialogActionType

    The next action that the bot should take in its interaction with the user. The possible values are:

    • ConfirmIntent - The next action is asking the user if the intent is complete and ready to be fulfilled. This is a yes/no question such as "Place the order?"
    • Close - Indicates that the there will not be a response from the user. For example, the statement "Your order has been placed" does not require a response.
    • ElicitIntent - The next action is to determine the intent that the user wants to fulfill.
    • ElicitSlot - The next action is to elicit a slot value from the user.

Instances

Instances details
FromJSON IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

ToJSON IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

Generic IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

Associated Types

type Rep IntentSummary :: Type -> Type #

Show IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

NFData IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

Methods

rnf :: IntentSummary -> () #

Eq IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

Hashable IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

type Rep IntentSummary Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.IntentSummary

newIntentSummary Source #

Create a value of IntentSummary 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:checkpointLabel:IntentSummary', intentSummary_checkpointLabel - A user-defined label that identifies a particular intent. You can use this label to return to a previous intent.

Use the checkpointLabelFilter parameter of the GetSessionRequest operation to filter the intents returned by the operation to those with only the specified label.

$sel:confirmationStatus:IntentSummary', intentSummary_confirmationStatus - The status of the intent after the user responds to the confirmation prompt. If the user confirms the intent, Amazon Lex sets this field to Confirmed. If the user denies the intent, Amazon Lex sets this value to Denied. The possible values are:

  • Confirmed - The user has responded "Yes" to the confirmation prompt, confirming that the intent is complete and that it is ready to be fulfilled.
  • Denied - The user has responded "No" to the confirmation prompt.
  • None - The user has never been prompted for confirmation; or, the user was prompted but did not confirm or deny the prompt.

$sel:fulfillmentState:IntentSummary', intentSummary_fulfillmentState - The fulfillment state of the intent. The possible values are:

  • Failed - The Lambda function associated with the intent failed to fulfill the intent.
  • Fulfilled - The intent has fulfilled by the Lambda function associated with the intent.
  • ReadyForFulfillment - All of the information necessary for the intent is present and the intent ready to be fulfilled by the client application.

$sel:intentName:IntentSummary', intentSummary_intentName - The name of the intent.

$sel:slotToElicit:IntentSummary', intentSummary_slotToElicit - The next slot to elicit from the user. If there is not slot to elicit, the field is blank.

$sel:slots:IntentSummary', intentSummary_slots - Map of the slots that have been gathered and their values.

$sel:dialogActionType:IntentSummary', intentSummary_dialogActionType - The next action that the bot should take in its interaction with the user. The possible values are:

  • ConfirmIntent - The next action is asking the user if the intent is complete and ready to be fulfilled. This is a yes/no question such as "Place the order?"
  • Close - Indicates that the there will not be a response from the user. For example, the statement "Your order has been placed" does not require a response.
  • ElicitIntent - The next action is to determine the intent that the user wants to fulfill.
  • ElicitSlot - The next action is to elicit a slot value from the user.

intentSummary_checkpointLabel :: Lens' IntentSummary (Maybe Text) Source #

A user-defined label that identifies a particular intent. You can use this label to return to a previous intent.

Use the checkpointLabelFilter parameter of the GetSessionRequest operation to filter the intents returned by the operation to those with only the specified label.

intentSummary_confirmationStatus :: Lens' IntentSummary (Maybe ConfirmationStatus) Source #

The status of the intent after the user responds to the confirmation prompt. If the user confirms the intent, Amazon Lex sets this field to Confirmed. If the user denies the intent, Amazon Lex sets this value to Denied. The possible values are:

  • Confirmed - The user has responded "Yes" to the confirmation prompt, confirming that the intent is complete and that it is ready to be fulfilled.
  • Denied - The user has responded "No" to the confirmation prompt.
  • None - The user has never been prompted for confirmation; or, the user was prompted but did not confirm or deny the prompt.

intentSummary_fulfillmentState :: Lens' IntentSummary (Maybe FulfillmentState) Source #

The fulfillment state of the intent. The possible values are:

  • Failed - The Lambda function associated with the intent failed to fulfill the intent.
  • Fulfilled - The intent has fulfilled by the Lambda function associated with the intent.
  • ReadyForFulfillment - All of the information necessary for the intent is present and the intent ready to be fulfilled by the client application.

intentSummary_slotToElicit :: Lens' IntentSummary (Maybe Text) Source #

The next slot to elicit from the user. If there is not slot to elicit, the field is blank.

intentSummary_slots :: Lens' IntentSummary (Maybe (HashMap Text Text)) Source #

Map of the slots that have been gathered and their values.

intentSummary_dialogActionType :: Lens' IntentSummary DialogActionType Source #

The next action that the bot should take in its interaction with the user. The possible values are:

  • ConfirmIntent - The next action is asking the user if the intent is complete and ready to be fulfilled. This is a yes/no question such as "Place the order?"
  • Close - Indicates that the there will not be a response from the user. For example, the statement "Your order has been placed" does not require a response.
  • ElicitIntent - The next action is to determine the intent that the user wants to fulfill.
  • ElicitSlot - The next action is to elicit a slot value from the user.

PredictedIntent

data PredictedIntent Source #

An intent that Amazon Lex suggests satisfies the user's intent. Includes the name of the intent, the confidence that Amazon Lex has that the user's intent is satisfied, and the slots defined for the intent.

See: newPredictedIntent smart constructor.

Constructors

PredictedIntent' 

Fields

Instances

Instances details
FromJSON PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Generic PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Associated Types

type Rep PredictedIntent :: Type -> Type #

Show PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

NFData PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Methods

rnf :: PredictedIntent -> () #

Eq PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Hashable PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

type Rep PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

type Rep PredictedIntent = D1 ('MetaData "PredictedIntent" "Amazonka.LexRuntime.Types.PredictedIntent" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "PredictedIntent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "intentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nluIntentConfidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IntentConfidence)) :*: S1 ('MetaSel ('Just "slots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text)))))))

newPredictedIntent :: PredictedIntent Source #

Create a value of PredictedIntent 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:intentName:PredictedIntent', predictedIntent_intentName - The name of the intent that Amazon Lex suggests satisfies the user's intent.

$sel:nluIntentConfidence:PredictedIntent', predictedIntent_nluIntentConfidence - Indicates how confident Amazon Lex is that an intent satisfies the user's intent.

$sel:slots:PredictedIntent', predictedIntent_slots - The slot and slot values associated with the predicted intent.

predictedIntent_intentName :: Lens' PredictedIntent (Maybe Text) Source #

The name of the intent that Amazon Lex suggests satisfies the user's intent.

predictedIntent_nluIntentConfidence :: Lens' PredictedIntent (Maybe IntentConfidence) Source #

Indicates how confident Amazon Lex is that an intent satisfies the user's intent.

predictedIntent_slots :: Lens' PredictedIntent (Maybe (HashMap Text Text)) Source #

The slot and slot values associated with the predicted intent.

ResponseCard

data ResponseCard Source #

If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot values that are available, and then returns it. The response card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity on an intent).

See: newResponseCard smart constructor.

Constructors

ResponseCard' 

Fields

Instances

Instances details
FromJSON ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Generic ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Associated Types

type Rep ResponseCard :: Type -> Type #

Read ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Show ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

NFData ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Methods

rnf :: ResponseCard -> () #

Eq ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Hashable ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

type Rep ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

type Rep ResponseCard = D1 ('MetaData "ResponseCard" "Amazonka.LexRuntime.Types.ResponseCard" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "ResponseCard'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContentType)) :*: (S1 ('MetaSel ('Just "genericAttachments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GenericAttachment])) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newResponseCard :: ResponseCard Source #

Create a value of ResponseCard 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:contentType:ResponseCard', responseCard_contentType - The content type of the response.

$sel:genericAttachments:ResponseCard', responseCard_genericAttachments - An array of attachment objects representing options.

$sel:version:ResponseCard', responseCard_version - The version of the response card format.

responseCard_contentType :: Lens' ResponseCard (Maybe ContentType) Source #

The content type of the response.

responseCard_genericAttachments :: Lens' ResponseCard (Maybe [GenericAttachment]) Source #

An array of attachment objects representing options.

responseCard_version :: Lens' ResponseCard (Maybe Text) Source #

The version of the response card format.

SentimentResponse

data SentimentResponse Source #

The sentiment expressed in an utterance.

When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.

See: newSentimentResponse smart constructor.

Constructors

SentimentResponse' 

Fields

Instances

Instances details
FromJSON SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Generic SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Associated Types

type Rep SentimentResponse :: Type -> Type #

Read SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Show SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

NFData SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Methods

rnf :: SentimentResponse -> () #

Eq SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Hashable SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

type Rep SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

type Rep SentimentResponse = D1 ('MetaData "SentimentResponse" "Amazonka.LexRuntime.Types.SentimentResponse" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "SentimentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentimentLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sentimentScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newSentimentResponse :: SentimentResponse Source #

Create a value of SentimentResponse 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:sentimentLabel:SentimentResponse', sentimentResponse_sentimentLabel - The inferred sentiment that Amazon Comprehend has the highest confidence in.

$sel:sentimentScore:SentimentResponse', sentimentResponse_sentimentScore - The likelihood that the sentiment was correctly inferred.

sentimentResponse_sentimentLabel :: Lens' SentimentResponse (Maybe Text) Source #

The inferred sentiment that Amazon Comprehend has the highest confidence in.

sentimentResponse_sentimentScore :: Lens' SentimentResponse (Maybe Text) Source #

The likelihood that the sentiment was correctly inferred.