amazonka-lex-models-2.0: Amazon Lex Model Building 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.LexModels.Types.OutputContext

Description

 
Synopsis

Documentation

data OutputContext Source #

The specification of an output context that is set when an intent is fulfilled.

See: newOutputContext smart constructor.

Constructors

OutputContext' 

Fields

  • name :: Text

    The name of the context.

  • timeToLiveInSeconds :: 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 :: 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 OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

ToJSON OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

Generic OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

Associated Types

type Rep OutputContext :: Type -> Type #

Read OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

Show OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

NFData OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

Methods

rnf :: OutputContext -> () #

Eq OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

Hashable OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

type Rep OutputContext Source # 
Instance details

Defined in Amazonka.LexModels.Types.OutputContext

type Rep OutputContext = D1 ('MetaData "OutputContext" "Amazonka.LexModels.Types.OutputContext" "amazonka-lex-models-2.0-8Q1WIjnrCCIAMPuyNOCiG7" 'False) (C1 ('MetaCons "OutputContext'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "timeToLiveInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "turnsToLive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural))))

newOutputContext Source #

Create a value of OutputContext 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:OutputContext', outputContext_name - The name of the context.

$sel:timeToLiveInSeconds:OutputContext', outputContext_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:OutputContext', outputContext_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.

outputContext_name :: Lens' OutputContext Text Source #

The name of the context.

outputContext_timeToLiveInSeconds :: Lens' OutputContext 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).

outputContext_turnsToLive :: Lens' OutputContext 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.