Class: Aws::LexRuntimeV2::Types::ActiveContextTimeToLive

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

Overview

Note:

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

{
  time_to_live_in_seconds: 1, # required
  turns_to_live: 1, # required
}

The time that a context is active. You can specify the time to live in seconds or in conversation turns.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#time_to_live_in_secondsInteger

The number of seconds that the context is active. You can specify between 5 and 86400 seconds (24 hours).

Returns:

  • (Integer)


102
103
104
105
106
107
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 102

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

#turns_to_liveInteger

The number of turns that the context is active. You can specify up to 20 turns. Each request and response from the bot is a turn.

Returns:

  • (Integer)


102
103
104
105
106
107
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 102

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