Class UserPoolEmail
Configure how Cognito sends emails.
Inheritance
System.Object
UserPoolEmail
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class UserPoolEmail : DeputyBase
Syntax (vb)
Public MustInherit Class UserPoolEmail
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
new UserPool(this, "myuserpool", new UserPoolProps {
Email = UserPoolEmail.WithSES(new UserPoolSESOptions {
FromEmail = "noreply@myawesomeapp.com",
FromName = "Awesome App",
ReplyTo = "support@myawesomeapp.com"
})
});
Synopsis
Constructors
UserPoolEmail() | |
UserPoolEmail(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
UserPoolEmail(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
WithCognito(String) | Send email using Cognito. |
WithSES(IUserPoolSESOptions) | Send email using SES. |
Constructors
UserPoolEmail()
protected UserPoolEmail()
UserPoolEmail(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected UserPoolEmail(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
UserPoolEmail(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected UserPoolEmail(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
WithCognito(String)
Send email using Cognito.
public static UserPoolEmail WithCognito(string replyTo = null)
Parameters
- replyTo System.String
Returns
WithSES(IUserPoolSESOptions)
Send email using SES.
public static UserPoolEmail WithSES(IUserPoolSESOptions options)
Parameters
- options IUserPoolSESOptions
Returns