aws-cdk-lib.aws_cognito.UserPoolSESOptions

interface UserPoolSESOptions

LanguageType name
.NETAmazon.CDK.AWS.Cognito.UserPoolSESOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscognito#UserPoolSESOptions
Javasoftware.amazon.awscdk.services.cognito.UserPoolSESOptions
Pythonaws_cdk.aws_cognito.UserPoolSESOptions
TypeScript (source)aws-cdk-lib » aws_cognito » UserPoolSESOptions

Configuration for Cognito sending emails via Amazon SES.

Example

new cognito.UserPool(this, 'myuserpool', {
  email: cognito.UserPoolEmail.withSES({
    fromEmail: 'noreply@myawesomeapp.com',
    fromName: 'Awesome App',
    replyTo: 'support@myawesomeapp.com',
  }),
});

Properties

NameTypeDescription
fromEmailstringThe verified Amazon SES email address that Cognito should use to send emails.
configurationSetName?stringThe name of a configuration set in Amazon SES that should be applied to emails sent via Cognito.
fromName?stringAn optional name that should be used as the sender's name along with the email.
replyTo?stringThe destination to which the receiver of the email should reply to.
sesRegion?stringRequired if the UserPool region is different than the SES region.
sesVerifiedDomain?stringSES Verified custom domain to be used to verify the identity.

fromEmail

Type: string

The verified Amazon SES email address that Cognito should use to send emails.

The email address used must be a verified email address in Amazon SES and must be configured to allow Cognito to send emails.

See also: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-email.html


configurationSetName?

Type: string (optional, default: no configuration set)

The name of a configuration set in Amazon SES that should be applied to emails sent via Cognito.

See also: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-configurationset


fromName?

Type: string (optional, default: no name)

An optional name that should be used as the sender's name along with the email.


replyTo?

Type: string (optional, default: same as the fromEmail)

The destination to which the receiver of the email should reply to.


sesRegion?

Type: string (optional, default: The same region as the Cognito UserPool)

Required if the UserPool region is different than the SES region.

If sending emails with a Amazon SES verified email address, and the region that SES is configured is different than the region in which the UserPool is deployed, you must specify that region here.


sesVerifiedDomain?

Type: string (optional, default: no domain)

SES Verified custom domain to be used to verify the identity.