# MessageGroupProperty

Provides one or more messages that Amazon Lex should send to the user.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

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

- `message`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.MessageProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.MessageProperty.html) (required) — The primary message that Amazon Lex should send to the user.

- `variations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.MessageProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.MessageProperty.html)[] — 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.
