code: def render_wrapper(self, region='us-east-1'):
          
          base = self.settings['pipeline']['base']
  
          if self.base:
              base = self.base
  
          email = self.settings['pipeline']['notifications']['email']
          slack = self.settings['pipeline']['notifications']['slack']
          deploy_type = self.settings['pipeline']['type']
          pipeline_id = self.compare_with_existing(region=region)
  
          data = {
              'app': {
                  'appname': self.app_name,
                  'group_name': self.group_name,
                  'repo_name': self.repo_name,
                  'base': base,
                  'deploy_type': deploy_type,
                  'environment': 'packaging',
                  'region': region,
                  'triggerjob': self.trigger_job,
                  'run_as_user': DEFAULT_RUN_AS_USER,
                  'email': email,
                  'slack': slack,
                  'pipeline': self.settings['pipeline']
              },
              'id': pipeline_id
          }
  
          self.log.debug('Wrapper app data:\n%s', pformat(data))
  
          wrapper = get_template(template_file='pipeline/pipeline_wrapper.json.j2', data=data, formats=self.generated)
  
          return json.loads(wrapper)
docs: Generate the base Pipeline wrapper.
  
          This renders the non-repeatable stages in a pipeline, like jenkins, baking, tagging and notifications.
  
          Args:
              region (str): AWS Region.
  
          Returns:
              dict: Rendered Pipeline wrapper.