Class: Aws::LexRuntimeV2::Types::Slot

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 Slot data as a hash:

{
  value: {
    original_value: "NonEmptyString",
    interpreted_value: "NonEmptyString", # required
    resolved_values: ["NonEmptyString"],
  },
  shape: "Scalar", # accepts Scalar, List
  values: [
    {
      value: {
        original_value: "NonEmptyString",
        interpreted_value: "NonEmptyString", # required
        resolved_values: ["NonEmptyString"],
      },
      shape: "Scalar", # accepts Scalar, List
      values: {
        # recursive Values
      },
    },
  ],
}

A value that Amazon Lex V2 uses to fulfill an intent.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#shapeString

When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.

Returns:

  • (String)


1977
1978
1979
1980
1981
1982
1983
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1977

class Slot < Struct.new(
  :value,
  :shape,
  :values)
  SENSITIVE = []
  include Aws::Structure
end

#valueTypes::Value

The current value of the slot.

Returns:



1977
1978
1979
1980
1981
1982
1983
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1977

class Slot < Struct.new(
  :value,
  :shape,
  :values)
  SENSITIVE = []
  include Aws::Structure
end

#valuesArray<Types::Slot>

A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."

Returns:



1977
1978
1979
1980
1981
1982
1983
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1977

class Slot < Struct.new(
  :value,
  :shape,
  :values)
  SENSITIVE = []
  include Aws::Structure
end