aws-sdk-sagemakerruntime 1.24.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce91af3ecc001a54e006131daeeae3f8797cef179f7e4c42a4f0074bd3e81fef
|
4
|
+
data.tar.gz: b01975406a9f92158c882711184fb437affafb36dfb9092e02e7a40c671a306a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9731bb86a2106564369edfbb97e89e4295aa1914cff42336adf5dc1b8ea70ab45372a442761bc40f7f3e64a2f05c2ccc5d6814b17ec8409f026ec44787755f44
|
7
|
+
data.tar.gz: '009579150cdb7fac082cfe89e6ba717f05839887baa8bcd780ad9cf81b487f21df57b9bb0732f71101f4646d06c2461af1f932a10fc3af04ccaafd14491731ed'
|
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-sagemakerruntime/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::SageMakerRuntime
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.29.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::SageMakerRuntime
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
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
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::SageMakerRuntime
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# 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.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -329,9 +344,9 @@ module Aws::SageMakerRuntime
|
|
329
344
|
#
|
330
345
|
# A customer's model containers must respond to requests within 60
|
331
346
|
# seconds. The model itself can have a maximum processing time of 60
|
332
|
-
# seconds before responding to
|
333
|
-
#
|
334
|
-
#
|
347
|
+
# seconds before responding to invocations. If your model is going to
|
348
|
+
# take 50-60 seconds of processing time, the SDK socket timeout should
|
349
|
+
# be set to be 70 seconds.
|
335
350
|
#
|
336
351
|
# <note markdown="1"> Endpoints are scoped to an individual account, and are not public. The
|
337
352
|
# URL does not contain the account ID, but Amazon SageMaker determines
|
@@ -343,7 +358,7 @@ module Aws::SageMakerRuntime
|
|
343
358
|
#
|
344
359
|
#
|
345
360
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html
|
346
|
-
# [2]:
|
361
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
347
362
|
#
|
348
363
|
# @option params [required, String] :endpoint_name
|
349
364
|
# The name of the endpoint that you specified when you created the
|
@@ -353,7 +368,7 @@ module Aws::SageMakerRuntime
|
|
353
368
|
#
|
354
369
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html
|
355
370
|
#
|
356
|
-
# @option params [required, String,
|
371
|
+
# @option params [required, String, StringIO, File] :body
|
357
372
|
# Provides input data, in the format specified in the `ContentType`
|
358
373
|
# request header. Amazon SageMaker passes all of the data in the body to
|
359
374
|
# the model.
|
@@ -380,6 +395,13 @@ module Aws::SageMakerRuntime
|
|
380
395
|
# was programmed to process. The value must consist of no more than 1024
|
381
396
|
# visible US-ASCII characters as specified in [Section 3.3.6. Field
|
382
397
|
# Value Components][1] of the Hypertext Transfer Protocol (HTTP/1.1).
|
398
|
+
#
|
399
|
+
# The code in your model is responsible for setting or updating any
|
400
|
+
# custom attributes in the response. If your code does not set this
|
401
|
+
# value in the response, an empty value is returned. For example, if a
|
402
|
+
# custom attribute represents the trace ID, your model can prepend the
|
403
|
+
# custom attribute with `Trace ID:` in your post-processing function.
|
404
|
+
#
|
383
405
|
# This feature is currently supported in the AWS SDKs but not in the
|
384
406
|
# Amazon SageMaker Python SDK.
|
385
407
|
#
|
@@ -397,6 +419,22 @@ module Aws::SageMakerRuntime
|
|
397
419
|
# this parameter overrides the default behavior for the endpoint, which
|
398
420
|
# is to distribute the invocation traffic based on the variant weights.
|
399
421
|
#
|
422
|
+
# For information about how to use variant targeting to perform a/b
|
423
|
+
# testing, see [Test models in production][1]
|
424
|
+
#
|
425
|
+
#
|
426
|
+
#
|
427
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html
|
428
|
+
#
|
429
|
+
# @option params [String] :inference_id
|
430
|
+
# If you provide a value, it is added to the captured data when you
|
431
|
+
# enable data capture on the endpoint. For information about data
|
432
|
+
# capture, see [Capture Data][1].
|
433
|
+
#
|
434
|
+
#
|
435
|
+
#
|
436
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html
|
437
|
+
#
|
400
438
|
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
401
439
|
#
|
402
440
|
# * {Types::InvokeEndpointOutput#body #body} => String
|
@@ -414,6 +452,7 @@ module Aws::SageMakerRuntime
|
|
414
452
|
# custom_attributes: "CustomAttributesHeader",
|
415
453
|
# target_model: "TargetModelHeader",
|
416
454
|
# target_variant: "TargetVariantHeader",
|
455
|
+
# inference_id: "InferenceId",
|
417
456
|
# })
|
418
457
|
#
|
419
458
|
# @example Response structure
|
@@ -445,7 +484,7 @@ module Aws::SageMakerRuntime
|
|
445
484
|
params: params,
|
446
485
|
config: config)
|
447
486
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
448
|
-
context[:gem_version] = '1.
|
487
|
+
context[:gem_version] = '1.29.0'
|
449
488
|
Seahorse::Client::Request.new(handlers, context)
|
450
489
|
end
|
451
490
|
|
@@ -17,6 +17,7 @@ module Aws::SageMakerRuntime
|
|
17
17
|
CustomAttributesHeader = Shapes::StringShape.new(name: 'CustomAttributesHeader')
|
18
18
|
EndpointName = Shapes::StringShape.new(name: 'EndpointName')
|
19
19
|
Header = Shapes::StringShape.new(name: 'Header')
|
20
|
+
InferenceId = Shapes::StringShape.new(name: 'InferenceId')
|
20
21
|
InternalFailure = Shapes::StructureShape.new(name: 'InternalFailure')
|
21
22
|
InvokeEndpointInput = Shapes::StructureShape.new(name: 'InvokeEndpointInput')
|
22
23
|
InvokeEndpointOutput = Shapes::StructureShape.new(name: 'InvokeEndpointOutput')
|
@@ -39,6 +40,7 @@ module Aws::SageMakerRuntime
|
|
39
40
|
InvokeEndpointInput.add_member(:custom_attributes, Shapes::ShapeRef.new(shape: CustomAttributesHeader, location: "header", location_name: "X-Amzn-SageMaker-Custom-Attributes"))
|
40
41
|
InvokeEndpointInput.add_member(:target_model, Shapes::ShapeRef.new(shape: TargetModelHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Model"))
|
41
42
|
InvokeEndpointInput.add_member(:target_variant, Shapes::ShapeRef.new(shape: TargetVariantHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Variant"))
|
43
|
+
InvokeEndpointInput.add_member(:inference_id, Shapes::ShapeRef.new(shape: InferenceId, location: "header", location_name: "X-Amzn-SageMaker-Inference-Id"))
|
42
44
|
InvokeEndpointInput.struct_class = Types::InvokeEndpointInput
|
43
45
|
InvokeEndpointInput[:payload] = :body
|
44
46
|
InvokeEndpointInput[:payload_member] = InvokeEndpointInput.member(:body)
|
@@ -34,6 +34,7 @@ module Aws::SageMakerRuntime
|
|
34
34
|
# custom_attributes: "CustomAttributesHeader",
|
35
35
|
# target_model: "TargetModelHeader",
|
36
36
|
# target_variant: "TargetVariantHeader",
|
37
|
+
# inference_id: "InferenceId",
|
37
38
|
# }
|
38
39
|
#
|
39
40
|
# @!attribute [rw] endpoint_name
|
@@ -75,8 +76,16 @@ module Aws::SageMakerRuntime
|
|
75
76
|
# was programmed to process. The value must consist of no more than
|
76
77
|
# 1024 visible US-ASCII characters as specified in [Section 3.3.6.
|
77
78
|
# Field Value Components][1] of the Hypertext Transfer Protocol
|
78
|
-
# (HTTP/1.1).
|
79
|
-
#
|
79
|
+
# (HTTP/1.1).
|
80
|
+
#
|
81
|
+
# The code in your model is responsible for setting or updating any
|
82
|
+
# custom attributes in the response. If your code does not set this
|
83
|
+
# value in the response, an empty value is returned. For example, if a
|
84
|
+
# custom attribute represents the trace ID, your model can prepend the
|
85
|
+
# custom attribute with `Trace ID:` in your post-processing function.
|
86
|
+
#
|
87
|
+
# This feature is currently supported in the AWS SDKs but not in the
|
88
|
+
# Amazon SageMaker Python SDK.
|
80
89
|
#
|
81
90
|
#
|
82
91
|
#
|
@@ -94,6 +103,23 @@ module Aws::SageMakerRuntime
|
|
94
103
|
# this parameter overrides the default behavior for the endpoint,
|
95
104
|
# which is to distribute the invocation traffic based on the variant
|
96
105
|
# weights.
|
106
|
+
#
|
107
|
+
# For information about how to use variant targeting to perform a/b
|
108
|
+
# testing, see [Test models in production][1]
|
109
|
+
#
|
110
|
+
#
|
111
|
+
#
|
112
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html
|
113
|
+
# @return [String]
|
114
|
+
#
|
115
|
+
# @!attribute [rw] inference_id
|
116
|
+
# If you provide a value, it is added to the captured data when you
|
117
|
+
# enable data capture on the endpoint. For information about data
|
118
|
+
# capture, see [Capture Data][1].
|
119
|
+
#
|
120
|
+
#
|
121
|
+
#
|
122
|
+
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html
|
97
123
|
# @return [String]
|
98
124
|
#
|
99
125
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointInput AWS API Documentation
|
@@ -105,7 +131,8 @@ module Aws::SageMakerRuntime
|
|
105
131
|
:accept,
|
106
132
|
:custom_attributes,
|
107
133
|
:target_model,
|
108
|
-
:target_variant
|
134
|
+
:target_variant,
|
135
|
+
:inference_id)
|
109
136
|
SENSITIVE = [:body, :custom_attributes]
|
110
137
|
include Aws::Structure
|
111
138
|
end
|
@@ -142,6 +169,12 @@ module Aws::SageMakerRuntime
|
|
142
169
|
# returned, the model must set the custom attribute to be included on
|
143
170
|
# the way back.
|
144
171
|
#
|
172
|
+
# The code in your model is responsible for setting or updating any
|
173
|
+
# custom attributes in the response. If your code does not set this
|
174
|
+
# value in the response, an empty value is returned. For example, if a
|
175
|
+
# custom attribute represents the trace ID, your model can prepend the
|
176
|
+
# custom attribute with `Trace ID:` in your post-processing function.
|
177
|
+
#
|
145
178
|
# This feature is currently supported in the AWS SDKs but not in the
|
146
179
|
# Amazon SageMaker Python SDK.
|
147
180
|
#
|
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.29.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:
|
11
|
+
date: 2021-02-02 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.112.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.112.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|