public static interface PasswordPolicy.Builder extends SdkPojo, CopyableBuilder<PasswordPolicy.Builder,PasswordPolicy>
| Modifier and Type | Method and Description |
|---|---|
PasswordPolicy.Builder |
allowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
|
PasswordPolicy.Builder |
expirePasswords(Boolean expirePasswords)
Indicates whether passwords in the account expire.
|
PasswordPolicy.Builder |
hardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password via the Amazon Web Services Management
Console after their password has expired.
|
PasswordPolicy.Builder |
maxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
PasswordPolicy.Builder |
minimumPasswordLength(Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
|
PasswordPolicy.Builder |
passwordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
|
PasswordPolicy.Builder |
requireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
|
PasswordPolicy.Builder |
requireNumbers(Boolean requireNumbers)
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
|
PasswordPolicy.Builder |
requireSymbols(Boolean requireSymbols)
Specifies whether IAM user passwords must contain at least one of the following symbols:
|
PasswordPolicy.Builder |
requireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPasswordPolicy.Builder minimumPasswordLength(Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
minimumPasswordLength - Minimum length to require for IAM user passwords.PasswordPolicy.Builder requireSymbols(Boolean requireSymbols)
Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
requireSymbols - Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
PasswordPolicy.Builder requireNumbers(Boolean requireNumbers)
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
requireNumbers - Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).PasswordPolicy.Builder requireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
requireUppercaseCharacters - Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).PasswordPolicy.Builder requireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
requireLowercaseCharacters - Specifies whether IAM user passwords must contain at least one lowercase character (a to z).PasswordPolicy.Builder allowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password. Gives IAM users permissions to
iam:ChangePassword for only their user and to the iam:GetAccountPasswordPolicy
action. This option does not attach a permissions policy to each user, rather the permissions are applied at
the account-level for all users by IAM.
allowUsersToChangePassword - Specifies whether IAM users are allowed to change their own password. Gives IAM users permissions to
iam:ChangePassword for only their user and to the
iam:GetAccountPasswordPolicy action. This option does not attach a permissions policy to
each user, rather the permissions are applied at the account-level for all users by IAM.PasswordPolicy.Builder expirePasswords(Boolean expirePasswords)
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge contains a
value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
expirePasswords - Indicates whether passwords in the account expire. Returns true if MaxPasswordAge
contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.PasswordPolicy.Builder maxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
maxPasswordAge - The number of days that an IAM user password is valid.PasswordPolicy.Builder passwordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
passwordReusePrevention - Specifies the number of previous passwords that IAM users are prevented from reusing.PasswordPolicy.Builder hardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password via the Amazon Web Services Management
Console after their password has expired. The IAM user cannot access the console until an administrator
resets the password. IAM users with iam:ChangePassword permission and active access keys can
reset their own expired console password using the CLI or API.
hardExpiry - Specifies whether IAM users are prevented from setting a new password via the Amazon Web Services
Management Console after their password has expired. The IAM user cannot access the console until an
administrator resets the password. IAM users with iam:ChangePassword permission and
active access keys can reset their own expired console password using the CLI or API.Copyright © 2022. All rights reserved.