Table of Contents

Class UserPoolEmail

Namespace
Amazon.CDK.AWS.Cognito
Assembly
Amazon.CDK.AWS.Cognito.dll

Configure how Cognito sends emails.

public abstract class UserPoolEmail : DeputyBase
Inheritance
UserPoolEmail

Examples

new UserPool(this, "myuserpool", new UserPoolProps {
                Email = UserPoolEmail.WithSES(new UserPoolSESOptions {
                    FromEmail = "noreply@myawesomeapp.com",
                    FromName = "Awesome App",
                    ReplyTo = "support@myawesomeapp.com"
                })
            });

Remarks

ExampleMetadata: infused

Constructors

UserPoolEmail()

protected UserPoolEmail()

Methods

WithCognito(string?)

Send email using Cognito.

public static UserPoolEmail WithCognito(string? replyTo = null)

Parameters

replyTo string

Returns

UserPoolEmail

WithSES(IUserPoolSESOptions)

Send email using SES.

public static UserPoolEmail WithSES(IUserPoolSESOptions options)

Parameters

options IUserPoolSESOptions

Returns

UserPoolEmail