aws-cdk-lib.aws_lex.CfnBot.SlotValueOverrideProperty

interface SlotValueOverrideProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.SlotValueOverrideProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_SlotValueOverrideProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.SlotValueOverrideProperty
Pythonaws_cdk.aws_lex.CfnBot.SlotValueOverrideProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » SlotValueOverrideProperty

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

Example

// 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: [{
    shape: 'shape',
    value: {
      interpretedValue: 'interpretedValue',
    },
    values: [slotValueOverrideProperty_],
  }],
};

Properties

NameTypeDescription
shape?stringWhen the shape value is List , it indicates that the values field contains a list of slot values.
value?IResolvable | SlotValuePropertyThe current value of the slot.
values?IResolvable | IResolvable | SlotValueOverrideProperty[]A list of one or more values that the user provided for the slot.

shape?

Type: string (optional)

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.


value?

Type: IResolvable | SlotValueProperty (optional)

The current value of the slot.


values?

Type: IResolvable | IResolvable | SlotValueOverrideProperty[] (optional)

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."