code: def _vpc_config(self):
          
          if self.vpc_enabled:
              subnets = get_subnets(env=self.env, region=self.region, purpose='internal')['subnet_ids'][self.region]
              security_groups = self._get_sg_ids()
  
              vpc_config = {'SubnetIds': subnets, 'SecurityGroupIds': security_groups}
          else:
              vpc_config = {'SubnetIds': [], 'SecurityGroupIds': []}
          LOG.debug("Lambda VPC config setup: %s", vpc_config)
          return vpc_config
docs: Get VPC config.