def find_policy(boto_iam, policy_name):
    """
    Find an AWS policy by name and return a dict of information about it.

    AWS's existing `list_policies()` API doesn't seem to let you search by
    name, so I iterate over all of them and match on our side.
    """
    paginator = boto_iam.get_paginator('list_policies')
    response_iterator = paginator.paginate()
    for policy_resp in response_iterator:
        for policy in policy_resp['Policies']:
            if policy['PolicyName'] == policy_name:
                return policy
    return None