aws-sdk-sagemakerruntime 1.69.0 → 1.70.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemakerruntime/client.rb +34 -1
- data/lib/aws-sdk-sagemakerruntime/client_api.rb +7 -0
- data/lib/aws-sdk-sagemakerruntime/types.rb +47 -3
- data/lib/aws-sdk-sagemakerruntime.rb +1 -1
- data/sig/client.rbs +6 -2
- data/sig/types.rbs +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b66220de759f95e766c78ab00eb88e684eafb4324e8bebff4ac71dab242d5678
|
4
|
+
data.tar.gz: 22e0a8631bc8f9b56d16903c0be55201a5cce10046986556db959096dabd80dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f7b7f70cc4b0a914cc355aaa448eaf079641711442c3821fdaa5b6d61e42f899683b8aeffb47b09e911963f6322eb3d11c01cd9d4eceb378fb5bfcd62d706e
|
7
|
+
data.tar.gz: 32289ab315e31077cf842ddb64cd110e02eba9cd1def2880db783c9d28e49901f7188c23a289c4a0f5b830f2748b2af0c4f5a061eb73f37c9af85624b54ffb88
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.70.0
|
@@ -577,12 +577,31 @@ module Aws::SageMakerRuntime
|
|
577
577
|
# If the endpoint hosts one or more inference components, this parameter
|
578
578
|
# specifies the name of inference component to invoke.
|
579
579
|
#
|
580
|
+
# @option params [String] :session_id
|
581
|
+
# Creates a stateful session or identifies an existing one. You can do
|
582
|
+
# one of the following:
|
583
|
+
#
|
584
|
+
# * Create a stateful session by specifying the value `NEW_SESSION`.
|
585
|
+
#
|
586
|
+
# * Send your request to an existing stateful session by specifying the
|
587
|
+
# ID of that session.
|
588
|
+
#
|
589
|
+
# With a stateful session, you can send multiple requests to a stateful
|
590
|
+
# model. When you create a session with a stateful model, the model must
|
591
|
+
# create the session ID and set the expiration time. The model must also
|
592
|
+
# provide that information in the response to your request. You can get
|
593
|
+
# the ID and timestamp from the `NewSessionId` response parameter. For
|
594
|
+
# any subsequent request where you specify that session ID, SageMaker
|
595
|
+
# routes the request to the same instance that supports the session.
|
596
|
+
#
|
580
597
|
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
581
598
|
#
|
582
599
|
# * {Types::InvokeEndpointOutput#body #body} => String
|
583
600
|
# * {Types::InvokeEndpointOutput#content_type #content_type} => String
|
584
601
|
# * {Types::InvokeEndpointOutput#invoked_production_variant #invoked_production_variant} => String
|
585
602
|
# * {Types::InvokeEndpointOutput#custom_attributes #custom_attributes} => String
|
603
|
+
# * {Types::InvokeEndpointOutput#new_session_id #new_session_id} => String
|
604
|
+
# * {Types::InvokeEndpointOutput#closed_session_id #closed_session_id} => String
|
586
605
|
#
|
587
606
|
# @example Request syntax with placeholder values
|
588
607
|
#
|
@@ -598,6 +617,7 @@ module Aws::SageMakerRuntime
|
|
598
617
|
# inference_id: "InferenceId",
|
599
618
|
# enable_explanations: "EnableExplanationsHeader",
|
600
619
|
# inference_component_name: "InferenceComponentHeader",
|
620
|
+
# session_id: "SessionIdOrNewSessionConstantHeader",
|
601
621
|
# })
|
602
622
|
#
|
603
623
|
# @example Response structure
|
@@ -606,6 +626,8 @@ module Aws::SageMakerRuntime
|
|
606
626
|
# resp.content_type #=> String
|
607
627
|
# resp.invoked_production_variant #=> String
|
608
628
|
# resp.custom_attributes #=> String
|
629
|
+
# resp.new_session_id #=> String
|
630
|
+
# resp.closed_session_id #=> String
|
609
631
|
#
|
610
632
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpoint AWS API Documentation
|
611
633
|
#
|
@@ -843,6 +865,16 @@ module Aws::SageMakerRuntime
|
|
843
865
|
# specifies the name of inference component to invoke for a streaming
|
844
866
|
# response.
|
845
867
|
#
|
868
|
+
# @option params [String] :session_id
|
869
|
+
# The ID of a stateful session to handle your request.
|
870
|
+
#
|
871
|
+
# You can't create a stateful session by using the
|
872
|
+
# `InvokeEndpointWithResponseStream` action. Instead, you can create one
|
873
|
+
# by using the ` InvokeEndpoint ` action. In your request, you specify
|
874
|
+
# `NEW_SESSION` for the `SessionId` request parameter. The response to
|
875
|
+
# that request provides the session ID for the `NewSessionId` response
|
876
|
+
# parameter.
|
877
|
+
#
|
846
878
|
# @return [Types::InvokeEndpointWithResponseStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
847
879
|
#
|
848
880
|
# * {Types::InvokeEndpointWithResponseStreamOutput#body #body} => Types::ResponseStream
|
@@ -963,6 +995,7 @@ module Aws::SageMakerRuntime
|
|
963
995
|
# target_container_hostname: "TargetContainerHostnameHeader",
|
964
996
|
# inference_id: "InferenceId",
|
965
997
|
# inference_component_name: "InferenceComponentHeader",
|
998
|
+
# session_id: "SessionIdHeader",
|
966
999
|
# })
|
967
1000
|
#
|
968
1001
|
# @example Response structure
|
@@ -1030,7 +1063,7 @@ module Aws::SageMakerRuntime
|
|
1030
1063
|
tracer: tracer
|
1031
1064
|
)
|
1032
1065
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
1033
|
-
context[:gem_version] = '1.
|
1066
|
+
context[:gem_version] = '1.70.0'
|
1034
1067
|
Seahorse::Client::Request.new(handlers, context)
|
1035
1068
|
end
|
1036
1069
|
|
@@ -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)
|
@@ -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
@@ -83,6 +83,8 @@ module Aws
|
|
83
83
|
def content_type: () -> ::String
|
84
84
|
def invoked_production_variant: () -> ::String
|
85
85
|
def custom_attributes: () -> ::String
|
86
|
+
def new_session_id: () -> ::String
|
87
|
+
def closed_session_id: () -> ::String
|
86
88
|
end
|
87
89
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Client.html#invoke_endpoint-instance_method
|
88
90
|
def invoke_endpoint: (
|
@@ -96,7 +98,8 @@ module Aws
|
|
96
98
|
?target_container_hostname: ::String,
|
97
99
|
?inference_id: ::String,
|
98
100
|
?enable_explanations: ::String,
|
99
|
-
?inference_component_name: ::String
|
101
|
+
?inference_component_name: ::String,
|
102
|
+
?session_id: ::String
|
100
103
|
) -> _InvokeEndpointResponseSuccess
|
101
104
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeEndpointResponseSuccess
|
102
105
|
|
@@ -136,7 +139,8 @@ module Aws
|
|
136
139
|
?target_variant: ::String,
|
137
140
|
?target_container_hostname: ::String,
|
138
141
|
?inference_id: ::String,
|
139
|
-
?inference_component_name: ::String
|
142
|
+
?inference_component_name: ::String,
|
143
|
+
?session_id: ::String
|
140
144
|
) ?{ (*untyped) -> void } -> _InvokeEndpointWithResponseStreamResponseSuccess
|
141
145
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeEndpointWithResponseStreamResponseSuccess
|
142
146
|
end
|
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.70.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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|