class UserPoolEmail
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Cognito.UserPoolEmail |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#UserPoolEmail |
![]() | software.amazon.awscdk.services.cognito.UserPoolEmail |
![]() | aws_cdk.aws_cognito.UserPoolEmail |
![]() | 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. |
static withCognito(replyTo?)
public static withCognito(replyTo?: string): UserPoolEmail
Parameters
- replyTo
string
Returns
Send email using Cognito.
static withSES(options)
public static withSES(options: UserPoolSESOptions): UserPoolEmail
Parameters
- options
User
Pool SESOptions
Returns
Send email using SES.