def attach_group_policy(iam, policy_arn, group_name):
    """
    Attach a managed policy (specified by ARN) to a group (specified by
    group name).
    """
    return iam.get_response('AttachGroupPolicy', {'PolicyArn': policy_arn,
        'GroupName': group_name})
