(access_key, secret_key, session_token, region)
return output
IAM Account Enumerator.

    This code provides a mechanism to attempt to validate the permissions assigned
    to a given set of AWS tokens.
IAM Account Enumerator.
IAM Account Enumerator .
def enumerate_iam(access_key, secret_key, session_token, region):
    """IAM Account Enumerator.

    This code provides a mechanism to attempt to validate the permissions assigned
    to a given set of AWS tokens.
    """
    output = dict()
    configure_logging()

    output['iam'] = enumerate_using_iam(access_key, secret_key, session_token, region)
    output['bruteforce'] = enumerate_using_bruteforce(access_key, secret_key, session_token, region)

    return output
def enumerate_iam ( access_key , secret_key , session_token , region ) : output = dict ( ) configure_logging ( ) output [ 'iam' ] = enumerate_using_iam ( access_key , secret_key , session_token , region ) output [ 'bruteforce' ] = enumerate_using_bruteforce ( access_key , secret_key , session_token , region ) return output