Class PasswordPolicy
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<PasswordPolicy.Builder,
PasswordPolicy>
Contains information about the account password policy.
This data type is used as a response element in the GetAccountPasswordPolicy operation.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Specifies whether IAM users are allowed to change their own password.static PasswordPolicy.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Boolean
Indicates whether passwords in the account expire.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final Boolean
Specifies whether IAM users are prevented from setting a new password via the Amazon Web Services Management Console after their password has expired.final int
hashCode()
final Integer
The number of days that an IAM user password is valid.final Integer
Minimum length to require for IAM user passwords.final Integer
Specifies the number of previous passwords that IAM users are prevented from reusing.final Boolean
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).final Boolean
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).final Boolean
Specifies whether IAM user passwords must contain at least one of the following symbols:final Boolean
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).static Class
<? extends PasswordPolicy.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
minimumPasswordLength
Minimum length to require for IAM user passwords.
- Returns:
- Minimum length to require for IAM user passwords.
-
requireSymbols
Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
- Returns:
- Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
-
requireNumbers
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
- Returns:
- Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
-
requireUppercaseCharacters
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
- Returns:
- Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
-
requireLowercaseCharacters
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
- Returns:
- Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
-
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.- Returns:
- 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.
-
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.- Returns:
- 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.
-
maxPasswordAge
The number of days that an IAM user password is valid.
- Returns:
- The number of days that an IAM user password is valid.
-
passwordReusePrevention
Specifies the number of previous passwords that IAM users are prevented from reusing.
- Returns:
- Specifies the number of previous passwords that IAM users are prevented from reusing.
-
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.- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<PasswordPolicy.Builder,
PasswordPolicy> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-