aws-sdk-sagemakerruntime 1.33.0 → 1.37.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: b830f9a4c61a3f6d1e34b1387f39519e422811f85a7f7a3950f32b82fa5393b5
4
- data.tar.gz: 8708809074209b362193bc33f9bb441797b2fb834535b9627df62f7b13abc6b2
3
+ metadata.gz: 02c8e9147e92d18fe1a6ad9546251538478b4d19ddfba95b22c4db89cd3f3d12
4
+ data.tar.gz: 55d520e1e34f96726f71cb006728528b39428cecfb5bd2fd0347614431648f39
5
5
  SHA512:
6
- metadata.gz: ac5ffb1a5d93974532b6978528accf1497091ec9b1dc4c2d828ee8c8344c097e577994848b92ac52b3f851ceef3c72f9b5ada7aa1fa8777d38f95c2bb592bc47
7
- data.tar.gz: d63a9fd9da0e5cb5d1f11d500067becc05566e451951460760edc1c44b565008475e04860cbb0e0d79380b3ed31baae1e272c95bb02fad78870eaa764b6c89af
6
+ metadata.gz: 4b868ce1485bb492b3762793686936ac0cc04007ead7e812fb6983e20bd405c1de446ae27814aa0dcf3142da6acdbe3604e19773c4ca9dc9314795f5994057de
7
+ data.tar.gz: 5ce929eaef2313b93048e128fb1dbd429fcd14d8b0bd60e0230590fe27f087ddb9454101b864849325b464e8622750ca002448519a519abf849786eb6f7937b6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.37.0 (2021-11-04)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.36.0 (2021-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.35.0 (2021-09-01)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.34.0 (2021-08-18)
20
+ ------------------
21
+
22
+ * Feature - Amazon SageMaker Runtime now supports InvokeEndpointAsync to asynchronously invoke endpoints that were created with the AsyncInferenceConfig object in the EndpointConfig. Asynchronous invocations support larger payload sizes in Amazon S3 and longer processing times.
23
+
4
24
  1.33.0 (2021-07-30)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.33.0
1
+ 1.37.0
@@ -275,6 +275,15 @@ module Aws::SageMakerRuntime
275
275
  # ** Please note ** When response stubbing is enabled, no HTTP
276
276
  # requests are made, and retries are disabled.
277
277
  #
278
+ # @option options [Boolean] :use_dualstack_endpoint
279
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
280
+ # will be used if available.
281
+ #
282
+ # @option options [Boolean] :use_fips_endpoint
283
+ # When set to `true`, fips compatible endpoints will be used if available.
284
+ # When a `fips` region is used, the region is normalized and this config
285
+ # is set to `true`.
286
+ #
278
287
  # @option options [Boolean] :validate_params (true)
279
288
  # When `true`, request parameters are validated before
280
289
  # sending the request.
@@ -477,6 +486,109 @@ module Aws::SageMakerRuntime
477
486
  req.send_request(options)
478
487
  end
479
488
 
489
+ # After you deploy a model into production using Amazon SageMaker
490
+ # hosting services, your client applications use this API to get
491
+ # inferences from the model hosted at the specified endpoint in an
492
+ # asynchronous manner.
493
+ #
494
+ # Inference requests sent to this API are enqueued for asynchronous
495
+ # processing. The processing of the inference request may or may not
496
+ # complete before the you receive a response from this API. The response
497
+ # from this API will not contain the result of the inference request but
498
+ # contain information about where you can locate it.
499
+ #
500
+ # Amazon SageMaker strips all `POST` headers except those supported by
501
+ # the API. Amazon SageMaker might add additional headers. You should not
502
+ # rely on the behavior of headers outside those enumerated in the
503
+ # request syntax.
504
+ #
505
+ # Calls to `InvokeEndpointAsync` are authenticated by using AWS
506
+ # Signature Version 4. For information, see [Authenticating Requests
507
+ # (AWS Signature Version 4)][1] in the *Amazon S3 API Reference*.
508
+ #
509
+ #
510
+ #
511
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
512
+ #
513
+ # @option params [required, String] :endpoint_name
514
+ # The name of the endpoint that you specified when you created the
515
+ # endpoint using the [ `CreateEndpoint` ][1] API.
516
+ #
517
+ #
518
+ #
519
+ # [1]: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html
520
+ #
521
+ # @option params [String] :content_type
522
+ # The MIME type of the input data in the request body.
523
+ #
524
+ # @option params [String] :accept
525
+ # The desired MIME type of the inference in the response.
526
+ #
527
+ # @option params [String] :custom_attributes
528
+ # Provides additional information about a request for an inference
529
+ # submitted to a model hosted at an Amazon SageMaker endpoint. The
530
+ # information is an opaque value that is forwarded verbatim. You could
531
+ # use this value, for example, to provide an ID that you can use to
532
+ # track a request or to provide other metadata that a service endpoint
533
+ # was programmed to process. The value must consist of no more than 1024
534
+ # visible US-ASCII characters as specified in [Section 3.3.6. Field
535
+ # Value Components][1] of the Hypertext Transfer Protocol (HTTP/1.1).
536
+ #
537
+ # The code in your model is responsible for setting or updating any
538
+ # custom attributes in the response. If your code does not set this
539
+ # value in the response, an empty value is returned. For example, if a
540
+ # custom attribute represents the trace ID, your model can prepend the
541
+ # custom attribute with `Trace ID`\: in your post-processing function.
542
+ #
543
+ # This feature is currently supported in the AWS SDKs but not in the
544
+ # Amazon SageMaker Python SDK.
545
+ #
546
+ #
547
+ #
548
+ # [1]: https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6
549
+ #
550
+ # @option params [String] :inference_id
551
+ # The identifier for the inference request. Amazon SageMaker will
552
+ # generate an identifier for you if none is specified.
553
+ #
554
+ # @option params [required, String] :input_location
555
+ # The Amazon S3 URI where the inference request payload is stored.
556
+ #
557
+ # @option params [Integer] :request_ttl_seconds
558
+ # Maximum age in seconds a request can be in the queue before it is
559
+ # marked as expired.
560
+ #
561
+ # @return [Types::InvokeEndpointAsyncOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
562
+ #
563
+ # * {Types::InvokeEndpointAsyncOutput#inference_id #inference_id} => String
564
+ # * {Types::InvokeEndpointAsyncOutput#output_location #output_location} => String
565
+ #
566
+ # @example Request syntax with placeholder values
567
+ #
568
+ # resp = client.invoke_endpoint_async({
569
+ # endpoint_name: "EndpointName", # required
570
+ # content_type: "Header",
571
+ # accept: "Header",
572
+ # custom_attributes: "CustomAttributesHeader",
573
+ # inference_id: "InferenceId",
574
+ # input_location: "InputLocationHeader", # required
575
+ # request_ttl_seconds: 1,
576
+ # })
577
+ #
578
+ # @example Response structure
579
+ #
580
+ # resp.inference_id #=> String
581
+ # resp.output_location #=> String
582
+ #
583
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointAsync AWS API Documentation
584
+ #
585
+ # @overload invoke_endpoint_async(params = {})
586
+ # @param [Hash] params ({})
587
+ def invoke_endpoint_async(params = {}, options = {})
588
+ req = build_request(:invoke_endpoint_async, params)
589
+ req.send_request(options)
590
+ end
591
+
480
592
  # @!endgroup
481
593
 
482
594
  # @param params ({})
@@ -490,7 +602,7 @@ module Aws::SageMakerRuntime
490
602
  params: params,
491
603
  config: config)
492
604
  context[:gem_name] = 'aws-sdk-sagemakerruntime'
493
- context[:gem_version] = '1.33.0'
605
+ context[:gem_version] = '1.37.0'
494
606
  Seahorse::Client::Request.new(handlers, context)
495
607
  end
496
608
 
@@ -18,12 +18,16 @@ module Aws::SageMakerRuntime
18
18
  EndpointName = Shapes::StringShape.new(name: 'EndpointName')
19
19
  Header = Shapes::StringShape.new(name: 'Header')
20
20
  InferenceId = Shapes::StringShape.new(name: 'InferenceId')
21
+ InputLocationHeader = Shapes::StringShape.new(name: 'InputLocationHeader')
21
22
  InternalFailure = Shapes::StructureShape.new(name: 'InternalFailure')
23
+ InvokeEndpointAsyncInput = Shapes::StructureShape.new(name: 'InvokeEndpointAsyncInput')
24
+ InvokeEndpointAsyncOutput = Shapes::StructureShape.new(name: 'InvokeEndpointAsyncOutput')
22
25
  InvokeEndpointInput = Shapes::StructureShape.new(name: 'InvokeEndpointInput')
23
26
  InvokeEndpointOutput = Shapes::StructureShape.new(name: 'InvokeEndpointOutput')
24
27
  LogStreamArn = Shapes::StringShape.new(name: 'LogStreamArn')
25
28
  Message = Shapes::StringShape.new(name: 'Message')
26
29
  ModelError = Shapes::StructureShape.new(name: 'ModelError')
30
+ RequestTTLSecondsHeader = Shapes::IntegerShape.new(name: 'RequestTTLSecondsHeader')
27
31
  ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
28
32
  StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
29
33
  TargetContainerHostnameHeader = Shapes::StringShape.new(name: 'TargetContainerHostnameHeader')
@@ -34,6 +38,19 @@ module Aws::SageMakerRuntime
34
38
  InternalFailure.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
35
39
  InternalFailure.struct_class = Types::InternalFailure
36
40
 
41
+ InvokeEndpointAsyncInput.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location: "uri", location_name: "EndpointName"))
42
+ InvokeEndpointAsyncInput.add_member(:content_type, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "X-Amzn-SageMaker-Content-Type"))
43
+ InvokeEndpointAsyncInput.add_member(:accept, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "X-Amzn-SageMaker-Accept"))
44
+ InvokeEndpointAsyncInput.add_member(:custom_attributes, Shapes::ShapeRef.new(shape: CustomAttributesHeader, location: "header", location_name: "X-Amzn-SageMaker-Custom-Attributes"))
45
+ InvokeEndpointAsyncInput.add_member(:inference_id, Shapes::ShapeRef.new(shape: InferenceId, location: "header", location_name: "X-Amzn-SageMaker-Inference-Id"))
46
+ InvokeEndpointAsyncInput.add_member(:input_location, Shapes::ShapeRef.new(shape: InputLocationHeader, required: true, location: "header", location_name: "X-Amzn-SageMaker-InputLocation"))
47
+ InvokeEndpointAsyncInput.add_member(:request_ttl_seconds, Shapes::ShapeRef.new(shape: RequestTTLSecondsHeader, location: "header", location_name: "X-Amzn-SageMaker-RequestTTLSeconds"))
48
+ InvokeEndpointAsyncInput.struct_class = Types::InvokeEndpointAsyncInput
49
+
50
+ InvokeEndpointAsyncOutput.add_member(:inference_id, Shapes::ShapeRef.new(shape: Header, location_name: "InferenceId"))
51
+ InvokeEndpointAsyncOutput.add_member(:output_location, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "X-Amzn-SageMaker-OutputLocation"))
52
+ InvokeEndpointAsyncOutput.struct_class = Types::InvokeEndpointAsyncOutput
53
+
37
54
  InvokeEndpointInput.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location: "uri", location_name: "EndpointName"))
38
55
  InvokeEndpointInput.add_member(:body, Shapes::ShapeRef.new(shape: BodyBlob, required: true, location_name: "Body"))
39
56
  InvokeEndpointInput.add_member(:content_type, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Content-Type"))
@@ -96,6 +113,17 @@ module Aws::SageMakerRuntime
96
113
  o.errors << Shapes::ShapeRef.new(shape: ValidationError)
97
114
  o.errors << Shapes::ShapeRef.new(shape: ModelError)
98
115
  end)
116
+
117
+ api.add_operation(:invoke_endpoint_async, Seahorse::Model::Operation.new.tap do |o|
118
+ o.name = "InvokeEndpointAsync"
119
+ o.http_method = "POST"
120
+ o.http_request_uri = "/endpoints/{EndpointName}/async-invocations"
121
+ o.input = Shapes::ShapeRef.new(shape: InvokeEndpointAsyncInput)
122
+ o.output = Shapes::ShapeRef.new(shape: InvokeEndpointAsyncOutput)
123
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailure)
124
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailable)
125
+ o.errors << Shapes::ShapeRef.new(shape: ValidationError)
126
+ end)
99
127
  end
100
128
 
101
129
  end
@@ -23,6 +23,108 @@ module Aws::SageMakerRuntime
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
+ # @note When making an API call, you may pass InvokeEndpointAsyncInput
27
+ # data as a hash:
28
+ #
29
+ # {
30
+ # endpoint_name: "EndpointName", # required
31
+ # content_type: "Header",
32
+ # accept: "Header",
33
+ # custom_attributes: "CustomAttributesHeader",
34
+ # inference_id: "InferenceId",
35
+ # input_location: "InputLocationHeader", # required
36
+ # request_ttl_seconds: 1,
37
+ # }
38
+ #
39
+ # @!attribute [rw] endpoint_name
40
+ # The name of the endpoint that you specified when you created the
41
+ # endpoint using the [ `CreateEndpoint` ][1] API.
42
+ #
43
+ #
44
+ #
45
+ # [1]: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html
46
+ # @return [String]
47
+ #
48
+ # @!attribute [rw] content_type
49
+ # The MIME type of the input data in the request body.
50
+ # @return [String]
51
+ #
52
+ # @!attribute [rw] accept
53
+ # The desired MIME type of the inference in the response.
54
+ # @return [String]
55
+ #
56
+ # @!attribute [rw] custom_attributes
57
+ # Provides additional information about a request for an inference
58
+ # submitted to a model hosted at an Amazon SageMaker endpoint. The
59
+ # information is an opaque value that is forwarded verbatim. You could
60
+ # use this value, for example, to provide an ID that you can use to
61
+ # track a request or to provide other metadata that a service endpoint
62
+ # was programmed to process. The value must consist of no more than
63
+ # 1024 visible US-ASCII characters as specified in [Section 3.3.6.
64
+ # Field Value Components][1] of the Hypertext Transfer Protocol
65
+ # (HTTP/1.1).
66
+ #
67
+ # The code in your model is responsible for setting or updating any
68
+ # custom attributes in the response. If your code does not set this
69
+ # value in the response, an empty value is returned. For example, if a
70
+ # custom attribute represents the trace ID, your model can prepend the
71
+ # custom attribute with `Trace ID`\: in your post-processing function.
72
+ #
73
+ # This feature is currently supported in the AWS SDKs but not in the
74
+ # Amazon SageMaker Python SDK.
75
+ #
76
+ #
77
+ #
78
+ # [1]: https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6
79
+ # @return [String]
80
+ #
81
+ # @!attribute [rw] inference_id
82
+ # The identifier for the inference request. Amazon SageMaker will
83
+ # generate an identifier for you if none is specified.
84
+ # @return [String]
85
+ #
86
+ # @!attribute [rw] input_location
87
+ # The Amazon S3 URI where the inference request payload is stored.
88
+ # @return [String]
89
+ #
90
+ # @!attribute [rw] request_ttl_seconds
91
+ # Maximum age in seconds a request can be in the queue before it is
92
+ # marked as expired.
93
+ # @return [Integer]
94
+ #
95
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointAsyncInput AWS API Documentation
96
+ #
97
+ class InvokeEndpointAsyncInput < Struct.new(
98
+ :endpoint_name,
99
+ :content_type,
100
+ :accept,
101
+ :custom_attributes,
102
+ :inference_id,
103
+ :input_location,
104
+ :request_ttl_seconds)
105
+ SENSITIVE = [:custom_attributes]
106
+ include Aws::Structure
107
+ end
108
+
109
+ # @!attribute [rw] inference_id
110
+ # Identifier for an inference request. This will be the same as the
111
+ # `InferenceId` specified in the input. Amazon SageMaker will generate
112
+ # an identifier for you if you do not specify one.
113
+ # @return [String]
114
+ #
115
+ # @!attribute [rw] output_location
116
+ # The Amazon S3 URI where the inference response payload is stored.
117
+ # @return [String]
118
+ #
119
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointAsyncOutput AWS API Documentation
120
+ #
121
+ class InvokeEndpointAsyncOutput < Struct.new(
122
+ :inference_id,
123
+ :output_location)
124
+ SENSITIVE = []
125
+ include Aws::Structure
126
+ end
127
+
26
128
  # @note When making an API call, you may pass InvokeEndpointInput
27
129
  # data as a hash:
28
130
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-sagemakerruntime/customizations'
48
48
  # @!group service
49
49
  module Aws::SageMakerRuntime
50
50
 
51
- GEM_VERSION = '1.33.0'
51
+ GEM_VERSION = '1.37.0'
52
52
 
53
53
  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.33.0
4
+ version: 1.37.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: 2021-07-30 00:00:00.000000000 Z
11
+ date: 2021-11-04 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.119.0
22
+ version: 3.122.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.119.0
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: '0'
79
+ version: '2.3'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="