aws-cdk-lib.aws_lex.CfnBot.DialogStateProperty

interface DialogStateProperty

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

The current state of the conversation with the user.

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 dialogStateProperty: lex.CfnBot.DialogStateProperty = {
  dialogAction: {
    type: 'type',

    // the properties below are optional
    slotToElicit: 'slotToElicit',
    suppressNextMessage: false,
  },
  intent: {
    name: 'name',
    slots: [{
      slotName: 'slotName',
      slotValueOverride: {
        shape: 'shape',
        value: {
          interpretedValue: 'interpretedValue',
        },
        values: [slotValueOverrideProperty_],
      },
    }],
  },
  sessionAttributes: [{
    key: 'key',

    // the properties below are optional
    value: 'value',
  }],
};

Properties

NameTypeDescription
dialogAction?IResolvable | DialogActionPropertyDefines the action that the bot executes at runtime when the conversation reaches this step.
intent?IResolvable | IntentOverridePropertyOverride settings to configure the intent state.
sessionAttributes?IResolvable | IResolvable | SessionAttributeProperty[]Map of key/value pairs representing session-specific context information.

dialogAction?

Type: IResolvable | DialogActionProperty (optional)

Defines the action that the bot executes at runtime when the conversation reaches this step.


intent?

Type: IResolvable | IntentOverrideProperty (optional)

Override settings to configure the intent state.


sessionAttributes?

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

Map of key/value pairs representing session-specific context information.

It contains application information passed between Amazon Lex and a client application.