@aws-sdk/client-sagemaker-a2i-runtime 3.121.0 → 3.130.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,33 @@
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -94,17 +94,14 @@ const serializeAws_restJson1StartHumanLoopCommand = async (input, context) => {
94
94
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/human-loops";
95
95
  let body;
96
96
  body = JSON.stringify({
97
- ...(input.DataAttributes !== undefined &&
98
- input.DataAttributes !== null && {
97
+ ...(input.DataAttributes != null && {
99
98
  DataAttributes: serializeAws_restJson1HumanLoopDataAttributes(input.DataAttributes, context),
100
99
  }),
101
- ...(input.FlowDefinitionArn !== undefined &&
102
- input.FlowDefinitionArn !== null && { FlowDefinitionArn: input.FlowDefinitionArn }),
103
- ...(input.HumanLoopInput !== undefined &&
104
- input.HumanLoopInput !== null && {
100
+ ...(input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn }),
101
+ ...(input.HumanLoopInput != null && {
105
102
  HumanLoopInput: serializeAws_restJson1HumanLoopInput(input.HumanLoopInput, context),
106
103
  }),
107
- ...(input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }),
104
+ ...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
108
105
  });
109
106
  return new protocol_http_1.HttpRequest({
110
107
  protocol,
@@ -125,7 +122,7 @@ const serializeAws_restJson1StopHumanLoopCommand = async (input, context) => {
125
122
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/human-loops/stop";
126
123
  let body;
127
124
  body = JSON.stringify({
128
- ...(input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }),
125
+ ...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
129
126
  });
130
127
  return new protocol_http_1.HttpRequest({
131
128
  protocol,
@@ -484,15 +481,14 @@ const serializeAws_restJson1ContentClassifiers = (input, context) => {
484
481
  };
485
482
  const serializeAws_restJson1HumanLoopDataAttributes = (input, context) => {
486
483
  return {
487
- ...(input.ContentClassifiers !== undefined &&
488
- input.ContentClassifiers !== null && {
484
+ ...(input.ContentClassifiers != null && {
489
485
  ContentClassifiers: serializeAws_restJson1ContentClassifiers(input.ContentClassifiers, context),
490
486
  }),
491
487
  };
492
488
  };
493
489
  const serializeAws_restJson1HumanLoopInput = (input, context) => {
494
490
  return {
495
- ...(input.InputContent !== undefined && input.InputContent !== null && { InputContent: input.InputContent }),
491
+ ...(input.InputContent != null && { InputContent: input.InputContent }),
496
492
  };
497
493
  };
498
494
  const deserializeAws_restJson1HumanLoopOutput = (output, context) => {
@@ -513,7 +509,7 @@ const deserializeAws_restJson1HumanLoopSummaries = (output, context) => {
513
509
  };
514
510
  const deserializeAws_restJson1HumanLoopSummary = (output, context) => {
515
511
  return {
516
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
512
+ CreationTime: output.CreationTime != null
517
513
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
518
514
  : undefined,
519
515
  FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
@@ -553,6 +549,9 @@ const loadRestJsonErrorCode = (output, data) => {
553
549
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
554
550
  const sanitizeErrorCode = (rawValue) => {
555
551
  let cleanValue = rawValue;
552
+ if (typeof cleanValue === "number") {
553
+ cleanValue = cleanValue.toString();
554
+ }
556
555
  if (cleanValue.indexOf(":") >= 0) {
557
556
  cleanValue = cleanValue.split(":")[0];
558
557
  }
@@ -103,14 +103,11 @@ export var serializeAws_restJson1StartHumanLoopCommand = function (input, contex
103
103
  "content-type": "application/json",
104
104
  };
105
105
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/human-loops";
106
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DataAttributes !== undefined &&
107
- input.DataAttributes !== null && {
106
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DataAttributes != null && {
108
107
  DataAttributes: serializeAws_restJson1HumanLoopDataAttributes(input.DataAttributes, context),
109
- })), (input.FlowDefinitionArn !== undefined &&
110
- input.FlowDefinitionArn !== null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopInput !== undefined &&
111
- input.HumanLoopInput !== null && {
108
+ })), (input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopInput != null && {
112
109
  HumanLoopInput: serializeAws_restJson1HumanLoopInput(input.HumanLoopInput, context),
113
- })), (input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName })));
110
+ })), (input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName })));
114
111
  return [2, new __HttpRequest({
115
112
  protocol: protocol,
116
113
  hostname: hostname,
@@ -134,7 +131,7 @@ export var serializeAws_restJson1StopHumanLoopCommand = function (input, context
134
131
  "content-type": "application/json",
135
132
  };
136
133
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/human-loops/stop";
137
- body = JSON.stringify(__assign({}, (input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName })));
134
+ body = JSON.stringify(__assign({}, (input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName })));
138
135
  return [2, new __HttpRequest({
139
136
  protocol: protocol,
140
137
  hostname: hostname,
@@ -599,13 +596,12 @@ var serializeAws_restJson1ContentClassifiers = function (input, context) {
599
596
  });
600
597
  };
601
598
  var serializeAws_restJson1HumanLoopDataAttributes = function (input, context) {
602
- return __assign({}, (input.ContentClassifiers !== undefined &&
603
- input.ContentClassifiers !== null && {
599
+ return __assign({}, (input.ContentClassifiers != null && {
604
600
  ContentClassifiers: serializeAws_restJson1ContentClassifiers(input.ContentClassifiers, context),
605
601
  }));
606
602
  };
607
603
  var serializeAws_restJson1HumanLoopInput = function (input, context) {
608
- return __assign({}, (input.InputContent !== undefined && input.InputContent !== null && { InputContent: input.InputContent }));
604
+ return __assign({}, (input.InputContent != null && { InputContent: input.InputContent }));
609
605
  };
610
606
  var deserializeAws_restJson1HumanLoopOutput = function (output, context) {
611
607
  return {
@@ -625,7 +621,7 @@ var deserializeAws_restJson1HumanLoopSummaries = function (output, context) {
625
621
  };
626
622
  var deserializeAws_restJson1HumanLoopSummary = function (output, context) {
627
623
  return {
628
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
624
+ CreationTime: output.CreationTime != null
629
625
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
630
626
  : undefined,
631
627
  FailureReason: __expectString(output.FailureReason),
@@ -672,6 +668,9 @@ var loadRestJsonErrorCode = function (output, data) {
672
668
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
673
669
  var sanitizeErrorCode = function (rawValue) {
674
670
  var cleanValue = rawValue;
671
+ if (typeof cleanValue === "number") {
672
+ cleanValue = cleanValue.toString();
673
+ }
675
674
  if (cleanValue.indexOf(":") >= 0) {
676
675
  cleanValue = cleanValue.split(":")[0];
677
676
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-a2i-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker A2i Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.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,35 +18,35 @@
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.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
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.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"