Interface UserVerificationConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
UserVerificationConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:12.577Z") @Stability(Stable) public interface UserVerificationConfig extends software.amazon.jsii.JsiiSerializable
User pool configuration for user self sign up.

Example:

 UserPool.Builder.create(this, "myuserpool")
         // ...
         .selfSignUpEnabled(true)
         .userVerification(UserVerificationConfig.builder()
                 .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 {####}")
                 .build())
         .build();
 
  • Method Details

    • getEmailBody

      @Stability(Stable) @Nullable default String getEmailBody()
      The email body template for the verification email sent to the user upon sign up.

      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.

    • getEmailStyle

      @Stability(Stable) @Nullable default VerificationEmailStyle getEmailStyle()
      Emails can be verified either using a code or a link.

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

      Default: VerificationEmailStyle.CODE

    • getEmailSubject

      @Stability(Stable) @Nullable default String getEmailSubject()
      The email subject template for the verification email sent to the user upon sign up.

      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'

    • getSmsMessage

      @Stability(Stable) @Nullable default String getSmsMessage()
      The message template for the verification SMS sent to the user upon sign up.

      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

    • builder

      @Stability(Stable) static UserVerificationConfig.Builder builder()
      Returns:
      a UserVerificationConfig.Builder of UserVerificationConfig