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.106.0 (build e852934)",
date="2025-01-25T00:20:53.096Z")
@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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VerificationEmailStyle
Returns the enum constant of this type with the specified name.static VerificationEmailStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CODE
Verify email via code. -
LINK
Verify email via link.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-