libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Read ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Show 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 #

NFData ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

Methods

rnf :: ResponseCard -> () #

Hashable ResponseCard Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ResponseCard

FromJSON 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" "libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime" 'False) (C1 ('MetaCons "ResponseCard'" 'PrefixI 'True) (S1 ('MetaSel ('Just "genericAttachments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GenericAttachment])) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContentType)))))

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:genericAttachments:ResponseCard', responseCard_genericAttachments - An array of attachment objects representing options.

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

$sel:contentType:ResponseCard', responseCard_contentType - 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.

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

The content type of the response.