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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanSpecifies whether IAM users are allowed to change their own password.static PasswordPolicy.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final BooleanIndicates whether passwords in the account expire.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final BooleanSpecifies whether IAM users are prevented from setting a new password via the Amazon Web Services Management Console after their password has expired.final inthashCode()final IntegerThe number of days that an IAM user password is valid.final IntegerMinimum length to require for IAM user passwords.final IntegerSpecifies the number of previous passwords that IAM users are prevented from reusing.final BooleanSpecifies whether IAM user passwords must contain at least one lowercase character (a to z).final BooleanSpecifies whether IAM user passwords must contain at least one numeric character (0 to 9).final BooleanSpecifies whether IAM user passwords must contain at least one of the following symbols:final BooleanSpecifies 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 StringtoString()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: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.- Returns:
- Specifies 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.
-
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:
- 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.
-
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:ChangePasswordpermission 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:ChangePasswordpermission and active access keys can reset their own expired console password using the CLI or API.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PasswordPolicy.Builder,PasswordPolicy> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-