aws-sdk-sagemakerruntime 1.59.0 → 1.61.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 +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 +1 -0
- data/lib/aws-sdk-sagemakerruntime/types.rb +15 -2
- data/lib/aws-sdk-sagemakerruntime.rb +1 -1
- data/sig/client.rbs +143 -0
- data/sig/errors.rbs +44 -0
- data/sig/resource.rbs +82 -0
- data/sig/types.rbs +130 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b72ca517090aa98e3a7ea737a103b9a292cfd7e375f02256d1e0a9779b6bfae
|
4
|
+
data.tar.gz: 75f500a6b80b9e19f42b8d06e3e60154679aefffcc5314161706d58d916ae871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490474e9e79c18f420d657ac42018622cfe2ed3e0fb4088f519f9143a9c7f78a738303f72afa413c8af8c7bdb84064b41191eb1f80ab8165032f6a83fdc9bffd
|
7
|
+
data.tar.gz: c151609e3267bf741e6b27c4624fa8a955abf356488c8860fb3dedcf9d31c1faf184335ea78fe61b4646c3b353085a98c6fa47bdde6d34b388be13e611ea1ff5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.61.0 (2024-01-26)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.60.0 (2023-11-29)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds InferenceComponentName to InvokeEndpoint and InvokeEndpointWithResponseStream APIs to get inferences from the deployed InferenceComponents.
|
13
|
+
|
4
14
|
1.59.0 (2023-11-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.61.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.61.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: {})
|
@@ -14,6 +14,7 @@ module Aws::SageMakerRuntime
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::SageMakerRuntime::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
@@ -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
|
data/sig/client.rbs
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module SageMakerRuntime
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?event_stream_handler: Proc,
|
36
|
+
?ignore_configured_endpoint_urls: bool,
|
37
|
+
?input_event_stream_handler: Proc,
|
38
|
+
?log_formatter: untyped,
|
39
|
+
?log_level: Symbol,
|
40
|
+
?logger: untyped,
|
41
|
+
?max_attempts: Integer,
|
42
|
+
?output_event_stream_handler: Proc,
|
43
|
+
?profile: String,
|
44
|
+
?request_min_compression_size_bytes: Integer,
|
45
|
+
?retry_backoff: Proc,
|
46
|
+
?retry_base_delay: Float,
|
47
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
48
|
+
?retry_limit: Integer,
|
49
|
+
?retry_max_delay: Integer,
|
50
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
51
|
+
?sdk_ua_app_id: String,
|
52
|
+
?secret_access_key: String,
|
53
|
+
?session_token: String,
|
54
|
+
?stub_responses: untyped,
|
55
|
+
?token_provider: untyped,
|
56
|
+
?use_dualstack_endpoint: bool,
|
57
|
+
?use_fips_endpoint: bool,
|
58
|
+
?validate_params: bool,
|
59
|
+
?endpoint_provider: untyped,
|
60
|
+
?http_proxy: String,
|
61
|
+
?http_open_timeout: (Float | Integer),
|
62
|
+
?http_read_timeout: (Float | Integer),
|
63
|
+
?http_idle_timeout: (Float | Integer),
|
64
|
+
?http_continue_timeout: (Float | Integer),
|
65
|
+
?ssl_timeout: (Float | Integer | nil),
|
66
|
+
?http_wire_trace: bool,
|
67
|
+
?ssl_verify_peer: bool,
|
68
|
+
?ssl_ca_bundle: String,
|
69
|
+
?ssl_ca_directory: String,
|
70
|
+
?ssl_ca_store: String,
|
71
|
+
?on_chunk_received: Proc,
|
72
|
+
?on_chunk_sent: Proc,
|
73
|
+
?raise_response_errors: bool
|
74
|
+
) -> instance
|
75
|
+
| (?Hash[Symbol, untyped]) -> instance
|
76
|
+
|
77
|
+
|
78
|
+
interface _InvokeEndpointResponseSuccess
|
79
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeEndpointOutput]
|
80
|
+
def body: () -> ::String
|
81
|
+
def content_type: () -> ::String
|
82
|
+
def invoked_production_variant: () -> ::String
|
83
|
+
def custom_attributes: () -> ::String
|
84
|
+
end
|
85
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Client.html#invoke_endpoint-instance_method
|
86
|
+
def invoke_endpoint: (
|
87
|
+
endpoint_name: ::String,
|
88
|
+
body: ::String,
|
89
|
+
?content_type: ::String,
|
90
|
+
?accept: ::String,
|
91
|
+
?custom_attributes: ::String,
|
92
|
+
?target_model: ::String,
|
93
|
+
?target_variant: ::String,
|
94
|
+
?target_container_hostname: ::String,
|
95
|
+
?inference_id: ::String,
|
96
|
+
?enable_explanations: ::String,
|
97
|
+
?inference_component_name: ::String
|
98
|
+
) -> _InvokeEndpointResponseSuccess
|
99
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeEndpointResponseSuccess
|
100
|
+
|
101
|
+
interface _InvokeEndpointAsyncResponseSuccess
|
102
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeEndpointAsyncOutput]
|
103
|
+
def inference_id: () -> ::String
|
104
|
+
def output_location: () -> ::String
|
105
|
+
def failure_location: () -> ::String
|
106
|
+
end
|
107
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Client.html#invoke_endpoint_async-instance_method
|
108
|
+
def invoke_endpoint_async: (
|
109
|
+
endpoint_name: ::String,
|
110
|
+
?content_type: ::String,
|
111
|
+
?accept: ::String,
|
112
|
+
?custom_attributes: ::String,
|
113
|
+
?inference_id: ::String,
|
114
|
+
input_location: ::String,
|
115
|
+
?request_ttl_seconds: ::Integer,
|
116
|
+
?invocation_timeout_seconds: ::Integer
|
117
|
+
) -> _InvokeEndpointAsyncResponseSuccess
|
118
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeEndpointAsyncResponseSuccess
|
119
|
+
|
120
|
+
interface _InvokeEndpointWithResponseStreamResponseSuccess
|
121
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeEndpointWithResponseStreamOutput]
|
122
|
+
def body: () -> Types::ResponseStream
|
123
|
+
def content_type: () -> ::String
|
124
|
+
def invoked_production_variant: () -> ::String
|
125
|
+
def custom_attributes: () -> ::String
|
126
|
+
end
|
127
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Client.html#invoke_endpoint_with_response_stream-instance_method
|
128
|
+
def invoke_endpoint_with_response_stream: (
|
129
|
+
endpoint_name: ::String,
|
130
|
+
body: ::String,
|
131
|
+
?content_type: ::String,
|
132
|
+
?accept: ::String,
|
133
|
+
?custom_attributes: ::String,
|
134
|
+
?target_variant: ::String,
|
135
|
+
?target_container_hostname: ::String,
|
136
|
+
?inference_id: ::String,
|
137
|
+
?inference_component_name: ::String
|
138
|
+
) ?{ (*untyped) -> void } -> _InvokeEndpointWithResponseStreamResponseSuccess
|
139
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeEndpointWithResponseStreamResponseSuccess
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module SageMakerRuntime
|
10
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
class InternalDependencyException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
17
|
+
class InternalFailure < ::Aws::Errors::ServiceError
|
18
|
+
def message: () -> ::String
|
19
|
+
end
|
20
|
+
class InternalStreamFailure < ::Aws::Errors::ServiceError
|
21
|
+
def message: () -> ::String
|
22
|
+
end
|
23
|
+
class ModelError < ::Aws::Errors::ServiceError
|
24
|
+
def message: () -> ::String
|
25
|
+
def original_status_code: () -> ::String
|
26
|
+
def original_message: () -> ::String
|
27
|
+
def log_stream_arn: () -> ::String
|
28
|
+
end
|
29
|
+
class ModelNotReadyException < ::Aws::Errors::ServiceError
|
30
|
+
def message: () -> ::String
|
31
|
+
end
|
32
|
+
class ModelStreamError < ::Aws::Errors::ServiceError
|
33
|
+
def message: () -> ::String
|
34
|
+
def error_code: () -> ::String
|
35
|
+
end
|
36
|
+
class ServiceUnavailable < ::Aws::Errors::ServiceError
|
37
|
+
def message: () -> ::String
|
38
|
+
end
|
39
|
+
class ValidationError < ::Aws::Errors::ServiceError
|
40
|
+
def message: () -> ::String
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/sig/resource.rbs
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module SageMakerRuntime
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Resource.html
|
11
|
+
class Resource
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SageMakerRuntime/Resource.html#initialize-instance_method
|
13
|
+
def initialize: (
|
14
|
+
?client: Client,
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?event_stream_handler: Proc,
|
36
|
+
?ignore_configured_endpoint_urls: bool,
|
37
|
+
?input_event_stream_handler: Proc,
|
38
|
+
?log_formatter: untyped,
|
39
|
+
?log_level: Symbol,
|
40
|
+
?logger: untyped,
|
41
|
+
?max_attempts: Integer,
|
42
|
+
?output_event_stream_handler: Proc,
|
43
|
+
?profile: String,
|
44
|
+
?request_min_compression_size_bytes: Integer,
|
45
|
+
?retry_backoff: Proc,
|
46
|
+
?retry_base_delay: Float,
|
47
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
48
|
+
?retry_limit: Integer,
|
49
|
+
?retry_max_delay: Integer,
|
50
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
51
|
+
?sdk_ua_app_id: String,
|
52
|
+
?secret_access_key: String,
|
53
|
+
?session_token: String,
|
54
|
+
?stub_responses: untyped,
|
55
|
+
?token_provider: untyped,
|
56
|
+
?use_dualstack_endpoint: bool,
|
57
|
+
?use_fips_endpoint: bool,
|
58
|
+
?validate_params: bool,
|
59
|
+
?endpoint_provider: untyped,
|
60
|
+
?http_proxy: String,
|
61
|
+
?http_open_timeout: (Float | Integer),
|
62
|
+
?http_read_timeout: (Float | Integer),
|
63
|
+
?http_idle_timeout: (Float | Integer),
|
64
|
+
?http_continue_timeout: (Float | Integer),
|
65
|
+
?ssl_timeout: (Float | Integer | nil),
|
66
|
+
?http_wire_trace: bool,
|
67
|
+
?ssl_verify_peer: bool,
|
68
|
+
?ssl_ca_bundle: String,
|
69
|
+
?ssl_ca_directory: String,
|
70
|
+
?ssl_ca_store: String,
|
71
|
+
?on_chunk_received: Proc,
|
72
|
+
?on_chunk_sent: Proc,
|
73
|
+
?raise_response_errors: bool
|
74
|
+
) -> void
|
75
|
+
| (?Hash[Symbol, untyped]) -> void
|
76
|
+
|
77
|
+
def client: () -> Client
|
78
|
+
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
data/sig/types.rbs
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::SageMakerRuntime
|
9
|
+
module Types
|
10
|
+
|
11
|
+
class InternalDependencyException
|
12
|
+
attr_accessor message: ::String
|
13
|
+
SENSITIVE: []
|
14
|
+
end
|
15
|
+
|
16
|
+
class InternalFailure
|
17
|
+
attr_accessor message: ::String
|
18
|
+
SENSITIVE: []
|
19
|
+
end
|
20
|
+
|
21
|
+
class InternalStreamFailure
|
22
|
+
attr_accessor message: ::String
|
23
|
+
attr_accessor event_type: untyped
|
24
|
+
SENSITIVE: []
|
25
|
+
end
|
26
|
+
|
27
|
+
class InvokeEndpointAsyncInput
|
28
|
+
attr_accessor endpoint_name: ::String
|
29
|
+
attr_accessor content_type: ::String
|
30
|
+
attr_accessor accept: ::String
|
31
|
+
attr_accessor custom_attributes: ::String
|
32
|
+
attr_accessor inference_id: ::String
|
33
|
+
attr_accessor input_location: ::String
|
34
|
+
attr_accessor request_ttl_seconds: ::Integer
|
35
|
+
attr_accessor invocation_timeout_seconds: ::Integer
|
36
|
+
SENSITIVE: [:custom_attributes]
|
37
|
+
end
|
38
|
+
|
39
|
+
class InvokeEndpointAsyncOutput
|
40
|
+
attr_accessor inference_id: ::String
|
41
|
+
attr_accessor output_location: ::String
|
42
|
+
attr_accessor failure_location: ::String
|
43
|
+
SENSITIVE: []
|
44
|
+
end
|
45
|
+
|
46
|
+
class InvokeEndpointInput
|
47
|
+
attr_accessor endpoint_name: ::String
|
48
|
+
attr_accessor body: ::String
|
49
|
+
attr_accessor content_type: ::String
|
50
|
+
attr_accessor accept: ::String
|
51
|
+
attr_accessor custom_attributes: ::String
|
52
|
+
attr_accessor target_model: ::String
|
53
|
+
attr_accessor target_variant: ::String
|
54
|
+
attr_accessor target_container_hostname: ::String
|
55
|
+
attr_accessor inference_id: ::String
|
56
|
+
attr_accessor enable_explanations: ::String
|
57
|
+
attr_accessor inference_component_name: ::String
|
58
|
+
SENSITIVE: [:body, :custom_attributes]
|
59
|
+
end
|
60
|
+
|
61
|
+
class InvokeEndpointOutput
|
62
|
+
attr_accessor body: ::String
|
63
|
+
attr_accessor content_type: ::String
|
64
|
+
attr_accessor invoked_production_variant: ::String
|
65
|
+
attr_accessor custom_attributes: ::String
|
66
|
+
SENSITIVE: [:body, :custom_attributes]
|
67
|
+
end
|
68
|
+
|
69
|
+
class InvokeEndpointWithResponseStreamInput
|
70
|
+
attr_accessor endpoint_name: ::String
|
71
|
+
attr_accessor body: ::String
|
72
|
+
attr_accessor content_type: ::String
|
73
|
+
attr_accessor accept: ::String
|
74
|
+
attr_accessor custom_attributes: ::String
|
75
|
+
attr_accessor target_variant: ::String
|
76
|
+
attr_accessor target_container_hostname: ::String
|
77
|
+
attr_accessor inference_id: ::String
|
78
|
+
attr_accessor inference_component_name: ::String
|
79
|
+
SENSITIVE: [:body, :custom_attributes]
|
80
|
+
end
|
81
|
+
|
82
|
+
class InvokeEndpointWithResponseStreamOutput
|
83
|
+
attr_accessor body: Types::ResponseStream
|
84
|
+
attr_accessor content_type: ::String
|
85
|
+
attr_accessor invoked_production_variant: ::String
|
86
|
+
attr_accessor custom_attributes: ::String
|
87
|
+
SENSITIVE: [:custom_attributes]
|
88
|
+
end
|
89
|
+
|
90
|
+
class ModelError
|
91
|
+
attr_accessor message: ::String
|
92
|
+
attr_accessor original_status_code: ::Integer
|
93
|
+
attr_accessor original_message: ::String
|
94
|
+
attr_accessor log_stream_arn: ::String
|
95
|
+
SENSITIVE: []
|
96
|
+
end
|
97
|
+
|
98
|
+
class ModelNotReadyException
|
99
|
+
attr_accessor message: ::String
|
100
|
+
SENSITIVE: []
|
101
|
+
end
|
102
|
+
|
103
|
+
class ModelStreamError
|
104
|
+
attr_accessor message: ::String
|
105
|
+
attr_accessor error_code: ::String
|
106
|
+
attr_accessor event_type: untyped
|
107
|
+
SENSITIVE: []
|
108
|
+
end
|
109
|
+
|
110
|
+
class PayloadPart
|
111
|
+
attr_accessor bytes: ::String
|
112
|
+
attr_accessor event_type: untyped
|
113
|
+
SENSITIVE: [:bytes]
|
114
|
+
end
|
115
|
+
|
116
|
+
class ServiceUnavailable
|
117
|
+
attr_accessor message: ::String
|
118
|
+
SENSITIVE: []
|
119
|
+
end
|
120
|
+
|
121
|
+
class ValidationError
|
122
|
+
attr_accessor message: ::String
|
123
|
+
SENSITIVE: []
|
124
|
+
end
|
125
|
+
|
126
|
+
class ResponseStream < Enumerator[untyped, untyped]
|
127
|
+
def event_types: () -> [:payload_part, :model_stream_error, :internal_stream_failure]
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
data/sig/waiters.rbs
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module SageMakerRuntime
|
10
|
+
module Waiters
|
11
|
+
end
|
12
|
+
end
|
13
|
+
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.61.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-26 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.191.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.191.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,13 +67,18 @@ files:
|
|
67
67
|
- lib/aws-sdk-sagemakerruntime/plugins/endpoints.rb
|
68
68
|
- lib/aws-sdk-sagemakerruntime/resource.rb
|
69
69
|
- lib/aws-sdk-sagemakerruntime/types.rb
|
70
|
+
- sig/client.rbs
|
71
|
+
- sig/errors.rbs
|
72
|
+
- sig/resource.rbs
|
73
|
+
- sig/types.rbs
|
74
|
+
- sig/waiters.rbs
|
70
75
|
homepage: https://github.com/aws/aws-sdk-ruby
|
71
76
|
licenses:
|
72
77
|
- Apache-2.0
|
73
78
|
metadata:
|
74
79
|
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sagemakerruntime
|
75
80
|
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sagemakerruntime/CHANGELOG.md
|
76
|
-
post_install_message:
|
81
|
+
post_install_message:
|
77
82
|
rdoc_options: []
|
78
83
|
require_paths:
|
79
84
|
- lib
|
@@ -88,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
93
|
- !ruby/object:Gem::Version
|
89
94
|
version: '0'
|
90
95
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
96
|
+
rubygems_version: 3.4.10
|
97
|
+
signing_key:
|
93
98
|
specification_version: 4
|
94
99
|
summary: AWS SDK for Ruby - Amazon SageMaker Runtime
|
95
100
|
test_files: []
|