aws-sdk-sagemakerruntime 1.46.0 → 1.47.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemakerruntime/client.rb +4 -4
- 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 +3 -3
- 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: 62a1d3e87f50574f04a01a34d05f176d716262efee3c34bfdc464859940baafe
|
4
|
+
data.tar.gz: 387e4a420252ccab7ea523dfda3f63f5448b862a41046aaface36b7df7ddef14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 907f648fcff7cce391834de68055ff0b8ee12ab93b15ad13c4a32d42d47f565e4907084e455a39d85ad67a9ca557d00b41617a41e1f5595060a0bd21d3e01b09
|
7
|
+
data.tar.gz: 0e1deb00bc4813528ec6adfc93665545e95c5b38f890e4140ea73a369b4483a5d09029d0fe9ee46c23150bc5cb7611007bc14b6a0cb0ff8b82c5bb6f233452c7
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.47.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,11 +601,11 @@ 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
|
#
|
@@ -652,7 +652,7 @@ module Aws::SageMakerRuntime
|
|
652
652
|
params: params,
|
653
653
|
config: config)
|
654
654
|
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
655
|
-
context[:gem_version] = '1.
|
655
|
+
context[:gem_version] = '1.47.0'
|
656
656
|
Seahorse::Client::Request.new(handlers, context)
|
657
657
|
end
|
658
658
|
|
@@ -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
|
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.47.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-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|