Table of Contents

Class UserVerificationConfig

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

User pool configuration for user self sign up.

public class UserVerificationConfig : IUserVerificationConfig
Inheritance
UserVerificationConfig
Implements
Inherited Members

Examples

new UserPool(this, "myuserpool", new UserPoolProps {
                // ...
                SelfSignUpEnabled = true,
                UserVerification = new UserVerificationConfig {
                    EmailSubject = "Verify your email for our awesome app!",
                    EmailBody = "Thanks for signing up to our awesome app! Your verification code is {####}",
                    EmailStyle = VerificationEmailStyle.CODE,
                    SmsMessage = "Thanks for signing up to our awesome app! Your verification code is {####}"
                }
            });

Remarks

ExampleMetadata: infused

Constructors

UserVerificationConfig()

public UserVerificationConfig()

Properties

EmailBody

The email body template for the verification email sent to the user upon sign up.

public string? EmailBody { get; set; }

Property Value

string

Remarks

See https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-templates.html to learn more about message templates.

Default: - 'The verification code to your new account is {####}' if VerificationEmailStyle.CODE is chosen, 'Verify your account by clicking on {##Verify Email##}' if VerificationEmailStyle.LINK is chosen.

EmailStyle

Emails can be verified either using a code or a link.

public VerificationEmailStyle? EmailStyle { get; set; }

Property Value

VerificationEmailStyle?

Remarks

EmailSubject

The email subject template for the verification email sent to the user upon sign up.

public string? EmailSubject { get; set; }

Property Value

string

Remarks

See https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-templates.html to learn more about message templates.

Default: 'Verify your new account'

SmsMessage

The message template for the verification SMS sent to the user upon sign up.

public string? SmsMessage { get; set; }

Property Value

string

Remarks

See https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-templates.html to learn more about message templates.

Default: - 'The verification code to your new account is {####}' if VerificationEmailStyle.CODE is chosen, not configured if VerificationEmailStyle.LINK is chosen