VerificationEmailStyle

class aws_cdk.aws_cognito.VerificationEmailStyle(value)

Bases: Enum

The email verification style.

ExampleMetadata:

infused

Example:

cognito.UserPool(self, "myuserpool",
    # ...
    self_sign_up_enabled=True,
    user_verification=cognito.UserVerificationConfig(
        email_subject="Verify your email for our awesome app!",
        email_body="Thanks for signing up to our awesome app! Your verification code is {####}",
        email_style=cognito.VerificationEmailStyle.CODE,
        sms_message="Thanks for signing up to our awesome app! Your verification code is {####}"
    )
)

Attributes

CODE

Verify email via code.

Verify email via link.