Kristian Lake
04/24/2022, 7:31 PMFrank
new Auth(this, "Auth", {
cdk: {
userPool: {
email: cognito.UserPoolEmail.withSES({
fromEmail: '<mailto:noreply@myawesomeapp.com|noreply@myawesomeapp.com>',
fromName: 'Awesome App',
replyTo: '<mailto:support@myawesomeapp.com|support@myawesomeapp.com>',
}),
},
});
Frank
Frank
const auth = new Auth(this, "Auth");
// Get the CloudFormation resource of the UserPool
const cfnUserPool = auth.cdk.userPool.node.defaultChild;
// Set raw CloudFormation settings for email
cfnUserPool.emailConfiguration = {
configurationSet,
emailSendingAccount,
from,
replyToEmailAddress,
sourceArn,
};
You can read more about what each field takes in the CloudFormation doc for User Pool https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.htmlFrank
Kristian Lake
05/01/2022, 10:29 AMKristian Lake
05/01/2022, 11:02 AM