Interface PasswordPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PasswordPolicy.Builder,
,PasswordPolicy> SdkBuilder<PasswordPolicy.Builder,
,PasswordPolicy> SdkPojo
- Enclosing class:
PasswordPolicy
-
Method Summary
Modifier and TypeMethodDescriptionallowUsersToChangePassword
(Boolean allowUsersToChangePassword) Specifies whether IAM users are allowed to change their own password.expirePasswords
(Boolean expirePasswords) Indicates whether passwords in the account expire.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.maxPasswordAge
(Integer maxPasswordAge) The number of days that an IAM user password is valid.minimumPasswordLength
(Integer minimumPasswordLength) Minimum length to require for IAM user passwords.passwordReusePrevention
(Integer passwordReusePrevention) Specifies the number of previous passwords that IAM users are prevented from reusing.requireLowercaseCharacters
(Boolean requireLowercaseCharacters) Specifies whether IAM user passwords must contain at least one lowercase character (a to z).requireNumbers
(Boolean requireNumbers) Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).requireSymbols
(Boolean requireSymbols) Specifies whether IAM user passwords must contain at least one of the following symbols:requireUppercaseCharacters
(Boolean requireUppercaseCharacters) Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
minimumPasswordLength
Minimum length to require for IAM user passwords.
- Parameters:
minimumPasswordLength
- Minimum length to require for IAM user passwords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireSymbols
Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
- Parameters:
requireSymbols
- Specifies whether IAM user passwords must contain at least one of the following symbols:! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireNumbers
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
- Parameters:
requireNumbers
- Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireUppercaseCharacters
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
- Parameters:
requireUppercaseCharacters
- Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireLowercaseCharacters
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
- Parameters:
requireLowercaseCharacters
- Specifies whether IAM user passwords must contain at least one lowercase character (a to z).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 theiam: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.- Parameters:
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password. Gives IAM users permissions toiam:ChangePassword
for only their user and to theiam: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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
expirePasswords
- Indicates whether passwords in the account expire. Returns true ifMaxPasswordAge
contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxPasswordAge
The number of days that an IAM user password is valid.
- Parameters:
maxPasswordAge
- The number of days that an IAM user password is valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
passwordReusePrevention
Specifies the number of previous passwords that IAM users are prevented from reusing.
- Parameters:
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are prevented from reusing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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 withiam:ChangePassword
permission and active access keys can reset their own expired console password using the CLI or API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-