Skip to content
v2.277.0

SlotDefaultValueSpecificationProperty Struct ​

The default value to use when a user doesn't provide a value for a slot.

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 slotDefaultValueSpecificationProperty: lex.CfnBot.SlotDefaultValueSpecificationProperty = {
  defaultValueList: [{
    defaultValue: 'defaultValue',
  }],
};
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_default_value_specification_property = lex.CfnBot.SlotDefaultValueSpecificationProperty(
    default_value_list=[lex.CfnBot.SlotDefaultValueProperty(
        default_value="defaultValue"
    )]
)
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.*;

SlotDefaultValueSpecificationProperty slotDefaultValueSpecificationProperty = SlotDefaultValueSpecificationProperty.builder()
        .defaultValueList(List.of(SlotDefaultValueProperty.builder()
                .defaultValue("defaultValue")
                .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 slotDefaultValueSpecificationProperty = new SlotDefaultValueSpecificationProperty {
    DefaultValueList = new [] { new SlotDefaultValueProperty {
        DefaultValue = "defaultValue"
    } }
};
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"

slotDefaultValueSpecificationProperty := &SlotDefaultValueSpecificationProperty{
	DefaultValueList: []interface{}{
		&SlotDefaultValueProperty{
			DefaultValue: jsii.String("defaultValue"),
		},
	},
}

Properties ​

defaultValueListIResolvable | IResolvable | CfnBot.SlotDefaultValueProperty[]default_value_listtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SlotDefaultValueProperty]]]defaultValueListIResolvableDefaultValueListIResolvableDefaultValueListinterface{}required#
A list of default values.

Amazon Lex chooses the default value to use in the order that they are presented in the list.