password_policy#

Exec module for managing IAM password policy.

async idem_aws.exec.aws.iam.password_policy.get(hub, ctx, name: str) Dict[source]#

Retrieves the password policy for the Amazon Web Services account.

Parameters:

name (str) – Password policy name.

Returns:

result(bool):

Whether the result of the function has been successful (True) or not (False).

comment(list):

A list of messages.

ret(dict or None):

The IAM password policy in “present” format.

Return type:

Dict[bool, list, dict or None]

Examples

Calling this exec module function from the cli:

idem exec aws.iam.password_policy.get name="idem_name"

Calling this exec module function from within a state module in pure python:

async def state_function(hub, ctx, name, resource_id, **kwargs):
    ret = await hub.exec.aws.iam.password_policy.get(
        ctx, name=name
    )