Skip to content
v2.278.0

SlotTypeValueProperty Struct ​

Each slot type can have a set of values.

Each SlotTypeValue represents a value that the slot type can take.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const slotTypeValueProperty: lex.CfnBot.SlotTypeValueProperty = {
  sampleValue: {
    value: 'value',
  },

  // the properties below are optional
  synonyms: [{
    value: 'value',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex

slot_type_value_property = lex.CfnBot.SlotTypeValueProperty(
    sample_value=lex.CfnBot.SampleValueProperty(
        value="value"
    ),

    # the properties below are optional
    synonyms=[lex.CfnBot.SampleValueProperty(
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;

SlotTypeValueProperty slotTypeValueProperty = SlotTypeValueProperty.builder()
        .sampleValue(SampleValueProperty.builder()
                .value("value")
                .build())

        // the properties below are optional
        .synonyms(List.of(SampleValueProperty.builder()
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;

var slotTypeValueProperty = new SlotTypeValueProperty {
    SampleValue = new SampleValueProperty {
        Value = "value"
    },

    // the properties below are optional
    Synonyms = new [] { new SampleValueProperty {
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

slotTypeValueProperty := &SlotTypeValueProperty{
	SampleValue: &SampleValueProperty{
		Value: jsii.String("value"),
	},

	// the properties below are optional
	Synonyms: []interface{}{
		&SampleValueProperty{
			Value: jsii.String("value"),
		},
	},
}

Properties ​

sampleValueIResolvable | CfnBot.SampleValuePropertysample_valuetyping.Union[IResolvable, SampleValueProperty]sampleValueIResolvableSampleValueIResolvableSampleValueinterface{} required #
The value of the slot type entry.
synonymsoptionalIResolvable | IResolvable | CfnBot.SampleValueProperty[]synonymsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SampleValueProperty]]]synonymsoptionalIResolvableSynonymsoptionalIResolvableSynonymsoptionalinterface{} #
Additional values related to the slot type entry.