@aws-sdk/client-sagemaker-runtime 3.128.0 → 3.137.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
20
+
21
+
22
+
23
+
24
+
25
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
@@ -20,8 +20,8 @@ class InvokeEndpointAsyncCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.InvokeEndpointAsyncInput.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.InvokeEndpointAsyncOutput.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.InvokeEndpointAsyncInputFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.InvokeEndpointAsyncOutputFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -20,8 +20,8 @@ class InvokeEndpointCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.InvokeEndpointInput.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.InvokeEndpointOutput.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.InvokeEndpointInputFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.InvokeEndpointOutputFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.ValidationError = exports.ServiceUnavailable = exports.ModelNotReadyException = exports.ModelError = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = exports.InternalFailure = exports.InternalDependencyException = void 0;
3
+ exports.InvokeEndpointAsyncOutputFilterSensitiveLog = exports.InvokeEndpointAsyncInputFilterSensitiveLog = exports.InvokeEndpointOutputFilterSensitiveLog = exports.InvokeEndpointInputFilterSensitiveLog = exports.ValidationError = exports.ServiceUnavailable = exports.ModelNotReadyException = exports.ModelError = exports.InternalFailure = exports.InternalDependencyException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const SageMakerRuntimeServiceException_1 = require("./SageMakerRuntimeServiceException");
6
6
  class InternalDependencyException extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
@@ -31,22 +31,6 @@ class InternalFailure extends SageMakerRuntimeServiceException_1.SageMakerRuntim
31
31
  }
32
32
  }
33
33
  exports.InternalFailure = InternalFailure;
34
- var InvokeEndpointInput;
35
- (function (InvokeEndpointInput) {
36
- InvokeEndpointInput.filterSensitiveLog = (obj) => ({
37
- ...obj,
38
- ...(obj.Body && { Body: smithy_client_1.SENSITIVE_STRING }),
39
- ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
40
- });
41
- })(InvokeEndpointInput = exports.InvokeEndpointInput || (exports.InvokeEndpointInput = {}));
42
- var InvokeEndpointOutput;
43
- (function (InvokeEndpointOutput) {
44
- InvokeEndpointOutput.filterSensitiveLog = (obj) => ({
45
- ...obj,
46
- ...(obj.Body && { Body: smithy_client_1.SENSITIVE_STRING }),
47
- ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
48
- });
49
- })(InvokeEndpointOutput = exports.InvokeEndpointOutput || (exports.InvokeEndpointOutput = {}));
50
34
  class ModelError extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
51
35
  constructor(opts) {
52
36
  super({
@@ -106,16 +90,24 @@ class ValidationError extends SageMakerRuntimeServiceException_1.SageMakerRuntim
106
90
  }
107
91
  }
108
92
  exports.ValidationError = ValidationError;
109
- var InvokeEndpointAsyncInput;
110
- (function (InvokeEndpointAsyncInput) {
111
- InvokeEndpointAsyncInput.filterSensitiveLog = (obj) => ({
112
- ...obj,
113
- ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
114
- });
115
- })(InvokeEndpointAsyncInput = exports.InvokeEndpointAsyncInput || (exports.InvokeEndpointAsyncInput = {}));
116
- var InvokeEndpointAsyncOutput;
117
- (function (InvokeEndpointAsyncOutput) {
118
- InvokeEndpointAsyncOutput.filterSensitiveLog = (obj) => ({
119
- ...obj,
120
- });
121
- })(InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncOutput || (exports.InvokeEndpointAsyncOutput = {}));
93
+ const InvokeEndpointInputFilterSensitiveLog = (obj) => ({
94
+ ...obj,
95
+ ...(obj.Body && { Body: smithy_client_1.SENSITIVE_STRING }),
96
+ ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
97
+ });
98
+ exports.InvokeEndpointInputFilterSensitiveLog = InvokeEndpointInputFilterSensitiveLog;
99
+ const InvokeEndpointOutputFilterSensitiveLog = (obj) => ({
100
+ ...obj,
101
+ ...(obj.Body && { Body: smithy_client_1.SENSITIVE_STRING }),
102
+ ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
103
+ });
104
+ exports.InvokeEndpointOutputFilterSensitiveLog = InvokeEndpointOutputFilterSensitiveLog;
105
+ const InvokeEndpointAsyncInputFilterSensitiveLog = (obj) => ({
106
+ ...obj,
107
+ ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
108
+ });
109
+ exports.InvokeEndpointAsyncInputFilterSensitiveLog = InvokeEndpointAsyncInputFilterSensitiveLog;
110
+ const InvokeEndpointAsyncOutputFilterSensitiveLog = (obj) => ({
111
+ ...obj,
112
+ });
113
+ exports.InvokeEndpointAsyncOutputFilterSensitiveLog = InvokeEndpointAsyncOutputFilterSensitiveLog;
@@ -308,6 +308,9 @@ const loadRestJsonErrorCode = (output, data) => {
308
308
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
309
309
  const sanitizeErrorCode = (rawValue) => {
310
310
  let cleanValue = rawValue;
311
+ if (typeof cleanValue === "number") {
312
+ cleanValue = cleanValue.toString();
313
+ }
311
314
  if (cleanValue.indexOf(":") >= 0) {
312
315
  cleanValue = cleanValue.split(":")[0];
313
316
  }
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { InvokeEndpointAsyncInput, InvokeEndpointAsyncOutput } from "../models/models_0";
4
+ import { InvokeEndpointAsyncInputFilterSensitiveLog, InvokeEndpointAsyncOutputFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1InvokeEndpointAsyncCommand, serializeAws_restJson1InvokeEndpointAsyncCommand, } from "../protocols/Aws_restJson1";
6
6
  var InvokeEndpointAsyncCommand = (function (_super) {
7
7
  __extends(InvokeEndpointAsyncCommand, _super);
@@ -20,8 +20,8 @@ var InvokeEndpointAsyncCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: InvokeEndpointAsyncInput.filterSensitiveLog,
24
- outputFilterSensitiveLog: InvokeEndpointAsyncOutput.filterSensitiveLog,
23
+ inputFilterSensitiveLog: InvokeEndpointAsyncInputFilterSensitiveLog,
24
+ outputFilterSensitiveLog: InvokeEndpointAsyncOutputFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { InvokeEndpointInput, InvokeEndpointOutput } from "../models/models_0";
4
+ import { InvokeEndpointInputFilterSensitiveLog, InvokeEndpointOutputFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1InvokeEndpointCommand, serializeAws_restJson1InvokeEndpointCommand, } from "../protocols/Aws_restJson1";
6
6
  var InvokeEndpointCommand = (function (_super) {
7
7
  __extends(InvokeEndpointCommand, _super);
@@ -20,8 +20,8 @@ var InvokeEndpointCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: InvokeEndpointInput.filterSensitiveLog,
24
- outputFilterSensitiveLog: InvokeEndpointOutput.filterSensitiveLog,
23
+ inputFilterSensitiveLog: InvokeEndpointInputFilterSensitiveLog,
24
+ outputFilterSensitiveLog: InvokeEndpointOutputFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -27,14 +27,6 @@ var InternalFailure = (function (_super) {
27
27
  return InternalFailure;
28
28
  }(__BaseException));
29
29
  export { InternalFailure };
30
- export var InvokeEndpointInput;
31
- (function (InvokeEndpointInput) {
32
- InvokeEndpointInput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
33
- })(InvokeEndpointInput || (InvokeEndpointInput = {}));
34
- export var InvokeEndpointOutput;
35
- (function (InvokeEndpointOutput) {
36
- InvokeEndpointOutput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
37
- })(InvokeEndpointOutput || (InvokeEndpointOutput = {}));
38
30
  var ModelError = (function (_super) {
39
31
  __extends(ModelError, _super);
40
32
  function ModelError(opts) {
@@ -90,11 +82,7 @@ var ValidationError = (function (_super) {
90
82
  return ValidationError;
91
83
  }(__BaseException));
92
84
  export { ValidationError };
93
- export var InvokeEndpointAsyncInput;
94
- (function (InvokeEndpointAsyncInput) {
95
- InvokeEndpointAsyncInput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
96
- })(InvokeEndpointAsyncInput || (InvokeEndpointAsyncInput = {}));
97
- export var InvokeEndpointAsyncOutput;
98
- (function (InvokeEndpointAsyncOutput) {
99
- InvokeEndpointAsyncOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
- })(InvokeEndpointAsyncOutput || (InvokeEndpointAsyncOutput = {}));
85
+ export var InvokeEndpointInputFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
86
+ export var InvokeEndpointOutputFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
87
+ export var InvokeEndpointAsyncInputFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
88
+ export var InvokeEndpointAsyncOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -350,6 +350,9 @@ var loadRestJsonErrorCode = function (output, data) {
350
350
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
351
351
  var sanitizeErrorCode = function (rawValue) {
352
352
  var cleanValue = rawValue;
353
+ if (typeof cleanValue === "number") {
354
+ cleanValue = cleanValue.toString();
355
+ }
353
356
  if (cleanValue.indexOf(":") >= 0) {
354
357
  cleanValue = cleanValue.split(":")[0];
355
358
  }
@@ -89,12 +89,6 @@ export interface InvokeEndpointInput {
89
89
  */
90
90
  InferenceId?: string;
91
91
  }
92
- export declare namespace InvokeEndpointInput {
93
- /**
94
- * @internal
95
- */
96
- const filterSensitiveLog: (obj: InvokeEndpointInput) => any;
97
- }
98
92
  export interface InvokeEndpointOutput {
99
93
  /**
100
94
  * <p>Includes the inference provided by the model.</p>
@@ -130,12 +124,6 @@ export interface InvokeEndpointOutput {
130
124
  */
131
125
  CustomAttributes?: string;
132
126
  }
133
- export declare namespace InvokeEndpointOutput {
134
- /**
135
- * @internal
136
- */
137
- const filterSensitiveLog: (obj: InvokeEndpointOutput) => any;
138
- }
139
127
  /**
140
128
  * <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
141
129
  * </p>
@@ -245,12 +233,6 @@ export interface InvokeEndpointAsyncInput {
245
233
  */
246
234
  RequestTTLSeconds?: number;
247
235
  }
248
- export declare namespace InvokeEndpointAsyncInput {
249
- /**
250
- * @internal
251
- */
252
- const filterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
253
- }
254
236
  export interface InvokeEndpointAsyncOutput {
255
237
  /**
256
238
  * <p>Identifier for an inference request. This will be the same as the <code>InferenceId</code> specified
@@ -262,9 +244,19 @@ export interface InvokeEndpointAsyncOutput {
262
244
  */
263
245
  OutputLocation?: string;
264
246
  }
265
- export declare namespace InvokeEndpointAsyncOutput {
266
- /**
267
- * @internal
268
- */
269
- const filterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
270
- }
247
+ /**
248
+ * @internal
249
+ */
250
+ export declare const InvokeEndpointInputFilterSensitiveLog: (obj: InvokeEndpointInput) => any;
251
+ /**
252
+ * @internal
253
+ */
254
+ export declare const InvokeEndpointOutputFilterSensitiveLog: (obj: InvokeEndpointOutput) => any;
255
+ /**
256
+ * @internal
257
+ */
258
+ export declare const InvokeEndpointAsyncInputFilterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
259
+ /**
260
+ * @internal
261
+ */
262
+ export declare const InvokeEndpointAsyncOutputFilterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
@@ -36,10 +36,6 @@ export interface InvokeEndpointInput {
36
36
 
37
37
  InferenceId?: string;
38
38
  }
39
- export declare namespace InvokeEndpointInput {
40
-
41
- const filterSensitiveLog: (obj: InvokeEndpointInput) => any;
42
- }
43
39
  export interface InvokeEndpointOutput {
44
40
 
45
41
  Body: Uint8Array | undefined;
@@ -50,10 +46,6 @@ export interface InvokeEndpointOutput {
50
46
 
51
47
  CustomAttributes?: string;
52
48
  }
53
- export declare namespace InvokeEndpointOutput {
54
-
55
- const filterSensitiveLog: (obj: InvokeEndpointOutput) => any;
56
- }
57
49
 
58
50
  export declare class ModelError extends __BaseException {
59
51
  readonly name: "ModelError";
@@ -108,17 +100,17 @@ export interface InvokeEndpointAsyncInput {
108
100
 
109
101
  RequestTTLSeconds?: number;
110
102
  }
111
- export declare namespace InvokeEndpointAsyncInput {
112
-
113
- const filterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
114
- }
115
103
  export interface InvokeEndpointAsyncOutput {
116
104
 
117
105
  InferenceId?: string;
118
106
 
119
107
  OutputLocation?: string;
120
108
  }
121
- export declare namespace InvokeEndpointAsyncOutput {
122
-
123
- const filterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
124
- }
109
+
110
+ export declare const InvokeEndpointInputFilterSensitiveLog: (obj: InvokeEndpointInput) => any;
111
+
112
+ export declare const InvokeEndpointOutputFilterSensitiveLog: (obj: InvokeEndpointOutput) => any;
113
+
114
+ export declare const InvokeEndpointAsyncInputFilterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
115
+
116
+ export declare const InvokeEndpointAsyncOutputFilterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.128.0",
4
+ "version": "3.137.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,10 +18,10 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.128.0",
22
- "@aws-sdk/config-resolver": "3.128.0",
23
- "@aws-sdk/credential-provider-node": "3.128.0",
24
- "@aws-sdk/fetch-http-handler": "3.127.0",
21
+ "@aws-sdk/client-sts": "3.137.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.137.0",
24
+ "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
27
27
  "@aws-sdk/middleware-content-length": "3.127.0",
@@ -30,21 +30,21 @@
30
30
  "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
31
  "@aws-sdk/middleware-retry": "3.127.0",
32
32
  "@aws-sdk/middleware-serde": "3.127.0",
33
- "@aws-sdk/middleware-signing": "3.128.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
34
  "@aws-sdk/middleware-stack": "3.127.0",
35
35
  "@aws-sdk/middleware-user-agent": "3.127.0",
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.137.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.128.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.137.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.137.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",