Enum VerificationEmailStyle

java.lang.Object
java.lang.Enum<VerificationEmailStyle>
software.amazon.awscdk.services.cognito.VerificationEmailStyle
All Implemented Interfaces:
Serializable, Comparable<VerificationEmailStyle>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.95.0 (build f1ff514)", date="2024-03-26T18:09:21.480Z") @Stability(Stable) public enum VerificationEmailStyle extends Enum<VerificationEmailStyle>
The email verification style.

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();
 
  • Enum Constant Details

  • Method Details

    • values

      public static VerificationEmailStyle[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static VerificationEmailStyle valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null