AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::LexModelBuildingService::Types::OutputContext

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

Overview

Note:

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

{
  name: "OutputContextName", # required
  time_to_live_in_seconds: 1, # required
  turns_to_live: 1, # required
}

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the context.

Returns:

  • (String)


3227
3228
3229
3230
3231
3232
3233
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3227

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

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


3227
3228
3229
3230
3231
3232
3233
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3227

class OutputContext < Struct.new(
  :name,
  :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)


3227
3228
3229
3230
3231
3232
3233
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3227

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