aws-sdk-sagemakerruntime 1.20.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sagemakerruntime.rb +4 -2
- data/lib/aws-sdk-sagemakerruntime/client.rb +40 -14
- 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 +2 -0
- data/lib/aws-sdk-sagemakerruntime/types.rb +23 -5
- 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: e95f7e803c6fa304f69d6514dd1219a80bc61ab6426c2139998ae577031f36b9
|
4
|
+
data.tar.gz: e4356f56dc137c5b54f1b2ae270311430b836c4def50e25aefea9eb6e7ca868d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0dd58737f56b372e8888e31c831268c378001b79dbaffb8036102def966a2c2eda74f2624abb4aa1ca80ef5c8b843a63787940ffdc6e6d03864e0a6f85a7b49
|
7
|
+
data.tar.gz: a0b180d65a6fb49e28c0bf604bf43c8154dabde8d4dcdb9ce23366a5d6689bdf9641dbea629aff1176ce4ab83d7be8eae38ec3d5da9852455e6930c0f33def99
|
@@ -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:
|
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-sagemakerruntime/customizations'
|
|
42
44
|
#
|
43
45
|
# See {Errors} for more information.
|
44
46
|
#
|
45
|
-
#
|
47
|
+
# @!group service
|
46
48
|
module Aws::SageMakerRuntime
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.25.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
|
|
@@ -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
|
|
@@ -81,13 +85,28 @@ module Aws::SageMakerRuntime
|
|
81
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
82
86
|
# credentials.
|
83
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
84
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
85
103
|
# from an EC2 IMDS on an EC2 instance.
|
86
104
|
#
|
87
|
-
# * `Aws::
|
88
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
89
107
|
#
|
90
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
91
110
|
#
|
92
111
|
# When `:credentials` are not configured directly, the following
|
93
112
|
# locations will be searched for credentials:
|
@@ -97,10 +116,10 @@ module Aws::SageMakerRuntime
|
|
97
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
98
117
|
# * `~/.aws/credentials`
|
99
118
|
# * `~/.aws/config`
|
100
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
101
|
-
# very aggressive. Construct and pass an instance of
|
102
|
-
# `Aws::InstanceProfileCredentails`
|
103
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
104
123
|
#
|
105
124
|
# @option options [required, String] :region
|
106
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -161,7 +180,7 @@ module Aws::SageMakerRuntime
|
|
161
180
|
# @option options [String] :endpoint
|
162
181
|
# The client endpoint is normally constructed from the `:region`
|
163
182
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
183
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
184
|
#
|
166
185
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
186
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +195,7 @@ module Aws::SageMakerRuntime
|
|
176
195
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
196
|
#
|
178
197
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
198
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
199
|
#
|
181
200
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
201
|
# The log formatter.
|
@@ -349,13 +368,13 @@ module Aws::SageMakerRuntime
|
|
349
368
|
#
|
350
369
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html
|
351
370
|
#
|
352
|
-
# @option params [required, String,
|
371
|
+
# @option params [required, String, StringIO, File] :body
|
353
372
|
# Provides input data, in the format specified in the `ContentType`
|
354
373
|
# request header. Amazon SageMaker passes all of the data in the body to
|
355
374
|
# the model.
|
356
375
|
#
|
357
376
|
# For information about the format of the request body, see [Common Data
|
358
|
-
# Formats
|
377
|
+
# Formats-Inference][1].
|
359
378
|
#
|
360
379
|
#
|
361
380
|
#
|
@@ -384,8 +403,14 @@ module Aws::SageMakerRuntime
|
|
384
403
|
# [1]: https://tools.ietf.org/html/rfc7230#section-3.2.6
|
385
404
|
#
|
386
405
|
# @option params [String] :target_model
|
387
|
-
#
|
388
|
-
#
|
406
|
+
# The model to request for inference when invoking a multi-model
|
407
|
+
# endpoint.
|
408
|
+
#
|
409
|
+
# @option params [String] :target_variant
|
410
|
+
# Specify the production variant to send the inference request to when
|
411
|
+
# invoking an endpoint that is running two or more variants. Note that
|
412
|
+
# this parameter overrides the default behavior for the endpoint, which
|
413
|
+
# is to distribute the invocation traffic based on the variant weights.
|
389
414
|
#
|
390
415
|
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
391
416
|
#
|
@@ -403,6 +428,7 @@ module Aws::SageMakerRuntime
|
|
403
428
|
# accept: "Header",
|
404
429
|
# custom_attributes: "CustomAttributesHeader",
|
405
430
|
# target_model: "TargetModelHeader",
|
431
|
+
# target_variant: "TargetVariantHeader",
|
406
432
|
# })
|
407
433
|
#
|
408
434
|
# @example Response structure
|
@@ -434,7 +460,7 @@ module Aws::SageMakerRuntime
|
|
434
460
|
params: params,
|
435
461
|
config: config)
|
436
462
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
437
|
-
context[:gem_version] = '1.
|
463
|
+
context[:gem_version] = '1.25.0'
|
438
464
|
Seahorse::Client::Request.new(handlers, context)
|
439
465
|
end
|
440
466
|
|
@@ -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:
|
@@ -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.25.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-08-25 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
|