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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dffca72ceb2be78f7717466a2b8cf1a49f4aab20835e8ca83098c131c75fea3a
4
- data.tar.gz: 709fd3182de54c976a18efbf5ffad65a020295caccdc1399e41481443971d844
3
+ metadata.gz: c6c3e4f8c2fa50885fa314d4ce22dd3d89cae7cc5def27a02d8c02c54cd04a9f
4
+ data.tar.gz: e7e656236de0df45df38046cd103ed900e509520b612e476210180c5f36b0f69
5
5
  SHA512:
6
- metadata.gz: dad5f51288282780aa97cdc831dbdc2a73809d994f8763f2d14dd6c402f4abf1813c5b724c168f8bec2632cb0a783e2e14da90065e59d3520898b02f62abb520
7
- data.tar.gz: 76b28cde32b9e28698871acfbfae9e074888906132b9a0139e9305ec2e9b6a62910536ae79c265e2a5cd203cc56fad1c9a7b966fdec2925f56f03ebccf612a98
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.46.0
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`\: in your post-processing function.
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.46.0'
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
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?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- 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"))
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
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://runtime-fips.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
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
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
39
- return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
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
- return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
45
  end
43
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
44
- end
45
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
46
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
47
- return Aws::Endpoints::Endpoint.new(url: "https://runtime.sagemaker.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
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`\: in your post-processing function.
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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sagemakerruntime/customizations'
52
52
  # @!group service
53
53
  module Aws::SageMakerRuntime
54
54
 
55
- GEM_VERSION = '1.46.0'
55
+ GEM_VERSION = '1.49.0'
56
56
 
57
57
  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.46.0
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-01-27 00:00:00.000000000 Z
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