Interface CfnUserPool.IPasswordPolicyProperty
The password policy type.
public interface CfnUserPool.IPasswordPolicyProperty
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 passwordPolicyProperty = new PasswordPolicyProperty {
MinimumLength = 123,
RequireLowercase = false,
RequireNumbers = false,
RequireSymbols = false,
RequireUppercase = false,
TemporaryPasswordValidityDays = 123
};
Remarks
ExampleMetadata: fixture=_generated
Properties
MinimumLength
The minimum length of the password in the policy that you have set.
double? MinimumLength { get; }
Property Value
Remarks
This value can't be less than 6.
RequireLowercase
In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
object? RequireLowercase { get; }
Property Value
Remarks
RequireNumbers
In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
object? RequireNumbers { get; }
Property Value
Remarks
RequireSymbols
In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
object? RequireSymbols { get; }
Property Value
Remarks
RequireUppercase
In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
object? RequireUppercase { get; }
Property Value
Remarks
TemporaryPasswordValidityDays
The number of days a temporary password is valid in the password policy.
double? TemporaryPasswordValidityDays { get; }
Property Value
Remarks
If the user doesn't sign in during this time, an administrator must reset their password.
When you set <code>TemporaryPasswordValidityDays</code> for a user pool, you can no longer set a value for the legacy <code>UnusedAccountValidityDays</code> parameter in that user pool.