Skip to content
v2.278.0

EmailSettings ​

Struct Stable

Email settings for the user pool.

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 emailSettings: cognito.EmailSettings = {
  from: 'from',
  replyTo: 'replyTo',
};
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

email_settings = cognito.EmailSettings(
    from="from",
    reply_to="replyTo"
)
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.*;

EmailSettings emailSettings = EmailSettings.builder()
        .from("from")
        .replyTo("replyTo")
        .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 emailSettings = new EmailSettings {
    From = "from",
    ReplyTo = "replyTo"
};
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"

emailSettings := &EmailSettings{
	From: jsii.String("from"),
	ReplyTo: jsii.String("replyTo"),
}

Properties ​

fromoptionalstringfromoptionalstrfromoptionalStringFromoptionalstringFromoptional*string = noreply@verificationemail.com #
The 'from' address on the emails received by the user.
replyTooptionalstringreply_tooptionalstrreplyTooptionalStringReplyTooptionalstringReplyTooptional*string #
The 'replyTo' address on the emails received by the user as defined by IETF RFC-5322.

Default: Not set.

When set, most email clients recognize to change 'to' line to this address when a reply is drafted.