AWS SDK Version 3 for .NET
API Reference

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.

Container for the parameters to the CreateSlotType operation. Creates a custom slot type

To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.LexModelsV2.AmazonLexModelsV2Request
      Amazon.LexModelsV2.Model.CreateSlotTypeRequest

Namespace: Amazon.LexModelsV2.Model
Assembly: AWSSDK.LexModelsV2.dll
Version: 3.x.y.z

Syntax

C#
public class CreateSlotTypeRequest : AmazonLexModelsV2Request
         IAmazonWebServiceRequest

The CreateSlotTypeRequest type exposes the following members

Constructors

NameDescription
Public Method CreateSlotTypeRequest()

Properties

NameTypeDescription
Public Property BotId System.String

Gets and sets the property BotId.

The identifier of the bot associated with this slot type.

Public Property BotVersion System.String

Gets and sets the property BotVersion.

The identifier of the bot version associated with this slot type.

Public Property CompositeSlotTypeSetting Amazon.LexModelsV2.Model.CompositeSlotTypeSetting

Gets and sets the property CompositeSlotTypeSetting.

Specifications for a composite slot type.

Public Property Description System.String

Gets and sets the property Description.

A description of the slot type. Use the description to help identify the slot type in lists.

Public Property ExternalSourceSetting Amazon.LexModelsV2.Model.ExternalSourceSetting

Gets and sets the property ExternalSourceSetting.

Sets the type of external information used to create the slot type.

Public Property LocaleId System.String

Gets and sets the property LocaleId.

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.

Public Property ParentSlotTypeSignature System.String

Gets and sets the property ParentSlotTypeSignature.

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.

Public Property SlotTypeName System.String

Gets and sets the property SlotTypeName.

The name for the slot. A slot type name must be unique within the intent.

Public Property SlotTypeValues System.Collections.Generic.List<Amazon.LexModelsV2.Model.SlotTypeValue>

Gets and sets the property SlotTypeValues.

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.

Public Property ValueSelectionSetting Amazon.LexModelsV2.Model.SlotValueSelectionSetting

Gets and sets the property ValueSelectionSetting.

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:

  • ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value.

  • TOP_RESOLUTION - 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 ORIGINAL_VALUE.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5