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 CreateSlot operation. Creates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an OrderPizza intent might need slots for size, crust, and number of pizzas. For each slot, you define one or more utterances that Amazon Lex uses to elicit a response from the user.

Inheritance Hierarchy

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

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

Syntax

C#
public class CreateSlotRequest : AmazonLexModelsV2Request
         IAmazonWebServiceRequest

The CreateSlotRequest type exposes the following members

Constructors

NameDescription
Public Method CreateSlotRequest()

Properties

NameTypeDescription
Public Property BotId System.String

Gets and sets the property BotId.

The identifier of the bot associated with the slot.

Public Property BotVersion System.String

Gets and sets the property BotVersion.

The version of the bot associated with the slot.

Public Property Description System.String

Gets and sets the property Description.

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

Public Property IntentId System.String

Gets and sets the property IntentId.

The identifier of the intent that contains the slot.

Public Property LocaleId System.String

Gets and sets the property LocaleId.

The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.

Public Property MultipleValuesSetting Amazon.LexModelsV2.Model.MultipleValuesSetting

Gets and sets the property MultipleValuesSetting.

Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.

If the multipleValuesSetting is not set, the default value is false.

Public Property ObfuscationSetting Amazon.LexModelsV2.Model.ObfuscationSetting

Gets and sets the property ObfuscationSetting.

Determines how slot values are used in Amazon CloudWatch logs. If the value of the obfuscationSetting parameter is DefaultObfuscation, slot values are obfuscated in the log output. If the value is None, the actual value is present in the log output.

The default is to obfuscate values in the CloudWatch logs.

Public Property SlotName System.String

Gets and sets the property SlotName.

The name of the slot. Slot names must be unique within the bot that contains the slot.

Public Property SlotTypeId System.String

Gets and sets the property SlotTypeId.

The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.

Public Property SubSlotSetting Amazon.LexModelsV2.Model.SubSlotSetting

Gets and sets the property SubSlotSetting.

Specifications for the constituent sub slots and the expression for the composite slot.

Public Property ValueElicitationSetting Amazon.LexModelsV2.Model.SlotValueElicitationSetting

Gets and sets the property ValueElicitationSetting.

Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.

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