@aws-sdk/client-iot-jobs-data-plane 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 +31 -40
- package/dist-es/protocols/Aws_restJson1.js +26 -35
- 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-iot-jobs-data-plane
|
|
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-iot-jobs-data-plane
|
|
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-iot-jobs-data-plane
|
|
@@ -90,12 +90,10 @@ const serializeAws_restJson1StartNextPendingJobExecutionCommand = async (input,
|
|
|
90
90
|
}
|
|
91
91
|
let body;
|
|
92
92
|
body = JSON.stringify({
|
|
93
|
-
...(input.statusDetails
|
|
94
|
-
input.statusDetails !== null && {
|
|
93
|
+
...(input.statusDetails != null && {
|
|
95
94
|
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
|
|
96
95
|
}),
|
|
97
|
-
...(input.stepTimeoutInMinutes
|
|
98
|
-
input.stepTimeoutInMinutes !== null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes }),
|
|
96
|
+
...(input.stepTimeoutInMinutes != null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes }),
|
|
99
97
|
});
|
|
100
98
|
return new protocol_http_1.HttpRequest({
|
|
101
99
|
protocol,
|
|
@@ -136,21 +134,15 @@ const serializeAws_restJson1UpdateJobExecutionCommand = async (input, context) =
|
|
|
136
134
|
}
|
|
137
135
|
let body;
|
|
138
136
|
body = JSON.stringify({
|
|
139
|
-
...(input.executionNumber
|
|
140
|
-
|
|
141
|
-
...(input.
|
|
142
|
-
|
|
143
|
-
...(input.
|
|
144
|
-
|
|
145
|
-
...(input.includeJobExecutionState !== undefined &&
|
|
146
|
-
input.includeJobExecutionState !== null && { includeJobExecutionState: input.includeJobExecutionState }),
|
|
147
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
148
|
-
...(input.statusDetails !== undefined &&
|
|
149
|
-
input.statusDetails !== null && {
|
|
137
|
+
...(input.executionNumber != null && { executionNumber: input.executionNumber }),
|
|
138
|
+
...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
|
|
139
|
+
...(input.includeJobDocument != null && { includeJobDocument: input.includeJobDocument }),
|
|
140
|
+
...(input.includeJobExecutionState != null && { includeJobExecutionState: input.includeJobExecutionState }),
|
|
141
|
+
...(input.status != null && { status: input.status }),
|
|
142
|
+
...(input.statusDetails != null && {
|
|
150
143
|
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
|
|
151
144
|
}),
|
|
152
|
-
...(input.stepTimeoutInMinutes
|
|
153
|
-
input.stepTimeoutInMinutes !== null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes }),
|
|
145
|
+
...(input.stepTimeoutInMinutes != null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes }),
|
|
154
146
|
});
|
|
155
147
|
return new protocol_http_1.HttpRequest({
|
|
156
148
|
protocol,
|
|
@@ -184,8 +176,7 @@ const deserializeAws_restJson1DescribeJobExecutionCommandError = async (output,
|
|
|
184
176
|
body: await parseBody(output.body, context),
|
|
185
177
|
};
|
|
186
178
|
let response;
|
|
187
|
-
|
|
188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
189
180
|
switch (errorCode) {
|
|
190
181
|
case "CertificateValidationException":
|
|
191
182
|
case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
|
|
@@ -207,10 +198,12 @@ const deserializeAws_restJson1DescribeJobExecutionCommandError = async (output,
|
|
|
207
198
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
208
199
|
default:
|
|
209
200
|
const parsedBody = parsedOutput.body;
|
|
201
|
+
const $metadata = deserializeMetadata(output);
|
|
202
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
210
203
|
response = new IoTJobsDataPlaneServiceException_1.IoTJobsDataPlaneServiceException({
|
|
211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
204
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
212
205
|
$fault: "client",
|
|
213
|
-
$metadata
|
|
206
|
+
$metadata,
|
|
214
207
|
});
|
|
215
208
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
216
209
|
}
|
|
@@ -240,8 +233,7 @@ const deserializeAws_restJson1GetPendingJobExecutionsCommandError = async (outpu
|
|
|
240
233
|
body: await parseBody(output.body, context),
|
|
241
234
|
};
|
|
242
235
|
let response;
|
|
243
|
-
|
|
244
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
245
237
|
switch (errorCode) {
|
|
246
238
|
case "CertificateValidationException":
|
|
247
239
|
case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
|
|
@@ -260,10 +252,12 @@ const deserializeAws_restJson1GetPendingJobExecutionsCommandError = async (outpu
|
|
|
260
252
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
261
253
|
default:
|
|
262
254
|
const parsedBody = parsedOutput.body;
|
|
255
|
+
const $metadata = deserializeMetadata(output);
|
|
256
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
263
257
|
response = new IoTJobsDataPlaneServiceException_1.IoTJobsDataPlaneServiceException({
|
|
264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
265
259
|
$fault: "client",
|
|
266
|
-
$metadata
|
|
260
|
+
$metadata,
|
|
267
261
|
});
|
|
268
262
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
269
263
|
}
|
|
@@ -289,8 +283,7 @@ const deserializeAws_restJson1StartNextPendingJobExecutionCommandError = async (
|
|
|
289
283
|
body: await parseBody(output.body, context),
|
|
290
284
|
};
|
|
291
285
|
let response;
|
|
292
|
-
|
|
293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
287
|
switch (errorCode) {
|
|
295
288
|
case "CertificateValidationException":
|
|
296
289
|
case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
|
|
@@ -309,10 +302,12 @@ const deserializeAws_restJson1StartNextPendingJobExecutionCommandError = async (
|
|
|
309
302
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
310
303
|
default:
|
|
311
304
|
const parsedBody = parsedOutput.body;
|
|
305
|
+
const $metadata = deserializeMetadata(output);
|
|
306
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
312
307
|
response = new IoTJobsDataPlaneServiceException_1.IoTJobsDataPlaneServiceException({
|
|
313
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
308
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
314
309
|
$fault: "client",
|
|
315
|
-
$metadata
|
|
310
|
+
$metadata,
|
|
316
311
|
});
|
|
317
312
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
318
313
|
}
|
|
@@ -342,8 +337,7 @@ const deserializeAws_restJson1UpdateJobExecutionCommandError = async (output, co
|
|
|
342
337
|
body: await parseBody(output.body, context),
|
|
343
338
|
};
|
|
344
339
|
let response;
|
|
345
|
-
|
|
346
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
347
341
|
switch (errorCode) {
|
|
348
342
|
case "CertificateValidationException":
|
|
349
343
|
case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
|
|
@@ -365,10 +359,12 @@ const deserializeAws_restJson1UpdateJobExecutionCommandError = async (output, co
|
|
|
365
359
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
366
360
|
default:
|
|
367
361
|
const parsedBody = parsedOutput.body;
|
|
362
|
+
const $metadata = deserializeMetadata(output);
|
|
363
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
368
364
|
response = new IoTJobsDataPlaneServiceException_1.IoTJobsDataPlaneServiceException({
|
|
369
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
370
366
|
$fault: "client",
|
|
371
|
-
$metadata
|
|
367
|
+
$metadata,
|
|
372
368
|
});
|
|
373
369
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
374
370
|
}
|
|
@@ -492,9 +488,7 @@ const deserializeAws_restJson1JobExecution = (output, context) => {
|
|
|
492
488
|
queuedAt: (0, smithy_client_1.expectLong)(output.queuedAt),
|
|
493
489
|
startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
|
|
494
490
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
495
|
-
statusDetails: output.statusDetails
|
|
496
|
-
? deserializeAws_restJson1DetailsMap(output.statusDetails, context)
|
|
497
|
-
: undefined,
|
|
491
|
+
statusDetails: output.statusDetails != null ? deserializeAws_restJson1DetailsMap(output.statusDetails, context) : undefined,
|
|
498
492
|
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
499
493
|
versionNumber: (0, smithy_client_1.expectLong)(output.versionNumber),
|
|
500
494
|
};
|
|
@@ -502,9 +496,7 @@ const deserializeAws_restJson1JobExecution = (output, context) => {
|
|
|
502
496
|
const deserializeAws_restJson1JobExecutionState = (output, context) => {
|
|
503
497
|
return {
|
|
504
498
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
505
|
-
statusDetails: output.statusDetails
|
|
506
|
-
? deserializeAws_restJson1DetailsMap(output.statusDetails, context)
|
|
507
|
-
: undefined,
|
|
499
|
+
statusDetails: output.statusDetails != null ? deserializeAws_restJson1DetailsMap(output.statusDetails, context) : undefined,
|
|
508
500
|
versionNumber: (0, smithy_client_1.expectLong)(output.versionNumber),
|
|
509
501
|
};
|
|
510
502
|
};
|
|
@@ -578,5 +570,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
578
570
|
if (data["__type"] !== undefined) {
|
|
579
571
|
return sanitizeErrorCode(data["__type"]);
|
|
580
572
|
}
|
|
581
|
-
return "";
|
|
582
573
|
};
|
|
@@ -98,11 +98,9 @@ export var serializeAws_restJson1StartNextPendingJobExecutionCommand = function
|
|
|
98
98
|
else {
|
|
99
99
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
100
100
|
}
|
|
101
|
-
body = JSON.stringify(__assign(__assign({}, (input.statusDetails
|
|
102
|
-
input.statusDetails !== null && {
|
|
101
|
+
body = JSON.stringify(__assign(__assign({}, (input.statusDetails != null && {
|
|
103
102
|
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
|
|
104
|
-
})), (input.stepTimeoutInMinutes
|
|
105
|
-
input.stepTimeoutInMinutes !== null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
|
|
103
|
+
})), (input.stepTimeoutInMinutes != null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
|
|
106
104
|
return [2, new __HttpRequest({
|
|
107
105
|
protocol: protocol,
|
|
108
106
|
hostname: hostname,
|
|
@@ -146,15 +144,9 @@ export var serializeAws_restJson1UpdateJobExecutionCommand = function (input, co
|
|
|
146
144
|
else {
|
|
147
145
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
148
146
|
}
|
|
149
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.executionNumber
|
|
150
|
-
input.executionNumber !== null && { executionNumber: input.executionNumber })), (input.expectedVersion !== undefined &&
|
|
151
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.includeJobDocument !== undefined &&
|
|
152
|
-
input.includeJobDocument !== null && { includeJobDocument: input.includeJobDocument })), (input.includeJobExecutionState !== undefined &&
|
|
153
|
-
input.includeJobExecutionState !== null && { includeJobExecutionState: input.includeJobExecutionState })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.statusDetails !== undefined &&
|
|
154
|
-
input.statusDetails !== null && {
|
|
147
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.executionNumber != null && { executionNumber: input.executionNumber })), (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.includeJobDocument != null && { includeJobDocument: input.includeJobDocument })), (input.includeJobExecutionState != null && { includeJobExecutionState: input.includeJobExecutionState })), (input.status != null && { status: input.status })), (input.statusDetails != null && {
|
|
155
148
|
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
|
|
156
|
-
})), (input.stepTimeoutInMinutes
|
|
157
|
-
input.stepTimeoutInMinutes !== null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
|
|
149
|
+
})), (input.stepTimeoutInMinutes != null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
|
|
158
150
|
return [2, new __HttpRequest({
|
|
159
151
|
protocol: protocol,
|
|
160
152
|
hostname: hostname,
|
|
@@ -192,7 +184,7 @@ export var deserializeAws_restJson1DescribeJobExecutionCommand = function (outpu
|
|
|
192
184
|
});
|
|
193
185
|
}); };
|
|
194
186
|
var deserializeAws_restJson1DescribeJobExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
195
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
187
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
196
188
|
var _c;
|
|
197
189
|
return __generator(this, function (_d) {
|
|
198
190
|
switch (_d.label) {
|
|
@@ -202,7 +194,6 @@ var deserializeAws_restJson1DescribeJobExecutionCommandError = function (output,
|
|
|
202
194
|
return [4, parseBody(output.body, context)];
|
|
203
195
|
case 1:
|
|
204
196
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
205
|
-
errorCode = "UnknownError";
|
|
206
197
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
207
198
|
_b = errorCode;
|
|
208
199
|
switch (_b) {
|
|
@@ -234,10 +225,12 @@ var deserializeAws_restJson1DescribeJobExecutionCommandError = function (output,
|
|
|
234
225
|
case 13: throw _d.sent();
|
|
235
226
|
case 14:
|
|
236
227
|
parsedBody = parsedOutput.body;
|
|
228
|
+
$metadata = deserializeMetadata(output);
|
|
229
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
237
230
|
response = new __BaseException({
|
|
238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
231
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
239
232
|
$fault: "client",
|
|
240
|
-
$metadata:
|
|
233
|
+
$metadata: $metadata,
|
|
241
234
|
});
|
|
242
235
|
throw __decorateServiceException(response, parsedBody);
|
|
243
236
|
}
|
|
@@ -272,7 +265,7 @@ export var deserializeAws_restJson1GetPendingJobExecutionsCommand = function (ou
|
|
|
272
265
|
});
|
|
273
266
|
}); };
|
|
274
267
|
var deserializeAws_restJson1GetPendingJobExecutionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
275
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
268
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
276
269
|
var _c;
|
|
277
270
|
return __generator(this, function (_d) {
|
|
278
271
|
switch (_d.label) {
|
|
@@ -282,7 +275,6 @@ var deserializeAws_restJson1GetPendingJobExecutionsCommandError = function (outp
|
|
|
282
275
|
return [4, parseBody(output.body, context)];
|
|
283
276
|
case 1:
|
|
284
277
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
285
|
-
errorCode = "UnknownError";
|
|
286
278
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
279
|
_b = errorCode;
|
|
288
280
|
switch (_b) {
|
|
@@ -310,10 +302,12 @@ var deserializeAws_restJson1GetPendingJobExecutionsCommandError = function (outp
|
|
|
310
302
|
case 11: throw _d.sent();
|
|
311
303
|
case 12:
|
|
312
304
|
parsedBody = parsedOutput.body;
|
|
305
|
+
$metadata = deserializeMetadata(output);
|
|
306
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
313
307
|
response = new __BaseException({
|
|
314
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
308
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
315
309
|
$fault: "client",
|
|
316
|
-
$metadata:
|
|
310
|
+
$metadata: $metadata,
|
|
317
311
|
});
|
|
318
312
|
throw __decorateServiceException(response, parsedBody);
|
|
319
313
|
}
|
|
@@ -344,7 +338,7 @@ export var deserializeAws_restJson1StartNextPendingJobExecutionCommand = functio
|
|
|
344
338
|
});
|
|
345
339
|
}); };
|
|
346
340
|
var deserializeAws_restJson1StartNextPendingJobExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
347
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
341
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
348
342
|
var _c;
|
|
349
343
|
return __generator(this, function (_d) {
|
|
350
344
|
switch (_d.label) {
|
|
@@ -354,7 +348,6 @@ var deserializeAws_restJson1StartNextPendingJobExecutionCommandError = function
|
|
|
354
348
|
return [4, parseBody(output.body, context)];
|
|
355
349
|
case 1:
|
|
356
350
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
357
|
-
errorCode = "UnknownError";
|
|
358
351
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
352
|
_b = errorCode;
|
|
360
353
|
switch (_b) {
|
|
@@ -382,10 +375,12 @@ var deserializeAws_restJson1StartNextPendingJobExecutionCommandError = function
|
|
|
382
375
|
case 11: throw _d.sent();
|
|
383
376
|
case 12:
|
|
384
377
|
parsedBody = parsedOutput.body;
|
|
378
|
+
$metadata = deserializeMetadata(output);
|
|
379
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
385
380
|
response = new __BaseException({
|
|
386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
381
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
387
382
|
$fault: "client",
|
|
388
|
-
$metadata:
|
|
383
|
+
$metadata: $metadata,
|
|
389
384
|
});
|
|
390
385
|
throw __decorateServiceException(response, parsedBody);
|
|
391
386
|
}
|
|
@@ -420,7 +415,7 @@ export var deserializeAws_restJson1UpdateJobExecutionCommand = function (output,
|
|
|
420
415
|
});
|
|
421
416
|
}); };
|
|
422
417
|
var deserializeAws_restJson1UpdateJobExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
423
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
418
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
424
419
|
var _c;
|
|
425
420
|
return __generator(this, function (_d) {
|
|
426
421
|
switch (_d.label) {
|
|
@@ -430,7 +425,6 @@ var deserializeAws_restJson1UpdateJobExecutionCommandError = function (output, c
|
|
|
430
425
|
return [4, parseBody(output.body, context)];
|
|
431
426
|
case 1:
|
|
432
427
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
433
|
-
errorCode = "UnknownError";
|
|
434
428
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
429
|
_b = errorCode;
|
|
436
430
|
switch (_b) {
|
|
@@ -462,10 +456,12 @@ var deserializeAws_restJson1UpdateJobExecutionCommandError = function (output, c
|
|
|
462
456
|
case 13: throw _d.sent();
|
|
463
457
|
case 14:
|
|
464
458
|
parsedBody = parsedOutput.body;
|
|
459
|
+
$metadata = deserializeMetadata(output);
|
|
460
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
465
461
|
response = new __BaseException({
|
|
466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
467
463
|
$fault: "client",
|
|
468
|
-
$metadata:
|
|
464
|
+
$metadata: $metadata,
|
|
469
465
|
});
|
|
470
466
|
throw __decorateServiceException(response, parsedBody);
|
|
471
467
|
}
|
|
@@ -588,9 +584,7 @@ var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
|
588
584
|
queuedAt: __expectLong(output.queuedAt),
|
|
589
585
|
startedAt: __expectLong(output.startedAt),
|
|
590
586
|
status: __expectString(output.status),
|
|
591
|
-
statusDetails: output.statusDetails
|
|
592
|
-
? deserializeAws_restJson1DetailsMap(output.statusDetails, context)
|
|
593
|
-
: undefined,
|
|
587
|
+
statusDetails: output.statusDetails != null ? deserializeAws_restJson1DetailsMap(output.statusDetails, context) : undefined,
|
|
594
588
|
thingName: __expectString(output.thingName),
|
|
595
589
|
versionNumber: __expectLong(output.versionNumber),
|
|
596
590
|
};
|
|
@@ -598,9 +592,7 @@ var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
|
598
592
|
var deserializeAws_restJson1JobExecutionState = function (output, context) {
|
|
599
593
|
return {
|
|
600
594
|
status: __expectString(output.status),
|
|
601
|
-
statusDetails: output.statusDetails
|
|
602
|
-
? deserializeAws_restJson1DetailsMap(output.statusDetails, context)
|
|
603
|
-
: undefined,
|
|
595
|
+
statusDetails: output.statusDetails != null ? deserializeAws_restJson1DetailsMap(output.statusDetails, context) : undefined,
|
|
604
596
|
versionNumber: __expectLong(output.versionNumber),
|
|
605
597
|
};
|
|
606
598
|
};
|
|
@@ -681,5 +673,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
681
673
|
if (data["__type"] !== undefined) {
|
|
682
674
|
return sanitizeErrorCode(data["__type"]);
|
|
683
675
|
}
|
|
684
|
-
return "";
|
|
685
676
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iot-jobs-data-plane",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iot Jobs Data Plane 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"
|