@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:57.377Z")
public interface PasswordPolicy
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();
Modifier and Type | Interface and Description |
---|---|
static class |
PasswordPolicy.Builder
A builder for
PasswordPolicy |
static class |
PasswordPolicy.Jsii$Proxy
An implementation for
PasswordPolicy |
Modifier and Type | Method and Description |
---|---|
static PasswordPolicy.Builder |
builder() |
default java.lang.Number |
getMinLength()
Minimum length required for a user's password.
|
default java.lang.Boolean |
getRequireDigits()
Whether the user is required to have digits in their password.
|
default java.lang.Boolean |
getRequireLowercase()
Whether the user is required to have lowercase characters in their password.
|
default java.lang.Boolean |
getRequireSymbols()
Whether the user is required to have symbols in their password.
|
default java.lang.Boolean |
getRequireUppercase()
Whether the user is required to have uppercase characters in their password.
|
default Duration |
getTempPasswordValidity()
The length of time the temporary password generated by an admin is valid.
|
default java.lang.Number getMinLength()
Default: 8
default java.lang.Boolean getRequireDigits()
Default: true
default java.lang.Boolean getRequireLowercase()
Default: true
default java.lang.Boolean getRequireSymbols()
Default: true
default java.lang.Boolean getRequireUppercase()
Default: true
default Duration getTempPasswordValidity()
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)
static PasswordPolicy.Builder builder()
PasswordPolicy.Builder
of PasswordPolicy