# MessageProperty

The object that provides message text and its type.

- 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 messageProperty: lex.CfnBot.MessageProperty = {
  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

- `customPayload`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.CustomPayloadProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.CustomPayloadProperty.html) — A message in a custom format defined by the client application.

- `imageResponseCard`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.ImageResponseCardProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.ImageResponseCardProperty.html) — A message that defines a response card that the client application can show to the user.

- `plainTextMessage`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.PlainTextMessageProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.PlainTextMessageProperty.html) — A message in plain text format.

- `ssmlMessage`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.SSMLMessageProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.SSMLMessageProperty.html) — A message in Speech Synthesis Markup Language (SSML).
