Class UserPoolSESOptions
Configuration for Cognito sending emails via Amazon SES.
public class UserPoolSESOptions : IUserPoolSESOptions
- Inheritance
-
UserPoolSESOptions
- Implements
- Inherited Members
Examples
new UserPool(this, "myuserpool", new UserPoolProps {
Email = UserPoolEmail.WithSES(new UserPoolSESOptions {
SesRegion = "us-east-1",
FromEmail = "noreply@myawesomeapp.com",
FromName = "Awesome App",
ReplyTo = "support@myawesomeapp.com"
})
});
Remarks
ExampleMetadata: infused
Constructors
UserPoolSESOptions()
public UserPoolSESOptions()
Properties
ConfigurationSetName
The name of a configuration set in Amazon SES that should be applied to emails sent via Cognito.
public string? ConfigurationSetName { get; set; }
Property Value
Remarks
Default: - no configuration set
FromEmail
The verified Amazon SES email address that Cognito should use to send emails.
public string FromEmail { get; set; }
Property Value
Remarks
The email address used must be a verified email address in Amazon SES and must be configured to allow Cognito to send emails.
See: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-email.html
FromName
An optional name that should be used as the sender's name along with the email.
public string? FromName { get; set; }
Property Value
Remarks
Default: - no name
ReplyTo
The destination to which the receiver of the email should reploy to.
public string? ReplyTo { get; set; }
Property Value
Remarks
Default: - same as the fromEmail
SesRegion
Required if the UserPool region is different than the SES region.
public string? SesRegion { get; set; }
Property Value
Remarks
If sending emails with a Amazon SES verified email address, and the region that SES is configured is different than the region in which the UserPool is deployed, you must specify that region here.
Must be 'us-east-1', 'us-west-2', or 'eu-west-1'
Default: - The same region as the Cognito UserPool
SesVerifiedDomain
SES Verified custom domain to be used to verify the identity.
public string? SesVerifiedDomain { get; set; }
Property Value
Remarks
Default: - no domain