Skip to content
v2.277.0

MultipleValuesSettingProperty Struct ​

Indicates whether a slot can return multiple values.

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 multipleValuesSettingProperty: lex.CfnBot.MultipleValuesSettingProperty = {
  allowMultipleValues: false,
};
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

multiple_values_setting_property = lex.CfnBot.MultipleValuesSettingProperty(
    allow_multiple_values=False
)
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.*;

MultipleValuesSettingProperty multipleValuesSettingProperty = MultipleValuesSettingProperty.builder()
        .allowMultipleValues(false)
        .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 multipleValuesSettingProperty = new MultipleValuesSettingProperty {
    AllowMultipleValues = false
};
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"

multipleValuesSettingProperty := &MultipleValuesSettingProperty{
	AllowMultipleValues: jsii.Boolean(false),
}

Properties ​

allowMultipleValuesoptionalboolean | IResolvableallow_multiple_valuesoptionaltyping.Union[bool, IResolvable]allowMultipleValuesoptionalBooleanAllowMultipleValuesoptionalboolAllowMultipleValuesoptionalinterface{} #
Indicates whether a slot can return multiple values.
notes

When true , the slot may return more than one value in a response. When false , the slot returns only a single value.

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 allowMutlipleValues is not set, the default value is false .