Table of Contents

Interface CfnUserPool.IPasswordPolicyProperty

Namespace
Amazon.CDK.AWS.Cognito
Assembly
Amazon.CDK.AWS.Cognito.dll

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

Properties

MinimumLength

The minimum length of the password in the policy that you have set.

double? MinimumLength { get; }

Property Value

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.

object? RequireLowercase { get; }

Property Value

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.

object? RequireNumbers { get; }

Property Value

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.

object? RequireSymbols { get; }

Property Value

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.

object? RequireUppercase { get; }

Property Value

object

Remarks

TemporaryPasswordValidityDays

The number of days a temporary password is valid in the password policy.

double? TemporaryPasswordValidityDays { get; }

Property Value

double?

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-temporarypasswordvaliditydays