Skip to content
v2.274.0

NotifyEmailTypeProperty Struct ​

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

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 ​

htmlBodystringhtml_bodystrhtmlBodyStringHtmlBodystringHtmlBody*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.

subjectstringsubjectstrsubjectStringSubjectstringSubject*stringrequired#
The subject of the threat protection email notification.
textBodystringtext_bodystrtextBodyStringTextBodystringTextBody*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.