@aws-sdk/client-sagemaker-a2i-runtime 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +33 -33
- package/dist-es/protocols/Aws_restJson1.js +32 -32
- package/package.json +26 -26
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.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **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))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-a2i-runtime
|
|
@@ -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
|
|
98
|
-
input.DataAttributes !== null && {
|
|
97
|
+
...(input.DataAttributes != null && {
|
|
99
98
|
DataAttributes: serializeAws_restJson1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
100
99
|
}),
|
|
101
|
-
...(input.FlowDefinitionArn
|
|
102
|
-
|
|
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
|
|
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
|
|
125
|
+
...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
|
|
129
126
|
});
|
|
130
127
|
return new protocol_http_1.HttpRequest({
|
|
131
128
|
protocol,
|
|
@@ -155,8 +152,7 @@ const deserializeAws_restJson1DeleteHumanLoopCommandError = async (output, conte
|
|
|
155
152
|
body: await parseBody(output.body, context),
|
|
156
153
|
};
|
|
157
154
|
let response;
|
|
158
|
-
|
|
159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
155
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
160
156
|
switch (errorCode) {
|
|
161
157
|
case "InternalServerException":
|
|
162
158
|
case "com.amazonaws.sagemakera2iruntime#InternalServerException":
|
|
@@ -172,10 +168,12 @@ const deserializeAws_restJson1DeleteHumanLoopCommandError = async (output, conte
|
|
|
172
168
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
173
169
|
default:
|
|
174
170
|
const parsedBody = parsedOutput.body;
|
|
171
|
+
const $metadata = deserializeMetadata(output);
|
|
172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
175
173
|
response = new SageMakerA2IRuntimeServiceException_1.SageMakerA2IRuntimeServiceException({
|
|
176
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
177
175
|
$fault: "client",
|
|
178
|
-
$metadata
|
|
176
|
+
$metadata,
|
|
179
177
|
});
|
|
180
178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
181
179
|
}
|
|
@@ -229,8 +227,7 @@ const deserializeAws_restJson1DescribeHumanLoopCommandError = async (output, con
|
|
|
229
227
|
body: await parseBody(output.body, context),
|
|
230
228
|
};
|
|
231
229
|
let response;
|
|
232
|
-
|
|
233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
230
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
231
|
switch (errorCode) {
|
|
235
232
|
case "InternalServerException":
|
|
236
233
|
case "com.amazonaws.sagemakera2iruntime#InternalServerException":
|
|
@@ -246,10 +243,12 @@ const deserializeAws_restJson1DescribeHumanLoopCommandError = async (output, con
|
|
|
246
243
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
247
244
|
default:
|
|
248
245
|
const parsedBody = parsedOutput.body;
|
|
246
|
+
const $metadata = deserializeMetadata(output);
|
|
247
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
249
248
|
response = new SageMakerA2IRuntimeServiceException_1.SageMakerA2IRuntimeServiceException({
|
|
250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
251
250
|
$fault: "client",
|
|
252
|
-
$metadata
|
|
251
|
+
$metadata,
|
|
253
252
|
});
|
|
254
253
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
255
254
|
}
|
|
@@ -279,8 +278,7 @@ const deserializeAws_restJson1ListHumanLoopsCommandError = async (output, contex
|
|
|
279
278
|
body: await parseBody(output.body, context),
|
|
280
279
|
};
|
|
281
280
|
let response;
|
|
282
|
-
|
|
283
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
281
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
284
282
|
switch (errorCode) {
|
|
285
283
|
case "InternalServerException":
|
|
286
284
|
case "com.amazonaws.sagemakera2iruntime#InternalServerException":
|
|
@@ -296,10 +294,12 @@ const deserializeAws_restJson1ListHumanLoopsCommandError = async (output, contex
|
|
|
296
294
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
297
295
|
default:
|
|
298
296
|
const parsedBody = parsedOutput.body;
|
|
297
|
+
const $metadata = deserializeMetadata(output);
|
|
298
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
299
299
|
response = new SageMakerA2IRuntimeServiceException_1.SageMakerA2IRuntimeServiceException({
|
|
300
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
300
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
301
301
|
$fault: "client",
|
|
302
|
-
$metadata
|
|
302
|
+
$metadata,
|
|
303
303
|
});
|
|
304
304
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
305
305
|
}
|
|
@@ -325,8 +325,7 @@ const deserializeAws_restJson1StartHumanLoopCommandError = async (output, contex
|
|
|
325
325
|
body: await parseBody(output.body, context),
|
|
326
326
|
};
|
|
327
327
|
let response;
|
|
328
|
-
|
|
329
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
329
|
switch (errorCode) {
|
|
331
330
|
case "ConflictException":
|
|
332
331
|
case "com.amazonaws.sagemakera2iruntime#ConflictException":
|
|
@@ -345,10 +344,12 @@ const deserializeAws_restJson1StartHumanLoopCommandError = async (output, contex
|
|
|
345
344
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
346
345
|
default:
|
|
347
346
|
const parsedBody = parsedOutput.body;
|
|
347
|
+
const $metadata = deserializeMetadata(output);
|
|
348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
348
349
|
response = new SageMakerA2IRuntimeServiceException_1.SageMakerA2IRuntimeServiceException({
|
|
349
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
350
351
|
$fault: "client",
|
|
351
|
-
$metadata
|
|
352
|
+
$metadata,
|
|
352
353
|
});
|
|
353
354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
354
355
|
}
|
|
@@ -370,8 +371,7 @@ const deserializeAws_restJson1StopHumanLoopCommandError = async (output, context
|
|
|
370
371
|
body: await parseBody(output.body, context),
|
|
371
372
|
};
|
|
372
373
|
let response;
|
|
373
|
-
|
|
374
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
375
375
|
switch (errorCode) {
|
|
376
376
|
case "InternalServerException":
|
|
377
377
|
case "com.amazonaws.sagemakera2iruntime#InternalServerException":
|
|
@@ -387,10 +387,12 @@ const deserializeAws_restJson1StopHumanLoopCommandError = async (output, context
|
|
|
387
387
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
388
388
|
default:
|
|
389
389
|
const parsedBody = parsedOutput.body;
|
|
390
|
+
const $metadata = deserializeMetadata(output);
|
|
391
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
390
392
|
response = new SageMakerA2IRuntimeServiceException_1.SageMakerA2IRuntimeServiceException({
|
|
391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
393
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
392
394
|
$fault: "client",
|
|
393
|
-
$metadata
|
|
395
|
+
$metadata,
|
|
394
396
|
});
|
|
395
397
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
396
398
|
}
|
|
@@ -479,15 +481,14 @@ const serializeAws_restJson1ContentClassifiers = (input, context) => {
|
|
|
479
481
|
};
|
|
480
482
|
const serializeAws_restJson1HumanLoopDataAttributes = (input, context) => {
|
|
481
483
|
return {
|
|
482
|
-
...(input.ContentClassifiers
|
|
483
|
-
input.ContentClassifiers !== null && {
|
|
484
|
+
...(input.ContentClassifiers != null && {
|
|
484
485
|
ContentClassifiers: serializeAws_restJson1ContentClassifiers(input.ContentClassifiers, context),
|
|
485
486
|
}),
|
|
486
487
|
};
|
|
487
488
|
};
|
|
488
489
|
const serializeAws_restJson1HumanLoopInput = (input, context) => {
|
|
489
490
|
return {
|
|
490
|
-
...(input.InputContent
|
|
491
|
+
...(input.InputContent != null && { InputContent: input.InputContent }),
|
|
491
492
|
};
|
|
492
493
|
};
|
|
493
494
|
const deserializeAws_restJson1HumanLoopOutput = (output, context) => {
|
|
@@ -508,7 +509,7 @@ const deserializeAws_restJson1HumanLoopSummaries = (output, context) => {
|
|
|
508
509
|
};
|
|
509
510
|
const deserializeAws_restJson1HumanLoopSummary = (output, context) => {
|
|
510
511
|
return {
|
|
511
|
-
CreationTime: output.CreationTime
|
|
512
|
+
CreationTime: output.CreationTime != null
|
|
512
513
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
513
514
|
: undefined,
|
|
514
515
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
@@ -566,5 +567,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
566
567
|
if (data["__type"] !== undefined) {
|
|
567
568
|
return sanitizeErrorCode(data["__type"]);
|
|
568
569
|
}
|
|
569
|
-
return "";
|
|
570
570
|
};
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
@@ -166,7 +163,7 @@ export var deserializeAws_restJson1DeleteHumanLoopCommand = function (output, co
|
|
|
166
163
|
});
|
|
167
164
|
}); };
|
|
168
165
|
var deserializeAws_restJson1DeleteHumanLoopCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
169
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
166
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
170
167
|
var _c;
|
|
171
168
|
return __generator(this, function (_d) {
|
|
172
169
|
switch (_d.label) {
|
|
@@ -176,7 +173,6 @@ var deserializeAws_restJson1DeleteHumanLoopCommandError = function (output, cont
|
|
|
176
173
|
return [4, parseBody(output.body, context)];
|
|
177
174
|
case 1:
|
|
178
175
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
179
|
-
errorCode = "UnknownError";
|
|
180
176
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
181
177
|
_b = errorCode;
|
|
182
178
|
switch (_b) {
|
|
@@ -200,10 +196,12 @@ var deserializeAws_restJson1DeleteHumanLoopCommandError = function (output, cont
|
|
|
200
196
|
case 9: throw _d.sent();
|
|
201
197
|
case 10:
|
|
202
198
|
parsedBody = parsedOutput.body;
|
|
199
|
+
$metadata = deserializeMetadata(output);
|
|
200
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
203
201
|
response = new __BaseException({
|
|
204
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
205
203
|
$fault: "client",
|
|
206
|
-
$metadata:
|
|
204
|
+
$metadata: $metadata,
|
|
207
205
|
});
|
|
208
206
|
throw __decorateServiceException(response, parsedBody);
|
|
209
207
|
}
|
|
@@ -262,7 +260,7 @@ export var deserializeAws_restJson1DescribeHumanLoopCommand = function (output,
|
|
|
262
260
|
});
|
|
263
261
|
}); };
|
|
264
262
|
var deserializeAws_restJson1DescribeHumanLoopCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
265
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
263
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
266
264
|
var _c;
|
|
267
265
|
return __generator(this, function (_d) {
|
|
268
266
|
switch (_d.label) {
|
|
@@ -272,7 +270,6 @@ var deserializeAws_restJson1DescribeHumanLoopCommandError = function (output, co
|
|
|
272
270
|
return [4, parseBody(output.body, context)];
|
|
273
271
|
case 1:
|
|
274
272
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
275
|
-
errorCode = "UnknownError";
|
|
276
273
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
274
|
_b = errorCode;
|
|
278
275
|
switch (_b) {
|
|
@@ -296,10 +293,12 @@ var deserializeAws_restJson1DescribeHumanLoopCommandError = function (output, co
|
|
|
296
293
|
case 9: throw _d.sent();
|
|
297
294
|
case 10:
|
|
298
295
|
parsedBody = parsedOutput.body;
|
|
296
|
+
$metadata = deserializeMetadata(output);
|
|
297
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
299
298
|
response = new __BaseException({
|
|
300
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
301
300
|
$fault: "client",
|
|
302
|
-
$metadata:
|
|
301
|
+
$metadata: $metadata,
|
|
303
302
|
});
|
|
304
303
|
throw __decorateServiceException(response, parsedBody);
|
|
305
304
|
}
|
|
@@ -334,7 +333,7 @@ export var deserializeAws_restJson1ListHumanLoopsCommand = function (output, con
|
|
|
334
333
|
});
|
|
335
334
|
}); };
|
|
336
335
|
var deserializeAws_restJson1ListHumanLoopsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
336
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
338
337
|
var _c;
|
|
339
338
|
return __generator(this, function (_d) {
|
|
340
339
|
switch (_d.label) {
|
|
@@ -344,7 +343,6 @@ var deserializeAws_restJson1ListHumanLoopsCommandError = function (output, conte
|
|
|
344
343
|
return [4, parseBody(output.body, context)];
|
|
345
344
|
case 1:
|
|
346
345
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
347
|
-
errorCode = "UnknownError";
|
|
348
346
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
349
347
|
_b = errorCode;
|
|
350
348
|
switch (_b) {
|
|
@@ -368,10 +366,12 @@ var deserializeAws_restJson1ListHumanLoopsCommandError = function (output, conte
|
|
|
368
366
|
case 9: throw _d.sent();
|
|
369
367
|
case 10:
|
|
370
368
|
parsedBody = parsedOutput.body;
|
|
369
|
+
$metadata = deserializeMetadata(output);
|
|
370
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
371
371
|
response = new __BaseException({
|
|
372
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
373
373
|
$fault: "client",
|
|
374
|
-
$metadata:
|
|
374
|
+
$metadata: $metadata,
|
|
375
375
|
});
|
|
376
376
|
throw __decorateServiceException(response, parsedBody);
|
|
377
377
|
}
|
|
@@ -402,7 +402,7 @@ export var deserializeAws_restJson1StartHumanLoopCommand = function (output, con
|
|
|
402
402
|
});
|
|
403
403
|
}); };
|
|
404
404
|
var deserializeAws_restJson1StartHumanLoopCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
405
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
405
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
406
406
|
var _c;
|
|
407
407
|
return __generator(this, function (_d) {
|
|
408
408
|
switch (_d.label) {
|
|
@@ -412,7 +412,6 @@ var deserializeAws_restJson1StartHumanLoopCommandError = function (output, conte
|
|
|
412
412
|
return [4, parseBody(output.body, context)];
|
|
413
413
|
case 1:
|
|
414
414
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
415
|
-
errorCode = "UnknownError";
|
|
416
415
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
416
|
_b = errorCode;
|
|
418
417
|
switch (_b) {
|
|
@@ -440,10 +439,12 @@ var deserializeAws_restJson1StartHumanLoopCommandError = function (output, conte
|
|
|
440
439
|
case 11: throw _d.sent();
|
|
441
440
|
case 12:
|
|
442
441
|
parsedBody = parsedOutput.body;
|
|
442
|
+
$metadata = deserializeMetadata(output);
|
|
443
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
443
444
|
response = new __BaseException({
|
|
444
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
445
446
|
$fault: "client",
|
|
446
|
-
$metadata:
|
|
447
|
+
$metadata: $metadata,
|
|
447
448
|
});
|
|
448
449
|
throw __decorateServiceException(response, parsedBody);
|
|
449
450
|
}
|
|
@@ -468,7 +469,7 @@ export var deserializeAws_restJson1StopHumanLoopCommand = function (output, cont
|
|
|
468
469
|
});
|
|
469
470
|
}); };
|
|
470
471
|
var deserializeAws_restJson1StopHumanLoopCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
471
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
472
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
472
473
|
var _c;
|
|
473
474
|
return __generator(this, function (_d) {
|
|
474
475
|
switch (_d.label) {
|
|
@@ -478,7 +479,6 @@ var deserializeAws_restJson1StopHumanLoopCommandError = function (output, contex
|
|
|
478
479
|
return [4, parseBody(output.body, context)];
|
|
479
480
|
case 1:
|
|
480
481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
481
|
-
errorCode = "UnknownError";
|
|
482
482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
483
|
_b = errorCode;
|
|
484
484
|
switch (_b) {
|
|
@@ -502,10 +502,12 @@ var deserializeAws_restJson1StopHumanLoopCommandError = function (output, contex
|
|
|
502
502
|
case 9: throw _d.sent();
|
|
503
503
|
case 10:
|
|
504
504
|
parsedBody = parsedOutput.body;
|
|
505
|
+
$metadata = deserializeMetadata(output);
|
|
506
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
505
507
|
response = new __BaseException({
|
|
506
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
507
509
|
$fault: "client",
|
|
508
|
-
$metadata:
|
|
510
|
+
$metadata: $metadata,
|
|
509
511
|
});
|
|
510
512
|
throw __decorateServiceException(response, parsedBody);
|
|
511
513
|
}
|
|
@@ -594,13 +596,12 @@ var serializeAws_restJson1ContentClassifiers = function (input, context) {
|
|
|
594
596
|
});
|
|
595
597
|
};
|
|
596
598
|
var serializeAws_restJson1HumanLoopDataAttributes = function (input, context) {
|
|
597
|
-
return __assign({}, (input.ContentClassifiers
|
|
598
|
-
input.ContentClassifiers !== null && {
|
|
599
|
+
return __assign({}, (input.ContentClassifiers != null && {
|
|
599
600
|
ContentClassifiers: serializeAws_restJson1ContentClassifiers(input.ContentClassifiers, context),
|
|
600
601
|
}));
|
|
601
602
|
};
|
|
602
603
|
var serializeAws_restJson1HumanLoopInput = function (input, context) {
|
|
603
|
-
return __assign({}, (input.InputContent
|
|
604
|
+
return __assign({}, (input.InputContent != null && { InputContent: input.InputContent }));
|
|
604
605
|
};
|
|
605
606
|
var deserializeAws_restJson1HumanLoopOutput = function (output, context) {
|
|
606
607
|
return {
|
|
@@ -620,7 +621,7 @@ var deserializeAws_restJson1HumanLoopSummaries = function (output, context) {
|
|
|
620
621
|
};
|
|
621
622
|
var deserializeAws_restJson1HumanLoopSummary = function (output, context) {
|
|
622
623
|
return {
|
|
623
|
-
CreationTime: output.CreationTime
|
|
624
|
+
CreationTime: output.CreationTime != null
|
|
624
625
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
625
626
|
: undefined,
|
|
626
627
|
FailureReason: __expectString(output.FailureReason),
|
|
@@ -685,5 +686,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
685
686
|
if (data["__type"] !== undefined) {
|
|
686
687
|
return sanitizeErrorCode(data["__type"]);
|
|
687
688
|
}
|
|
688
|
-
return "";
|
|
689
689
|
};
|
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.
|
|
4
|
+
"version": "3.128.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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
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",
|
|
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.128.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.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.128.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"
|