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.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito
notify_email_type_property = cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty(
subject="subject",
# the properties below are optional
html_body="htmlBody",
text_body="textBody"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
NotifyEmailTypeProperty notifyEmailTypeProperty = NotifyEmailTypeProperty.builder()
.subject("subject")
// the properties below are optional
.htmlBody("htmlBody")
.textBody("textBody")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var notifyEmailTypeProperty = new NotifyEmailTypeProperty {
Subject = "subject",
// the properties below are optional
HtmlBody = "htmlBody",
TextBody = "textBody"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
notifyEmailTypeProperty := &NotifyEmailTypeProperty{
Subject: jsii.String("subject"),
// the properties below are optional
HtmlBody: jsii.String("htmlBody"),
TextBody: jsii.String("textBody"),
}
Properties
htmlBodyoptionalstringhtml_bodyoptionalstrhtmlBodyoptionalStringHtmlBodyoptionalstringHtmlBodyoptional*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.
The subject of the threat protection email notification.
textBodyoptionalstringtext_bodyoptionalstrtextBodyoptionalStringTextBodyoptionalstringTextBodyoptional*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.