class_docstr: Response from Async Inference endpoint
  
  This response object provides a method to check for an async inference result in the
  Amazon S3 output path specified. If result object exists in that path, get and return
  the result
class_docstr_tok: ["Response","from","Async","Inference","endpoint","This","response","object","provides","a","method","to","check","for","an","async","inference","result","in","the","Amazon","S3","output","path","specified",".","If","result","object","exists","in","that","path",",","get","and","return","the","result"]
docstr: Get async inference result in the Amazon S3 output path specified
  
  Args:
      waiter_config (sagemaker.async_inference.waiter_config.WaiterConfig): Configuration
          for the waiter. The pre-defined value for the delay between poll is 15 seconds
          and the default max attempts is 60
  Raises:
      ValueError: If a wrong type of object is provided as ``waiter_config``
  Returns:
      object: Inference result in the given Amazon S3 output path. If a deserializer was
          specified when creating the AsyncPredictor, the result of the deserializer is
          returned. Otherwise the response returns the sequence of bytes
          as is.
docstr_tok: ["Get","async","inference","result","in","the","Amazon","S3","output","path","specified","Args",":","waiter_config","(","sagemaker.async_inference.waiter_config.WaiterConfig",")",":","Configuration","for","the","waiter",".","The","pre-defined","value","for","the","delay","between","poll","is","15","seconds","and","the","default","max","attempts","is","60","Raises",":","ValueError",":","If","a","wrong","type","of","object","is","provided","as","``","waiter_config","``","Returns",":","object",":","Inference","result","in","the","given","Amazon","S3","output","path",".","If","a","deserializer","was","specified","when","creating","the","AsyncPredictor",",","the","result","of","the","deserializer","is","returned",".","Otherwise","the","response","returns","the","sequence","of","bytes","as","is","."]
code: def get_result(
      self,
      waiter_config=None,
  ):
      """Get async inference result in the Amazon S3 output path specified
  
      Args:
          waiter_config (sagemaker.async_inference.waiter_config.WaiterConfig): Configuration
              for the waiter. The pre-defined value for the delay between poll is 15 seconds
              and the default max attempts is 60
      Raises:
          ValueError: If a wrong type of object is provided as ``waiter_config``
      Returns:
          object: Inference result in the given Amazon S3 output path. If a deserializer was
              specified when creating the AsyncPredictor, the result of the deserializer is
              returned. Otherwise the response returns the sequence of bytes
              as is.
      """
      if waiter_config is not None and not isinstance(
          waiter_config, WaiterConfig
      ):
          raise ValueError(
              "waiter_config should be a WaiterConfig object"
          )
  
      if self._result is None:
          if waiter_config is None:
              self._result = self._get_result_from_s3(
                  self.output_path, self.failure_path
              )
          else:
              self._result = self.predictor_async._wait_for_output(
                  self.output_path, self.failure_path, waiter_config
              )
      return self._result
  
file_path: sagemaker-python-sdk/src/sagemaker/async_inference/async_inference_response.py
imports: from __future__ import print_function, absolute_import
  from botocore.exceptions import ClientError
  from sagemaker.s3 import parse_s3_url
  from sagemaker.async_inference import WaiterConfig
  from sagemaker.exceptions import ObjectNotExistedError, UnexpectedClientError, AsyncInferenceModelError
label_desc: Use image node_id 2 for calling the AsyncInferenceResponse obj's underlying member method code with example usage: obj.get_result(waiter_config) and returns: self