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

Description

 
Synopsis

Documentation

data ActiveContextTimeToLive Source #

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

See: newActiveContextTimeToLive smart constructor.

Constructors

ActiveContextTimeToLive' 

Fields

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

  • 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).

Instances

Instances details
Eq ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

Read ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

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

NFData ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

Methods

rnf :: ActiveContextTimeToLive -> () #

Hashable ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

ToJSON ActiveContextTimeToLive Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.ActiveContextTimeToLive

FromJSON 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" "libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime" 'False) (C1 ('MetaCons "ActiveContextTimeToLive'" 'PrefixI 'True) (S1 ('MetaSel ('Just "turnsToLive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "timeToLiveInSeconds") '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: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.

$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).

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.

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