aws-sdk-sagemakerruntime 1.46.0 → 1.49.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemakerruntime/client.rb +6 -4
- data/lib/aws-sdk-sagemakerruntime/client_api.rb +1 -0
- data/lib/aws-sdk-sagemakerruntime/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-sagemakerruntime/endpoint_provider.rb +31 -28
- data/lib/aws-sdk-sagemakerruntime/types.rb +10 -4
- 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: c6c3e4f8c2fa50885fa314d4ce22dd3d89cae7cc5def27a02d8c02c54cd04a9f
|
4
|
+
data.tar.gz: e7e656236de0df45df38046cd103ed900e509520b612e476210180c5f36b0f69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59b2a9db22a0aceeaf9ec3985146b23e46f193f3a1b6b8acaa7f925d279c76c6747ae28d7b4930f7d6883415b24bbc2df495d4724e26e3c0ea1cc488a86d82d0
|
7
|
+
data.tar.gz: 1ebaac1970698a5bdc0c9e18d185de831d65de463171fa2d7dd52d2779ccfd4340d486ed7c2cd7b116dc7e68a3a81213da491656be7dc11248f0040f87fa647d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2023-04-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon SageMaker Asynchronous Inference now provides customers a FailureLocation as a response parameter in InvokeEndpointAsync API to capture the model failure responses.
|
8
|
+
|
9
|
+
1.48.0 (2023-04-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Amazon SageMaker Asynchronous Inference now provides customers a FailureLocation as a response parameter in InvokeEndpointAsync API to capture the model failure responses.
|
13
|
+
|
14
|
+
1.47.0 (2023-03-16)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Documentation updates for SageMaker Runtime
|
18
|
+
|
4
19
|
1.46.0 (2023-01-27)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.0
|
@@ -583,7 +583,7 @@ module Aws::SageMakerRuntime
|
|
583
583
|
# custom attributes in the response. If your code does not set this
|
584
584
|
# value in the response, an empty value is returned. For example, if a
|
585
585
|
# custom attribute represents the trace ID, your model can prepend the
|
586
|
-
# custom attribute with `Trace ID
|
586
|
+
# custom attribute with `Trace ID`: in your post-processing function.
|
587
587
|
#
|
588
588
|
# This feature is currently supported in the Amazon Web Services SDKs
|
589
589
|
# but not in the Amazon SageMaker Python SDK.
|
@@ -601,16 +601,17 @@ module Aws::SageMakerRuntime
|
|
601
601
|
#
|
602
602
|
# @option params [Integer] :request_ttl_seconds
|
603
603
|
# Maximum age in seconds a request can be in the queue before it is
|
604
|
-
# marked as expired.
|
604
|
+
# marked as expired. The default is 6 hours, or 21,600 seconds.
|
605
605
|
#
|
606
606
|
# @option params [Integer] :invocation_timeout_seconds
|
607
607
|
# Maximum amount of time in seconds a request can be processed before it
|
608
|
-
# is marked as expired.
|
608
|
+
# is marked as expired. The default is 15 minutes, or 900 seconds.
|
609
609
|
#
|
610
610
|
# @return [Types::InvokeEndpointAsyncOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
611
611
|
#
|
612
612
|
# * {Types::InvokeEndpointAsyncOutput#inference_id #inference_id} => String
|
613
613
|
# * {Types::InvokeEndpointAsyncOutput#output_location #output_location} => String
|
614
|
+
# * {Types::InvokeEndpointAsyncOutput#failure_location #failure_location} => String
|
614
615
|
#
|
615
616
|
# @example Request syntax with placeholder values
|
616
617
|
#
|
@@ -629,6 +630,7 @@ module Aws::SageMakerRuntime
|
|
629
630
|
#
|
630
631
|
# resp.inference_id #=> String
|
631
632
|
# resp.output_location #=> String
|
633
|
+
# resp.failure_location #=> String
|
632
634
|
#
|
633
635
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointAsync AWS API Documentation
|
634
636
|
#
|
@@ -652,7 +654,7 @@ module Aws::SageMakerRuntime
|
|
652
654
|
params: params,
|
653
655
|
config: config)
|
654
656
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
655
|
-
context[:gem_version] = '1.
|
657
|
+
context[:gem_version] = '1.49.0'
|
656
658
|
Seahorse::Client::Request.new(handlers, context)
|
657
659
|
end
|
658
660
|
|
@@ -57,6 +57,7 @@ module Aws::SageMakerRuntime
|
|
57
57
|
|
58
58
|
InvokeEndpointAsyncOutput.add_member(:inference_id, Shapes::ShapeRef.new(shape: Header, location_name: "InferenceId"))
|
59
59
|
InvokeEndpointAsyncOutput.add_member(:output_location, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "X-Amzn-SageMaker-OutputLocation"))
|
60
|
+
InvokeEndpointAsyncOutput.add_member(:failure_location, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "X-Amzn-SageMaker-FailureLocation"))
|
60
61
|
InvokeEndpointAsyncOutput.struct_class = Types::InvokeEndpointAsyncOutput
|
61
62
|
|
62
63
|
InvokeEndpointInput.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location: "uri", location_name: "EndpointName"))
|
@@ -50,9 +50,6 @@ module Aws::SageMakerRuntime
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,42 +14,45 @@ module Aws::SageMakerRuntime
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
37
31
|
end
|
38
|
-
|
39
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://runtime-fips.sagemaker.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker.#{region}.amazonaws.com", headers: {}, properties: {})
|
41
|
+
end
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
43
|
end
|
41
|
-
|
44
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
45
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
47
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
51
|
end
|
49
|
-
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
50
53
|
end
|
51
|
-
return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
52
54
|
end
|
55
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
53
56
|
raise ArgumentError, 'No endpoint could be resolved'
|
54
57
|
|
55
58
|
end
|
@@ -69,7 +69,7 @@ module Aws::SageMakerRuntime
|
|
69
69
|
# custom attributes in the response. If your code does not set this
|
70
70
|
# value in the response, an empty value is returned. For example, if a
|
71
71
|
# custom attribute represents the trace ID, your model can prepend the
|
72
|
-
# custom attribute with `Trace ID
|
72
|
+
# custom attribute with `Trace ID`: in your post-processing function.
|
73
73
|
#
|
74
74
|
# This feature is currently supported in the Amazon Web Services SDKs
|
75
75
|
# but not in the Amazon SageMaker Python SDK.
|
@@ -90,12 +90,12 @@ module Aws::SageMakerRuntime
|
|
90
90
|
#
|
91
91
|
# @!attribute [rw] request_ttl_seconds
|
92
92
|
# Maximum age in seconds a request can be in the queue before it is
|
93
|
-
# marked as expired.
|
93
|
+
# marked as expired. The default is 6 hours, or 21,600 seconds.
|
94
94
|
# @return [Integer]
|
95
95
|
#
|
96
96
|
# @!attribute [rw] invocation_timeout_seconds
|
97
97
|
# Maximum amount of time in seconds a request can be processed before
|
98
|
-
# it is marked as expired.
|
98
|
+
# it is marked as expired. The default is 15 minutes, or 900 seconds.
|
99
99
|
# @return [Integer]
|
100
100
|
#
|
101
101
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointAsyncInput AWS API Documentation
|
@@ -123,11 +123,17 @@ module Aws::SageMakerRuntime
|
|
123
123
|
# The Amazon S3 URI where the inference response payload is stored.
|
124
124
|
# @return [String]
|
125
125
|
#
|
126
|
+
# @!attribute [rw] failure_location
|
127
|
+
# The Amazon S3 URI where the inference failure response payload is
|
128
|
+
# stored.
|
129
|
+
# @return [String]
|
130
|
+
#
|
126
131
|
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointAsyncOutput AWS API Documentation
|
127
132
|
#
|
128
133
|
class InvokeEndpointAsyncOutput < Struct.new(
|
129
134
|
:inference_id,
|
130
|
-
:output_location
|
135
|
+
:output_location,
|
136
|
+
:failure_location)
|
131
137
|
SENSITIVE = []
|
132
138
|
include Aws::Structure
|
133
139
|
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.49.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
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|