Skip to content

(aws-cognito): send emails with a verified domain #19762

@kmkhr

Description

@kmkhr

Describe the feature

Allow Cognito UserPool to send emails with a Amazon SES verified domain.

Use Case

When sending emails with a verified domain, the email address does not need to be verified.
In that case, the identity of the SourceArn in EmailConfiguration is allow to be set to the domain instead of the email address.

Proposed Solution

Add sesVerifiedDomain to UserPoolSESOptions.

new UserPool(stack, 'Pool', {
      email: UserPoolEmail.withSES({
        fromEmail: 'mycustomemail@example.com',
        fromName: 'My Custom Email',
        replyTo: 'reply@example.com',
        configurationSetName: 'default',
        sesVerifiedDomain: 'example.com',
      }),
    });

Other Information

relate #18825

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.19.0

Environment details (OS name and version, etc.)

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cognitoRelated to Amazon Cognitoeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions