Skip to content
v2.278.0

SlotValueOverrideProperty Struct ​

The slot values that Amazon Lex uses when it sets slot values in a dialog step.

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';

declare const slotValueOverrideProperty_: lex.CfnBot.SlotValueOverrideProperty;
const slotValueOverrideProperty: lex.CfnBot.SlotValueOverrideProperty = {
  shape: 'shape',
  value: {
    interpretedValue: 'interpretedValue',
  },
  values: [slotValueOverrideProperty_],
};
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_value_override_property_: lex.CfnBot.SlotValueOverrideProperty

slot_value_override_property = lex.CfnBot.SlotValueOverrideProperty(
    shape="shape",
    value=lex.CfnBot.SlotValueProperty(
        interpreted_value="interpretedValue"
    ),
    values=[slot_value_override_property_]
)
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.*;

SlotValueOverrideProperty slotValueOverrideProperty_;

SlotValueOverrideProperty slotValueOverrideProperty = SlotValueOverrideProperty.builder()
        .shape("shape")
        .value(SlotValueProperty.builder()
                .interpretedValue("interpretedValue")
                .build())
        .values(List.of(slotValueOverrideProperty_))
        .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;

SlotValueOverrideProperty slotValueOverrideProperty_;

var slotValueOverrideProperty = new SlotValueOverrideProperty {
    Shape = "shape",
    Value = new SlotValueProperty {
        InterpretedValue = "interpretedValue"
    },
    Values = new [] { slotValueOverrideProperty_ }
};
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"

var slotValueOverrideProperty_ SlotValueOverrideProperty

slotValueOverrideProperty := &SlotValueOverrideProperty{
	Shape: jsii.String("shape"),
	Value: &SlotValueProperty{
		InterpretedValue: jsii.String("interpretedValue"),
	},
	Values: []interface{}{
		slotValueOverrideProperty_,
	},
}

Properties ​

shapeoptionalstringshapeoptionalstrshapeoptionalStringShapeoptionalstringShapeoptional*string #
When the shape value is `List` , it indicates that the `values` field contains a list of slot values.

When the value is Scalar , it indicates that the value field contains a single value.

valueoptionalIResolvable | CfnBot.SlotValuePropertyvalueoptionaltyping.Union[IResolvable, SlotValueProperty]valueoptionalIResolvableValueoptionalIResolvableValueoptionalinterface{} #
The current value of the slot.
valuesoptionalIResolvable | IResolvable | CfnBot.SlotValueOverrideProperty[]valuesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SlotValueOverrideProperty]]]valuesoptionalIResolvableValuesoptionalIResolvableValuesoptionalinterface{} #
A list of one or more values that the user provided for the slot.

For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."