@aws-sdk/client-sagemaker-edge 3.118.1 → 3.121.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,17 @@
|
|
|
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.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-edge
|
|
@@ -81,18 +81,19 @@ const deserializeAws_restJson1GetDeviceRegistrationCommandError = async (output,
|
|
|
81
81
|
body: await parseBody(output.body, context),
|
|
82
82
|
};
|
|
83
83
|
let response;
|
|
84
|
-
|
|
85
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
84
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
86
85
|
switch (errorCode) {
|
|
87
86
|
case "InternalServiceException":
|
|
88
87
|
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
89
88
|
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
90
89
|
default:
|
|
91
90
|
const parsedBody = parsedOutput.body;
|
|
91
|
+
const $metadata = deserializeMetadata(output);
|
|
92
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
92
93
|
response = new SagemakerEdgeServiceException_1.SagemakerEdgeServiceException({
|
|
93
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
94
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
94
95
|
$fault: "client",
|
|
95
|
-
$metadata
|
|
96
|
+
$metadata,
|
|
96
97
|
});
|
|
97
98
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
98
99
|
}
|
|
@@ -114,18 +115,19 @@ const deserializeAws_restJson1SendHeartbeatCommandError = async (output, context
|
|
|
114
115
|
body: await parseBody(output.body, context),
|
|
115
116
|
};
|
|
116
117
|
let response;
|
|
117
|
-
|
|
118
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
118
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
119
119
|
switch (errorCode) {
|
|
120
120
|
case "InternalServiceException":
|
|
121
121
|
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
122
122
|
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
123
123
|
default:
|
|
124
124
|
const parsedBody = parsedOutput.body;
|
|
125
|
+
const $metadata = deserializeMetadata(output);
|
|
126
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
125
127
|
response = new SagemakerEdgeServiceException_1.SagemakerEdgeServiceException({
|
|
126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
127
129
|
$fault: "client",
|
|
128
|
-
$metadata
|
|
130
|
+
$metadata,
|
|
129
131
|
});
|
|
130
132
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
131
133
|
}
|
|
@@ -232,5 +234,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
232
234
|
if (data["__type"] !== undefined) {
|
|
233
235
|
return sanitizeErrorCode(data["__type"]);
|
|
234
236
|
}
|
|
235
|
-
return "";
|
|
236
237
|
};
|
|
@@ -84,7 +84,7 @@ export var deserializeAws_restJson1GetDeviceRegistrationCommand = function (outp
|
|
|
84
84
|
});
|
|
85
85
|
}); };
|
|
86
86
|
var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
87
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
87
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
88
88
|
var _c;
|
|
89
89
|
return __generator(this, function (_d) {
|
|
90
90
|
switch (_d.label) {
|
|
@@ -94,7 +94,6 @@ var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output
|
|
|
94
94
|
return [4, parseBody(output.body, context)];
|
|
95
95
|
case 1:
|
|
96
96
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
97
|
-
errorCode = "UnknownError";
|
|
98
97
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
99
98
|
_b = errorCode;
|
|
100
99
|
switch (_b) {
|
|
@@ -106,10 +105,12 @@ var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output
|
|
|
106
105
|
case 3: throw _d.sent();
|
|
107
106
|
case 4:
|
|
108
107
|
parsedBody = parsedOutput.body;
|
|
108
|
+
$metadata = deserializeMetadata(output);
|
|
109
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
109
110
|
response = new __BaseException({
|
|
110
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
111
112
|
$fault: "client",
|
|
112
|
-
$metadata:
|
|
113
|
+
$metadata: $metadata,
|
|
113
114
|
});
|
|
114
115
|
throw __decorateServiceException(response, parsedBody);
|
|
115
116
|
}
|
|
@@ -134,7 +135,7 @@ export var deserializeAws_restJson1SendHeartbeatCommand = function (output, cont
|
|
|
134
135
|
});
|
|
135
136
|
}); };
|
|
136
137
|
var deserializeAws_restJson1SendHeartbeatCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
137
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
138
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
138
139
|
var _c;
|
|
139
140
|
return __generator(this, function (_d) {
|
|
140
141
|
switch (_d.label) {
|
|
@@ -144,7 +145,6 @@ var deserializeAws_restJson1SendHeartbeatCommandError = function (output, contex
|
|
|
144
145
|
return [4, parseBody(output.body, context)];
|
|
145
146
|
case 1:
|
|
146
147
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
147
|
-
errorCode = "UnknownError";
|
|
148
148
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
149
149
|
_b = errorCode;
|
|
150
150
|
switch (_b) {
|
|
@@ -156,10 +156,12 @@ var deserializeAws_restJson1SendHeartbeatCommandError = function (output, contex
|
|
|
156
156
|
case 3: throw _d.sent();
|
|
157
157
|
case 4:
|
|
158
158
|
parsedBody = parsedOutput.body;
|
|
159
|
+
$metadata = deserializeMetadata(output);
|
|
160
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
159
161
|
response = new __BaseException({
|
|
160
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
161
163
|
$fault: "client",
|
|
162
|
-
$metadata:
|
|
164
|
+
$metadata: $metadata,
|
|
163
165
|
});
|
|
164
166
|
throw __decorateServiceException(response, parsedBody);
|
|
165
167
|
}
|
|
@@ -263,5 +265,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
263
265
|
if (data["__type"] !== undefined) {
|
|
264
266
|
return sanitizeErrorCode(data["__type"]);
|
|
265
267
|
}
|
|
266
|
-
return "";
|
|
267
268
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-edge",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Edge Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.121.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,9 +18,9 @@
|
|
|
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.
|
|
21
|
+
"@aws-sdk/client-sts": "3.121.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.110.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.121.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.110.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.110.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.110.0",
|