Interface CfnUserPool.AccountRecoverySettingProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnUserPool.AccountRecoverySettingProperty.Jsii$Proxy
Enclosing class:
CfnUserPool

@Stability(Stable) public static interface CfnUserPool.AccountRecoverySettingProperty extends software.amazon.jsii.JsiiSerializable
The available verified method a user can use to recover their password when they call ForgotPassword .

You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cognito.*;
 AccountRecoverySettingProperty accountRecoverySettingProperty = AccountRecoverySettingProperty.builder()
         .recoveryMechanisms(List.of(RecoveryOptionProperty.builder()
                 .name("name")
                 .priority(123)
                 .build()))
         .build();
 

See Also: