aws-sdk-sagemakerruntime 1.69.0 → 1.73.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 +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemakerruntime/client.rb +50 -5
- data/lib/aws-sdk-sagemakerruntime/client_api.rb +7 -0
- data/lib/aws-sdk-sagemakerruntime/endpoints.rb +3 -12
- data/lib/aws-sdk-sagemakerruntime/plugins/endpoints.rb +18 -6
- data/lib/aws-sdk-sagemakerruntime/types.rb +47 -3
- data/lib/aws-sdk-sagemakerruntime.rb +1 -1
- data/sig/client.rbs +7 -2
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +4 -0
- 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: ef083336ca077494c0318ff21feff370030bc7ff3efe6a5812bdb5c34f25904f
|
4
|
+
data.tar.gz: 2e8181a2cd0985780da6dd58d5a046055555a52fc2d69bcb398131f778ee6b5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4952df385f7c9a5e311a8b904748f6b689e7e599f12384f347fefc85148465155fca6eb9e3969e3f2f23d31e3a21d65bd6ed641c27977d13b533f9e37d032659
|
7
|
+
data.tar.gz: adbff51fbbaa71cf3fea672ab29e526d4e0b8fa650ad8bc8cfd00ce1e0981a819c196558cf75f64f67d0ca955fe6e9547168951678bea72d613b1e7842964476
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.73.0 (2024-09-20)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.72.0 (2024-09-11)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.71.0 (2024-09-10)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.70.0 (2024-09-09)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - AWS SageMaker Runtime feature: Add sticky routing to support stateful inference models.
|
23
|
+
|
4
24
|
1.69.0 (2024-09-03)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.73.0
|
@@ -132,13 +132,15 @@ module Aws::SageMakerRuntime
|
|
132
132
|
# locations will be searched for credentials:
|
133
133
|
#
|
134
134
|
# * `Aws.config[:credentials]`
|
135
|
-
# * The `:access_key_id`, `:secret_access_key`,
|
136
|
-
#
|
135
|
+
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
136
|
+
# `:account_id` options.
|
137
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
|
138
|
+
# ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
|
137
139
|
# * `~/.aws/credentials`
|
138
140
|
# * `~/.aws/config`
|
139
141
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
140
142
|
# are very aggressive. Construct and pass an instance of
|
141
|
-
# `Aws::
|
143
|
+
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
142
144
|
# enable retries and extended timeouts. Instance profile credential
|
143
145
|
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
144
146
|
# to true.
|
@@ -157,6 +159,8 @@ module Aws::SageMakerRuntime
|
|
157
159
|
#
|
158
160
|
# @option options [String] :access_key_id
|
159
161
|
#
|
162
|
+
# @option options [String] :account_id
|
163
|
+
#
|
160
164
|
# @option options [Boolean] :active_endpoint_cache (false)
|
161
165
|
# When set to `true`, a thread polling for endpoints will be running in
|
162
166
|
# the background every 60 secs (default). Defaults to `false`.
|
@@ -380,7 +384,9 @@ module Aws::SageMakerRuntime
|
|
380
384
|
# sending the request.
|
381
385
|
#
|
382
386
|
# @option options [Aws::SageMakerRuntime::EndpointProvider] :endpoint_provider
|
383
|
-
# The endpoint provider used to resolve endpoints. Any object that responds to
|
387
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to
|
388
|
+
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
389
|
+
# `Aws::SageMakerRuntime::EndpointParameters`.
|
384
390
|
#
|
385
391
|
# @option options [Float] :http_continue_timeout (1)
|
386
392
|
# The number of seconds to wait for a 100-continue response before sending the
|
@@ -436,6 +442,12 @@ module Aws::SageMakerRuntime
|
|
436
442
|
# @option options [String] :ssl_ca_store
|
437
443
|
# Sets the X509::Store to verify peer certificate.
|
438
444
|
#
|
445
|
+
# @option options [OpenSSL::X509::Certificate] :ssl_cert
|
446
|
+
# Sets a client certificate when creating http connections.
|
447
|
+
#
|
448
|
+
# @option options [OpenSSL::PKey] :ssl_key
|
449
|
+
# Sets a client key when creating http connections.
|
450
|
+
#
|
439
451
|
# @option options [Float] :ssl_timeout
|
440
452
|
# Sets the SSL timeout in seconds
|
441
453
|
#
|
@@ -577,12 +589,31 @@ module Aws::SageMakerRuntime
|
|
577
589
|
# If the endpoint hosts one or more inference components, this parameter
|
578
590
|
# specifies the name of inference component to invoke.
|
579
591
|
#
|
592
|
+
# @option params [String] :session_id
|
593
|
+
# Creates a stateful session or identifies an existing one. You can do
|
594
|
+
# one of the following:
|
595
|
+
#
|
596
|
+
# * Create a stateful session by specifying the value `NEW_SESSION`.
|
597
|
+
#
|
598
|
+
# * Send your request to an existing stateful session by specifying the
|
599
|
+
# ID of that session.
|
600
|
+
#
|
601
|
+
# With a stateful session, you can send multiple requests to a stateful
|
602
|
+
# model. When you create a session with a stateful model, the model must
|
603
|
+
# create the session ID and set the expiration time. The model must also
|
604
|
+
# provide that information in the response to your request. You can get
|
605
|
+
# the ID and timestamp from the `NewSessionId` response parameter. For
|
606
|
+
# any subsequent request where you specify that session ID, SageMaker
|
607
|
+
# routes the request to the same instance that supports the session.
|
608
|
+
#
|
580
609
|
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
581
610
|
#
|
582
611
|
# * {Types::InvokeEndpointOutput#body #body} => String
|
583
612
|
# * {Types::InvokeEndpointOutput#content_type #content_type} => String
|
584
613
|
# * {Types::InvokeEndpointOutput#invoked_production_variant #invoked_production_variant} => String
|
585
614
|
# * {Types::InvokeEndpointOutput#custom_attributes #custom_attributes} => String
|
615
|
+
# * {Types::InvokeEndpointOutput#new_session_id #new_session_id} => String
|
616
|
+
# * {Types::InvokeEndpointOutput#closed_session_id #closed_session_id} => String
|
586
617
|
#
|
587
618
|
# @example Request syntax with placeholder values
|
588
619
|
#
|
@@ -598,6 +629,7 @@ module Aws::SageMakerRuntime
|
|
598
629
|
# inference_id: "InferenceId",
|
599
630
|
# enable_explanations: "EnableExplanationsHeader",
|
600
631
|
# inference_component_name: "InferenceComponentHeader",
|
632
|
+
# session_id: "SessionIdOrNewSessionConstantHeader",
|
601
633
|
# })
|
602
634
|
#
|
603
635
|
# @example Response structure
|
@@ -606,6 +638,8 @@ module Aws::SageMakerRuntime
|
|
606
638
|
# resp.content_type #=> String
|
607
639
|
# resp.invoked_production_variant #=> String
|
608
640
|
# resp.custom_attributes #=> String
|
641
|
+
# resp.new_session_id #=> String
|
642
|
+
# resp.closed_session_id #=> String
|
609
643
|
#
|
610
644
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpoint AWS API Documentation
|
611
645
|
#
|
@@ -843,6 +877,16 @@ module Aws::SageMakerRuntime
|
|
843
877
|
# specifies the name of inference component to invoke for a streaming
|
844
878
|
# response.
|
845
879
|
#
|
880
|
+
# @option params [String] :session_id
|
881
|
+
# The ID of a stateful session to handle your request.
|
882
|
+
#
|
883
|
+
# You can't create a stateful session by using the
|
884
|
+
# `InvokeEndpointWithResponseStream` action. Instead, you can create one
|
885
|
+
# by using the ` InvokeEndpoint ` action. In your request, you specify
|
886
|
+
# `NEW_SESSION` for the `SessionId` request parameter. The response to
|
887
|
+
# that request provides the session ID for the `NewSessionId` response
|
888
|
+
# parameter.
|
889
|
+
#
|
846
890
|
# @return [Types::InvokeEndpointWithResponseStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
847
891
|
#
|
848
892
|
# * {Types::InvokeEndpointWithResponseStreamOutput#body #body} => Types::ResponseStream
|
@@ -963,6 +1007,7 @@ module Aws::SageMakerRuntime
|
|
963
1007
|
# target_container_hostname: "TargetContainerHostnameHeader",
|
964
1008
|
# inference_id: "InferenceId",
|
965
1009
|
# inference_component_name: "InferenceComponentHeader",
|
1010
|
+
# session_id: "SessionIdHeader",
|
966
1011
|
# })
|
967
1012
|
#
|
968
1013
|
# @example Response structure
|
@@ -1030,7 +1075,7 @@ module Aws::SageMakerRuntime
|
|
1030
1075
|
tracer: tracer
|
1031
1076
|
)
|
1032
1077
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
1033
|
-
context[:gem_version] = '1.
|
1078
|
+
context[:gem_version] = '1.73.0'
|
1034
1079
|
Seahorse::Client::Request.new(handlers, context)
|
1035
1080
|
end
|
1036
1081
|
|
@@ -37,11 +37,14 @@ module Aws::SageMakerRuntime
|
|
37
37
|
ModelError = Shapes::StructureShape.new(name: 'ModelError')
|
38
38
|
ModelNotReadyException = Shapes::StructureShape.new(name: 'ModelNotReadyException')
|
39
39
|
ModelStreamError = Shapes::StructureShape.new(name: 'ModelStreamError')
|
40
|
+
NewSessionResponseHeader = Shapes::StringShape.new(name: 'NewSessionResponseHeader')
|
40
41
|
PartBlob = Shapes::BlobShape.new(name: 'PartBlob')
|
41
42
|
PayloadPart = Shapes::StructureShape.new(name: 'PayloadPart')
|
42
43
|
RequestTTLSecondsHeader = Shapes::IntegerShape.new(name: 'RequestTTLSecondsHeader')
|
43
44
|
ResponseStream = Shapes::StructureShape.new(name: 'ResponseStream')
|
44
45
|
ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
|
46
|
+
SessionIdHeader = Shapes::StringShape.new(name: 'SessionIdHeader')
|
47
|
+
SessionIdOrNewSessionConstantHeader = Shapes::StringShape.new(name: 'SessionIdOrNewSessionConstantHeader')
|
45
48
|
StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
|
46
49
|
TargetContainerHostnameHeader = Shapes::StringShape.new(name: 'TargetContainerHostnameHeader')
|
47
50
|
TargetModelHeader = Shapes::StringShape.new(name: 'TargetModelHeader')
|
@@ -83,6 +86,7 @@ module Aws::SageMakerRuntime
|
|
83
86
|
InvokeEndpointInput.add_member(:inference_id, Shapes::ShapeRef.new(shape: InferenceId, location: "header", location_name: "X-Amzn-SageMaker-Inference-Id"))
|
84
87
|
InvokeEndpointInput.add_member(:enable_explanations, Shapes::ShapeRef.new(shape: EnableExplanationsHeader, location: "header", location_name: "X-Amzn-SageMaker-Enable-Explanations"))
|
85
88
|
InvokeEndpointInput.add_member(:inference_component_name, Shapes::ShapeRef.new(shape: InferenceComponentHeader, location: "header", location_name: "X-Amzn-SageMaker-Inference-Component"))
|
89
|
+
InvokeEndpointInput.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionIdOrNewSessionConstantHeader, location: "header", location_name: "X-Amzn-SageMaker-Session-Id"))
|
86
90
|
InvokeEndpointInput.struct_class = Types::InvokeEndpointInput
|
87
91
|
InvokeEndpointInput[:payload] = :body
|
88
92
|
InvokeEndpointInput[:payload_member] = InvokeEndpointInput.member(:body)
|
@@ -91,6 +95,8 @@ module Aws::SageMakerRuntime
|
|
91
95
|
InvokeEndpointOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Content-Type"))
|
92
96
|
InvokeEndpointOutput.add_member(:invoked_production_variant, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "x-Amzn-Invoked-Production-Variant"))
|
93
97
|
InvokeEndpointOutput.add_member(:custom_attributes, Shapes::ShapeRef.new(shape: CustomAttributesHeader, location: "header", location_name: "X-Amzn-SageMaker-Custom-Attributes"))
|
98
|
+
InvokeEndpointOutput.add_member(:new_session_id, Shapes::ShapeRef.new(shape: NewSessionResponseHeader, location: "header", location_name: "X-Amzn-SageMaker-New-Session-Id"))
|
99
|
+
InvokeEndpointOutput.add_member(:closed_session_id, Shapes::ShapeRef.new(shape: SessionIdHeader, location: "header", location_name: "X-Amzn-SageMaker-Closed-Session-Id"))
|
94
100
|
InvokeEndpointOutput.struct_class = Types::InvokeEndpointOutput
|
95
101
|
InvokeEndpointOutput[:payload] = :body
|
96
102
|
InvokeEndpointOutput[:payload_member] = InvokeEndpointOutput.member(:body)
|
@@ -104,6 +110,7 @@ module Aws::SageMakerRuntime
|
|
104
110
|
InvokeEndpointWithResponseStreamInput.add_member(:target_container_hostname, Shapes::ShapeRef.new(shape: TargetContainerHostnameHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Container-Hostname"))
|
105
111
|
InvokeEndpointWithResponseStreamInput.add_member(:inference_id, Shapes::ShapeRef.new(shape: InferenceId, location: "header", location_name: "X-Amzn-SageMaker-Inference-Id"))
|
106
112
|
InvokeEndpointWithResponseStreamInput.add_member(:inference_component_name, Shapes::ShapeRef.new(shape: InferenceComponentHeader, location: "header", location_name: "X-Amzn-SageMaker-Inference-Component"))
|
113
|
+
InvokeEndpointWithResponseStreamInput.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionIdHeader, location: "header", location_name: "X-Amzn-SageMaker-Session-Id"))
|
107
114
|
InvokeEndpointWithResponseStreamInput.struct_class = Types::InvokeEndpointWithResponseStreamInput
|
108
115
|
InvokeEndpointWithResponseStreamInput[:payload] = :body
|
109
116
|
InvokeEndpointWithResponseStreamInput[:payload_member] = InvokeEndpointWithResponseStreamInput.member(:body)
|
@@ -14,42 +14,33 @@ module Aws::SageMakerRuntime
|
|
14
14
|
|
15
15
|
class InvokeEndpoint
|
16
16
|
def self.build(context)
|
17
|
-
unless context.config.regional_endpoint
|
18
|
-
endpoint = context.config.endpoint.to_s
|
19
|
-
end
|
20
17
|
Aws::SageMakerRuntime::EndpointParameters.new(
|
21
18
|
region: context.config.region,
|
22
19
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
20
|
use_fips: context.config.use_fips_endpoint,
|
24
|
-
endpoint: endpoint,
|
21
|
+
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
25
22
|
)
|
26
23
|
end
|
27
24
|
end
|
28
25
|
|
29
26
|
class InvokeEndpointAsync
|
30
27
|
def self.build(context)
|
31
|
-
unless context.config.regional_endpoint
|
32
|
-
endpoint = context.config.endpoint.to_s
|
33
|
-
end
|
34
28
|
Aws::SageMakerRuntime::EndpointParameters.new(
|
35
29
|
region: context.config.region,
|
36
30
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
31
|
use_fips: context.config.use_fips_endpoint,
|
38
|
-
endpoint: endpoint,
|
32
|
+
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
39
33
|
)
|
40
34
|
end
|
41
35
|
end
|
42
36
|
|
43
37
|
class InvokeEndpointWithResponseStream
|
44
38
|
def self.build(context)
|
45
|
-
unless context.config.regional_endpoint
|
46
|
-
endpoint = context.config.endpoint.to_s
|
47
|
-
end
|
48
39
|
Aws::SageMakerRuntime::EndpointParameters.new(
|
49
40
|
region: context.config.region,
|
50
41
|
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
42
|
use_fips: context.config.use_fips_endpoint,
|
52
|
-
endpoint: endpoint,
|
43
|
+
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
53
44
|
)
|
54
45
|
end
|
55
46
|
end
|
@@ -15,11 +15,11 @@ module Aws::SageMakerRuntime
|
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::SageMakerRuntime::EndpointProvider',
|
17
17
|
rbs_type: 'untyped',
|
18
|
-
docstring:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::SageMakerRuntime::EndpointParameters`.
|
22
|
+
DOCS
|
23
23
|
Aws::SageMakerRuntime::EndpointProvider.new
|
24
24
|
end
|
25
25
|
|
@@ -40,11 +40,23 @@ module Aws::SageMakerRuntime
|
|
40
40
|
context[:auth_scheme] =
|
41
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
42
42
|
|
43
|
-
@handler.call(context)
|
43
|
+
with_metrics(context) { @handler.call(context) }
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|
47
47
|
|
48
|
+
def with_metrics(context, &block)
|
49
|
+
metrics = []
|
50
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
51
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
|
+
metrics << 'SIGV4A_SIGNING'
|
53
|
+
end
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
56
|
+
end
|
57
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
58
|
+
end
|
59
|
+
|
48
60
|
def apply_endpoint_headers(context, headers)
|
49
61
|
headers.each do |key, values|
|
50
62
|
value = values
|
@@ -262,6 +262,25 @@ module Aws::SageMakerRuntime
|
|
262
262
|
# parameter specifies the name of inference component to invoke.
|
263
263
|
# @return [String]
|
264
264
|
#
|
265
|
+
# @!attribute [rw] session_id
|
266
|
+
# Creates a stateful session or identifies an existing one. You can do
|
267
|
+
# one of the following:
|
268
|
+
#
|
269
|
+
# * Create a stateful session by specifying the value `NEW_SESSION`.
|
270
|
+
#
|
271
|
+
# * Send your request to an existing stateful session by specifying
|
272
|
+
# the ID of that session.
|
273
|
+
#
|
274
|
+
# With a stateful session, you can send multiple requests to a
|
275
|
+
# stateful model. When you create a session with a stateful model, the
|
276
|
+
# model must create the session ID and set the expiration time. The
|
277
|
+
# model must also provide that information in the response to your
|
278
|
+
# request. You can get the ID and timestamp from the `NewSessionId`
|
279
|
+
# response parameter. For any subsequent request where you specify
|
280
|
+
# that session ID, SageMaker routes the request to the same instance
|
281
|
+
# that supports the session.
|
282
|
+
# @return [String]
|
283
|
+
#
|
265
284
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointInput AWS API Documentation
|
266
285
|
#
|
267
286
|
class InvokeEndpointInput < Struct.new(
|
@@ -275,7 +294,8 @@ module Aws::SageMakerRuntime
|
|
275
294
|
:target_container_hostname,
|
276
295
|
:inference_id,
|
277
296
|
:enable_explanations,
|
278
|
-
:inference_component_name
|
297
|
+
:inference_component_name,
|
298
|
+
:session_id)
|
279
299
|
SENSITIVE = [:body, :custom_attributes]
|
280
300
|
include Aws::Structure
|
281
301
|
end
|
@@ -331,13 +351,25 @@ module Aws::SageMakerRuntime
|
|
331
351
|
# [1]: https://tools.ietf.org/html/rfc7230#section-3.2.6
|
332
352
|
# @return [String]
|
333
353
|
#
|
354
|
+
# @!attribute [rw] new_session_id
|
355
|
+
# If you created a stateful session with your request, the ID and
|
356
|
+
# expiration time that the model assigns to that session.
|
357
|
+
# @return [String]
|
358
|
+
#
|
359
|
+
# @!attribute [rw] closed_session_id
|
360
|
+
# If you closed a stateful session with your request, the ID of that
|
361
|
+
# session.
|
362
|
+
# @return [String]
|
363
|
+
#
|
334
364
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointOutput AWS API Documentation
|
335
365
|
#
|
336
366
|
class InvokeEndpointOutput < Struct.new(
|
337
367
|
:body,
|
338
368
|
:content_type,
|
339
369
|
:invoked_production_variant,
|
340
|
-
:custom_attributes
|
370
|
+
:custom_attributes,
|
371
|
+
:new_session_id,
|
372
|
+
:closed_session_id)
|
341
373
|
SENSITIVE = [:body, :custom_attributes]
|
342
374
|
include Aws::Structure
|
343
375
|
end
|
@@ -429,6 +461,17 @@ module Aws::SageMakerRuntime
|
|
429
461
|
# streaming response.
|
430
462
|
# @return [String]
|
431
463
|
#
|
464
|
+
# @!attribute [rw] session_id
|
465
|
+
# The ID of a stateful session to handle your request.
|
466
|
+
#
|
467
|
+
# You can't create a stateful session by using the
|
468
|
+
# `InvokeEndpointWithResponseStream` action. Instead, you can create
|
469
|
+
# one by using the ` InvokeEndpoint ` action. In your request, you
|
470
|
+
# specify `NEW_SESSION` for the `SessionId` request parameter. The
|
471
|
+
# response to that request provides the session ID for the
|
472
|
+
# `NewSessionId` response parameter.
|
473
|
+
# @return [String]
|
474
|
+
#
|
432
475
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointWithResponseStreamInput AWS API Documentation
|
433
476
|
#
|
434
477
|
class InvokeEndpointWithResponseStreamInput < Struct.new(
|
@@ -440,7 +483,8 @@ module Aws::SageMakerRuntime
|
|
440
483
|
:target_variant,
|
441
484
|
:target_container_hostname,
|
442
485
|
:inference_id,
|
443
|
-
:inference_component_name
|
486
|
+
:inference_component_name,
|
487
|
+
:session_id)
|
444
488
|
SENSITIVE = [:body, :custom_attributes]
|
445
489
|
include Aws::Structure
|
446
490
|
end
|
data/sig/client.rbs
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
?credentials: untyped,
|
16
16
|
?region: String,
|
17
17
|
?access_key_id: String,
|
18
|
+
?account_id: String,
|
18
19
|
?active_endpoint_cache: bool,
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
20
21
|
?client_side_monitoring: bool,
|
@@ -83,6 +84,8 @@ module Aws
|
|
83
84
|
def content_type: () -> ::String
|
84
85
|
def invoked_production_variant: () -> ::String
|
85
86
|
def custom_attributes: () -> ::String
|
87
|
+
def new_session_id: () -> ::String
|
88
|
+
def closed_session_id: () -> ::String
|
86
89
|
end
|
87
90
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Client.html#invoke_endpoint-instance_method
|
88
91
|
def invoke_endpoint: (
|
@@ -96,7 +99,8 @@ module Aws
|
|
96
99
|
?target_container_hostname: ::String,
|
97
100
|
?inference_id: ::String,
|
98
101
|
?enable_explanations: ::String,
|
99
|
-
?inference_component_name: ::String
|
102
|
+
?inference_component_name: ::String,
|
103
|
+
?session_id: ::String
|
100
104
|
) -> _InvokeEndpointResponseSuccess
|
101
105
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeEndpointResponseSuccess
|
102
106
|
|
@@ -136,7 +140,8 @@ module Aws
|
|
136
140
|
?target_variant: ::String,
|
137
141
|
?target_container_hostname: ::String,
|
138
142
|
?inference_id: ::String,
|
139
|
-
?inference_component_name: ::String
|
143
|
+
?inference_component_name: ::String,
|
144
|
+
?session_id: ::String
|
140
145
|
) ?{ (*untyped) -> void } -> _InvokeEndpointWithResponseStreamResponseSuccess
|
141
146
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeEndpointWithResponseStreamResponseSuccess
|
142
147
|
end
|
data/sig/resource.rbs
CHANGED
data/sig/types.rbs
CHANGED
@@ -55,6 +55,7 @@ module Aws::SageMakerRuntime
|
|
55
55
|
attr_accessor inference_id: ::String
|
56
56
|
attr_accessor enable_explanations: ::String
|
57
57
|
attr_accessor inference_component_name: ::String
|
58
|
+
attr_accessor session_id: ::String
|
58
59
|
SENSITIVE: [:body, :custom_attributes]
|
59
60
|
end
|
60
61
|
|
@@ -63,6 +64,8 @@ module Aws::SageMakerRuntime
|
|
63
64
|
attr_accessor content_type: ::String
|
64
65
|
attr_accessor invoked_production_variant: ::String
|
65
66
|
attr_accessor custom_attributes: ::String
|
67
|
+
attr_accessor new_session_id: ::String
|
68
|
+
attr_accessor closed_session_id: ::String
|
66
69
|
SENSITIVE: [:body, :custom_attributes]
|
67
70
|
end
|
68
71
|
|
@@ -76,6 +79,7 @@ module Aws::SageMakerRuntime
|
|
76
79
|
attr_accessor target_container_hostname: ::String
|
77
80
|
attr_accessor inference_id: ::String
|
78
81
|
attr_accessor inference_component_name: ::String
|
82
|
+
attr_accessor session_id: ::String
|
79
83
|
SENSITIVE: [:body, :custom_attributes]
|
80
84
|
end
|
81
85
|
|
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.73.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: 2024-09-
|
11
|
+
date: 2024-09-20 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.207.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.207.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|