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

Description

 
Synopsis

Documentation

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.