code: def parse_security_group(self, global_params, region, group):
          
          vpc_id = group['VpcId'] if 'VpcId' in group and group['VpcId'] else ec2_classic
          manage_dictionary(self.vpcs, vpc_id, VPCConfig(self.vpc_resource_types))
          security_group = {}
          security_group['name'] = group['GroupName']
          security_group['id'] = group['GroupId']
          security_group['description'] = group['Description']
          security_group['owner_id'] = group['OwnerId']
          security_group['rules'] = {'ingress': {}, 'egress': {}}
          security_group['rules']['ingress']['protocols'], security_group['rules']['ingress']['count'] = self.__parse_security_group_rules(group['IpPermissions'])
          security_group['rules']['egress']['protocols'], security_group['rules']['egress']['count'] = self.__parse_security_group_rules(group['IpPermissionsEgress'])
          self.vpcs[vpc_id].security_groups[group['GroupId']] = security_group
docs: Parse a single Redsfhit security group
  
          :param global_params:           Parameters shared for all regions
          :param region:                  Name of the AWS region
          :param security)_group:         Security group