aws-sdk-sagemakerruntime 1.36.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemakerruntime/client.rb +36 -14
- data/lib/aws-sdk-sagemakerruntime/client_api.rb +10 -0
- data/lib/aws-sdk-sagemakerruntime/errors.rb +32 -0
- data/lib/aws-sdk-sagemakerruntime/types.rb +35 -6
- data/lib/aws-sdk-sagemakerruntime.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 412633cfeca332d6b9c99e05a074ad31bdbd3f7b99d2b88a1165d136375430dc
|
4
|
+
data.tar.gz: 7cc90694c65352361b1a554d0472ac7a86defbc2b8a94c2cc26ba37eb5cfd39d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 607b218f1f11f79b64aa6b77b062e290314f4219ae14e04004419b9fd3944170f491fa05b522be07536c69015d495e7c0a2d5805db45e492e6c59d36e5eb3731
|
7
|
+
data.tar.gz: 4470c8d987cddb6076b052689f7674d35b53896bdac0178f0fd4ade3e3b6fb026b23c10e6741f97bbaf6f533674eac83e48d624348e852f275995998cf9b88d2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.40.0 (2021-12-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.39.0 (2021-12-01)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adding new exception types for InvokeEndpoint
|
13
|
+
|
14
|
+
1.38.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.37.0 (2021-11-04)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.36.0 (2021-10-18)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.40.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
32
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
33
|
|
@@ -73,6 +74,7 @@ module Aws::SageMakerRuntime
|
|
73
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
77
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
76
78
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
79
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
80
|
|
@@ -119,7 +121,9 @@ module Aws::SageMakerRuntime
|
|
119
121
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
122
|
# are very aggressive. Construct and pass an instance of
|
121
123
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
124
|
+
# enable retries and extended timeouts. Instance profile credential
|
125
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
126
|
+
# to true.
|
123
127
|
#
|
124
128
|
# @option options [required, String] :region
|
125
129
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +177,10 @@ module Aws::SageMakerRuntime
|
|
173
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
179
|
#
|
180
|
+
# @option options [String] :defaults_mode ("legacy")
|
181
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
182
|
+
# accepted modes and the configuration defaults that are included.
|
183
|
+
#
|
176
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
185
|
# Set to true to disable SDK automatically adding host prefix
|
178
186
|
# to default service endpoint when available.
|
@@ -275,6 +283,15 @@ module Aws::SageMakerRuntime
|
|
275
283
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
276
284
|
# requests are made, and retries are disabled.
|
277
285
|
#
|
286
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
287
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
288
|
+
# will be used if available.
|
289
|
+
#
|
290
|
+
# @option options [Boolean] :use_fips_endpoint
|
291
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
292
|
+
# When a `fips` region is used, the region is normalized and this config
|
293
|
+
# is set to `true`.
|
294
|
+
#
|
278
295
|
# @option options [Boolean] :validate_params (true)
|
279
296
|
# When `true`, request parameters are validated before
|
280
297
|
# sending the request.
|
@@ -286,7 +303,7 @@ module Aws::SageMakerRuntime
|
|
286
303
|
# seconds to wait when opening a HTTP session before raising a
|
287
304
|
# `Timeout::Error`.
|
288
305
|
#
|
289
|
-
# @option options [
|
306
|
+
# @option options [Float] :http_read_timeout (60) The default
|
290
307
|
# number of seconds to wait for response data. This value can
|
291
308
|
# safely be set per-request on the session.
|
292
309
|
#
|
@@ -302,6 +319,9 @@ module Aws::SageMakerRuntime
|
|
302
319
|
# disables this behaviour. This value can safely be set per
|
303
320
|
# request on the session.
|
304
321
|
#
|
322
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
323
|
+
# in seconds.
|
324
|
+
#
|
305
325
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
306
326
|
# HTTP debug output will be sent to the `:logger`.
|
307
327
|
#
|
@@ -338,9 +358,10 @@ module Aws::SageMakerRuntime
|
|
338
358
|
# rely on the behavior of headers outside those enumerated in the
|
339
359
|
# request syntax.
|
340
360
|
#
|
341
|
-
# Calls to `InvokeEndpoint` are authenticated by using
|
342
|
-
# Version 4. For information, see [Authenticating
|
343
|
-
# Signature Version 4)][2] in the *Amazon
|
361
|
+
# Calls to `InvokeEndpoint` are authenticated by using Amazon Web
|
362
|
+
# Services Signature Version 4. For information, see [Authenticating
|
363
|
+
# Requests (Amazon Web Services Signature Version 4)][2] in the *Amazon
|
364
|
+
# S3 API Reference*.
|
344
365
|
#
|
345
366
|
# A customer's model containers must respond to requests within 60
|
346
367
|
# seconds. The model itself can have a maximum processing time of 60
|
@@ -402,8 +423,8 @@ module Aws::SageMakerRuntime
|
|
402
423
|
# custom attribute represents the trace ID, your model can prepend the
|
403
424
|
# custom attribute with `Trace ID:` in your post-processing function.
|
404
425
|
#
|
405
|
-
# This feature is currently supported in the
|
406
|
-
# Amazon SageMaker Python SDK.
|
426
|
+
# This feature is currently supported in the Amazon Web Services SDKs
|
427
|
+
# but not in the Amazon SageMaker Python SDK.
|
407
428
|
#
|
408
429
|
#
|
409
430
|
#
|
@@ -493,13 +514,14 @@ module Aws::SageMakerRuntime
|
|
493
514
|
# rely on the behavior of headers outside those enumerated in the
|
494
515
|
# request syntax.
|
495
516
|
#
|
496
|
-
# Calls to `InvokeEndpointAsync` are authenticated by using
|
497
|
-
# Signature Version 4. For information, see [Authenticating
|
498
|
-
# (
|
517
|
+
# Calls to `InvokeEndpointAsync` are authenticated by using Amazon Web
|
518
|
+
# Services Signature Version 4. For information, see [Authenticating
|
519
|
+
# Requests (Amazon Web Services Signature Version 4)][1] in the *Amazon
|
520
|
+
# S3 API Reference*.
|
499
521
|
#
|
500
522
|
#
|
501
523
|
#
|
502
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
524
|
+
# [1]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
503
525
|
#
|
504
526
|
# @option params [required, String] :endpoint_name
|
505
527
|
# The name of the endpoint that you specified when you created the
|
@@ -531,8 +553,8 @@ module Aws::SageMakerRuntime
|
|
531
553
|
# custom attribute represents the trace ID, your model can prepend the
|
532
554
|
# custom attribute with `Trace ID`\: in your post-processing function.
|
533
555
|
#
|
534
|
-
# This feature is currently supported in the
|
535
|
-
# Amazon SageMaker Python SDK.
|
556
|
+
# This feature is currently supported in the Amazon Web Services SDKs
|
557
|
+
# but not in the Amazon SageMaker Python SDK.
|
536
558
|
#
|
537
559
|
#
|
538
560
|
#
|
@@ -593,7 +615,7 @@ module Aws::SageMakerRuntime
|
|
593
615
|
params: params,
|
594
616
|
config: config)
|
595
617
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
596
|
-
context[:gem_version] = '1.
|
618
|
+
context[:gem_version] = '1.40.0'
|
597
619
|
Seahorse::Client::Request.new(handlers, context)
|
598
620
|
end
|
599
621
|
|
@@ -19,6 +19,7 @@ module Aws::SageMakerRuntime
|
|
19
19
|
Header = Shapes::StringShape.new(name: 'Header')
|
20
20
|
InferenceId = Shapes::StringShape.new(name: 'InferenceId')
|
21
21
|
InputLocationHeader = Shapes::StringShape.new(name: 'InputLocationHeader')
|
22
|
+
InternalDependencyException = Shapes::StructureShape.new(name: 'InternalDependencyException')
|
22
23
|
InternalFailure = Shapes::StructureShape.new(name: 'InternalFailure')
|
23
24
|
InvokeEndpointAsyncInput = Shapes::StructureShape.new(name: 'InvokeEndpointAsyncInput')
|
24
25
|
InvokeEndpointAsyncOutput = Shapes::StructureShape.new(name: 'InvokeEndpointAsyncOutput')
|
@@ -27,6 +28,7 @@ module Aws::SageMakerRuntime
|
|
27
28
|
LogStreamArn = Shapes::StringShape.new(name: 'LogStreamArn')
|
28
29
|
Message = Shapes::StringShape.new(name: 'Message')
|
29
30
|
ModelError = Shapes::StructureShape.new(name: 'ModelError')
|
31
|
+
ModelNotReadyException = Shapes::StructureShape.new(name: 'ModelNotReadyException')
|
30
32
|
RequestTTLSecondsHeader = Shapes::IntegerShape.new(name: 'RequestTTLSecondsHeader')
|
31
33
|
ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
|
32
34
|
StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
|
@@ -35,6 +37,9 @@ module Aws::SageMakerRuntime
|
|
35
37
|
TargetVariantHeader = Shapes::StringShape.new(name: 'TargetVariantHeader')
|
36
38
|
ValidationError = Shapes::StructureShape.new(name: 'ValidationError')
|
37
39
|
|
40
|
+
InternalDependencyException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
41
|
+
InternalDependencyException.struct_class = Types::InternalDependencyException
|
42
|
+
|
38
43
|
InternalFailure.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
39
44
|
InternalFailure.struct_class = Types::InternalFailure
|
40
45
|
|
@@ -78,6 +83,9 @@ module Aws::SageMakerRuntime
|
|
78
83
|
ModelError.add_member(:log_stream_arn, Shapes::ShapeRef.new(shape: LogStreamArn, location_name: "LogStreamArn"))
|
79
84
|
ModelError.struct_class = Types::ModelError
|
80
85
|
|
86
|
+
ModelNotReadyException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
87
|
+
ModelNotReadyException.struct_class = Types::ModelNotReadyException
|
88
|
+
|
81
89
|
ServiceUnavailable.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
82
90
|
ServiceUnavailable.struct_class = Types::ServiceUnavailable
|
83
91
|
|
@@ -112,6 +120,8 @@ module Aws::SageMakerRuntime
|
|
112
120
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailable)
|
113
121
|
o.errors << Shapes::ShapeRef.new(shape: ValidationError)
|
114
122
|
o.errors << Shapes::ShapeRef.new(shape: ModelError)
|
123
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalDependencyException)
|
124
|
+
o.errors << Shapes::ShapeRef.new(shape: ModelNotReadyException)
|
115
125
|
end)
|
116
126
|
|
117
127
|
api.add_operation(:invoke_endpoint_async, Seahorse::Model::Operation.new.tap do |o|
|
@@ -27,8 +27,10 @@ module Aws::SageMakerRuntime
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {InternalDependencyException}
|
30
31
|
# * {InternalFailure}
|
31
32
|
# * {ModelError}
|
33
|
+
# * {ModelNotReadyException}
|
32
34
|
# * {ServiceUnavailable}
|
33
35
|
# * {ValidationError}
|
34
36
|
#
|
@@ -38,6 +40,21 @@ module Aws::SageMakerRuntime
|
|
38
40
|
|
39
41
|
extend Aws::Errors::DynamicErrors
|
40
42
|
|
43
|
+
class InternalDependencyException < ServiceError
|
44
|
+
|
45
|
+
# @param [Seahorse::Client::RequestContext] context
|
46
|
+
# @param [String] message
|
47
|
+
# @param [Aws::SageMakerRuntime::Types::InternalDependencyException] data
|
48
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
49
|
+
super(context, message, data)
|
50
|
+
end
|
51
|
+
|
52
|
+
# @return [String]
|
53
|
+
def message
|
54
|
+
@message || @data[:message]
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
41
58
|
class InternalFailure < ServiceError
|
42
59
|
|
43
60
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -83,6 +100,21 @@ module Aws::SageMakerRuntime
|
|
83
100
|
end
|
84
101
|
end
|
85
102
|
|
103
|
+
class ModelNotReadyException < ServiceError
|
104
|
+
|
105
|
+
# @param [Seahorse::Client::RequestContext] context
|
106
|
+
# @param [String] message
|
107
|
+
# @param [Aws::SageMakerRuntime::Types::ModelNotReadyException] data
|
108
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
109
|
+
super(context, message, data)
|
110
|
+
end
|
111
|
+
|
112
|
+
# @return [String]
|
113
|
+
def message
|
114
|
+
@message || @data[:message]
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
86
118
|
class ServiceUnavailable < ServiceError
|
87
119
|
|
88
120
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -10,6 +10,20 @@
|
|
10
10
|
module Aws::SageMakerRuntime
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# Your request caused an exception with an internal dependency. Contact
|
14
|
+
# customer support.
|
15
|
+
#
|
16
|
+
# @!attribute [rw] message
|
17
|
+
# @return [String]
|
18
|
+
#
|
19
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InternalDependencyException AWS API Documentation
|
20
|
+
#
|
21
|
+
class InternalDependencyException < Struct.new(
|
22
|
+
:message)
|
23
|
+
SENSITIVE = []
|
24
|
+
include Aws::Structure
|
25
|
+
end
|
26
|
+
|
13
27
|
# An internal failure occurred.
|
14
28
|
#
|
15
29
|
# @!attribute [rw] message
|
@@ -70,8 +84,8 @@ module Aws::SageMakerRuntime
|
|
70
84
|
# custom attribute represents the trace ID, your model can prepend the
|
71
85
|
# custom attribute with `Trace ID`\: in your post-processing function.
|
72
86
|
#
|
73
|
-
# This feature is currently supported in the
|
74
|
-
# Amazon SageMaker Python SDK.
|
87
|
+
# This feature is currently supported in the Amazon Web Services SDKs
|
88
|
+
# but not in the Amazon SageMaker Python SDK.
|
75
89
|
#
|
76
90
|
#
|
77
91
|
#
|
@@ -187,8 +201,8 @@ module Aws::SageMakerRuntime
|
|
187
201
|
# custom attribute represents the trace ID, your model can prepend the
|
188
202
|
# custom attribute with `Trace ID:` in your post-processing function.
|
189
203
|
#
|
190
|
-
# This feature is currently supported in the
|
191
|
-
# Amazon SageMaker Python SDK.
|
204
|
+
# This feature is currently supported in the Amazon Web Services SDKs
|
205
|
+
# but not in the Amazon SageMaker Python SDK.
|
192
206
|
#
|
193
207
|
#
|
194
208
|
#
|
@@ -285,8 +299,8 @@ module Aws::SageMakerRuntime
|
|
285
299
|
# custom attribute represents the trace ID, your model can prepend the
|
286
300
|
# custom attribute with `Trace ID:` in your post-processing function.
|
287
301
|
#
|
288
|
-
# This feature is currently supported in the
|
289
|
-
# Amazon SageMaker Python SDK.
|
302
|
+
# This feature is currently supported in the Amazon Web Services SDKs
|
303
|
+
# but not in the Amazon SageMaker Python SDK.
|
290
304
|
#
|
291
305
|
#
|
292
306
|
#
|
@@ -333,6 +347,21 @@ module Aws::SageMakerRuntime
|
|
333
347
|
include Aws::Structure
|
334
348
|
end
|
335
349
|
|
350
|
+
# Either a serverless endpoint variant's resources are still being
|
351
|
+
# provisioned, or a multi-model endpoint is still downloading or loading
|
352
|
+
# the target model. Wait and try your request again.
|
353
|
+
#
|
354
|
+
# @!attribute [rw] message
|
355
|
+
# @return [String]
|
356
|
+
#
|
357
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/ModelNotReadyException AWS API Documentation
|
358
|
+
#
|
359
|
+
class ModelNotReadyException < Struct.new(
|
360
|
+
:message)
|
361
|
+
SENSITIVE = []
|
362
|
+
include Aws::Structure
|
363
|
+
end
|
364
|
+
|
336
365
|
# The service is unavailable. Try your call again.
|
337
366
|
#
|
338
367
|
# @!attribute [rw] message
|
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.40.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: 2021-
|
11
|
+
date: 2021-12-21 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.125.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.125.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|