amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 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.LexV2Models.Types.OutputContext

Description

 
Synopsis

Documentation

data OutputContext Source #

Describes a session context that is activated when an intent is fulfilled.

See: newOutputContext smart constructor.

Constructors

OutputContext' 

Fields

  • name :: Text

    The name of the output context.

  • timeToLiveInSeconds :: Natural

    The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.

  • turnsToLive :: Natural

    The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.

Instances

Instances details
FromJSON OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

ToJSON OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

Generic OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

Associated Types

type Rep OutputContext :: Type -> Type #

Read OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

Show OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

NFData OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

Methods

rnf :: OutputContext -> () #

Eq OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

Hashable OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

type Rep OutputContext Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.OutputContext

type Rep OutputContext = D1 ('MetaData "OutputContext" "Amazonka.LexV2Models.Types.OutputContext" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" '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 output context.

$sel:timeToLiveInSeconds:OutputContext', outputContext_timeToLiveInSeconds - The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.

$sel:turnsToLive:OutputContext', outputContext_turnsToLive - The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.

outputContext_name :: Lens' OutputContext Text Source #

The name of the output context.

outputContext_timeToLiveInSeconds :: Lens' OutputContext Natural Source #

The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.

outputContext_turnsToLive :: Lens' OutputContext Natural Source #

The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.