aws-sdk-sagemakerruntime 1.19.0 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-sagemakerruntime.rb +3 -1
- data/lib/aws-sdk-sagemakerruntime/client.rb +38 -24
- data/lib/aws-sdk-sagemakerruntime/client_api.rb +4 -0
- data/lib/aws-sdk-sagemakerruntime/errors.rb +2 -0
- data/lib/aws-sdk-sagemakerruntime/resource.rb +3 -7
- data/lib/aws-sdk-sagemakerruntime/types.rb +23 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: aff2a56b697353c2cf4afdf4c8d2369c9f23b7e64da33250b72791a47986c143
|
4
|
+
data.tar.gz: 07b0b60785e7fd2e26495de734aeb2b9bed1442e0299ab789e963f1fa032c570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e77697239750a9ebce1adb0d9c04c267efb95b06185e1e11d193141cac5930bccc27c94689abf663b6f4fabb3a06ce17bc7e186a37d320240a78fa7e173dd353
|
7
|
+
data.tar.gz: 24db68e8344f61f1b8501610be539b5ddc4aa0530c2b5a8b6966a8ab8aad0837dc07ee545bd75cb793b316c1b2646976146e72054cb317f11d80ee98ea5e4dfd
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-sagemakerruntime/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::SageMakerRuntime
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.24.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
@@ -32,11 +35,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:sagemakerruntime)
|
|
32
35
|
module Aws::SageMakerRuntime
|
33
36
|
# An API client for SageMakerRuntime. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
37
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
38
|
+
# client = Aws::SageMakerRuntime::Client.new(
|
39
|
+
# region: region_name,
|
40
|
+
# credentials: credentials,
|
41
|
+
# # ...
|
42
|
+
# )
|
40
43
|
#
|
41
44
|
# For details on configuring region and credentials see
|
42
45
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -69,6 +72,7 @@ module Aws::SageMakerRuntime
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
78
|
|
@@ -105,7 +109,7 @@ module Aws::SageMakerRuntime
|
|
105
109
|
# @option options [required, String] :region
|
106
110
|
# The AWS region to connect to. The configured `:region` is
|
107
111
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
112
|
+
# a default `:region` is searched for in the following locations:
|
109
113
|
#
|
110
114
|
# * `Aws.config[:region]`
|
111
115
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +165,7 @@ module Aws::SageMakerRuntime
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +180,7 @@ module Aws::SageMakerRuntime
|
|
176
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
181
|
#
|
178
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
184
|
#
|
181
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
186
|
# The log formatter.
|
@@ -229,15 +233,19 @@ module Aws::SageMakerRuntime
|
|
229
233
|
#
|
230
234
|
# @option options [String] :retry_mode ("legacy")
|
231
235
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
236
|
+
#
|
237
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
238
|
+
# no retry mode is provided.
|
239
|
+
#
|
240
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
241
|
+
# This includes support for retry quotas, which limit the number of
|
242
|
+
# unsuccessful retries a client can make.
|
243
|
+
#
|
244
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
245
|
+
# functionality of `standard` mode along with automatic client side
|
246
|
+
# throttling. This is a provisional mode that may change behavior
|
247
|
+
# in the future.
|
248
|
+
#
|
241
249
|
#
|
242
250
|
# @option options [String] :secret_access_key
|
243
251
|
#
|
@@ -265,8 +273,7 @@ module Aws::SageMakerRuntime
|
|
265
273
|
#
|
266
274
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
275
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
276
|
+
# safely be set per-request on the session.
|
270
277
|
#
|
271
278
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
279
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +285,7 @@ module Aws::SageMakerRuntime
|
|
278
285
|
# request body. This option has no effect unless the request has
|
279
286
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
287
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
288
|
+
# request on the session.
|
282
289
|
#
|
283
290
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
291
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -352,7 +359,7 @@ module Aws::SageMakerRuntime
|
|
352
359
|
# the model.
|
353
360
|
#
|
354
361
|
# For information about the format of the request body, see [Common Data
|
355
|
-
# Formats
|
362
|
+
# Formats-Inference][1].
|
356
363
|
#
|
357
364
|
#
|
358
365
|
#
|
@@ -381,8 +388,14 @@ module Aws::SageMakerRuntime
|
|
381
388
|
# [1]: https://tools.ietf.org/html/rfc7230#section-3.2.6
|
382
389
|
#
|
383
390
|
# @option params [String] :target_model
|
384
|
-
#
|
385
|
-
#
|
391
|
+
# The model to request for inference when invoking a multi-model
|
392
|
+
# endpoint.
|
393
|
+
#
|
394
|
+
# @option params [String] :target_variant
|
395
|
+
# Specify the production variant to send the inference request to when
|
396
|
+
# invoking an endpoint that is running two or more variants. Note that
|
397
|
+
# this parameter overrides the default behavior for the endpoint, which
|
398
|
+
# is to distribute the invocation traffic based on the variant weights.
|
386
399
|
#
|
387
400
|
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
388
401
|
#
|
@@ -400,6 +413,7 @@ module Aws::SageMakerRuntime
|
|
400
413
|
# accept: "Header",
|
401
414
|
# custom_attributes: "CustomAttributesHeader",
|
402
415
|
# target_model: "TargetModelHeader",
|
416
|
+
# target_variant: "TargetVariantHeader",
|
403
417
|
# })
|
404
418
|
#
|
405
419
|
# @example Response structure
|
@@ -431,7 +445,7 @@ module Aws::SageMakerRuntime
|
|
431
445
|
params: params,
|
432
446
|
config: config)
|
433
447
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
434
|
-
context[:gem_version] = '1.
|
448
|
+
context[:gem_version] = '1.24.0'
|
435
449
|
Seahorse::Client::Request.new(handlers, context)
|
436
450
|
end
|
437
451
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ module Aws::SageMakerRuntime
|
|
24
26
|
ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
|
25
27
|
StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
|
26
28
|
TargetModelHeader = Shapes::StringShape.new(name: 'TargetModelHeader')
|
29
|
+
TargetVariantHeader = Shapes::StringShape.new(name: 'TargetVariantHeader')
|
27
30
|
ValidationError = Shapes::StructureShape.new(name: 'ValidationError')
|
28
31
|
|
29
32
|
InternalFailure.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
@@ -35,6 +38,7 @@ module Aws::SageMakerRuntime
|
|
35
38
|
InvokeEndpointInput.add_member(:accept, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Accept"))
|
36
39
|
InvokeEndpointInput.add_member(:custom_attributes, Shapes::ShapeRef.new(shape: CustomAttributesHeader, location: "header", location_name: "X-Amzn-SageMaker-Custom-Attributes"))
|
37
40
|
InvokeEndpointInput.add_member(:target_model, Shapes::ShapeRef.new(shape: TargetModelHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Model"))
|
41
|
+
InvokeEndpointInput.add_member(:target_variant, Shapes::ShapeRef.new(shape: TargetVariantHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Variant"))
|
38
42
|
InvokeEndpointInput.struct_class = Types::InvokeEndpointInput
|
39
43
|
InvokeEndpointInput[:payload] = :body
|
40
44
|
InvokeEndpointInput[:payload_member] = InvokeEndpointInput.member(:body)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -6,13 +8,7 @@
|
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
8
10
|
module Aws::SageMakerRuntime
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::SageMakerRuntime::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::SageMakerRuntime::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::SageMakerRuntime::Resource.new(client: client)
|
11
|
+
|
16
12
|
class Resource
|
17
13
|
|
18
14
|
# @param options ({})
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -17,6 +19,7 @@ module Aws::SageMakerRuntime
|
|
17
19
|
#
|
18
20
|
class InternalFailure < Struct.new(
|
19
21
|
:message)
|
22
|
+
SENSITIVE = []
|
20
23
|
include Aws::Structure
|
21
24
|
end
|
22
25
|
|
@@ -30,6 +33,7 @@ module Aws::SageMakerRuntime
|
|
30
33
|
# accept: "Header",
|
31
34
|
# custom_attributes: "CustomAttributesHeader",
|
32
35
|
# target_model: "TargetModelHeader",
|
36
|
+
# target_variant: "TargetVariantHeader",
|
33
37
|
# }
|
34
38
|
#
|
35
39
|
# @!attribute [rw] endpoint_name
|
@@ -47,7 +51,7 @@ module Aws::SageMakerRuntime
|
|
47
51
|
# to the model.
|
48
52
|
#
|
49
53
|
# For information about the format of the request body, see [Common
|
50
|
-
# Data Formats
|
54
|
+
# Data Formats-Inference][1].
|
51
55
|
#
|
52
56
|
#
|
53
57
|
#
|
@@ -80,8 +84,16 @@ module Aws::SageMakerRuntime
|
|
80
84
|
# @return [String]
|
81
85
|
#
|
82
86
|
# @!attribute [rw] target_model
|
83
|
-
#
|
84
|
-
#
|
87
|
+
# The model to request for inference when invoking a multi-model
|
88
|
+
# endpoint.
|
89
|
+
# @return [String]
|
90
|
+
#
|
91
|
+
# @!attribute [rw] target_variant
|
92
|
+
# Specify the production variant to send the inference request to when
|
93
|
+
# invoking an endpoint that is running two or more variants. Note that
|
94
|
+
# this parameter overrides the default behavior for the endpoint,
|
95
|
+
# which is to distribute the invocation traffic based on the variant
|
96
|
+
# weights.
|
85
97
|
# @return [String]
|
86
98
|
#
|
87
99
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointInput AWS API Documentation
|
@@ -92,7 +104,9 @@ module Aws::SageMakerRuntime
|
|
92
104
|
:content_type,
|
93
105
|
:accept,
|
94
106
|
:custom_attributes,
|
95
|
-
:target_model
|
107
|
+
:target_model,
|
108
|
+
:target_variant)
|
109
|
+
SENSITIVE = [:body, :custom_attributes]
|
96
110
|
include Aws::Structure
|
97
111
|
end
|
98
112
|
|
@@ -100,7 +114,7 @@ module Aws::SageMakerRuntime
|
|
100
114
|
# Includes the inference provided by the model.
|
101
115
|
#
|
102
116
|
# For information about the format of the response body, see [Common
|
103
|
-
# Data Formats
|
117
|
+
# Data Formats-Inference][1].
|
104
118
|
#
|
105
119
|
#
|
106
120
|
#
|
@@ -143,6 +157,7 @@ module Aws::SageMakerRuntime
|
|
143
157
|
:content_type,
|
144
158
|
:invoked_production_variant,
|
145
159
|
:custom_attributes)
|
160
|
+
SENSITIVE = [:body, :custom_attributes]
|
146
161
|
include Aws::Structure
|
147
162
|
end
|
148
163
|
|
@@ -171,6 +186,7 @@ module Aws::SageMakerRuntime
|
|
171
186
|
:original_status_code,
|
172
187
|
:original_message,
|
173
188
|
:log_stream_arn)
|
189
|
+
SENSITIVE = []
|
174
190
|
include Aws::Structure
|
175
191
|
end
|
176
192
|
|
@@ -183,6 +199,7 @@ module Aws::SageMakerRuntime
|
|
183
199
|
#
|
184
200
|
class ServiceUnavailable < Struct.new(
|
185
201
|
:message)
|
202
|
+
SENSITIVE = []
|
186
203
|
include Aws::Structure
|
187
204
|
end
|
188
205
|
|
@@ -195,6 +212,7 @@ module Aws::SageMakerRuntime
|
|
195
212
|
#
|
196
213
|
class ValidationError < Struct.new(
|
197
214
|
:message)
|
215
|
+
SENSITIVE = []
|
198
216
|
include Aws::Structure
|
199
217
|
end
|
200
218
|
|
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.24.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: 2020-
|
11
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.6.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - Amazon SageMaker Runtime
|