@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonSageMakerRuntimeClient extends AmazonWebServiceClient implements AmazonSageMakerRuntime
Amazon SageMaker runtime API.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonSageMakerRuntimeClientBuilder |
builder() |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
InvokeEndpointResult |
invokeEndpoint(InvokeEndpointRequest request)
After you deploy a model into production using Amazon SageMaker hosting services, your client applications use
this API to get inferences from the model hosted at the specified endpoint.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdown
public static AmazonSageMakerRuntimeClientBuilder builder()
public InvokeEndpointResult invokeEndpoint(InvokeEndpointRequest request)
After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint.
For an overview of Amazon SageMaker, see How It Works
Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.
invokeEndpoint
in interface AmazonSageMakerRuntime
invokeEndpointRequest
- InternalFailureException
- Internal failure occurred.ServiceUnavailableException
- Service is unavailable. Try your call again.ValidationErrorException
- Inspect your request and try again.ModelErrorException
- Model (owned by the customer in the container) returned an error 500.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonSageMakerRuntime
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.