code: def parse_subnet(self, global_params, region, subnet):
          
          vpc_id = subnet['VpcId']
          manage_dictionary(self.vpcs, vpc_id, SingleVPCConfig(self.vpc_resource_types))
          subnet_id = subnet['SubnetId']
          get_name(subnet, subnet, 'SubnetId')
          # set flow logs that cover this subnet
          subnet['flow_logs'] = get_subnet_flow_logs_list(self, subnet)
          # Save
          manage_dictionary(self.vpcs, vpc_id, SingleVPCConfig(self.vpc_resource_types))
          self.vpcs[vpc_id].subnets[subnet_id] = subnet
docs: Parse subnet object.
  
          :param global_params:
          :param region:
          :param subnet:
          :return: