aws-cdk-lib.aws_lex.CfnBot.MessageGroupProperty

interface MessageGroupProperty

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

Provides one or more messages that Amazon Lex should send to 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';
const messageGroupProperty: lex.CfnBot.MessageGroupProperty = {
  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',
    },
  }],
};

Properties

NameTypeDescription
messageIResolvable | MessagePropertyThe primary message that Amazon Lex should send to the user.
variations?IResolvable | IResolvable | MessageProperty[]Message variations to send to the user.

message

Type: IResolvable | MessageProperty

The primary message that Amazon Lex should send to the user.


variations?

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

Message variations to send to the user.

When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.