code: def _handle_create_cfn_template_request(self, app_id, semver, key, logical_id):
          
          create_cfn_template = (lambda app_id, semver: self._sar_client.create_cloud_formation_template(
              ApplicationId=self._sanitize_sar_str_param(app_id),
              SemanticVersion=self._sanitize_sar_str_param(semver)
          ))
          response = self._sar_service_call(create_cfn_template, logical_id, app_id, semver)
          self._applications[key] = response[self.TEMPLATE_URL_KEY]
          if response['Status'] != "ACTIVE":
              self._in_progress_templates.append((response[self.APPLICATION_ID_KEY], response['TemplateId']))
docs: Method that handles the create_cloud_formation_template API call to the serverless application repo
  
          :param string app_id: ApplicationId
          :param string semver: SemanticVersion
          :param string key: The dictionary key consisting of (ApplicationId, SemanticVersion)
          :param string logical_id: the logical_id of this application resource