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.

Identifies the version of a specific slot.

Inheritance Hierarchy

System.Object
  Amazon.LexModelBuildingService.Model.Slot

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

Syntax

C#
public class Slot

The Slot type exposes the following members

Constructors

NameDescription
Public Method Slot()

Properties

NameTypeDescription
Public Property DefaultValueSpec Amazon.LexModelBuildingService.Model.SlotDefaultValueSpec

Gets and sets the property DefaultValueSpec.

A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.

Public Property Description System.String

Gets and sets the property Description.

A description of the slot.

Public Property Name System.String

Gets and sets the property Name.

The name of the slot.

Public Property ObfuscationSetting Amazon.LexModelBuildingService.ObfuscationSetting

Gets and sets the property ObfuscationSetting.

Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .

Public Property Priority System.Int32

Gets and sets the property Priority.

Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.

If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.

Public Property ResponseCard System.String

Gets and sets the property ResponseCard.

A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.

Public Property SampleUtterances System.Collections.Generic.List<System.String>

Gets and sets the property SampleUtterances.

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.

Public Property SlotConstraint Amazon.LexModelBuildingService.SlotConstraint

Gets and sets the property SlotConstraint.

Specifies whether the slot is required or optional.

Public Property SlotType System.String

Gets and sets the property SlotType.

The type of the slot, either a custom slot type that you defined or one of the built-in slot types.

Public Property SlotTypeVersion System.String

Gets and sets the property SlotTypeVersion.

The version of the slot type.

Public Property ValueElicitationPrompt Amazon.LexModelBuildingService.Model.Prompt

Gets and sets the property ValueElicitationPrompt.

The prompt that Amazon Lex uses to elicit the slot value from the user.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5