# NotifyEmailTypeProperty

The template for email messages that advanced security features sends to a user when your threat protection automated response has a *Notify* action.

- 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_cognito as cognito } from 'aws-cdk-lib';
const notifyEmailTypeProperty: cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty = {
  subject: 'subject',

  // the properties below are optional
  htmlBody: 'htmlBody',
  textBody: 'textBody',
};
```

## Properties

- `htmlBody`: string — The body of an email notification formatted in HTML.

  Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, respectively.

- `subject`: string (required) — The subject of the threat protection email notification.

- `textBody`: string — The body of an email notification formatted in plaintext.

  Choose an `HtmlBody` or a `TextBody` to send an HTML-formatted or plaintext message, respectively.
