Show / Hide Table of Contents

Interface IUserVerificationConfig

User pool configuration for user self sign up.

Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IUserVerificationConfig
Syntax (vb)
Public Interface IUserVerificationConfig
Remarks

ExampleMetadata: infused

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 {####}"
                }
            });

Synopsis

Properties

EmailBody

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

EmailStyle

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

EmailSubject

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

SmsMessage

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

Properties

EmailBody

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

string? EmailBody { get; }
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.

VerificationEmailStyle? EmailStyle { get; }
Property Value

VerificationEmailStyle?

Remarks

Learn more at https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-email-verification-message-customization.html

Default: VerificationEmailStyle.CODE

EmailSubject

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

string? EmailSubject { get; }
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.

string? SmsMessage { get; }
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

Back to top Generated by DocFX