Class CfnUserPool.AccountRecoverySettingProperty
Use this setting to define which verified available method a user can use to recover their password when they call ForgotPassword
.
Inheritance
System.Object
CfnUserPool.AccountRecoverySettingProperty
Implements
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public class AccountRecoverySettingProperty : Object, CfnUserPool.IAccountRecoverySettingProperty
Syntax (vb)
Public Class AccountRecoverySettingProperty
Inherits Object
Implements CfnUserPool.IAccountRecoverySettingProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var accountRecoverySettingProperty = new AccountRecoverySettingProperty {
RecoveryMechanisms = new [] { new RecoveryOptionProperty {
Name = "name",
Priority = 123
} }
};
Synopsis
Constructors
AccountRecoverySettingProperty() |
Properties
RecoveryMechanisms | The list of |
Constructors
AccountRecoverySettingProperty()
public AccountRecoverySettingProperty()
Properties
RecoveryMechanisms
The list of RecoveryOptionTypes
.
public object RecoveryMechanisms { get; set; }
Property Value
System.Object