# 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 at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `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.
