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

def check_security_group_permissions(self, iamrole_item):

    self.library_check_iamobj_has_security_group_permissions(iamrole_item, policies_key='InlinePolicies')
