@Generated(value="software.amazon.awssdk:codegen") public final class PasswordPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PasswordPolicy.Builder,PasswordPolicy>
Contains information about the account password policy.
This data type is used as a response element in the GetAccountPasswordPolicy operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PasswordPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
|
static PasswordPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
expirePasswords()
Indicates whether passwords in the account expire.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
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.
|
int |
hashCode() |
Integer |
maxPasswordAge()
The number of days that an IAM user password is valid.
|
Integer |
minimumPasswordLength()
Minimum length to require for IAM user passwords.
|
Integer |
passwordReusePrevention()
Specifies the number of previous passwords that IAM users are prevented from reusing.
|
Boolean |
requireLowercaseCharacters()
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
|
Boolean |
requireNumbers()
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
|
Boolean |
requireSymbols()
Specifies whether IAM user passwords must contain at least one of the following symbols:
|
Boolean |
requireUppercaseCharacters()
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PasswordPolicy.Builder> |
serializableBuilderClass() |
PasswordPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer minimumPasswordLength()
Minimum length to require for IAM user passwords.
public final Boolean requireSymbols()
Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
public final Boolean requireNumbers()
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
public final Boolean requireUppercaseCharacters()
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
public final Boolean requireLowercaseCharacters()
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
public final 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.
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.public final 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.
MaxPasswordAge contains a
value greater than 0. Returns false if MaxPasswordAge is 0 or not present.public final Integer maxPasswordAge()
The number of days that an IAM user password is valid.
public final Integer passwordReusePrevention()
Specifies the number of previous passwords that IAM users are prevented from reusing.
public final 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.
iam:ChangePassword permission and active
access keys can reset their own expired console password using the CLI or API.public PasswordPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PasswordPolicy.Builder,PasswordPolicy>public static PasswordPolicy.Builder builder()
public static Class<? extends PasswordPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.