docs: def update_api_mappings(self):
          """Create a cname for the API deployment."""
          response_provider = None
          response_action = None
          domain = self.generated.apigateway()['domain']
          try:
              response_provider = self.client.create_base_path_mapping(
                  domainName=domain,
                  basePath=self._format_base_path(self.trigger_settings['api_name']),
                  restApiId=self.api_id,
                  stage=self.env, )
              response_action = 'API mapping added.'
          except botocore.exceptions.ClientError as error:
              error_code = error.response['Error']['Code']
              if error_code == 'ConflictException':
                  response_action = 'API mapping already exist.'
              else:
                  response_action = 'Unknown error: {0}'.format(error_code)
  
          self.log.debug('Provider response: %s', response_provider)
          self.log.info(response_action)
          return response_provider