Skip to content

PasswordPolicy

Source code in docs_src/capo_iam/types/password_policy.py
class PasswordPolicy(TypedDict, closed=True):
    minimum_password_length: NotRequired[
        "capo_iam.types.minimum_password_length_type.minimumPasswordLengthType"
    ]
    """<p>Minimum length to require for IAM user passwords.</p>"""
    require_symbols: "capo_iam.types.boolean_type.booleanType"
    """<p>Specifies whether IAM user passwords must contain at least one of the following symbols:</p> <p>! @ # $ % ^ & * ( ) _ + - = [ ] { } | '</p>"""
    require_numbers: "capo_iam.types.boolean_type.booleanType"
    """<p>Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).</p>"""
    require_uppercase_characters: "capo_iam.types.boolean_type.booleanType"
    """<p>Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).</p>"""
    require_lowercase_characters: "capo_iam.types.boolean_type.booleanType"
    """<p>Specifies whether IAM user passwords must contain at least one lowercase character (a to z).</p>"""
    allow_users_to_change_password: "capo_iam.types.boolean_type.booleanType"
    """<p>Specifies whether IAM users are allowed to change their own password. Gives IAM users permissions to <code>iam:ChangePassword</code> for only their user and to the <code>iam:GetAccountPasswordPolicy</code> 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.</p>"""
    expire_passwords: "capo_iam.types.boolean_type.booleanType"
    """<p>Indicates whether passwords in the account expire. Returns true if <code>MaxPasswordAge</code> contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.</p>"""
    max_password_age: NotRequired[
        "capo_iam.types.max_password_age_type.maxPasswordAgeType"
    ]
    """<p>The number of days that an IAM user password is valid.</p>"""
    password_reuse_prevention: NotRequired[
        "capo_iam.types.password_reuse_prevention_type.passwordReusePreventionType"
    ]
    """<p>Specifies the number of previous passwords that IAM users are prevented from reusing.</p>"""
    hard_expiry: NotRequired["capo_iam.types.boolean_object_type.booleanObjectType"]
    """<p>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 <code>iam:ChangePassword</code> permission and active access keys can reset their own expired console password using the CLI or API.</p>"""

allow_users_to_change_password instance-attribute

allow_users_to_change_password: booleanType

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.

expire_passwords instance-attribute

expire_passwords: booleanType

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.

hard_expiry instance-attribute

hard_expiry: NotRequired[booleanObjectType]

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.

max_password_age instance-attribute

max_password_age: NotRequired[maxPasswordAgeType]

The number of days that an IAM user password is valid.

minimum_password_length instance-attribute

minimum_password_length: NotRequired[minimumPasswordLengthType]

Minimum length to require for IAM user passwords.

password_reuse_prevention instance-attribute

password_reuse_prevention: NotRequired[passwordReusePreventionType]

Specifies the number of previous passwords that IAM users are prevented from reusing.

require_lowercase_characters instance-attribute

require_lowercase_characters: booleanType

Specifies whether IAM user passwords must contain at least one lowercase character (a to z).

require_numbers instance-attribute

require_numbers: booleanType

Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).

require_symbols instance-attribute

require_symbols: booleanType

Specifies whether IAM user passwords must contain at least one of the following symbols:

! @ # $ % ^ & * ( ) _ + - = [ ] { } | '

require_uppercase_characters instance-attribute

require_uppercase_characters: booleanType

Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).