def METHOD_NAME(self):
    """
    Creates an API and updates its DefinitionUri
    """
    # Create an API with get and put
    self.create_and_verify_stack("single/basic_api_with_mode")
    stack_output = self.get_stack_outputs()
    api_endpoint = stack_output.get("ApiEndpoint")
    self.verify_get_request_response(f"{api_endpoint}/get", 200)
    # Removes get from the API
    self.update_and_verify_stack(file_path="single/basic_api_with_mode_update")
    # API Gateway by default returns 403 if a path do not exist
    self.verify_get_request_response.retry_with(
        stop=stop_after_attempt(20),
        wait=wait_exponential(multiplier=1, min=4, max=10) + wait_random(0, 1),
        retry=retry_if_exception_type(StatusCodeError),
        after=after_log(LOG, logging.WARNING),
        reraise=True,
    )(self, f"{api_endpoint}/get", 403)
    LOG.log(msg=f"retry times {self.verify_get_request_response.retry.statistics}", level=logging.WARNING)