Interface PasswordPolicy
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PasswordPolicy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.030Z")
@Stability(Stable)
public interface PasswordPolicy
extends software.amazon.jsii.JsiiSerializable
Password policy for User Pools.
Example:
UserPool.Builder.create(this, "myuserpool") // ... .passwordPolicy(PasswordPolicy.builder() .minLength(12) .requireLowercase(true) .requireUppercase(true) .requireDigits(true) .requireSymbols(true) .tempPasswordValidity(Duration.days(3)) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forPasswordPolicy
static final class
An implementation forPasswordPolicy
-
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordPolicy.Builder
builder()
default Number
Minimum length required for a user's password.default Boolean
Whether the user is required to have digits in their password.default Boolean
Whether the user is required to have lowercase characters in their password.default Boolean
Whether the user is required to have symbols in their password.default Boolean
Whether the user is required to have uppercase characters in their password.default Duration
The length of time the temporary password generated by an admin is valid.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMinLength
Minimum length required for a user's password.Default: 8
-
getRequireDigits
Whether the user is required to have digits in their password.Default: true
-
getRequireLowercase
Whether the user is required to have lowercase characters in their password.Default: true
-
getRequireSymbols
Whether the user is required to have symbols in their password.Default: true
-
getRequireUppercase
Whether the user is required to have uppercase characters in their password.Default: true
-
getTempPasswordValidity
The length of time the temporary password generated by an admin is valid.This must be provided as whole days, like Duration.days(3) or Duration.hours(48). Fractional days, such as Duration.hours(20), will generate an error.
Default: Duration.days(7)
-
builder
- Returns:
- a
PasswordPolicy.Builder
ofPasswordPolicy
-