@aws-sdk/client-sagemaker-edge 3.504.0 → 3.509.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/dist-cjs/index.js +5 -43
- package/dist-es/protocols/Aws_restJson1.js +4 -42
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -242,7 +242,7 @@ var se_SendHeartbeatCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
242
242
|
}, "se_SendHeartbeatCommand");
|
|
243
243
|
var de_GetDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
244
244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
245
|
-
return
|
|
245
|
+
return de_CommandError(output, context);
|
|
246
246
|
}
|
|
247
247
|
const contents = (0, import_smithy_client.map)({
|
|
248
248
|
$metadata: deserializeMetadata(output)
|
|
@@ -254,28 +254,9 @@ var de_GetDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
254
254
|
Object.assign(contents, doc);
|
|
255
255
|
return contents;
|
|
256
256
|
}, "de_GetDeploymentsCommand");
|
|
257
|
-
var de_GetDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
258
|
-
const parsedOutput = {
|
|
259
|
-
...output,
|
|
260
|
-
body: await parseErrorBody(output.body, context)
|
|
261
|
-
};
|
|
262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
263
|
-
switch (errorCode) {
|
|
264
|
-
case "InternalServiceException":
|
|
265
|
-
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
266
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
267
|
-
default:
|
|
268
|
-
const parsedBody = parsedOutput.body;
|
|
269
|
-
return throwDefaultError({
|
|
270
|
-
output,
|
|
271
|
-
parsedBody,
|
|
272
|
-
errorCode
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}, "de_GetDeploymentsCommandError");
|
|
276
257
|
var de_GetDeviceRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
277
258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
|
-
return
|
|
259
|
+
return de_CommandError(output, context);
|
|
279
260
|
}
|
|
280
261
|
const contents = (0, import_smithy_client.map)({
|
|
281
262
|
$metadata: deserializeMetadata(output)
|
|
@@ -288,28 +269,9 @@ var de_GetDeviceRegistrationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
288
269
|
Object.assign(contents, doc);
|
|
289
270
|
return contents;
|
|
290
271
|
}, "de_GetDeviceRegistrationCommand");
|
|
291
|
-
var de_GetDeviceRegistrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
292
|
-
const parsedOutput = {
|
|
293
|
-
...output,
|
|
294
|
-
body: await parseErrorBody(output.body, context)
|
|
295
|
-
};
|
|
296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
297
|
-
switch (errorCode) {
|
|
298
|
-
case "InternalServiceException":
|
|
299
|
-
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
300
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
301
|
-
default:
|
|
302
|
-
const parsedBody = parsedOutput.body;
|
|
303
|
-
return throwDefaultError({
|
|
304
|
-
output,
|
|
305
|
-
parsedBody,
|
|
306
|
-
errorCode
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
}, "de_GetDeviceRegistrationCommandError");
|
|
310
272
|
var de_SendHeartbeatCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
311
273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
312
|
-
return
|
|
274
|
+
return de_CommandError(output, context);
|
|
313
275
|
}
|
|
314
276
|
const contents = (0, import_smithy_client.map)({
|
|
315
277
|
$metadata: deserializeMetadata(output)
|
|
@@ -317,7 +279,7 @@ var de_SendHeartbeatCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
317
279
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
318
280
|
return contents;
|
|
319
281
|
}, "de_SendHeartbeatCommand");
|
|
320
|
-
var
|
|
282
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
321
283
|
const parsedOutput = {
|
|
322
284
|
...output,
|
|
323
285
|
body: await parseErrorBody(output.body, context)
|
|
@@ -335,7 +297,7 @@ var de_SendHeartbeatCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
335
297
|
errorCode
|
|
336
298
|
});
|
|
337
299
|
}
|
|
338
|
-
}, "
|
|
300
|
+
}, "de_CommandError");
|
|
339
301
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SagemakerEdgeServiceException);
|
|
340
302
|
var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
341
303
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -50,7 +50,7 @@ export const se_SendHeartbeatCommand = async (input, context) => {
|
|
|
50
50
|
};
|
|
51
51
|
export const de_GetDeploymentsCommand = async (output, context) => {
|
|
52
52
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
53
|
-
return
|
|
53
|
+
return de_CommandError(output, context);
|
|
54
54
|
}
|
|
55
55
|
const contents = map({
|
|
56
56
|
$metadata: deserializeMetadata(output),
|
|
@@ -62,28 +62,9 @@ export const de_GetDeploymentsCommand = async (output, context) => {
|
|
|
62
62
|
Object.assign(contents, doc);
|
|
63
63
|
return contents;
|
|
64
64
|
};
|
|
65
|
-
const de_GetDeploymentsCommandError = async (output, context) => {
|
|
66
|
-
const parsedOutput = {
|
|
67
|
-
...output,
|
|
68
|
-
body: await parseErrorBody(output.body, context),
|
|
69
|
-
};
|
|
70
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
71
|
-
switch (errorCode) {
|
|
72
|
-
case "InternalServiceException":
|
|
73
|
-
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
74
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
75
|
-
default:
|
|
76
|
-
const parsedBody = parsedOutput.body;
|
|
77
|
-
return throwDefaultError({
|
|
78
|
-
output,
|
|
79
|
-
parsedBody,
|
|
80
|
-
errorCode,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
65
|
export const de_GetDeviceRegistrationCommand = async (output, context) => {
|
|
85
66
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
86
|
-
return
|
|
67
|
+
return de_CommandError(output, context);
|
|
87
68
|
}
|
|
88
69
|
const contents = map({
|
|
89
70
|
$metadata: deserializeMetadata(output),
|
|
@@ -96,28 +77,9 @@ export const de_GetDeviceRegistrationCommand = async (output, context) => {
|
|
|
96
77
|
Object.assign(contents, doc);
|
|
97
78
|
return contents;
|
|
98
79
|
};
|
|
99
|
-
const de_GetDeviceRegistrationCommandError = async (output, context) => {
|
|
100
|
-
const parsedOutput = {
|
|
101
|
-
...output,
|
|
102
|
-
body: await parseErrorBody(output.body, context),
|
|
103
|
-
};
|
|
104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
105
|
-
switch (errorCode) {
|
|
106
|
-
case "InternalServiceException":
|
|
107
|
-
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
108
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
109
|
-
default:
|
|
110
|
-
const parsedBody = parsedOutput.body;
|
|
111
|
-
return throwDefaultError({
|
|
112
|
-
output,
|
|
113
|
-
parsedBody,
|
|
114
|
-
errorCode,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
80
|
export const de_SendHeartbeatCommand = async (output, context) => {
|
|
119
81
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
120
|
-
return
|
|
82
|
+
return de_CommandError(output, context);
|
|
121
83
|
}
|
|
122
84
|
const contents = map({
|
|
123
85
|
$metadata: deserializeMetadata(output),
|
|
@@ -125,7 +87,7 @@ export const de_SendHeartbeatCommand = async (output, context) => {
|
|
|
125
87
|
await collectBody(output.body, context);
|
|
126
88
|
return contents;
|
|
127
89
|
};
|
|
128
|
-
const
|
|
90
|
+
const de_CommandError = async (output, context) => {
|
|
129
91
|
const parsedOutput = {
|
|
130
92
|
...output,
|
|
131
93
|
body: await parseErrorBody(output.body, context),
|
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.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sagemaker-edge",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|