public static interface CfnUserPool.AccountRecoverySettingProperty
It allows you to define a preferred method when a user has more than one method available. With this setting, SMS does not qualify for a valid password recovery mechanism if the user also has SMS MFA enabled. In the absence of this setting, Cognito uses the legacy behavior to determine the recovery method where SMS is preferred over 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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnUserPool.AccountRecoverySettingProperty.Builder
A builder for
CfnUserPool.AccountRecoverySettingProperty |
static class |
CfnUserPool.AccountRecoverySettingProperty.Jsii$Proxy
An implementation for
CfnUserPool.AccountRecoverySettingProperty |
Modifier and Type | Method and Description |
---|---|
static CfnUserPool.AccountRecoverySettingProperty.Builder |
builder() |
default java.lang.Object |
getRecoveryMechanisms()
The list of `RecoveryOptionTypes` .
|
default java.lang.Object getRecoveryMechanisms()
static CfnUserPool.AccountRecoverySettingProperty.Builder builder()