lib/aws-sdk-sagemakerruntime/client.rb in aws-sdk-sagemakerruntime-1.1.0 vs lib/aws-sdk-sagemakerruntime/client.rb in aws-sdk-sagemakerruntime-1.2.0

- old
+ new

@@ -158,20 +158,32 @@ # 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][1] + # For an overview of Amazon SageMaker, see [How It Works][1]. # # 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. # + # Cals to `InvokeEndpoint` are authenticated by using AWS Signature + # Version 4. For information, see [Authenticating Requests (AWS + # Signature Version 4)][2] in the *Amazon S3 API Reference*. # + # <note markdown="1"> Endpoints are scoped to an individual account, and are not public. The + # URL does not contain the account ID, but Amazon SageMaker determines + # the account ID from the authentication token that is supplied by the + # caller. # + # </note> + # + # + # # [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html + # [2]: http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html # # @option params [required, String] :endpoint_name # The name of the endpoint that you specified when you created the # endpoint using the [CreateEndpoint][1] API. # @@ -182,36 +194,48 @@ # @option params [required, String, IO] :body # Provides input data, in the format specified in the `ContentType` # request header. Amazon SageMaker passes all of the data in the body to # the model. # + # For information about the format of the request body, see [Common Data + # Formats—Inference][1]. + # + # + # + # [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html + # # @option params [String] :content_type # The MIME type of the input data in the request body. # # @option params [String] :accept # The desired MIME type of the inference in the response. # + # @option params [String] :custom_attributes + # # @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::InvokeEndpointOutput#body #body} => String # * {Types::InvokeEndpointOutput#content_type #content_type} => String # * {Types::InvokeEndpointOutput#invoked_production_variant #invoked_production_variant} => String + # * {Types::InvokeEndpointOutput#custom_attributes #custom_attributes} => String # # @example Request syntax with placeholder values # # resp = client.invoke_endpoint({ # endpoint_name: "EndpointName", # required # body: "data", # required # content_type: "Header", # accept: "Header", + # custom_attributes: "CustomAttributesHeader", # }) # # @example Response structure # # resp.body #=> String # resp.content_type #=> String # resp.invoked_production_variant #=> String + # resp.custom_attributes #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpoint AWS API Documentation # # @overload invoke_endpoint(params = {}) # @param [Hash] params ({}) @@ -231,10 +255,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-sagemakerruntime' - context[:gem_version] = '1.1.0' + context[:gem_version] = '1.2.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated