class UserPoolEmail
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.UserPoolEmail |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#UserPoolEmail |
Java | software.amazon.awscdk.services.cognito.UserPoolEmail |
Python | aws_cdk.aws_cognito.UserPoolEmail |
TypeScript (source) | aws-cdk-lib » aws_cognito » UserPoolEmail |
Configure how Cognito sends emails.
Example
new cognito.UserPool(this, 'myuserpool', {
email: cognito.UserPoolEmail.withSES({
fromEmail: 'noreply@myawesomeapp.com',
fromName: 'Awesome App',
replyTo: 'support@myawesomeapp.com',
}),
});
Initializer
new UserPoolEmail()
Methods
Name | Description |
---|---|
static with | Send email using Cognito. |
static with | Send email using SES. |
Cognito(replyTo?)
static withpublic static withCognito(replyTo?: string): UserPoolEmail
Parameters
- replyTo
string
Returns
Send email using Cognito.
SES(options)
static withpublic static withSES(options: UserPoolSESOptions): UserPoolEmail
Parameters
- options
User
Pool SESOptions
Returns
Send email using SES.