Class: Aws::LexRuntimeV2::Types::Slot
- Inherits:
-
Struct
- Object
- Struct
- Aws::LexRuntimeV2::Types::Slot
- 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
-
#shape ⇒ String
When the
shape
value isList
, it indicates that thevalues
field contains a list of slot values. -
#value ⇒ Types::Value
The current value of the slot.
-
#values ⇒ Array<Types::Slot>
A list of one or more values that the user provided for the slot.
Instance Attribute Details
#shape ⇒ String
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.
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 |
#value ⇒ Types::Value
The current value of the slot.
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 |
#values ⇒ Array<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."
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 |