aws-cdk-lib.aws_lex.CfnBot.StillWaitingResponseSpecificationProperty

interface StillWaitingResponseSpecificationProperty

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

Defines the messages that Amazon Lex sends to a user to remind them that the bot is waiting for a response.

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';
const stillWaitingResponseSpecificationProperty: lex.CfnBot.StillWaitingResponseSpecificationProperty = {
  frequencyInSeconds: 123,
  messageGroupsList: [{
    message: {
      customPayload: {
        value: 'value',
      },
      imageResponseCard: {
        title: 'title',

        // the properties below are optional
        buttons: [{
          text: 'text',
          value: 'value',
        }],
        imageUrl: 'imageUrl',
        subtitle: 'subtitle',
      },
      plainTextMessage: {
        value: 'value',
      },
      ssmlMessage: {
        value: 'value',
      },
    },

    // the properties below are optional
    variations: [{
      customPayload: {
        value: 'value',
      },
      imageResponseCard: {
        title: 'title',

        // the properties below are optional
        buttons: [{
          text: 'text',
          value: 'value',
        }],
        imageUrl: 'imageUrl',
        subtitle: 'subtitle',
      },
      plainTextMessage: {
        value: 'value',
      },
      ssmlMessage: {
        value: 'value',
      },
    }],
  }],
  timeoutInSeconds: 123,

  // the properties below are optional
  allowInterrupt: false,
};

Properties

NameTypeDescription
frequencyInSecondsnumberHow often a message should be sent to the user.
messageGroupsListIResolvable | IResolvable | MessageGroupProperty[]One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
timeoutInSecondsnumberIf Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
allowInterrupt?boolean | IResolvableIndicates that the user can interrupt the response by speaking while the message is being played.

frequencyInSeconds

Type: number

How often a message should be sent to the user.

Minimum of 1 second, maximum of 5 minutes.


messageGroupsList

Type: IResolvable | IResolvable | MessageGroupProperty[]

One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.


timeoutInSeconds

Type: number

If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.


allowInterrupt?

Type: boolean | IResolvable (optional)

Indicates that the user can interrupt the response by speaking while the message is being played.