aws-sdk-sagemakerruntime 1.58.0 → 1.60.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemakerruntime/client.rb +21 -3
- data/lib/aws-sdk-sagemakerruntime/client_api.rb +3 -0
- data/lib/aws-sdk-sagemakerruntime/endpoint_provider.rb +3 -3
- data/lib/aws-sdk-sagemakerruntime/plugins/endpoints.rb +3 -2
- data/lib/aws-sdk-sagemakerruntime/types.rb +15 -2
- data/lib/aws-sdk-sagemakerruntime.rb +1 -1
- 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: 4751c0710c4c8a7f13f1af3a61e570b1bef832fe6f153ff609ed3992b993c529
|
4
|
+
data.tar.gz: 1ac92e751414cf20091720323e55e9d974df5fe252765b687537fc0afb8108ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7189436b68fefeb96ef647842ed35cb8cf91125c6ccd99ec4471f16691b23ff58dc17b7840d90582c156ce0c51ad68d972456dc15fc3083aa00924ee9b7688b
|
7
|
+
data.tar.gz: 4e799d3c39c9a7273010f2fcae329f1b61b0b863cf5b5c6be6db8d77847ddbb3ba6b55006c753bad5aa9a8322a9d20b16c5b1f866c999f921034b01e5d465209
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.60.0 (2023-11-29)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds InferenceComponentName to InvokeEndpoint and InvokeEndpointWithResponseStream APIs to get inferences from the deployed InferenceComponents.
|
8
|
+
|
9
|
+
1.59.0 (2023-11-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.58.0 (2023-11-22)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.60.0
|
@@ -524,6 +524,10 @@ module Aws::SageMakerRuntime
|
|
524
524
|
#
|
525
525
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable
|
526
526
|
#
|
527
|
+
# @option params [String] :inference_component_name
|
528
|
+
# If the endpoint hosts one or more inference components, this parameter
|
529
|
+
# specifies the name of inference component to invoke.
|
530
|
+
#
|
527
531
|
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
528
532
|
#
|
529
533
|
# * {Types::InvokeEndpointOutput#body #body} => String
|
@@ -544,6 +548,7 @@ module Aws::SageMakerRuntime
|
|
544
548
|
# target_container_hostname: "TargetContainerHostnameHeader",
|
545
549
|
# inference_id: "InferenceId",
|
546
550
|
# enable_explanations: "EnableExplanationsHeader",
|
551
|
+
# inference_component_name: "InferenceComponentHeader",
|
547
552
|
# })
|
548
553
|
#
|
549
554
|
# @example Response structure
|
@@ -690,6 +695,12 @@ module Aws::SageMakerRuntime
|
|
690
695
|
# * For information about how to process the streaming response, see
|
691
696
|
# [Invoke real-time endpoints][2].
|
692
697
|
#
|
698
|
+
# Before you can use this operation, your IAM permissions must allow the
|
699
|
+
# `sagemaker:InvokeEndpoint` action. For more information about Amazon
|
700
|
+
# SageMaker actions for IAM policies, see [Actions, resources, and
|
701
|
+
# condition keys for Amazon SageMaker][3] in the *IAM Service
|
702
|
+
# Authorization Reference*.
|
703
|
+
#
|
693
704
|
# Amazon SageMaker strips all POST headers except those supported by the
|
694
705
|
# API. Amazon SageMaker might add additional headers. You should not
|
695
706
|
# rely on the behavior of headers outside those enumerated in the
|
@@ -697,14 +708,15 @@ module Aws::SageMakerRuntime
|
|
697
708
|
#
|
698
709
|
# Calls to `InvokeEndpointWithResponseStream` are authenticated by using
|
699
710
|
# Amazon Web Services Signature Version 4. For information, see
|
700
|
-
# [Authenticating Requests (Amazon Web Services Signature Version 4)][
|
711
|
+
# [Authenticating Requests (Amazon Web Services Signature Version 4)][4]
|
701
712
|
# in the *Amazon S3 API Reference*.
|
702
713
|
#
|
703
714
|
#
|
704
715
|
#
|
705
716
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-code-how-containe-serves-requests
|
706
717
|
# [2]: https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints-test-endpoints.html
|
707
|
-
# [3]: https://docs.aws.amazon.com/
|
718
|
+
# [3]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsagemaker.html
|
719
|
+
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
708
720
|
#
|
709
721
|
# @option params [required, String] :endpoint_name
|
710
722
|
# The name of the endpoint that you specified when you created the
|
@@ -777,6 +789,11 @@ module Aws::SageMakerRuntime
|
|
777
789
|
# @option params [String] :inference_id
|
778
790
|
# An identifier that you assign to your request.
|
779
791
|
#
|
792
|
+
# @option params [String] :inference_component_name
|
793
|
+
# If the endpoint hosts one or more inference components, this parameter
|
794
|
+
# specifies the name of inference component to invoke for a streaming
|
795
|
+
# response.
|
796
|
+
#
|
780
797
|
# @return [Types::InvokeEndpointWithResponseStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
781
798
|
#
|
782
799
|
# * {Types::InvokeEndpointWithResponseStreamOutput#body #body} => Types::ResponseStream
|
@@ -897,6 +914,7 @@ module Aws::SageMakerRuntime
|
|
897
914
|
# target_variant: "TargetVariantHeader",
|
898
915
|
# target_container_hostname: "TargetContainerHostnameHeader",
|
899
916
|
# inference_id: "InferenceId",
|
917
|
+
# inference_component_name: "InferenceComponentHeader",
|
900
918
|
# })
|
901
919
|
#
|
902
920
|
# @example Response structure
|
@@ -959,7 +977,7 @@ module Aws::SageMakerRuntime
|
|
959
977
|
params: params,
|
960
978
|
config: config)
|
961
979
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
962
|
-
context[:gem_version] = '1.
|
980
|
+
context[:gem_version] = '1.60.0'
|
963
981
|
Seahorse::Client::Request.new(handlers, context)
|
964
982
|
end
|
965
983
|
|
@@ -19,6 +19,7 @@ module Aws::SageMakerRuntime
|
|
19
19
|
EndpointName = Shapes::StringShape.new(name: 'EndpointName')
|
20
20
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
21
21
|
Header = Shapes::StringShape.new(name: 'Header')
|
22
|
+
InferenceComponentHeader = Shapes::StringShape.new(name: 'InferenceComponentHeader')
|
22
23
|
InferenceId = Shapes::StringShape.new(name: 'InferenceId')
|
23
24
|
InputLocationHeader = Shapes::StringShape.new(name: 'InputLocationHeader')
|
24
25
|
InternalDependencyException = Shapes::StructureShape.new(name: 'InternalDependencyException')
|
@@ -81,6 +82,7 @@ module Aws::SageMakerRuntime
|
|
81
82
|
InvokeEndpointInput.add_member(:target_container_hostname, Shapes::ShapeRef.new(shape: TargetContainerHostnameHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Container-Hostname"))
|
82
83
|
InvokeEndpointInput.add_member(:inference_id, Shapes::ShapeRef.new(shape: InferenceId, location: "header", location_name: "X-Amzn-SageMaker-Inference-Id"))
|
83
84
|
InvokeEndpointInput.add_member(:enable_explanations, Shapes::ShapeRef.new(shape: EnableExplanationsHeader, location: "header", location_name: "X-Amzn-SageMaker-Enable-Explanations"))
|
85
|
+
InvokeEndpointInput.add_member(:inference_component_name, Shapes::ShapeRef.new(shape: InferenceComponentHeader, location: "header", location_name: "X-Amzn-SageMaker-Inference-Component"))
|
84
86
|
InvokeEndpointInput.struct_class = Types::InvokeEndpointInput
|
85
87
|
InvokeEndpointInput[:payload] = :body
|
86
88
|
InvokeEndpointInput[:payload_member] = InvokeEndpointInput.member(:body)
|
@@ -101,6 +103,7 @@ module Aws::SageMakerRuntime
|
|
101
103
|
InvokeEndpointWithResponseStreamInput.add_member(:target_variant, Shapes::ShapeRef.new(shape: TargetVariantHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Variant"))
|
102
104
|
InvokeEndpointWithResponseStreamInput.add_member(:target_container_hostname, Shapes::ShapeRef.new(shape: TargetContainerHostnameHeader, location: "header", location_name: "X-Amzn-SageMaker-Target-Container-Hostname"))
|
103
105
|
InvokeEndpointWithResponseStreamInput.add_member(:inference_id, Shapes::ShapeRef.new(shape: InferenceId, location: "header", location_name: "X-Amzn-SageMaker-Inference-Id"))
|
106
|
+
InvokeEndpointWithResponseStreamInput.add_member(:inference_component_name, Shapes::ShapeRef.new(shape: InferenceComponentHeader, location: "header", location_name: "X-Amzn-SageMaker-Inference-Component"))
|
104
107
|
InvokeEndpointWithResponseStreamInput.struct_class = Types::InvokeEndpointWithResponseStreamInput
|
105
108
|
InvokeEndpointWithResponseStreamInput[:payload] = :body
|
106
109
|
InvokeEndpointWithResponseStreamInput[:payload_member] = InvokeEndpointWithResponseStreamInput.member(:body)
|
@@ -32,11 +32,11 @@ module Aws::SageMakerRuntime
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
36
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
37
37
|
return Aws::Endpoints::Endpoint.new(url: "https://runtime-fips.sagemaker.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
38
|
end
|
39
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
40
40
|
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker.#{region}.amazonaws.com", headers: {}, properties: {})
|
41
41
|
end
|
42
42
|
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
@@ -25,16 +25,17 @@ module Aws::SageMakerRuntime
|
|
25
25
|
# @api private
|
26
26
|
class Handler < Seahorse::Client::Handler
|
27
27
|
def call(context)
|
28
|
-
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
28
|
unless context[:discovered_endpoint]
|
30
29
|
params = parameters_for_operation(context)
|
31
30
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
31
|
|
33
32
|
context.http_request.endpoint = endpoint.url
|
34
33
|
apply_endpoint_headers(context, endpoint.headers)
|
34
|
+
|
35
|
+
context[:endpoint_params] = params
|
36
|
+
context[:endpoint_properties] = endpoint.properties
|
35
37
|
end
|
36
38
|
|
37
|
-
context[:endpoint_params] = params
|
38
39
|
context[:auth_scheme] =
|
39
40
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
41
|
|
@@ -257,6 +257,11 @@ module Aws::SageMakerRuntime
|
|
257
257
|
# [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable
|
258
258
|
# @return [String]
|
259
259
|
#
|
260
|
+
# @!attribute [rw] inference_component_name
|
261
|
+
# If the endpoint hosts one or more inference components, this
|
262
|
+
# parameter specifies the name of inference component to invoke.
|
263
|
+
# @return [String]
|
264
|
+
#
|
260
265
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointInput AWS API Documentation
|
261
266
|
#
|
262
267
|
class InvokeEndpointInput < Struct.new(
|
@@ -269,7 +274,8 @@ module Aws::SageMakerRuntime
|
|
269
274
|
:target_variant,
|
270
275
|
:target_container_hostname,
|
271
276
|
:inference_id,
|
272
|
-
:enable_explanations
|
277
|
+
:enable_explanations,
|
278
|
+
:inference_component_name)
|
273
279
|
SENSITIVE = [:body, :custom_attributes]
|
274
280
|
include Aws::Structure
|
275
281
|
end
|
@@ -417,6 +423,12 @@ module Aws::SageMakerRuntime
|
|
417
423
|
# An identifier that you assign to your request.
|
418
424
|
# @return [String]
|
419
425
|
#
|
426
|
+
# @!attribute [rw] inference_component_name
|
427
|
+
# If the endpoint hosts one or more inference components, this
|
428
|
+
# parameter specifies the name of inference component to invoke for a
|
429
|
+
# streaming response.
|
430
|
+
# @return [String]
|
431
|
+
#
|
420
432
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointWithResponseStreamInput AWS API Documentation
|
421
433
|
#
|
422
434
|
class InvokeEndpointWithResponseStreamInput < Struct.new(
|
@@ -427,7 +439,8 @@ module Aws::SageMakerRuntime
|
|
427
439
|
:custom_attributes,
|
428
440
|
:target_variant,
|
429
441
|
:target_container_hostname,
|
430
|
-
:inference_id
|
442
|
+
:inference_id,
|
443
|
+
:inference_component_name)
|
431
444
|
SENSITIVE = [:body, :custom_attributes]
|
432
445
|
include Aws::Structure
|
433
446
|
end
|
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.60.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: 2023-11-
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|