def simulate_principal_policy(actions, resource_arns, role_arn, iam_client):
    """This returns an EvaluationResults object"""
    spp = iam_client.simulate_principal_policy(ActionNames=actions,
        ResourceArns=resource_arns, PolicySourceArn=role_arn)[
        'EvaluationResults']
    return spp
