Cognito User Pool - "Email Delivery through Amazon SES" #7309
Labels
@aws-cdk/aws-cognito
Related to Amazon Cognito
@aws-cdk/aws-ses
Related to Amazon Simple Email Service
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Cognito User Pool currently has an option called "Email Delivery through Amazon SES". I couldn't find any corresponding attribute in CDK: https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.UserPool.html
Use Case
Currently, the
UserPool
construct is marked as experimental API (presumably, subject to change). But, most of the functionalities are already there. One of the missing features seems to be an attribute to be able to use AWS SES for email invitation/verification. This is somewhat related to #7235, but unlike #7235, this option "Email Delivery through Amazon SES" can be changed after a userpool is created, and hence I would think this feature request could be a low priority (at least, lower than #7235). Still, it would be nice to be able to automate every step without having to go to the console.Proposed Solution
There is an interface called
EmailSettings
(experimental), https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.EmailSettings.html. We may be able to use this attribute to this interface.One thing to note is that, according to the console UI, setting this value (Delivery through SES) to true requires From Email Address ARN (not just email address string). Hence, we will need a way to specify the from email address arn as well.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: