Class CfnUserPool.PasswordPolicyProperty
The password policy type.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public class PasswordPolicyProperty : Object, CfnUserPool.IPasswordPolicyProperty
Syntax (vb)
Public Class PasswordPolicyProperty
Inherits Object
Implements CfnUserPool.IPasswordPolicyProperty
Remarks
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 passwordPolicyProperty = new PasswordPolicyProperty {
MinimumLength = 123,
RequireLowercase = false,
RequireNumbers = false,
RequireSymbols = false,
RequireUppercase = false,
TemporaryPasswordValidityDays = 123
};
Synopsis
Constructors
PasswordPolicyProperty() |
Properties
MinimumLength | The minimum length of the password in the policy that you have set. |
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. |
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. |
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. |
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. |
TemporaryPasswordValidityDays | The number of days a temporary password is valid in the password policy. |
Constructors
PasswordPolicyProperty()
public PasswordPolicyProperty()
Properties
MinimumLength
The minimum length of the password in the policy that you have set.
public Nullable<double> MinimumLength { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.
public object RequireLowercase { get; set; }
Property Value
System.Object
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.
public object RequireNumbers { get; set; }
Property Value
System.Object
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.
public object RequireSymbols { get; set; }
Property Value
System.Object
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.
public object RequireUppercase { get; set; }
Property Value
System.Object
Remarks
TemporaryPasswordValidityDays
The number of days a temporary password is valid in the password policy.
public Nullable<double> TemporaryPasswordValidityDays { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
If the user doesn't sign in during this time, an administrator must reset their password.
When you set TemporaryPasswordValidityDays
for a user pool, you can no longer set a value for the legacy UnusedAccountValidityDays
parameter in that user pool.