Learn Idem

Learn Idem

Powered by Idem Project

aws.iam.password_policy

**Autogenerated function**

Deletes the password policy for the Amazon Web Services account. There are no parameters.

Args:
    name(Text): Password policy name.

Returns:
    Dict[str, Any]

Examples:

    .. code-block:: sls

        resource_is_absent:
          aws.iam.password_policy.absent:
          - resource_id: value
Describe the resource in a way that can be recreated/managed with the corresponding "present" function

Retrieves the password policy for the Amazon Web Services account.
This tells you the complexity requirements and mandatory rotation periods for
the IAM user passwords in your account.

Returns:
    Dict[str, Any]

Examples:

    .. code-block:: bash

       $ idem describe aws.iam.password_policy
**Autogenerated function**

Create the password policy settings for the Amazon Web Services account.

Args:
    name(Text): Password policy name.
    minimum_password_length(int, optional): The minimum number of characters allowed in an IAM user password.
        If you do not specify a value for this parameter, then the operation uses the default value of 6.
    require_symbols(Bool, Default: False, Optional): Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters:
        ! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
        If you do not specify a value for this parameter, then the operation uses the default value of false.
        The result is that passwords do not require at least one symbol character.
    require_numbers(Bool, Default: False, Optional): Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
        If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one numeric character.
    require_uppercase_characters(Bool, Default: False, Optional): Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z).
        If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one uppercase character.
    require_lowercase_characters(Bool, Default: False, Optional): Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin alphabet (a to z).
        If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one lowercase character.
    allow_users_to_change_password(Bool, Default: False, Optional): Allows all IAM users in your account to use the Amazon Web Services Management Console to change their own passwords. For more information, see Permitting IAM users to change their own passwords in the IAM User Guide .
        If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that IAM users in the account do not automatically have permissions to change their own password.
    max_password_age(int, optional): The number of days that an IAM user password is valid.
        If you do not specify a value for this parameter, then the operation uses the default value of 0. The result is that IAM user passwords never expire.
    password_reuse_prevention(int, optional): Specifies the number of previous passwords that IAM users are prevented from reusing.
        If you do not specify a value for this parameter, then the operation uses the default value of 0. The result is that IAM users are not prevented from reusing previous passwords.
    hard_expiry(Bool, Default: False, Optional): Prevents IAM users who are accessing the account via the Amazon Web Services Management Console from setting a new console password after their password has expired. The IAM user cannot access the console until an administrator resets the password.
        If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that IAM users can change their passwords after they expire and continue to sign in as the user.

Returns:
    Dict[str, str]

Request Syntax:
    [password-policy:]:
      aws.iam.password_policy.present:
      - minimum_password_length: 'string'
      - require_symbols: 'string'
      - require_numbers: 'string'
      - require_uppercase_characters: 'string'
      - require_lowercase_characters: 'string'
      - allow_users_to_change_password: 'string'
      - max_password_age: 'string'
      - password_reuse_prevention: 'string'
      - hard_expiry: 'string'

Examples:

    .. code-block:: sls

        password-policy-011922870716:
          aws.iam.password_policy.present:
          - minimum_password_length: 6
          - require_symbols: true
          - require_numbers: true
          - require_uppercase_characters: true
          - require_lowercase_characters: true
          - allow_users_to_change_password: true
          - max_password_age: 90
          - password_reuse_prevention: 3
          - hard_expiry: true

Full plugin documentation is available on the Idem documentation site - aws.iam.password_policy .

Last updated on 20 Sep 2022
 Edit on GitHub