Interface SageMakerTrainingSessionRuntimeAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface SageMakerTrainingSessionRuntimeAsyncClient extends AwsClient
Service client for accessing SageMaker Training Session Runtime asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

Amazon SageMaker Training Session Runtime provides APIs for executing training operations and sampling operations against a running training session. Use these APIs to submit asynchronous training steps (such as forward-backward passes, optimizer steps, and checkpoint saves) and to generate text samples from the model being trained.

  • Field Details

  • Method Details

    • executeSamplingOperation

      default CompletableFuture<ExecuteSamplingOperationResponse> executeSamplingOperation(ExecuteSamplingOperationRequest executeSamplingOperationRequest)

      Submits an asynchronous sampling operation to generate text or compute log-probabilities from the model associated with the specified training session. The session must be in Running or Blocked state. Use GetSamplingOperationResult to poll for the result.

      Parameters:
      executeSamplingOperationRequest -
      Returns:
      A Java Future containing the result of the ExecuteSamplingOperation operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • executeSamplingOperation

      default CompletableFuture<ExecuteSamplingOperationResponse> executeSamplingOperation(Consumer<ExecuteSamplingOperationRequest.Builder> executeSamplingOperationRequest)

      Submits an asynchronous sampling operation to generate text or compute log-probabilities from the model associated with the specified training session. The session must be in Running or Blocked state. Use GetSamplingOperationResult to poll for the result.


      This is a convenience which creates an instance of the ExecuteSamplingOperationRequest.Builder avoiding the need to create one manually via ExecuteSamplingOperationRequest.builder()

      Parameters:
      executeSamplingOperationRequest - A Consumer that will call methods on ExecuteSamplingOperationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ExecuteSamplingOperation operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • executeTrainingOperation

      default CompletableFuture<ExecuteTrainingOperationResponse> executeTrainingOperation(ExecuteTrainingOperationRequest executeTrainingOperationRequest)

      Submits an asynchronous training operation to the specified training session. The service executes operations in sequence number order. The session must be in Running or Blocked state. Use GetTrainingOperationResult to poll for the result. Supported operation types: forward, forwardBackward, optimizerStep, saveWeights, saveState, and loadState.

      Parameters:
      executeTrainingOperationRequest -
      Returns:
      A Java Future containing the result of the ExecuteTrainingOperation operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • executeTrainingOperation

      default CompletableFuture<ExecuteTrainingOperationResponse> executeTrainingOperation(Consumer<ExecuteTrainingOperationRequest.Builder> executeTrainingOperationRequest)

      Submits an asynchronous training operation to the specified training session. The service executes operations in sequence number order. The session must be in Running or Blocked state. Use GetTrainingOperationResult to poll for the result. Supported operation types: forward, forwardBackward, optimizerStep, saveWeights, saveState, and loadState.


      This is a convenience which creates an instance of the ExecuteTrainingOperationRequest.Builder avoiding the need to create one manually via ExecuteTrainingOperationRequest.builder()

      Parameters:
      executeTrainingOperationRequest - A Consumer that will call methods on ExecuteTrainingOperationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ExecuteTrainingOperation operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSamplingOperationResult

      default CompletableFuture<GetSamplingOperationResultResponse> getSamplingOperationResult(GetSamplingOperationResultRequest getSamplingOperationResultRequest)

      Retrieves the current status and result of a previously submitted sampling operation. Poll this operation until the status reaches a terminal state (Completed or Failed).

      Parameters:
      getSamplingOperationResultRequest -
      Returns:
      A Java Future containing the result of the GetSamplingOperationResult operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSamplingOperationResult

      default CompletableFuture<GetSamplingOperationResultResponse> getSamplingOperationResult(Consumer<GetSamplingOperationResultRequest.Builder> getSamplingOperationResultRequest)

      Retrieves the current status and result of a previously submitted sampling operation. Poll this operation until the status reaches a terminal state (Completed or Failed).


      This is a convenience which creates an instance of the GetSamplingOperationResultRequest.Builder avoiding the need to create one manually via GetSamplingOperationResultRequest.builder()

      Parameters:
      getSamplingOperationResultRequest - A Consumer that will call methods on GetSamplingOperationResultRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetSamplingOperationResult operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getTrainingOperationResult

      default CompletableFuture<GetTrainingOperationResultResponse> getTrainingOperationResult(GetTrainingOperationResultRequest getTrainingOperationResultRequest)

      Retrieves the current status and result of a previously submitted training operation. Poll this operation until the status reaches a terminal state (Completed, Failed, or Skipped).

      Parameters:
      getTrainingOperationResultRequest -
      Returns:
      A Java Future containing the result of the GetTrainingOperationResult operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getTrainingOperationResult

      default CompletableFuture<GetTrainingOperationResultResponse> getTrainingOperationResult(Consumer<GetTrainingOperationResultRequest.Builder> getTrainingOperationResultRequest)

      Retrieves the current status and result of a previously submitted training operation. Poll this operation until the status reaches a terminal state (Completed, Failed, or Skipped).


      This is a convenience which creates an instance of the GetTrainingOperationResultRequest.Builder avoiding the need to create one manually via GetTrainingOperationResultRequest.builder()

      Parameters:
      getTrainingOperationResultRequest - A Consumer that will call methods on GetTrainingOperationResultRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetTrainingOperationResult operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sampleTrainingSession

      default CompletableFuture<SampleTrainingSessionResponse> sampleTrainingSession(SampleTrainingSessionRequest sampleTrainingSessionRequest)

      Sends an inference request to the model associated with the specified training session and returns the response synchronously. The service passes the request and response bodies to and from the model without modification.

      Parameters:
      sampleTrainingSessionRequest -
      Returns:
      A Java Future containing the result of the SampleTrainingSession operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sampleTrainingSession

      default CompletableFuture<SampleTrainingSessionResponse> sampleTrainingSession(Consumer<SampleTrainingSessionRequest.Builder> sampleTrainingSessionRequest)

      Sends an inference request to the model associated with the specified training session and returns the response synchronously. The service passes the request and response bodies to and from the model without modification.


      This is a convenience which creates an instance of the SampleTrainingSessionRequest.Builder avoiding the need to create one manually via SampleTrainingSessionRequest.builder()

      Parameters:
      sampleTrainingSessionRequest - A Consumer that will call methods on SampleTrainingSessionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the SampleTrainingSession operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sampleTrainingSessionWithResponseStream

      default <ReturnT> CompletableFuture<ReturnT> sampleTrainingSessionWithResponseStream(SampleTrainingSessionWithResponseStreamRequest sampleTrainingSessionWithResponseStreamRequest, AsyncResponseTransformer<SampleTrainingSessionWithResponseStreamResponse,ReturnT> asyncResponseTransformer)

      Streams inference responses from the model associated with the specified training session. Use this operation for real-time token-by-token generation. The service passes the request body to the model without modification.

      Parameters:
      sampleTrainingSessionWithResponseStreamRequest -
      asyncResponseTransformer - The response transformer for processing the streaming response in a non-blocking manner. See AsyncResponseTransformer for details on how this callback should be implemented and for links to precanned implementations for common scenarios like downloading to a file. The service documentation for the response content is as follows '

      The streaming inference response from the model, delivered as a series of chunks.

      '.
      Returns:
      A future to the transformed result of the AsyncResponseTransformer.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sampleTrainingSessionWithResponseStream

      default <ReturnT> CompletableFuture<ReturnT> sampleTrainingSessionWithResponseStream(Consumer<SampleTrainingSessionWithResponseStreamRequest.Builder> sampleTrainingSessionWithResponseStreamRequest, AsyncResponseTransformer<SampleTrainingSessionWithResponseStreamResponse,ReturnT> asyncResponseTransformer)

      Streams inference responses from the model associated with the specified training session. Use this operation for real-time token-by-token generation. The service passes the request body to the model without modification.


      This is a convenience which creates an instance of the SampleTrainingSessionWithResponseStreamRequest.Builder avoiding the need to create one manually via SampleTrainingSessionWithResponseStreamRequest.builder()

      Parameters:
      sampleTrainingSessionWithResponseStreamRequest - A Consumer that will call methods on SampleTrainingSessionWithResponseStreamRequest.Builder to create a request.
      asyncResponseTransformer - The response transformer for processing the streaming response in a non-blocking manner. See AsyncResponseTransformer for details on how this callback should be implemented and for links to precanned implementations for common scenarios like downloading to a file. The service documentation for the response content is as follows '

      The streaming inference response from the model, delivered as a series of chunks.

      '.
      Returns:
      A future to the transformed result of the AsyncResponseTransformer.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sampleTrainingSessionWithResponseStream

      default CompletableFuture<SampleTrainingSessionWithResponseStreamResponse> sampleTrainingSessionWithResponseStream(SampleTrainingSessionWithResponseStreamRequest sampleTrainingSessionWithResponseStreamRequest, Path destinationPath)

      Streams inference responses from the model associated with the specified training session. Use this operation for real-time token-by-token generation. The service passes the request body to the model without modification.

      Parameters:
      sampleTrainingSessionWithResponseStreamRequest -
      destinationPath - Path to file that response contents will be written to. The file must not exist or this method will throw an exception. If the file is not writable by the current user then an exception will be thrown. The service documentation for the response content is as follows '

      The streaming inference response from the model, delivered as a series of chunks.

      '.
      Returns:
      A future to the transformed result of the AsyncResponseTransformer.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • sampleTrainingSessionWithResponseStream

      default CompletableFuture<SampleTrainingSessionWithResponseStreamResponse> sampleTrainingSessionWithResponseStream(Consumer<SampleTrainingSessionWithResponseStreamRequest.Builder> sampleTrainingSessionWithResponseStreamRequest, Path destinationPath)

      Streams inference responses from the model associated with the specified training session. Use this operation for real-time token-by-token generation. The service passes the request body to the model without modification.


      This is a convenience which creates an instance of the SampleTrainingSessionWithResponseStreamRequest.Builder avoiding the need to create one manually via SampleTrainingSessionWithResponseStreamRequest.builder()

      Parameters:
      sampleTrainingSessionWithResponseStreamRequest - A Consumer that will call methods on SampleTrainingSessionWithResponseStreamRequest.Builder to create a request.
      destinationPath - Path to file that response contents will be written to. The file must not exist or this method will throw an exception. If the file is not writable by the current user then an exception will be thrown. The service documentation for the response content is as follows '

      The streaming inference response from the model, delivered as a series of chunks.

      '.
      Returns:
      A future to the transformed result of the AsyncResponseTransformer.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException The training session is in a state that cannot accept new operations. The session must be in Running or Blocked state to accept requests.
      • ResourceNotFoundException The specified training session or operation does not exist, or the operation does not belong to the specified training session.
      • ThrottlingException The request was throttled. Retry the request after a brief wait using exponential backoff.
      • InternalServerException An internal service error occurred. Retry the request using exponential backoff.
      • ValidationException The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • SageMakerTrainingSessionRuntimeException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default SageMakerTrainingSessionRuntimeServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      Create a SageMakerTrainingSessionRuntimeAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a SageMakerTrainingSessionRuntimeAsyncClient.