aws-sdk-sagemakerruntime 1.69.0 → 1.71.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: 757a596bd15ab621ed2d7ef1bae2fa928c562a75b34aeb0cbfb17896d86c4aa0
4
- data.tar.gz: 45c2e264680abae691eb16bf0d83b98cb993fe1e6f9f0ac5efe87e80ca0c5e60
3
+ metadata.gz: '02739baa3d2d18745215cd6436f8e73928a9a359033a319abc8b335f9345198d'
4
+ data.tar.gz: c09949ca371836fff070f512b98994defc7c37598776d2fee4bdf89aa468ad16
5
5
  SHA512:
6
- metadata.gz: 5eda451f6f636961e62bbab3748e8904b22dc9063c212b2cbbf25ab756618029467a6903e2ef2d061b85607a43e3120842d0c06dc932bc254e65c6f4757d8b5d
7
- data.tar.gz: 5506df969ffb8ddbf2004c0ce2abd8f368cd2a30da50271ab5a007ad82aa620b6b26c9dac16639edf928c371740142a0ca79a2e0c00ed657bd089b93178837cd
6
+ metadata.gz: 5cadcb1fcb5990df672a3442a0e76939815e197b50591d0fc2a4bc23f4e781016a770b235433ba988f1d2525e5cf9f80fa31304842e3d6ec05bc32eaac4f6fa8
7
+ data.tar.gz: e4c149807bec8f1c43579120a924e058424994f7c8130caf82b698bb064c533daf169ca45017a17f813b0290df7e9ce4a220c86b9677c8d342b7130204014555
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.71.0 (2024-09-10)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.70.0 (2024-09-09)
10
+ ------------------
11
+
12
+ * Feature - AWS SageMaker Runtime feature: Add sticky routing to support stateful inference models.
13
+
4
14
  1.69.0 (2024-09-03)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.69.0
1
+ 1.71.0
@@ -436,6 +436,12 @@ module Aws::SageMakerRuntime
436
436
  # @option options [String] :ssl_ca_store
437
437
  # Sets the X509::Store to verify peer certificate.
438
438
  #
439
+ # @option options [OpenSSL::X509::Certificate] :ssl_cert
440
+ # Sets a client certificate when creating http connections.
441
+ #
442
+ # @option options [OpenSSL::PKey] :ssl_key
443
+ # Sets a client key when creating http connections.
444
+ #
439
445
  # @option options [Float] :ssl_timeout
440
446
  # Sets the SSL timeout in seconds
441
447
  #
@@ -577,12 +583,31 @@ module Aws::SageMakerRuntime
577
583
  # If the endpoint hosts one or more inference components, this parameter
578
584
  # specifies the name of inference component to invoke.
579
585
  #
586
+ # @option params [String] :session_id
587
+ # Creates a stateful session or identifies an existing one. You can do
588
+ # one of the following:
589
+ #
590
+ # * Create a stateful session by specifying the value `NEW_SESSION`.
591
+ #
592
+ # * Send your request to an existing stateful session by specifying the
593
+ # ID of that session.
594
+ #
595
+ # With a stateful session, you can send multiple requests to a stateful
596
+ # model. When you create a session with a stateful model, the model must
597
+ # create the session ID and set the expiration time. The model must also
598
+ # provide that information in the response to your request. You can get
599
+ # the ID and timestamp from the `NewSessionId` response parameter. For
600
+ # any subsequent request where you specify that session ID, SageMaker
601
+ # routes the request to the same instance that supports the session.
602
+ #
580
603
  # @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
581
604
  #
582
605
  # * {Types::InvokeEndpointOutput#body #body} => String
583
606
  # * {Types::InvokeEndpointOutput#content_type #content_type} => String
584
607
  # * {Types::InvokeEndpointOutput#invoked_production_variant #invoked_production_variant} => String
585
608
  # * {Types::InvokeEndpointOutput#custom_attributes #custom_attributes} => String
609
+ # * {Types::InvokeEndpointOutput#new_session_id #new_session_id} => String
610
+ # * {Types::InvokeEndpointOutput#closed_session_id #closed_session_id} => String
586
611
  #
587
612
  # @example Request syntax with placeholder values
588
613
  #
@@ -598,6 +623,7 @@ module Aws::SageMakerRuntime
598
623
  # inference_id: "InferenceId",
599
624
  # enable_explanations: "EnableExplanationsHeader",
600
625
  # inference_component_name: "InferenceComponentHeader",
626
+ # session_id: "SessionIdOrNewSessionConstantHeader",
601
627
  # })
602
628
  #
603
629
  # @example Response structure
@@ -606,6 +632,8 @@ module Aws::SageMakerRuntime
606
632
  # resp.content_type #=> String
607
633
  # resp.invoked_production_variant #=> String
608
634
  # resp.custom_attributes #=> String
635
+ # resp.new_session_id #=> String
636
+ # resp.closed_session_id #=> String
609
637
  #
610
638
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpoint AWS API Documentation
611
639
  #
@@ -843,6 +871,16 @@ module Aws::SageMakerRuntime
843
871
  # specifies the name of inference component to invoke for a streaming
844
872
  # response.
845
873
  #
874
+ # @option params [String] :session_id
875
+ # The ID of a stateful session to handle your request.
876
+ #
877
+ # You can't create a stateful session by using the
878
+ # `InvokeEndpointWithResponseStream` action. Instead, you can create one
879
+ # by using the ` InvokeEndpoint ` action. In your request, you specify
880
+ # `NEW_SESSION` for the `SessionId` request parameter. The response to
881
+ # that request provides the session ID for the `NewSessionId` response
882
+ # parameter.
883
+ #
846
884
  # @return [Types::InvokeEndpointWithResponseStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
847
885
  #
848
886
  # * {Types::InvokeEndpointWithResponseStreamOutput#body #body} => Types::ResponseStream
@@ -963,6 +1001,7 @@ module Aws::SageMakerRuntime
963
1001
  # target_container_hostname: "TargetContainerHostnameHeader",
964
1002
  # inference_id: "InferenceId",
965
1003
  # inference_component_name: "InferenceComponentHeader",
1004
+ # session_id: "SessionIdHeader",
966
1005
  # })
967
1006
  #
968
1007
  # @example Response structure
@@ -1030,7 +1069,7 @@ module Aws::SageMakerRuntime
1030
1069
  tracer: tracer
1031
1070
  )
1032
1071
  context[:gem_name] = 'aws-sdk-sagemakerruntime'
1033
- context[:gem_version] = '1.69.0'
1072
+ context[:gem_version] = '1.71.0'
1034
1073
  Seahorse::Client::Request.new(handlers, context)
1035
1074
  end
1036
1075
 
@@ -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
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-sagemakerruntime/event_streams'
53
53
  # @!group service
54
54
  module Aws::SageMakerRuntime
55
55
 
56
- GEM_VERSION = '1.69.0'
56
+ GEM_VERSION = '1.71.0'
57
57
 
58
58
  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.69.0
4
+ version: 1.71.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-03 00:00:00.000000000 Z
11
+ date: 2024-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core