@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.699Z") @Stability(value=Stable) public interface UserVerificationConfig extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserVerificationConfig.Builder
A builder for
UserVerificationConfig |
static class |
UserVerificationConfig.Jsii$Proxy
An implementation for
UserVerificationConfig |
| Modifier and Type | Method and Description |
|---|---|
static UserVerificationConfig.Builder |
builder() |
default String |
getEmailBody()
The email body template for the verification email sent to the user upon sign up.
|
default VerificationEmailStyle |
getEmailStyle()
Emails can be verified either using a code or a link.
|
default String |
getEmailSubject()
The email subject template for the verification email sent to the user upon sign up.
|
default String |
getSmsMessage()
The message template for the verification SMS sent to the user upon sign up.
|
@Stability(value=Stable) @Nullable default String getEmailBody()
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.
@Stability(value=Stable) @Nullable default VerificationEmailStyle getEmailStyle()
Learn more at https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-email-verification-message-customization.html
Default: VerificationEmailStyle.CODE
@Stability(value=Stable) @Nullable default String getEmailSubject()
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'
@Stability(value=Stable) @Nullable default String getSmsMessage()
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
@Stability(value=Stable) static UserVerificationConfig.Builder builder()
UserVerificationConfig.Builder of UserVerificationConfigCopyright © 2022. All rights reserved.