Interface PasswordPolicy.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<PasswordPolicy.Builder,,- PasswordPolicy> - SdkBuilder<PasswordPolicy.Builder,,- PasswordPolicy> - SdkPojo
- Enclosing class:
- PasswordPolicy
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
minimumPasswordLengthMinimum 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.
 
- 
requireSymbolsSpecifies 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.
 
- 
requireNumbersSpecifies 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.
 
- 
requireUppercaseCharactersSpecifies 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.
 
- 
requireLowercaseCharactersSpecifies 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.
 
- 
allowUsersToChangePasswordSpecifies whether IAM users are allowed to change their own password. Gives IAM users permissions to iam:ChangePasswordfor only their user and to theiam:GetAccountPasswordPolicyaction. 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 to- iam:ChangePasswordfor only their user and to the- iam:GetAccountPasswordPolicyaction. 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.
 
- 
expirePasswordsIndicates whether passwords in the account expire. Returns true if MaxPasswordAgecontains 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 if- MaxPasswordAgecontains 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.
 
- 
maxPasswordAgeThe 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.
 
- 
passwordReusePreventionSpecifies 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.
 
- 
hardExpirySpecifies 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:ChangePasswordpermission 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 with- iam:ChangePasswordpermission 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.
 
 
-