class Aws::LexModelsV2::Types::CreateSlotTypeRequest
@note When making an API call, you may pass CreateSlotTypeRequest
data as a hash: { slot_type_name: "Name", # required description: "Description", slot_type_values: [ { sample_value: { value: "Value", # required }, synonyms: [ { value: "Value", # required }, ], }, ], value_selection_setting: { # required resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution regex_filter: { pattern: "RegexPattern", # required }, }, parent_slot_type_signature: "SlotTypeSignature", bot_id: "Id", # required bot_version: "DraftBotVersion", # required locale_id: "LocaleId", # required }
@!attribute [rw] slot_type_name
The name for the slot. A slot type name must be unique within the account. @return [String]
@!attribute [rw] description
A description of the slot type. Use the description to help identify the slot type in lists. @return [String]
@!attribute [rw] slot_type_values
A list of `SlotTypeValue` objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. @return [Array<Types::SlotTypeValue>]
@!attribute [rw] value_selection_setting
Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values: * `OriginalValue` - Returns the value entered by the user, if the user value is similar to the slot value. * `TopResolution` - If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the `valueSelectionSetting` parameter, the default is `OriginalValue`. @return [Types::SlotValueSelectionSetting]
@!attribute [rw] parent_slot_type_signature
The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only `AMAZON.AlphaNumeric` is supported. @return [String]
@!attribute [rw] bot_id
The identifier of the bot associated with this slot type. @return [String]
@!attribute [rw] bot_version
The identifier of the bot version associated with this slot type. @return [String]
@!attribute [rw] locale_id
The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see [Supported languages][1]. [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html @return [String]
@see docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotTypeRequest AWS API Documentation
Constants
- SENSITIVE