Show / Hide Table of Contents

Class CfnBotPropsMixin.SlotTypeProperty

Describes a slot type.

Inheritance
object
CfnBotPropsMixin.SlotTypeProperty
Implements
CfnBotPropsMixin.ISlotTypeProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnBotPropsMixin.SlotTypeProperty : CfnBotPropsMixin.ISlotTypeProperty
Syntax (vb)
Public Class CfnBotPropsMixin.SlotTypeProperty Implements CfnBotPropsMixin.ISlotTypeProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins;

             var slotTypeProperty = new SlotTypeProperty {
                 CompositeSlotTypeSetting = new CompositeSlotTypeSettingProperty {
                     SubSlots = new [] { new SubSlotTypeCompositionProperty {
                         Name = "name",
                         SlotTypeId = "slotTypeId"
                     } }
                 },
                 Description = "description",
                 ExternalSourceSetting = new ExternalSourceSettingProperty {
                     GrammarSlotTypeSetting = new GrammarSlotTypeSettingProperty {
                         Source = new GrammarSlotTypeSourceProperty {
                             KmsKeyArn = "kmsKeyArn",
                             S3BucketName = "s3BucketName",
                             S3ObjectKey = "s3ObjectKey"
                         }
                     }
                 },
                 Name = "name",
                 ParentSlotTypeSignature = "parentSlotTypeSignature",
                 SlotTypeValues = new [] { new SlotTypeValueProperty {
                     SampleValue = new SampleValueProperty {
                         Value = "value"
                     },
                     Synonyms = new [] { new SampleValueProperty {
                         Value = "value"
                     } }
                 } },
                 ValueSelectionSetting = new SlotValueSelectionSettingProperty {
                     AdvancedRecognitionSetting = new AdvancedRecognitionSettingProperty {
                         AudioRecognitionStrategy = "audioRecognitionStrategy"
                     },
                     RegexFilter = new SlotValueRegexFilterProperty {
                         Pattern = "pattern"
                     },
                     ResolutionStrategy = "resolutionStrategy"
                 }
             };

Synopsis

Constructors

SlotTypeProperty()

Describes a slot type.

Properties

CompositeSlotTypeSetting

Describes a slot type.

Description

A description of the slot type.

ExternalSourceSetting

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

Name

The name of the slot type.

ParentSlotTypeSignature

The built-in slot type used as a parent of this slot type.

SlotTypeValues

A list of SlotTypeValue objects that defines the values that the slot type can take.

ValueSelectionSetting

Determines the slot resolution strategy that Amazon Lex uses to return slot type values.

Constructors

SlotTypeProperty()

Describes a slot type.

public SlotTypeProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins;

             var slotTypeProperty = new SlotTypeProperty {
                 CompositeSlotTypeSetting = new CompositeSlotTypeSettingProperty {
                     SubSlots = new [] { new SubSlotTypeCompositionProperty {
                         Name = "name",
                         SlotTypeId = "slotTypeId"
                     } }
                 },
                 Description = "description",
                 ExternalSourceSetting = new ExternalSourceSettingProperty {
                     GrammarSlotTypeSetting = new GrammarSlotTypeSettingProperty {
                         Source = new GrammarSlotTypeSourceProperty {
                             KmsKeyArn = "kmsKeyArn",
                             S3BucketName = "s3BucketName",
                             S3ObjectKey = "s3ObjectKey"
                         }
                     }
                 },
                 Name = "name",
                 ParentSlotTypeSignature = "parentSlotTypeSignature",
                 SlotTypeValues = new [] { new SlotTypeValueProperty {
                     SampleValue = new SampleValueProperty {
                         Value = "value"
                     },
                     Synonyms = new [] { new SampleValueProperty {
                         Value = "value"
                     } }
                 } },
                 ValueSelectionSetting = new SlotValueSelectionSettingProperty {
                     AdvancedRecognitionSetting = new AdvancedRecognitionSettingProperty {
                         AudioRecognitionStrategy = "audioRecognitionStrategy"
                     },
                     RegexFilter = new SlotValueRegexFilterProperty {
                         Pattern = "pattern"
                     },
                     ResolutionStrategy = "resolutionStrategy"
                 }
             };

Properties

CompositeSlotTypeSetting

Describes a slot type.

public object? CompositeSlotTypeSetting { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html#cfn-lex-bot-slottype-compositeslottypesetting

Type union: either IResolvable or CfnBotPropsMixin.ICompositeSlotTypeSettingProperty

Description

A description of the slot type.

public string? Description { get; set; }
Property Value

string

Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html#cfn-lex-bot-slottype-description

ExternalSourceSetting

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

public object? ExternalSourceSetting { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html#cfn-lex-bot-slottype-externalsourcesetting

Type union: either IResolvable or CfnBotPropsMixin.IExternalSourceSettingProperty

Name

The name of the slot type.

public string? Name { get; set; }
Property Value

string

Remarks

A slot type name must be unique withing the account.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html#cfn-lex-bot-slottype-name

ParentSlotTypeSignature

The built-in slot type used as a parent of this slot type.

public string? ParentSlotTypeSignature { get; set; }
Property Value

string

Remarks

When you define a parent slot type, the new slot type has the configuration of the parent lot type.

Only AMAZON.AlphaNumeric is supported.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html#cfn-lex-bot-slottype-parentslottypesignature

SlotTypeValues

A list of SlotTypeValue objects that defines the values that the slot type can take.

public object? SlotTypeValues { get; set; }
Property Value

object

Remarks

Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for the slot.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html#cfn-lex-bot-slottype-slottypevalues

Type union: either IResolvable or (either IResolvable or CfnBotPropsMixin.ISlotTypeValueProperty)[]

ValueSelectionSetting

Determines the slot resolution strategy that Amazon Lex uses to return slot type values.

public object? ValueSelectionSetting { get; set; }
Property Value

object

Remarks

The field can be set to one of the following values:

    If you don't specify the valueSelectionStrategy , the default is ORIGINAL_VALUE .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slottype.html#cfn-lex-bot-slottype-valueselectionsetting

    Type union: either IResolvable or CfnBotPropsMixin.ISlotValueSelectionSettingProperty

    Implements

    CfnBotPropsMixin.ISlotTypeProperty
    Back to top Generated by DocFX