Class: Aws::Lex::Types::ActiveContextTimeToLive

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb

Overview

Note:

When making an API call, you may pass ActiveContextTimeToLive data as a hash:

{
  time_to_live_in_seconds: 1,
  turns_to_live: 1,
}

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#time_to_live_in_secondsInteger

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

Returns:

  • (Integer)


80
81
82
83
84
85
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 80

class ActiveContextTimeToLive < Struct.new(
  :time_to_live_in_seconds,
  :turns_to_live)
  SENSITIVE = []
  include Aws::Structure
end

#turns_to_liveInteger

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.

Returns:

  • (Integer)


80
81
82
83
84
85
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 80

class ActiveContextTimeToLive < Struct.new(
  :time_to_live_in_seconds,
  :turns_to_live)
  SENSITIVE = []
  include Aws::Structure
end