'alert when an IAM Group has ec2:AuthorizeSecurityGroupEgress or ec2:AuthorizeSecurityGroupIngress.'

def check_security_group_permissions(self, iamgroup_item):

    self.library_check_iamobj_has_security_group_permissions(iamgroup_item, policies_key='grouppolicies')
