aws-sdk-sagemakerruntime 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fa7c662b7a19957cc6440aa7e79e1b0dd072602
|
4
|
+
data.tar.gz: 5100a432ea15d1d3300e463e386af26e7a3fe731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 229e47815473a34a2b51e6670b8db291176aab9b0315841845e157a9badaab6969ae23df2489552df63604b24de534dd78df2cbbc17688ac90217fb85722d751
|
7
|
+
data.tar.gz: 25de9c7232664669a2970a9e831e337f77d6db897f15d88140d9bdfbd462b9c2c50bb359a7459775558618103fa82f9654b618c778843d4559523c2fbea513bc
|
@@ -160,16 +160,28 @@ module Aws::SageMakerRuntime
|
|
160
160
|
# hosting services, your client applications use this API to get
|
161
161
|
# inferences from the model hosted at the specified endpoint.
|
162
162
|
#
|
163
|
-
# For an overview of Amazon SageMaker, see [How It Works][1]
|
163
|
+
# For an overview of Amazon SageMaker, see [How It Works][1].
|
164
164
|
#
|
165
165
|
# Amazon SageMaker strips all POST headers except those supported by the
|
166
166
|
# API. Amazon SageMaker might add additional headers. You should not
|
167
167
|
# rely on the behavior of headers outside those enumerated in the
|
168
168
|
# request syntax.
|
169
169
|
#
|
170
|
+
# Cals to `InvokeEndpoint` are authenticated by using AWS Signature
|
171
|
+
# Version 4. For information, see [Authenticating Requests (AWS
|
172
|
+
# Signature Version 4)][2] in the *Amazon S3 API Reference*.
|
173
|
+
#
|
174
|
+
# <note markdown="1"> Endpoints are scoped to an individual account, and are not public. The
|
175
|
+
# URL does not contain the account ID, but Amazon SageMaker determines
|
176
|
+
# the account ID from the authentication token that is supplied by the
|
177
|
+
# caller.
|
178
|
+
#
|
179
|
+
# </note>
|
180
|
+
#
|
170
181
|
#
|
171
182
|
#
|
172
183
|
# [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html
|
184
|
+
# [2]: http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
173
185
|
#
|
174
186
|
# @option params [required, String] :endpoint_name
|
175
187
|
# The name of the endpoint that you specified when you created the
|
@@ -184,17 +196,27 @@ module Aws::SageMakerRuntime
|
|
184
196
|
# request header. Amazon SageMaker passes all of the data in the body to
|
185
197
|
# the model.
|
186
198
|
#
|
199
|
+
# For information about the format of the request body, see [Common Data
|
200
|
+
# Formats—Inference][1].
|
201
|
+
#
|
202
|
+
#
|
203
|
+
#
|
204
|
+
# [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html
|
205
|
+
#
|
187
206
|
# @option params [String] :content_type
|
188
207
|
# The MIME type of the input data in the request body.
|
189
208
|
#
|
190
209
|
# @option params [String] :accept
|
191
210
|
# The desired MIME type of the inference in the response.
|
192
211
|
#
|
212
|
+
# @option params [String] :custom_attributes
|
213
|
+
#
|
193
214
|
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
194
215
|
#
|
195
216
|
# * {Types::InvokeEndpointOutput#body #body} => String
|
196
217
|
# * {Types::InvokeEndpointOutput#content_type #content_type} => String
|
197
218
|
# * {Types::InvokeEndpointOutput#invoked_production_variant #invoked_production_variant} => String
|
219
|
+
# * {Types::InvokeEndpointOutput#custom_attributes #custom_attributes} => String
|
198
220
|
#
|
199
221
|
# @example Request syntax with placeholder values
|
200
222
|
#
|
@@ -203,6 +225,7 @@ module Aws::SageMakerRuntime
|
|
203
225
|
# body: "data", # required
|
204
226
|
# content_type: "Header",
|
205
227
|
# accept: "Header",
|
228
|
+
# custom_attributes: "CustomAttributesHeader",
|
206
229
|
# })
|
207
230
|
#
|
208
231
|
# @example Response structure
|
@@ -210,6 +233,7 @@ module Aws::SageMakerRuntime
|
|
210
233
|
# resp.body #=> String
|
211
234
|
# resp.content_type #=> String
|
212
235
|
# resp.invoked_production_variant #=> String
|
236
|
+
# resp.custom_attributes #=> String
|
213
237
|
#
|
214
238
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpoint AWS API Documentation
|
215
239
|
#
|
@@ -233,7 +257,7 @@ module Aws::SageMakerRuntime
|
|
233
257
|
params: params,
|
234
258
|
config: config)
|
235
259
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
236
|
-
context[:gem_version] = '1.
|
260
|
+
context[:gem_version] = '1.2.0'
|
237
261
|
Seahorse::Client::Request.new(handlers, context)
|
238
262
|
end
|
239
263
|
|
@@ -12,6 +12,7 @@ module Aws::SageMakerRuntime
|
|
12
12
|
include Seahorse::Model
|
13
13
|
|
14
14
|
BodyBlob = Shapes::BlobShape.new(name: 'BodyBlob')
|
15
|
+
CustomAttributesHeader = Shapes::StringShape.new(name: 'CustomAttributesHeader')
|
15
16
|
EndpointName = Shapes::StringShape.new(name: 'EndpointName')
|
16
17
|
Header = Shapes::StringShape.new(name: 'Header')
|
17
18
|
InternalFailure = Shapes::StructureShape.new(name: 'InternalFailure')
|
@@ -28,6 +29,7 @@ module Aws::SageMakerRuntime
|
|
28
29
|
InvokeEndpointInput.add_member(:body, Shapes::ShapeRef.new(shape: BodyBlob, required: true, location_name: "Body"))
|
29
30
|
InvokeEndpointInput.add_member(:content_type, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Content-Type"))
|
30
31
|
InvokeEndpointInput.add_member(:accept, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Accept"))
|
32
|
+
InvokeEndpointInput.add_member(:custom_attributes, Shapes::ShapeRef.new(shape: CustomAttributesHeader, location: "header", location_name: "X-Amzn-SageMaker-Custom-Attributes"))
|
31
33
|
InvokeEndpointInput.struct_class = Types::InvokeEndpointInput
|
32
34
|
InvokeEndpointInput[:payload] = :body
|
33
35
|
InvokeEndpointInput[:payload_member] = InvokeEndpointInput.member(:body)
|
@@ -35,6 +37,7 @@ module Aws::SageMakerRuntime
|
|
35
37
|
InvokeEndpointOutput.add_member(:body, Shapes::ShapeRef.new(shape: BodyBlob, required: true, location_name: "Body"))
|
36
38
|
InvokeEndpointOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Content-Type"))
|
37
39
|
InvokeEndpointOutput.add_member(:invoked_production_variant, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "x-Amzn-Invoked-Production-Variant"))
|
40
|
+
InvokeEndpointOutput.add_member(:custom_attributes, Shapes::ShapeRef.new(shape: CustomAttributesHeader, location: "header", location_name: "X-Amzn-SageMaker-Custom-Attributes"))
|
38
41
|
InvokeEndpointOutput.struct_class = Types::InvokeEndpointOutput
|
39
42
|
InvokeEndpointOutput[:payload] = :body
|
40
43
|
InvokeEndpointOutput[:payload_member] = InvokeEndpointOutput.member(:body)
|
@@ -16,6 +16,7 @@ module Aws::SageMakerRuntime
|
|
16
16
|
# body: "data", # required
|
17
17
|
# content_type: "Header",
|
18
18
|
# accept: "Header",
|
19
|
+
# custom_attributes: "CustomAttributesHeader",
|
19
20
|
# }
|
20
21
|
#
|
21
22
|
# @!attribute [rw] endpoint_name
|
@@ -31,6 +32,13 @@ module Aws::SageMakerRuntime
|
|
31
32
|
# Provides input data, in the format specified in the `ContentType`
|
32
33
|
# request header. Amazon SageMaker passes all of the data in the body
|
33
34
|
# to the model.
|
35
|
+
#
|
36
|
+
# For information about the format of the request body, see [Common
|
37
|
+
# Data Formats—Inference][1].
|
38
|
+
#
|
39
|
+
#
|
40
|
+
#
|
41
|
+
# [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html
|
34
42
|
# @return [String]
|
35
43
|
#
|
36
44
|
# @!attribute [rw] content_type
|
@@ -41,18 +49,29 @@ module Aws::SageMakerRuntime
|
|
41
49
|
# The desired MIME type of the inference in the response.
|
42
50
|
# @return [String]
|
43
51
|
#
|
52
|
+
# @!attribute [rw] custom_attributes
|
53
|
+
# @return [String]
|
54
|
+
#
|
44
55
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointInput AWS API Documentation
|
45
56
|
#
|
46
57
|
class InvokeEndpointInput < Struct.new(
|
47
58
|
:endpoint_name,
|
48
59
|
:body,
|
49
60
|
:content_type,
|
50
|
-
:accept
|
61
|
+
:accept,
|
62
|
+
:custom_attributes)
|
51
63
|
include Aws::Structure
|
52
64
|
end
|
53
65
|
|
54
66
|
# @!attribute [rw] body
|
55
67
|
# Includes the inference provided by the model.
|
68
|
+
#
|
69
|
+
# For information about the format of the response body, see [Common
|
70
|
+
# Data Formats—Inference][1].
|
71
|
+
#
|
72
|
+
#
|
73
|
+
#
|
74
|
+
# [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html
|
56
75
|
# @return [String]
|
57
76
|
#
|
58
77
|
# @!attribute [rw] content_type
|
@@ -63,12 +82,16 @@ module Aws::SageMakerRuntime
|
|
63
82
|
# Identifies the production variant that was invoked.
|
64
83
|
# @return [String]
|
65
84
|
#
|
85
|
+
# @!attribute [rw] custom_attributes
|
86
|
+
# @return [String]
|
87
|
+
#
|
66
88
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointOutput AWS API Documentation
|
67
89
|
#
|
68
90
|
class InvokeEndpointOutput < Struct.new(
|
69
91
|
:body,
|
70
92
|
:content_type,
|
71
|
-
:invoked_production_variant
|
93
|
+
:invoked_production_variant,
|
94
|
+
:custom_attributes)
|
72
95
|
include Aws::Structure
|
73
96
|
end
|
74
97
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sagemakerruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|