@aws-sdk/client-sfn 3.51.0 → 3.54.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/index.js +3 -0
- package/dist-cjs/models/SFNServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +318 -2
- package/dist-cjs/protocols/Aws_json1_0.js +252 -800
- package/dist-es/index.js +1 -0
- package/dist-es/models/SFNServiceException.js +12 -0
- package/dist-es/models/models_0.js +292 -1
- package/dist-es/protocols/Aws_json1_0.js +511 -845
- package/dist-types/SFNClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SFNServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +170 -97
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SFNClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SFNServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +122 -97
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, InvalidArn, InvalidDefinition, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, MissingRequiredParameter, ResourceNotFound, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, } from "../models/models_0";
|
|
5
|
+
import { SFNServiceException as __BaseException } from "../models/SFNServiceException";
|
|
4
6
|
export var serializeAws_json1_0CreateActivityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -285,16 +287,16 @@ export var deserializeAws_json1_0CreateActivityCommand = function (output, conte
|
|
|
285
287
|
});
|
|
286
288
|
}); };
|
|
287
289
|
var deserializeAws_json1_0CreateActivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
288
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
289
|
-
var
|
|
290
|
-
return __generator(this, function (
|
|
291
|
-
switch (
|
|
290
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
291
|
+
var _c;
|
|
292
|
+
return __generator(this, function (_d) {
|
|
293
|
+
switch (_d.label) {
|
|
292
294
|
case 0:
|
|
293
295
|
_a = [__assign({}, output)];
|
|
294
|
-
|
|
296
|
+
_c = {};
|
|
295
297
|
return [4, parseBody(output.body, context)];
|
|
296
298
|
case 1:
|
|
297
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
299
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
298
300
|
errorCode = "UnknownError";
|
|
299
301
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
300
302
|
_b = errorCode;
|
|
@@ -307,34 +309,20 @@ var deserializeAws_json1_0CreateActivityCommandError = function (output, context
|
|
|
307
309
|
case "com.amazonaws.sfn#TooManyTags": return [3, 6];
|
|
308
310
|
}
|
|
309
311
|
return [3, 8];
|
|
310
|
-
case 2:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
case
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
case 4:
|
|
317
|
-
_d = [{}];
|
|
318
|
-
return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
319
|
-
case 5:
|
|
320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
321
|
-
return [3, 9];
|
|
322
|
-
case 6:
|
|
323
|
-
_e = [{}];
|
|
324
|
-
return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
325
|
-
case 7:
|
|
326
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
327
|
-
return [3, 9];
|
|
312
|
+
case 2: return [4, deserializeAws_json1_0ActivityLimitExceededResponse(parsedOutput, context)];
|
|
313
|
+
case 3: throw _d.sent();
|
|
314
|
+
case 4: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
315
|
+
case 5: throw _d.sent();
|
|
316
|
+
case 6: return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
317
|
+
case 7: throw _d.sent();
|
|
328
318
|
case 8:
|
|
329
319
|
parsedBody = parsedOutput.body;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
response
|
|
336
|
-
delete response.Message;
|
|
337
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
320
|
+
response = new __BaseException({
|
|
321
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
322
|
+
$fault: "client",
|
|
323
|
+
$metadata: deserializeMetadata(output),
|
|
324
|
+
});
|
|
325
|
+
throw __decorateServiceException(response, parsedBody);
|
|
338
326
|
}
|
|
339
327
|
});
|
|
340
328
|
}); };
|
|
@@ -357,16 +345,16 @@ export var deserializeAws_json1_0CreateStateMachineCommand = function (output, c
|
|
|
357
345
|
});
|
|
358
346
|
}); };
|
|
359
347
|
var deserializeAws_json1_0CreateStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
360
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
361
|
-
var
|
|
362
|
-
return __generator(this, function (
|
|
363
|
-
switch (
|
|
348
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
349
|
+
var _c;
|
|
350
|
+
return __generator(this, function (_d) {
|
|
351
|
+
switch (_d.label) {
|
|
364
352
|
case 0:
|
|
365
353
|
_a = [__assign({}, output)];
|
|
366
|
-
|
|
354
|
+
_c = {};
|
|
367
355
|
return [4, parseBody(output.body, context)];
|
|
368
356
|
case 1:
|
|
369
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
357
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
370
358
|
errorCode = "UnknownError";
|
|
371
359
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
360
|
_b = errorCode;
|
|
@@ -393,76 +381,34 @@ var deserializeAws_json1_0CreateStateMachineCommandError = function (output, con
|
|
|
393
381
|
case "com.amazonaws.sfn#TooManyTags": return [3, 20];
|
|
394
382
|
}
|
|
395
383
|
return [3, 22];
|
|
396
|
-
case 2:
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
case
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
case 4
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
case
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
case
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
case
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
case
|
|
415
|
-
|
|
416
|
-
return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
417
|
-
case 9:
|
|
418
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
419
|
-
return [3, 23];
|
|
420
|
-
case 10:
|
|
421
|
-
_g = [{}];
|
|
422
|
-
return [4, deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)];
|
|
423
|
-
case 11:
|
|
424
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
425
|
-
return [3, 23];
|
|
426
|
-
case 12:
|
|
427
|
-
_h = [{}];
|
|
428
|
-
return [4, deserializeAws_json1_0StateMachineAlreadyExistsResponse(parsedOutput, context)];
|
|
429
|
-
case 13:
|
|
430
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
431
|
-
return [3, 23];
|
|
432
|
-
case 14:
|
|
433
|
-
_j = [{}];
|
|
434
|
-
return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
435
|
-
case 15:
|
|
436
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
437
|
-
return [3, 23];
|
|
438
|
-
case 16:
|
|
439
|
-
_k = [{}];
|
|
440
|
-
return [4, deserializeAws_json1_0StateMachineLimitExceededResponse(parsedOutput, context)];
|
|
441
|
-
case 17:
|
|
442
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
443
|
-
return [3, 23];
|
|
444
|
-
case 18:
|
|
445
|
-
_l = [{}];
|
|
446
|
-
return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
447
|
-
case 19:
|
|
448
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
449
|
-
return [3, 23];
|
|
450
|
-
case 20:
|
|
451
|
-
_m = [{}];
|
|
452
|
-
return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
453
|
-
case 21:
|
|
454
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
455
|
-
return [3, 23];
|
|
384
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
385
|
+
case 3: throw _d.sent();
|
|
386
|
+
case 4: return [4, deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context)];
|
|
387
|
+
case 5: throw _d.sent();
|
|
388
|
+
case 6: return [4, deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context)];
|
|
389
|
+
case 7: throw _d.sent();
|
|
390
|
+
case 8: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
391
|
+
case 9: throw _d.sent();
|
|
392
|
+
case 10: return [4, deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)];
|
|
393
|
+
case 11: throw _d.sent();
|
|
394
|
+
case 12: return [4, deserializeAws_json1_0StateMachineAlreadyExistsResponse(parsedOutput, context)];
|
|
395
|
+
case 13: throw _d.sent();
|
|
396
|
+
case 14: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
397
|
+
case 15: throw _d.sent();
|
|
398
|
+
case 16: return [4, deserializeAws_json1_0StateMachineLimitExceededResponse(parsedOutput, context)];
|
|
399
|
+
case 17: throw _d.sent();
|
|
400
|
+
case 18: return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
401
|
+
case 19: throw _d.sent();
|
|
402
|
+
case 20: return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
403
|
+
case 21: throw _d.sent();
|
|
456
404
|
case 22:
|
|
457
405
|
parsedBody = parsedOutput.body;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
response
|
|
464
|
-
delete response.Message;
|
|
465
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
406
|
+
response = new __BaseException({
|
|
407
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
408
|
+
$fault: "client",
|
|
409
|
+
$metadata: deserializeMetadata(output),
|
|
410
|
+
});
|
|
411
|
+
throw __decorateServiceException(response, parsedBody);
|
|
466
412
|
}
|
|
467
413
|
});
|
|
468
414
|
}); };
|
|
@@ -485,16 +431,16 @@ export var deserializeAws_json1_0DeleteActivityCommand = function (output, conte
|
|
|
485
431
|
});
|
|
486
432
|
}); };
|
|
487
433
|
var deserializeAws_json1_0DeleteActivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
488
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
489
|
-
var
|
|
490
|
-
return __generator(this, function (
|
|
491
|
-
switch (
|
|
434
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
435
|
+
var _c;
|
|
436
|
+
return __generator(this, function (_d) {
|
|
437
|
+
switch (_d.label) {
|
|
492
438
|
case 0:
|
|
493
439
|
_a = [__assign({}, output)];
|
|
494
|
-
|
|
440
|
+
_c = {};
|
|
495
441
|
return [4, parseBody(output.body, context)];
|
|
496
442
|
case 1:
|
|
497
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
443
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
498
444
|
errorCode = "UnknownError";
|
|
499
445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
446
|
_b = errorCode;
|
|
@@ -503,22 +449,16 @@ var deserializeAws_json1_0DeleteActivityCommandError = function (output, context
|
|
|
503
449
|
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
504
450
|
}
|
|
505
451
|
return [3, 4];
|
|
506
|
-
case 2:
|
|
507
|
-
|
|
508
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
509
|
-
case 3:
|
|
510
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
511
|
-
return [3, 5];
|
|
452
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
453
|
+
case 3: throw _d.sent();
|
|
512
454
|
case 4:
|
|
513
455
|
parsedBody = parsedOutput.body;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
response
|
|
520
|
-
delete response.Message;
|
|
521
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
456
|
+
response = new __BaseException({
|
|
457
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
458
|
+
$fault: "client",
|
|
459
|
+
$metadata: deserializeMetadata(output),
|
|
460
|
+
});
|
|
461
|
+
throw __decorateServiceException(response, parsedBody);
|
|
522
462
|
}
|
|
523
463
|
});
|
|
524
464
|
}); };
|
|
@@ -541,16 +481,16 @@ export var deserializeAws_json1_0DeleteStateMachineCommand = function (output, c
|
|
|
541
481
|
});
|
|
542
482
|
}); };
|
|
543
483
|
var deserializeAws_json1_0DeleteStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
544
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
545
|
-
var
|
|
546
|
-
return __generator(this, function (
|
|
547
|
-
switch (
|
|
484
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
485
|
+
var _c;
|
|
486
|
+
return __generator(this, function (_d) {
|
|
487
|
+
switch (_d.label) {
|
|
548
488
|
case 0:
|
|
549
489
|
_a = [__assign({}, output)];
|
|
550
|
-
|
|
490
|
+
_c = {};
|
|
551
491
|
return [4, parseBody(output.body, context)];
|
|
552
492
|
case 1:
|
|
553
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
493
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
554
494
|
errorCode = "UnknownError";
|
|
555
495
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
496
|
_b = errorCode;
|
|
@@ -559,22 +499,16 @@ var deserializeAws_json1_0DeleteStateMachineCommandError = function (output, con
|
|
|
559
499
|
case "com.amazonaws.sfn#InvalidArn": return [3, 2];
|
|
560
500
|
}
|
|
561
501
|
return [3, 4];
|
|
562
|
-
case 2:
|
|
563
|
-
|
|
564
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
565
|
-
case 3:
|
|
566
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
567
|
-
return [3, 5];
|
|
502
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
503
|
+
case 3: throw _d.sent();
|
|
568
504
|
case 4:
|
|
569
505
|
parsedBody = parsedOutput.body;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
response
|
|
576
|
-
delete response.Message;
|
|
577
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
506
|
+
response = new __BaseException({
|
|
507
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
508
|
+
$fault: "client",
|
|
509
|
+
$metadata: deserializeMetadata(output),
|
|
510
|
+
});
|
|
511
|
+
throw __decorateServiceException(response, parsedBody);
|
|
578
512
|
}
|
|
579
513
|
});
|
|
580
514
|
}); };
|
|
@@ -597,16 +531,16 @@ export var deserializeAws_json1_0DescribeActivityCommand = function (output, con
|
|
|
597
531
|
});
|
|
598
532
|
}); };
|
|
599
533
|
var deserializeAws_json1_0DescribeActivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
600
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
601
|
-
var
|
|
602
|
-
return __generator(this, function (
|
|
603
|
-
switch (
|
|
534
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
535
|
+
var _c;
|
|
536
|
+
return __generator(this, function (_d) {
|
|
537
|
+
switch (_d.label) {
|
|
604
538
|
case 0:
|
|
605
539
|
_a = [__assign({}, output)];
|
|
606
|
-
|
|
540
|
+
_c = {};
|
|
607
541
|
return [4, parseBody(output.body, context)];
|
|
608
542
|
case 1:
|
|
609
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
543
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
610
544
|
errorCode = "UnknownError";
|
|
611
545
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
546
|
_b = errorCode;
|
|
@@ -617,28 +551,18 @@ var deserializeAws_json1_0DescribeActivityCommandError = function (output, conte
|
|
|
617
551
|
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
618
552
|
}
|
|
619
553
|
return [3, 6];
|
|
620
|
-
case 2:
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
case
|
|
624
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
625
|
-
return [3, 7];
|
|
626
|
-
case 4:
|
|
627
|
-
_d = [{}];
|
|
628
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
629
|
-
case 5:
|
|
630
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
631
|
-
return [3, 7];
|
|
554
|
+
case 2: return [4, deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context)];
|
|
555
|
+
case 3: throw _d.sent();
|
|
556
|
+
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
557
|
+
case 5: throw _d.sent();
|
|
632
558
|
case 6:
|
|
633
559
|
parsedBody = parsedOutput.body;
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
response
|
|
640
|
-
delete response.Message;
|
|
641
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
560
|
+
response = new __BaseException({
|
|
561
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
562
|
+
$fault: "client",
|
|
563
|
+
$metadata: deserializeMetadata(output),
|
|
564
|
+
});
|
|
565
|
+
throw __decorateServiceException(response, parsedBody);
|
|
642
566
|
}
|
|
643
567
|
});
|
|
644
568
|
}); };
|
|
@@ -661,16 +585,16 @@ export var deserializeAws_json1_0DescribeExecutionCommand = function (output, co
|
|
|
661
585
|
});
|
|
662
586
|
}); };
|
|
663
587
|
var deserializeAws_json1_0DescribeExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
664
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
665
|
-
var
|
|
666
|
-
return __generator(this, function (
|
|
667
|
-
switch (
|
|
588
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
589
|
+
var _c;
|
|
590
|
+
return __generator(this, function (_d) {
|
|
591
|
+
switch (_d.label) {
|
|
668
592
|
case 0:
|
|
669
593
|
_a = [__assign({}, output)];
|
|
670
|
-
|
|
594
|
+
_c = {};
|
|
671
595
|
return [4, parseBody(output.body, context)];
|
|
672
596
|
case 1:
|
|
673
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
597
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
674
598
|
errorCode = "UnknownError";
|
|
675
599
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
600
|
_b = errorCode;
|
|
@@ -681,28 +605,18 @@ var deserializeAws_json1_0DescribeExecutionCommandError = function (output, cont
|
|
|
681
605
|
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
682
606
|
}
|
|
683
607
|
return [3, 6];
|
|
684
|
-
case 2:
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
case
|
|
688
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
689
|
-
return [3, 7];
|
|
690
|
-
case 4:
|
|
691
|
-
_d = [{}];
|
|
692
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
693
|
-
case 5:
|
|
694
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
695
|
-
return [3, 7];
|
|
608
|
+
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
609
|
+
case 3: throw _d.sent();
|
|
610
|
+
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
611
|
+
case 5: throw _d.sent();
|
|
696
612
|
case 6:
|
|
697
613
|
parsedBody = parsedOutput.body;
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
response
|
|
704
|
-
delete response.Message;
|
|
705
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
614
|
+
response = new __BaseException({
|
|
615
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
616
|
+
$fault: "client",
|
|
617
|
+
$metadata: deserializeMetadata(output),
|
|
618
|
+
});
|
|
619
|
+
throw __decorateServiceException(response, parsedBody);
|
|
706
620
|
}
|
|
707
621
|
});
|
|
708
622
|
}); };
|
|
@@ -725,16 +639,16 @@ export var deserializeAws_json1_0DescribeStateMachineCommand = function (output,
|
|
|
725
639
|
});
|
|
726
640
|
}); };
|
|
727
641
|
var deserializeAws_json1_0DescribeStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
728
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
729
|
-
var
|
|
730
|
-
return __generator(this, function (
|
|
731
|
-
switch (
|
|
642
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
643
|
+
var _c;
|
|
644
|
+
return __generator(this, function (_d) {
|
|
645
|
+
switch (_d.label) {
|
|
732
646
|
case 0:
|
|
733
647
|
_a = [__assign({}, output)];
|
|
734
|
-
|
|
648
|
+
_c = {};
|
|
735
649
|
return [4, parseBody(output.body, context)];
|
|
736
650
|
case 1:
|
|
737
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
651
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
738
652
|
errorCode = "UnknownError";
|
|
739
653
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
654
|
_b = errorCode;
|
|
@@ -745,28 +659,18 @@ var deserializeAws_json1_0DescribeStateMachineCommandError = function (output, c
|
|
|
745
659
|
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 4];
|
|
746
660
|
}
|
|
747
661
|
return [3, 6];
|
|
748
|
-
case 2:
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
case
|
|
752
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
753
|
-
return [3, 7];
|
|
754
|
-
case 4:
|
|
755
|
-
_d = [{}];
|
|
756
|
-
return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
757
|
-
case 5:
|
|
758
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
759
|
-
return [3, 7];
|
|
662
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
663
|
+
case 3: throw _d.sent();
|
|
664
|
+
case 4: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
665
|
+
case 5: throw _d.sent();
|
|
760
666
|
case 6:
|
|
761
667
|
parsedBody = parsedOutput.body;
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
response
|
|
768
|
-
delete response.Message;
|
|
769
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
668
|
+
response = new __BaseException({
|
|
669
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
670
|
+
$fault: "client",
|
|
671
|
+
$metadata: deserializeMetadata(output),
|
|
672
|
+
});
|
|
673
|
+
throw __decorateServiceException(response, parsedBody);
|
|
770
674
|
}
|
|
771
675
|
});
|
|
772
676
|
}); };
|
|
@@ -789,16 +693,16 @@ export var deserializeAws_json1_0DescribeStateMachineForExecutionCommand = funct
|
|
|
789
693
|
});
|
|
790
694
|
}); };
|
|
791
695
|
var deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
792
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
793
|
-
var
|
|
794
|
-
return __generator(this, function (
|
|
795
|
-
switch (
|
|
696
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
697
|
+
var _c;
|
|
698
|
+
return __generator(this, function (_d) {
|
|
699
|
+
switch (_d.label) {
|
|
796
700
|
case 0:
|
|
797
701
|
_a = [__assign({}, output)];
|
|
798
|
-
|
|
702
|
+
_c = {};
|
|
799
703
|
return [4, parseBody(output.body, context)];
|
|
800
704
|
case 1:
|
|
801
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
705
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
802
706
|
errorCode = "UnknownError";
|
|
803
707
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
708
|
_b = errorCode;
|
|
@@ -809,28 +713,18 @@ var deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = functio
|
|
|
809
713
|
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
810
714
|
}
|
|
811
715
|
return [3, 6];
|
|
812
|
-
case 2:
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
case
|
|
816
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
817
|
-
return [3, 7];
|
|
818
|
-
case 4:
|
|
819
|
-
_d = [{}];
|
|
820
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
821
|
-
case 5:
|
|
822
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
823
|
-
return [3, 7];
|
|
716
|
+
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
717
|
+
case 3: throw _d.sent();
|
|
718
|
+
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
719
|
+
case 5: throw _d.sent();
|
|
824
720
|
case 6:
|
|
825
721
|
parsedBody = parsedOutput.body;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
response
|
|
832
|
-
delete response.Message;
|
|
833
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
722
|
+
response = new __BaseException({
|
|
723
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
724
|
+
$fault: "client",
|
|
725
|
+
$metadata: deserializeMetadata(output),
|
|
726
|
+
});
|
|
727
|
+
throw __decorateServiceException(response, parsedBody);
|
|
834
728
|
}
|
|
835
729
|
});
|
|
836
730
|
}); };
|
|
@@ -853,16 +747,16 @@ export var deserializeAws_json1_0GetActivityTaskCommand = function (output, cont
|
|
|
853
747
|
});
|
|
854
748
|
}); };
|
|
855
749
|
var deserializeAws_json1_0GetActivityTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
856
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
857
|
-
var
|
|
858
|
-
return __generator(this, function (
|
|
859
|
-
switch (
|
|
750
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
751
|
+
var _c;
|
|
752
|
+
return __generator(this, function (_d) {
|
|
753
|
+
switch (_d.label) {
|
|
860
754
|
case 0:
|
|
861
755
|
_a = [__assign({}, output)];
|
|
862
|
-
|
|
756
|
+
_c = {};
|
|
863
757
|
return [4, parseBody(output.body, context)];
|
|
864
758
|
case 1:
|
|
865
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
759
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
866
760
|
errorCode = "UnknownError";
|
|
867
761
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
762
|
_b = errorCode;
|
|
@@ -875,34 +769,20 @@ var deserializeAws_json1_0GetActivityTaskCommandError = function (output, contex
|
|
|
875
769
|
case "com.amazonaws.sfn#InvalidArn": return [3, 6];
|
|
876
770
|
}
|
|
877
771
|
return [3, 8];
|
|
878
|
-
case 2:
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
case
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
case 4:
|
|
885
|
-
_d = [{}];
|
|
886
|
-
return [4, deserializeAws_json1_0ActivityWorkerLimitExceededResponse(parsedOutput, context)];
|
|
887
|
-
case 5:
|
|
888
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
889
|
-
return [3, 9];
|
|
890
|
-
case 6:
|
|
891
|
-
_e = [{}];
|
|
892
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
893
|
-
case 7:
|
|
894
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
895
|
-
return [3, 9];
|
|
772
|
+
case 2: return [4, deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context)];
|
|
773
|
+
case 3: throw _d.sent();
|
|
774
|
+
case 4: return [4, deserializeAws_json1_0ActivityWorkerLimitExceededResponse(parsedOutput, context)];
|
|
775
|
+
case 5: throw _d.sent();
|
|
776
|
+
case 6: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
777
|
+
case 7: throw _d.sent();
|
|
896
778
|
case 8:
|
|
897
779
|
parsedBody = parsedOutput.body;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
response
|
|
904
|
-
delete response.Message;
|
|
905
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
780
|
+
response = new __BaseException({
|
|
781
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
782
|
+
$fault: "client",
|
|
783
|
+
$metadata: deserializeMetadata(output),
|
|
784
|
+
});
|
|
785
|
+
throw __decorateServiceException(response, parsedBody);
|
|
906
786
|
}
|
|
907
787
|
});
|
|
908
788
|
}); };
|
|
@@ -925,16 +805,16 @@ export var deserializeAws_json1_0GetExecutionHistoryCommand = function (output,
|
|
|
925
805
|
});
|
|
926
806
|
}); };
|
|
927
807
|
var deserializeAws_json1_0GetExecutionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
928
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
929
|
-
var
|
|
930
|
-
return __generator(this, function (
|
|
931
|
-
switch (
|
|
808
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
809
|
+
var _c;
|
|
810
|
+
return __generator(this, function (_d) {
|
|
811
|
+
switch (_d.label) {
|
|
932
812
|
case 0:
|
|
933
813
|
_a = [__assign({}, output)];
|
|
934
|
-
|
|
814
|
+
_c = {};
|
|
935
815
|
return [4, parseBody(output.body, context)];
|
|
936
816
|
case 1:
|
|
937
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
817
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
938
818
|
errorCode = "UnknownError";
|
|
939
819
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
820
|
_b = errorCode;
|
|
@@ -947,34 +827,20 @@ var deserializeAws_json1_0GetExecutionHistoryCommandError = function (output, co
|
|
|
947
827
|
case "com.amazonaws.sfn#InvalidToken": return [3, 6];
|
|
948
828
|
}
|
|
949
829
|
return [3, 8];
|
|
950
|
-
case 2:
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
case
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
case 4:
|
|
957
|
-
_d = [{}];
|
|
958
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
959
|
-
case 5:
|
|
960
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
961
|
-
return [3, 9];
|
|
962
|
-
case 6:
|
|
963
|
-
_e = [{}];
|
|
964
|
-
return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
965
|
-
case 7:
|
|
966
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
967
|
-
return [3, 9];
|
|
830
|
+
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
831
|
+
case 3: throw _d.sent();
|
|
832
|
+
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
833
|
+
case 5: throw _d.sent();
|
|
834
|
+
case 6: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
835
|
+
case 7: throw _d.sent();
|
|
968
836
|
case 8:
|
|
969
837
|
parsedBody = parsedOutput.body;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
response
|
|
976
|
-
delete response.Message;
|
|
977
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
838
|
+
response = new __BaseException({
|
|
839
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
840
|
+
$fault: "client",
|
|
841
|
+
$metadata: deserializeMetadata(output),
|
|
842
|
+
});
|
|
843
|
+
throw __decorateServiceException(response, parsedBody);
|
|
978
844
|
}
|
|
979
845
|
});
|
|
980
846
|
}); };
|
|
@@ -997,16 +863,16 @@ export var deserializeAws_json1_0ListActivitiesCommand = function (output, conte
|
|
|
997
863
|
});
|
|
998
864
|
}); };
|
|
999
865
|
var deserializeAws_json1_0ListActivitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1000
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1001
|
-
var
|
|
1002
|
-
return __generator(this, function (
|
|
1003
|
-
switch (
|
|
866
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
867
|
+
var _c;
|
|
868
|
+
return __generator(this, function (_d) {
|
|
869
|
+
switch (_d.label) {
|
|
1004
870
|
case 0:
|
|
1005
871
|
_a = [__assign({}, output)];
|
|
1006
|
-
|
|
872
|
+
_c = {};
|
|
1007
873
|
return [4, parseBody(output.body, context)];
|
|
1008
874
|
case 1:
|
|
1009
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
875
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1010
876
|
errorCode = "UnknownError";
|
|
1011
877
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
878
|
_b = errorCode;
|
|
@@ -1015,22 +881,16 @@ var deserializeAws_json1_0ListActivitiesCommandError = function (output, context
|
|
|
1015
881
|
case "com.amazonaws.sfn#InvalidToken": return [3, 2];
|
|
1016
882
|
}
|
|
1017
883
|
return [3, 4];
|
|
1018
|
-
case 2:
|
|
1019
|
-
|
|
1020
|
-
return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1021
|
-
case 3:
|
|
1022
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1023
|
-
return [3, 5];
|
|
884
|
+
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
885
|
+
case 3: throw _d.sent();
|
|
1024
886
|
case 4:
|
|
1025
887
|
parsedBody = parsedOutput.body;
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
response
|
|
1032
|
-
delete response.Message;
|
|
1033
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
888
|
+
response = new __BaseException({
|
|
889
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
890
|
+
$fault: "client",
|
|
891
|
+
$metadata: deserializeMetadata(output),
|
|
892
|
+
});
|
|
893
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1034
894
|
}
|
|
1035
895
|
});
|
|
1036
896
|
}); };
|
|
@@ -1053,16 +913,16 @@ export var deserializeAws_json1_0ListExecutionsCommand = function (output, conte
|
|
|
1053
913
|
});
|
|
1054
914
|
}); };
|
|
1055
915
|
var deserializeAws_json1_0ListExecutionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1056
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1057
|
-
var
|
|
1058
|
-
return __generator(this, function (
|
|
1059
|
-
switch (
|
|
916
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
917
|
+
var _c;
|
|
918
|
+
return __generator(this, function (_d) {
|
|
919
|
+
switch (_d.label) {
|
|
1060
920
|
case 0:
|
|
1061
921
|
_a = [__assign({}, output)];
|
|
1062
|
-
|
|
922
|
+
_c = {};
|
|
1063
923
|
return [4, parseBody(output.body, context)];
|
|
1064
924
|
case 1:
|
|
1065
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
925
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1066
926
|
errorCode = "UnknownError";
|
|
1067
927
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
928
|
_b = errorCode;
|
|
@@ -1077,40 +937,22 @@ var deserializeAws_json1_0ListExecutionsCommandError = function (output, context
|
|
|
1077
937
|
case "com.amazonaws.sfn#StateMachineTypeNotSupported": return [3, 8];
|
|
1078
938
|
}
|
|
1079
939
|
return [3, 10];
|
|
1080
|
-
case 2:
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
case
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
case 4
|
|
1087
|
-
|
|
1088
|
-
return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1089
|
-
case 5:
|
|
1090
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1091
|
-
return [3, 11];
|
|
1092
|
-
case 6:
|
|
1093
|
-
_e = [{}];
|
|
1094
|
-
return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1095
|
-
case 7:
|
|
1096
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1097
|
-
return [3, 11];
|
|
1098
|
-
case 8:
|
|
1099
|
-
_f = [{}];
|
|
1100
|
-
return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
1101
|
-
case 9:
|
|
1102
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1103
|
-
return [3, 11];
|
|
940
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
941
|
+
case 3: throw _d.sent();
|
|
942
|
+
case 4: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
943
|
+
case 5: throw _d.sent();
|
|
944
|
+
case 6: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
945
|
+
case 7: throw _d.sent();
|
|
946
|
+
case 8: return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
947
|
+
case 9: throw _d.sent();
|
|
1104
948
|
case 10:
|
|
1105
949
|
parsedBody = parsedOutput.body;
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
response
|
|
1112
|
-
delete response.Message;
|
|
1113
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
950
|
+
response = new __BaseException({
|
|
951
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
952
|
+
$fault: "client",
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
});
|
|
955
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1114
956
|
}
|
|
1115
957
|
});
|
|
1116
958
|
}); };
|
|
@@ -1133,16 +975,16 @@ export var deserializeAws_json1_0ListStateMachinesCommand = function (output, co
|
|
|
1133
975
|
});
|
|
1134
976
|
}); };
|
|
1135
977
|
var deserializeAws_json1_0ListStateMachinesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1136
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1137
|
-
var
|
|
1138
|
-
return __generator(this, function (
|
|
1139
|
-
switch (
|
|
978
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
979
|
+
var _c;
|
|
980
|
+
return __generator(this, function (_d) {
|
|
981
|
+
switch (_d.label) {
|
|
1140
982
|
case 0:
|
|
1141
983
|
_a = [__assign({}, output)];
|
|
1142
|
-
|
|
984
|
+
_c = {};
|
|
1143
985
|
return [4, parseBody(output.body, context)];
|
|
1144
986
|
case 1:
|
|
1145
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
987
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1146
988
|
errorCode = "UnknownError";
|
|
1147
989
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
990
|
_b = errorCode;
|
|
@@ -1151,22 +993,16 @@ var deserializeAws_json1_0ListStateMachinesCommandError = function (output, cont
|
|
|
1151
993
|
case "com.amazonaws.sfn#InvalidToken": return [3, 2];
|
|
1152
994
|
}
|
|
1153
995
|
return [3, 4];
|
|
1154
|
-
case 2:
|
|
1155
|
-
|
|
1156
|
-
return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1157
|
-
case 3:
|
|
1158
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1159
|
-
return [3, 5];
|
|
996
|
+
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
997
|
+
case 3: throw _d.sent();
|
|
1160
998
|
case 4:
|
|
1161
999
|
parsedBody = parsedOutput.body;
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
response
|
|
1168
|
-
delete response.Message;
|
|
1169
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1000
|
+
response = new __BaseException({
|
|
1001
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1002
|
+
$fault: "client",
|
|
1003
|
+
$metadata: deserializeMetadata(output),
|
|
1004
|
+
});
|
|
1005
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1170
1006
|
}
|
|
1171
1007
|
});
|
|
1172
1008
|
}); };
|
|
@@ -1189,16 +1025,16 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
|
|
|
1189
1025
|
});
|
|
1190
1026
|
}); };
|
|
1191
1027
|
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1192
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1193
|
-
var
|
|
1194
|
-
return __generator(this, function (
|
|
1195
|
-
switch (
|
|
1028
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1029
|
+
var _c;
|
|
1030
|
+
return __generator(this, function (_d) {
|
|
1031
|
+
switch (_d.label) {
|
|
1196
1032
|
case 0:
|
|
1197
1033
|
_a = [__assign({}, output)];
|
|
1198
|
-
|
|
1034
|
+
_c = {};
|
|
1199
1035
|
return [4, parseBody(output.body, context)];
|
|
1200
1036
|
case 1:
|
|
1201
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1037
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1202
1038
|
errorCode = "UnknownError";
|
|
1203
1039
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
1040
|
_b = errorCode;
|
|
@@ -1209,28 +1045,18 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
1209
1045
|
case "com.amazonaws.sfn#ResourceNotFound": return [3, 4];
|
|
1210
1046
|
}
|
|
1211
1047
|
return [3, 6];
|
|
1212
|
-
case 2:
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
case
|
|
1216
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1217
|
-
return [3, 7];
|
|
1218
|
-
case 4:
|
|
1219
|
-
_d = [{}];
|
|
1220
|
-
return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1221
|
-
case 5:
|
|
1222
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1223
|
-
return [3, 7];
|
|
1048
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1049
|
+
case 3: throw _d.sent();
|
|
1050
|
+
case 4: return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1051
|
+
case 5: throw _d.sent();
|
|
1224
1052
|
case 6:
|
|
1225
1053
|
parsedBody = parsedOutput.body;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
response
|
|
1232
|
-
delete response.Message;
|
|
1233
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1054
|
+
response = new __BaseException({
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1056
|
+
$fault: "client",
|
|
1057
|
+
$metadata: deserializeMetadata(output),
|
|
1058
|
+
});
|
|
1059
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1234
1060
|
}
|
|
1235
1061
|
});
|
|
1236
1062
|
}); };
|
|
@@ -1253,16 +1079,16 @@ export var deserializeAws_json1_0SendTaskFailureCommand = function (output, cont
|
|
|
1253
1079
|
});
|
|
1254
1080
|
}); };
|
|
1255
1081
|
var deserializeAws_json1_0SendTaskFailureCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1256
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1257
|
-
var
|
|
1258
|
-
return __generator(this, function (
|
|
1259
|
-
switch (
|
|
1082
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1083
|
+
var _c;
|
|
1084
|
+
return __generator(this, function (_d) {
|
|
1085
|
+
switch (_d.label) {
|
|
1260
1086
|
case 0:
|
|
1261
1087
|
_a = [__assign({}, output)];
|
|
1262
|
-
|
|
1088
|
+
_c = {};
|
|
1263
1089
|
return [4, parseBody(output.body, context)];
|
|
1264
1090
|
case 1:
|
|
1265
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1091
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1266
1092
|
errorCode = "UnknownError";
|
|
1267
1093
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1094
|
_b = errorCode;
|
|
@@ -1275,34 +1101,20 @@ var deserializeAws_json1_0SendTaskFailureCommandError = function (output, contex
|
|
|
1275
1101
|
case "com.amazonaws.sfn#TaskTimedOut": return [3, 6];
|
|
1276
1102
|
}
|
|
1277
1103
|
return [3, 8];
|
|
1278
|
-
case 2:
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
case
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
case 4:
|
|
1285
|
-
_d = [{}];
|
|
1286
|
-
return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1287
|
-
case 5:
|
|
1288
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1289
|
-
return [3, 9];
|
|
1290
|
-
case 6:
|
|
1291
|
-
_e = [{}];
|
|
1292
|
-
return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1293
|
-
case 7:
|
|
1294
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1295
|
-
return [3, 9];
|
|
1104
|
+
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1105
|
+
case 3: throw _d.sent();
|
|
1106
|
+
case 4: return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1107
|
+
case 5: throw _d.sent();
|
|
1108
|
+
case 6: return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1109
|
+
case 7: throw _d.sent();
|
|
1296
1110
|
case 8:
|
|
1297
1111
|
parsedBody = parsedOutput.body;
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
response
|
|
1304
|
-
delete response.Message;
|
|
1305
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1112
|
+
response = new __BaseException({
|
|
1113
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1114
|
+
$fault: "client",
|
|
1115
|
+
$metadata: deserializeMetadata(output),
|
|
1116
|
+
});
|
|
1117
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1306
1118
|
}
|
|
1307
1119
|
});
|
|
1308
1120
|
}); };
|
|
@@ -1325,16 +1137,16 @@ export var deserializeAws_json1_0SendTaskHeartbeatCommand = function (output, co
|
|
|
1325
1137
|
});
|
|
1326
1138
|
}); };
|
|
1327
1139
|
var deserializeAws_json1_0SendTaskHeartbeatCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1328
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1329
|
-
var
|
|
1330
|
-
return __generator(this, function (
|
|
1331
|
-
switch (
|
|
1140
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1141
|
+
var _c;
|
|
1142
|
+
return __generator(this, function (_d) {
|
|
1143
|
+
switch (_d.label) {
|
|
1332
1144
|
case 0:
|
|
1333
1145
|
_a = [__assign({}, output)];
|
|
1334
|
-
|
|
1146
|
+
_c = {};
|
|
1335
1147
|
return [4, parseBody(output.body, context)];
|
|
1336
1148
|
case 1:
|
|
1337
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1149
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1338
1150
|
errorCode = "UnknownError";
|
|
1339
1151
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
1152
|
_b = errorCode;
|
|
@@ -1347,34 +1159,20 @@ var deserializeAws_json1_0SendTaskHeartbeatCommandError = function (output, cont
|
|
|
1347
1159
|
case "com.amazonaws.sfn#TaskTimedOut": return [3, 6];
|
|
1348
1160
|
}
|
|
1349
1161
|
return [3, 8];
|
|
1350
|
-
case 2:
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
case
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
case 4:
|
|
1357
|
-
_d = [{}];
|
|
1358
|
-
return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1359
|
-
case 5:
|
|
1360
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1361
|
-
return [3, 9];
|
|
1362
|
-
case 6:
|
|
1363
|
-
_e = [{}];
|
|
1364
|
-
return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1365
|
-
case 7:
|
|
1366
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1367
|
-
return [3, 9];
|
|
1162
|
+
case 2: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1163
|
+
case 3: throw _d.sent();
|
|
1164
|
+
case 4: return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1165
|
+
case 5: throw _d.sent();
|
|
1166
|
+
case 6: return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1167
|
+
case 7: throw _d.sent();
|
|
1368
1168
|
case 8:
|
|
1369
1169
|
parsedBody = parsedOutput.body;
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
response
|
|
1376
|
-
delete response.Message;
|
|
1377
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1170
|
+
response = new __BaseException({
|
|
1171
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1172
|
+
$fault: "client",
|
|
1173
|
+
$metadata: deserializeMetadata(output),
|
|
1174
|
+
});
|
|
1175
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1378
1176
|
}
|
|
1379
1177
|
});
|
|
1380
1178
|
}); };
|
|
@@ -1397,16 +1195,16 @@ export var deserializeAws_json1_0SendTaskSuccessCommand = function (output, cont
|
|
|
1397
1195
|
});
|
|
1398
1196
|
}); };
|
|
1399
1197
|
var deserializeAws_json1_0SendTaskSuccessCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1400
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1401
|
-
var
|
|
1402
|
-
return __generator(this, function (
|
|
1403
|
-
switch (
|
|
1198
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1199
|
+
var _c;
|
|
1200
|
+
return __generator(this, function (_d) {
|
|
1201
|
+
switch (_d.label) {
|
|
1404
1202
|
case 0:
|
|
1405
1203
|
_a = [__assign({}, output)];
|
|
1406
|
-
|
|
1204
|
+
_c = {};
|
|
1407
1205
|
return [4, parseBody(output.body, context)];
|
|
1408
1206
|
case 1:
|
|
1409
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1207
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1410
1208
|
errorCode = "UnknownError";
|
|
1411
1209
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
1210
|
_b = errorCode;
|
|
@@ -1421,40 +1219,22 @@ var deserializeAws_json1_0SendTaskSuccessCommandError = function (output, contex
|
|
|
1421
1219
|
case "com.amazonaws.sfn#TaskTimedOut": return [3, 8];
|
|
1422
1220
|
}
|
|
1423
1221
|
return [3, 10];
|
|
1424
|
-
case 2:
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
case
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
case 4
|
|
1431
|
-
|
|
1432
|
-
return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1433
|
-
case 5:
|
|
1434
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1435
|
-
return [3, 11];
|
|
1436
|
-
case 6:
|
|
1437
|
-
_e = [{}];
|
|
1438
|
-
return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1439
|
-
case 7:
|
|
1440
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1441
|
-
return [3, 11];
|
|
1442
|
-
case 8:
|
|
1443
|
-
_f = [{}];
|
|
1444
|
-
return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1445
|
-
case 9:
|
|
1446
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1447
|
-
return [3, 11];
|
|
1222
|
+
case 2: return [4, deserializeAws_json1_0InvalidOutputResponse(parsedOutput, context)];
|
|
1223
|
+
case 3: throw _d.sent();
|
|
1224
|
+
case 4: return [4, deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)];
|
|
1225
|
+
case 5: throw _d.sent();
|
|
1226
|
+
case 6: return [4, deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)];
|
|
1227
|
+
case 7: throw _d.sent();
|
|
1228
|
+
case 8: return [4, deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)];
|
|
1229
|
+
case 9: throw _d.sent();
|
|
1448
1230
|
case 10:
|
|
1449
1231
|
parsedBody = parsedOutput.body;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
response
|
|
1456
|
-
delete response.Message;
|
|
1457
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1232
|
+
response = new __BaseException({
|
|
1233
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1234
|
+
$fault: "client",
|
|
1235
|
+
$metadata: deserializeMetadata(output),
|
|
1236
|
+
});
|
|
1237
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1458
1238
|
}
|
|
1459
1239
|
});
|
|
1460
1240
|
}); };
|
|
@@ -1477,16 +1257,16 @@ export var deserializeAws_json1_0StartExecutionCommand = function (output, conte
|
|
|
1477
1257
|
});
|
|
1478
1258
|
}); };
|
|
1479
1259
|
var deserializeAws_json1_0StartExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1480
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1481
|
-
var
|
|
1482
|
-
return __generator(this, function (
|
|
1483
|
-
switch (
|
|
1260
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1261
|
+
var _c;
|
|
1262
|
+
return __generator(this, function (_d) {
|
|
1263
|
+
switch (_d.label) {
|
|
1484
1264
|
case 0:
|
|
1485
1265
|
_a = [__assign({}, output)];
|
|
1486
|
-
|
|
1266
|
+
_c = {};
|
|
1487
1267
|
return [4, parseBody(output.body, context)];
|
|
1488
1268
|
case 1:
|
|
1489
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1269
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1490
1270
|
errorCode = "UnknownError";
|
|
1491
1271
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1272
|
_b = errorCode;
|
|
@@ -1507,58 +1287,28 @@ var deserializeAws_json1_0StartExecutionCommandError = function (output, context
|
|
|
1507
1287
|
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 14];
|
|
1508
1288
|
}
|
|
1509
1289
|
return [3, 16];
|
|
1510
|
-
case 2:
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
case
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
case 4
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
case
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
case
|
|
1523
|
-
|
|
1524
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1525
|
-
case 7:
|
|
1526
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1527
|
-
return [3, 17];
|
|
1528
|
-
case 8:
|
|
1529
|
-
_f = [{}];
|
|
1530
|
-
return [4, deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context)];
|
|
1531
|
-
case 9:
|
|
1532
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1533
|
-
return [3, 17];
|
|
1534
|
-
case 10:
|
|
1535
|
-
_g = [{}];
|
|
1536
|
-
return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
1537
|
-
case 11:
|
|
1538
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1539
|
-
return [3, 17];
|
|
1540
|
-
case 12:
|
|
1541
|
-
_h = [{}];
|
|
1542
|
-
return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1543
|
-
case 13:
|
|
1544
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1545
|
-
return [3, 17];
|
|
1546
|
-
case 14:
|
|
1547
|
-
_j = [{}];
|
|
1548
|
-
return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1549
|
-
case 15:
|
|
1550
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1551
|
-
return [3, 17];
|
|
1290
|
+
case 2: return [4, deserializeAws_json1_0ExecutionAlreadyExistsResponse(parsedOutput, context)];
|
|
1291
|
+
case 3: throw _d.sent();
|
|
1292
|
+
case 4: return [4, deserializeAws_json1_0ExecutionLimitExceededResponse(parsedOutput, context)];
|
|
1293
|
+
case 5: throw _d.sent();
|
|
1294
|
+
case 6: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1295
|
+
case 7: throw _d.sent();
|
|
1296
|
+
case 8: return [4, deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context)];
|
|
1297
|
+
case 9: throw _d.sent();
|
|
1298
|
+
case 10: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
1299
|
+
case 11: throw _d.sent();
|
|
1300
|
+
case 12: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1301
|
+
case 13: throw _d.sent();
|
|
1302
|
+
case 14: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1303
|
+
case 15: throw _d.sent();
|
|
1552
1304
|
case 16:
|
|
1553
1305
|
parsedBody = parsedOutput.body;
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
response
|
|
1560
|
-
delete response.Message;
|
|
1561
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1306
|
+
response = new __BaseException({
|
|
1307
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1308
|
+
$fault: "client",
|
|
1309
|
+
$metadata: deserializeMetadata(output),
|
|
1310
|
+
});
|
|
1311
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1562
1312
|
}
|
|
1563
1313
|
});
|
|
1564
1314
|
}); };
|
|
@@ -1581,16 +1331,16 @@ export var deserializeAws_json1_0StartSyncExecutionCommand = function (output, c
|
|
|
1581
1331
|
});
|
|
1582
1332
|
}); };
|
|
1583
1333
|
var deserializeAws_json1_0StartSyncExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1584
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1585
|
-
var
|
|
1586
|
-
return __generator(this, function (
|
|
1587
|
-
switch (
|
|
1334
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1335
|
+
var _c;
|
|
1336
|
+
return __generator(this, function (_d) {
|
|
1337
|
+
switch (_d.label) {
|
|
1588
1338
|
case 0:
|
|
1589
1339
|
_a = [__assign({}, output)];
|
|
1590
|
-
|
|
1340
|
+
_c = {};
|
|
1591
1341
|
return [4, parseBody(output.body, context)];
|
|
1592
1342
|
case 1:
|
|
1593
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1343
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1594
1344
|
errorCode = "UnknownError";
|
|
1595
1345
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
1346
|
_b = errorCode;
|
|
@@ -1609,52 +1359,26 @@ var deserializeAws_json1_0StartSyncExecutionCommandError = function (output, con
|
|
|
1609
1359
|
case "com.amazonaws.sfn#StateMachineTypeNotSupported": return [3, 12];
|
|
1610
1360
|
}
|
|
1611
1361
|
return [3, 14];
|
|
1612
|
-
case 2:
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
case
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
case 4
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
case
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
case 6:
|
|
1625
|
-
_e = [{}];
|
|
1626
|
-
return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
1627
|
-
case 7:
|
|
1628
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1629
|
-
return [3, 15];
|
|
1630
|
-
case 8:
|
|
1631
|
-
_f = [{}];
|
|
1632
|
-
return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1633
|
-
case 9:
|
|
1634
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1635
|
-
return [3, 15];
|
|
1636
|
-
case 10:
|
|
1637
|
-
_g = [{}];
|
|
1638
|
-
return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1639
|
-
case 11:
|
|
1640
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1641
|
-
return [3, 15];
|
|
1642
|
-
case 12:
|
|
1643
|
-
_h = [{}];
|
|
1644
|
-
return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
1645
|
-
case 13:
|
|
1646
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1647
|
-
return [3, 15];
|
|
1362
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1363
|
+
case 3: throw _d.sent();
|
|
1364
|
+
case 4: return [4, deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context)];
|
|
1365
|
+
case 5: throw _d.sent();
|
|
1366
|
+
case 6: return [4, deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)];
|
|
1367
|
+
case 7: throw _d.sent();
|
|
1368
|
+
case 8: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1369
|
+
case 9: throw _d.sent();
|
|
1370
|
+
case 10: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1371
|
+
case 11: throw _d.sent();
|
|
1372
|
+
case 12: return [4, deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)];
|
|
1373
|
+
case 13: throw _d.sent();
|
|
1648
1374
|
case 14:
|
|
1649
1375
|
parsedBody = parsedOutput.body;
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
response
|
|
1656
|
-
delete response.Message;
|
|
1657
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1376
|
+
response = new __BaseException({
|
|
1377
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1378
|
+
$fault: "client",
|
|
1379
|
+
$metadata: deserializeMetadata(output),
|
|
1380
|
+
});
|
|
1381
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1658
1382
|
}
|
|
1659
1383
|
});
|
|
1660
1384
|
}); };
|
|
@@ -1677,16 +1401,16 @@ export var deserializeAws_json1_0StopExecutionCommand = function (output, contex
|
|
|
1677
1401
|
});
|
|
1678
1402
|
}); };
|
|
1679
1403
|
var deserializeAws_json1_0StopExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1681
|
-
var
|
|
1682
|
-
return __generator(this, function (
|
|
1683
|
-
switch (
|
|
1404
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1405
|
+
var _c;
|
|
1406
|
+
return __generator(this, function (_d) {
|
|
1407
|
+
switch (_d.label) {
|
|
1684
1408
|
case 0:
|
|
1685
1409
|
_a = [__assign({}, output)];
|
|
1686
|
-
|
|
1410
|
+
_c = {};
|
|
1687
1411
|
return [4, parseBody(output.body, context)];
|
|
1688
1412
|
case 1:
|
|
1689
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1413
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1690
1414
|
errorCode = "UnknownError";
|
|
1691
1415
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
1416
|
_b = errorCode;
|
|
@@ -1697,28 +1421,18 @@ var deserializeAws_json1_0StopExecutionCommandError = function (output, context)
|
|
|
1697
1421
|
case "com.amazonaws.sfn#InvalidArn": return [3, 4];
|
|
1698
1422
|
}
|
|
1699
1423
|
return [3, 6];
|
|
1700
|
-
case 2:
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
case
|
|
1704
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1705
|
-
return [3, 7];
|
|
1706
|
-
case 4:
|
|
1707
|
-
_d = [{}];
|
|
1708
|
-
return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1709
|
-
case 5:
|
|
1710
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1711
|
-
return [3, 7];
|
|
1424
|
+
case 2: return [4, deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)];
|
|
1425
|
+
case 3: throw _d.sent();
|
|
1426
|
+
case 4: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1427
|
+
case 5: throw _d.sent();
|
|
1712
1428
|
case 6:
|
|
1713
1429
|
parsedBody = parsedOutput.body;
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
response
|
|
1720
|
-
delete response.Message;
|
|
1721
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1430
|
+
response = new __BaseException({
|
|
1431
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1432
|
+
$fault: "client",
|
|
1433
|
+
$metadata: deserializeMetadata(output),
|
|
1434
|
+
});
|
|
1435
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1722
1436
|
}
|
|
1723
1437
|
});
|
|
1724
1438
|
}); };
|
|
@@ -1741,16 +1455,16 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
|
|
|
1741
1455
|
});
|
|
1742
1456
|
}); };
|
|
1743
1457
|
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1744
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1745
|
-
var
|
|
1746
|
-
return __generator(this, function (
|
|
1747
|
-
switch (
|
|
1458
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1459
|
+
var _c;
|
|
1460
|
+
return __generator(this, function (_d) {
|
|
1461
|
+
switch (_d.label) {
|
|
1748
1462
|
case 0:
|
|
1749
1463
|
_a = [__assign({}, output)];
|
|
1750
|
-
|
|
1464
|
+
_c = {};
|
|
1751
1465
|
return [4, parseBody(output.body, context)];
|
|
1752
1466
|
case 1:
|
|
1753
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1467
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1754
1468
|
errorCode = "UnknownError";
|
|
1755
1469
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
1470
|
_b = errorCode;
|
|
@@ -1763,34 +1477,20 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
1763
1477
|
case "com.amazonaws.sfn#TooManyTags": return [3, 6];
|
|
1764
1478
|
}
|
|
1765
1479
|
return [3, 8];
|
|
1766
|
-
case 2:
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
case
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
case 4:
|
|
1773
|
-
_d = [{}];
|
|
1774
|
-
return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1775
|
-
case 5:
|
|
1776
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1777
|
-
return [3, 9];
|
|
1778
|
-
case 6:
|
|
1779
|
-
_e = [{}];
|
|
1780
|
-
return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
1781
|
-
case 7:
|
|
1782
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1783
|
-
return [3, 9];
|
|
1480
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1481
|
+
case 3: throw _d.sent();
|
|
1482
|
+
case 4: return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1483
|
+
case 5: throw _d.sent();
|
|
1484
|
+
case 6: return [4, deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)];
|
|
1485
|
+
case 7: throw _d.sent();
|
|
1784
1486
|
case 8:
|
|
1785
1487
|
parsedBody = parsedOutput.body;
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
response
|
|
1792
|
-
delete response.Message;
|
|
1793
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1488
|
+
response = new __BaseException({
|
|
1489
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1490
|
+
$fault: "client",
|
|
1491
|
+
$metadata: deserializeMetadata(output),
|
|
1492
|
+
});
|
|
1493
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1794
1494
|
}
|
|
1795
1495
|
});
|
|
1796
1496
|
}); };
|
|
@@ -1813,16 +1513,16 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
|
|
|
1813
1513
|
});
|
|
1814
1514
|
}); };
|
|
1815
1515
|
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1816
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1817
|
-
var
|
|
1818
|
-
return __generator(this, function (
|
|
1819
|
-
switch (
|
|
1516
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1517
|
+
var _c;
|
|
1518
|
+
return __generator(this, function (_d) {
|
|
1519
|
+
switch (_d.label) {
|
|
1820
1520
|
case 0:
|
|
1821
1521
|
_a = [__assign({}, output)];
|
|
1822
|
-
|
|
1522
|
+
_c = {};
|
|
1823
1523
|
return [4, parseBody(output.body, context)];
|
|
1824
1524
|
case 1:
|
|
1825
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1525
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1826
1526
|
errorCode = "UnknownError";
|
|
1827
1527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1828
1528
|
_b = errorCode;
|
|
@@ -1833,28 +1533,18 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
1833
1533
|
case "com.amazonaws.sfn#ResourceNotFound": return [3, 4];
|
|
1834
1534
|
}
|
|
1835
1535
|
return [3, 6];
|
|
1836
|
-
case 2:
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
case
|
|
1840
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1841
|
-
return [3, 7];
|
|
1842
|
-
case 4:
|
|
1843
|
-
_d = [{}];
|
|
1844
|
-
return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1845
|
-
case 5:
|
|
1846
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1847
|
-
return [3, 7];
|
|
1536
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1537
|
+
case 3: throw _d.sent();
|
|
1538
|
+
case 4: return [4, deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)];
|
|
1539
|
+
case 5: throw _d.sent();
|
|
1848
1540
|
case 6:
|
|
1849
1541
|
parsedBody = parsedOutput.body;
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
response
|
|
1856
|
-
delete response.Message;
|
|
1857
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1542
|
+
response = new __BaseException({
|
|
1543
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1544
|
+
$fault: "client",
|
|
1545
|
+
$metadata: deserializeMetadata(output),
|
|
1546
|
+
});
|
|
1547
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1858
1548
|
}
|
|
1859
1549
|
});
|
|
1860
1550
|
}); };
|
|
@@ -1877,16 +1567,16 @@ export var deserializeAws_json1_0UpdateStateMachineCommand = function (output, c
|
|
|
1877
1567
|
});
|
|
1878
1568
|
}); };
|
|
1879
1569
|
var deserializeAws_json1_0UpdateStateMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1880
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1881
|
-
var
|
|
1882
|
-
return __generator(this, function (
|
|
1883
|
-
switch (
|
|
1570
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1571
|
+
var _c;
|
|
1572
|
+
return __generator(this, function (_d) {
|
|
1573
|
+
switch (_d.label) {
|
|
1884
1574
|
case 0:
|
|
1885
1575
|
_a = [__assign({}, output)];
|
|
1886
|
-
|
|
1576
|
+
_c = {};
|
|
1887
1577
|
return [4, parseBody(output.body, context)];
|
|
1888
1578
|
case 1:
|
|
1889
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1579
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1890
1580
|
errorCode = "UnknownError";
|
|
1891
1581
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
1582
|
_b = errorCode;
|
|
@@ -1907,275 +1597,245 @@ var deserializeAws_json1_0UpdateStateMachineCommandError = function (output, con
|
|
|
1907
1597
|
case "com.amazonaws.sfn#StateMachineDoesNotExist": return [3, 14];
|
|
1908
1598
|
}
|
|
1909
1599
|
return [3, 16];
|
|
1910
|
-
case 2:
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
case
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
case 4
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
case
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
case
|
|
1923
|
-
|
|
1924
|
-
return [4, deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context)];
|
|
1925
|
-
case 7:
|
|
1926
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1927
|
-
return [3, 17];
|
|
1928
|
-
case 8:
|
|
1929
|
-
_f = [{}];
|
|
1930
|
-
return [4, deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)];
|
|
1931
|
-
case 9:
|
|
1932
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1933
|
-
return [3, 17];
|
|
1934
|
-
case 10:
|
|
1935
|
-
_g = [{}];
|
|
1936
|
-
return [4, deserializeAws_json1_0MissingRequiredParameterResponse(parsedOutput, context)];
|
|
1937
|
-
case 11:
|
|
1938
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1939
|
-
return [3, 17];
|
|
1940
|
-
case 12:
|
|
1941
|
-
_h = [{}];
|
|
1942
|
-
return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1943
|
-
case 13:
|
|
1944
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1945
|
-
return [3, 17];
|
|
1946
|
-
case 14:
|
|
1947
|
-
_j = [{}];
|
|
1948
|
-
return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1949
|
-
case 15:
|
|
1950
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1951
|
-
return [3, 17];
|
|
1600
|
+
case 2: return [4, deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)];
|
|
1601
|
+
case 3: throw _d.sent();
|
|
1602
|
+
case 4: return [4, deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context)];
|
|
1603
|
+
case 5: throw _d.sent();
|
|
1604
|
+
case 6: return [4, deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context)];
|
|
1605
|
+
case 7: throw _d.sent();
|
|
1606
|
+
case 8: return [4, deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)];
|
|
1607
|
+
case 9: throw _d.sent();
|
|
1608
|
+
case 10: return [4, deserializeAws_json1_0MissingRequiredParameterResponse(parsedOutput, context)];
|
|
1609
|
+
case 11: throw _d.sent();
|
|
1610
|
+
case 12: return [4, deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)];
|
|
1611
|
+
case 13: throw _d.sent();
|
|
1612
|
+
case 14: return [4, deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)];
|
|
1613
|
+
case 15: throw _d.sent();
|
|
1952
1614
|
case 16:
|
|
1953
1615
|
parsedBody = parsedOutput.body;
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
response
|
|
1960
|
-
delete response.Message;
|
|
1961
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1616
|
+
response = new __BaseException({
|
|
1617
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1618
|
+
$fault: "client",
|
|
1619
|
+
$metadata: deserializeMetadata(output),
|
|
1620
|
+
});
|
|
1621
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1962
1622
|
}
|
|
1963
1623
|
});
|
|
1964
1624
|
}); };
|
|
1965
1625
|
var deserializeAws_json1_0ActivityDoesNotExistResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1966
|
-
var body, deserialized,
|
|
1626
|
+
var body, deserialized, exception;
|
|
1967
1627
|
return __generator(this, function (_a) {
|
|
1968
1628
|
body = parsedOutput.body;
|
|
1969
1629
|
deserialized = deserializeAws_json1_0ActivityDoesNotExist(body, context);
|
|
1970
|
-
|
|
1971
|
-
return [2,
|
|
1630
|
+
exception = new ActivityDoesNotExist(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1631
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1972
1632
|
});
|
|
1973
1633
|
}); };
|
|
1974
1634
|
var deserializeAws_json1_0ActivityLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1975
|
-
var body, deserialized,
|
|
1635
|
+
var body, deserialized, exception;
|
|
1976
1636
|
return __generator(this, function (_a) {
|
|
1977
1637
|
body = parsedOutput.body;
|
|
1978
1638
|
deserialized = deserializeAws_json1_0ActivityLimitExceeded(body, context);
|
|
1979
|
-
|
|
1980
|
-
return [2,
|
|
1639
|
+
exception = new ActivityLimitExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1640
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1981
1641
|
});
|
|
1982
1642
|
}); };
|
|
1983
1643
|
var deserializeAws_json1_0ActivityWorkerLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1984
|
-
var body, deserialized,
|
|
1644
|
+
var body, deserialized, exception;
|
|
1985
1645
|
return __generator(this, function (_a) {
|
|
1986
1646
|
body = parsedOutput.body;
|
|
1987
1647
|
deserialized = deserializeAws_json1_0ActivityWorkerLimitExceeded(body, context);
|
|
1988
|
-
|
|
1989
|
-
return [2,
|
|
1648
|
+
exception = new ActivityWorkerLimitExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1649
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1990
1650
|
});
|
|
1991
1651
|
}); };
|
|
1992
1652
|
var deserializeAws_json1_0ExecutionAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1993
|
-
var body, deserialized,
|
|
1653
|
+
var body, deserialized, exception;
|
|
1994
1654
|
return __generator(this, function (_a) {
|
|
1995
1655
|
body = parsedOutput.body;
|
|
1996
1656
|
deserialized = deserializeAws_json1_0ExecutionAlreadyExists(body, context);
|
|
1997
|
-
|
|
1998
|
-
return [2,
|
|
1657
|
+
exception = new ExecutionAlreadyExists(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1658
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1999
1659
|
});
|
|
2000
1660
|
}); };
|
|
2001
1661
|
var deserializeAws_json1_0ExecutionDoesNotExistResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2002
|
-
var body, deserialized,
|
|
1662
|
+
var body, deserialized, exception;
|
|
2003
1663
|
return __generator(this, function (_a) {
|
|
2004
1664
|
body = parsedOutput.body;
|
|
2005
1665
|
deserialized = deserializeAws_json1_0ExecutionDoesNotExist(body, context);
|
|
2006
|
-
|
|
2007
|
-
return [2,
|
|
1666
|
+
exception = new ExecutionDoesNotExist(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1667
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2008
1668
|
});
|
|
2009
1669
|
}); };
|
|
2010
1670
|
var deserializeAws_json1_0ExecutionLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2011
|
-
var body, deserialized,
|
|
1671
|
+
var body, deserialized, exception;
|
|
2012
1672
|
return __generator(this, function (_a) {
|
|
2013
1673
|
body = parsedOutput.body;
|
|
2014
1674
|
deserialized = deserializeAws_json1_0ExecutionLimitExceeded(body, context);
|
|
2015
|
-
|
|
2016
|
-
return [2,
|
|
1675
|
+
exception = new ExecutionLimitExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1676
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2017
1677
|
});
|
|
2018
1678
|
}); };
|
|
2019
1679
|
var deserializeAws_json1_0InvalidArnResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2020
|
-
var body, deserialized,
|
|
1680
|
+
var body, deserialized, exception;
|
|
2021
1681
|
return __generator(this, function (_a) {
|
|
2022
1682
|
body = parsedOutput.body;
|
|
2023
1683
|
deserialized = deserializeAws_json1_0InvalidArn(body, context);
|
|
2024
|
-
|
|
2025
|
-
return [2,
|
|
1684
|
+
exception = new InvalidArn(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1685
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2026
1686
|
});
|
|
2027
1687
|
}); };
|
|
2028
1688
|
var deserializeAws_json1_0InvalidDefinitionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2029
|
-
var body, deserialized,
|
|
1689
|
+
var body, deserialized, exception;
|
|
2030
1690
|
return __generator(this, function (_a) {
|
|
2031
1691
|
body = parsedOutput.body;
|
|
2032
1692
|
deserialized = deserializeAws_json1_0InvalidDefinition(body, context);
|
|
2033
|
-
|
|
2034
|
-
return [2,
|
|
1693
|
+
exception = new InvalidDefinition(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1694
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2035
1695
|
});
|
|
2036
1696
|
}); };
|
|
2037
1697
|
var deserializeAws_json1_0InvalidExecutionInputResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2038
|
-
var body, deserialized,
|
|
1698
|
+
var body, deserialized, exception;
|
|
2039
1699
|
return __generator(this, function (_a) {
|
|
2040
1700
|
body = parsedOutput.body;
|
|
2041
1701
|
deserialized = deserializeAws_json1_0InvalidExecutionInput(body, context);
|
|
2042
|
-
|
|
2043
|
-
return [2,
|
|
1702
|
+
exception = new InvalidExecutionInput(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1703
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2044
1704
|
});
|
|
2045
1705
|
}); };
|
|
2046
1706
|
var deserializeAws_json1_0InvalidLoggingConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2047
|
-
var body, deserialized,
|
|
1707
|
+
var body, deserialized, exception;
|
|
2048
1708
|
return __generator(this, function (_a) {
|
|
2049
1709
|
body = parsedOutput.body;
|
|
2050
1710
|
deserialized = deserializeAws_json1_0InvalidLoggingConfiguration(body, context);
|
|
2051
|
-
|
|
2052
|
-
return [2,
|
|
1711
|
+
exception = new InvalidLoggingConfiguration(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1712
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2053
1713
|
});
|
|
2054
1714
|
}); };
|
|
2055
1715
|
var deserializeAws_json1_0InvalidNameResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2056
|
-
var body, deserialized,
|
|
1716
|
+
var body, deserialized, exception;
|
|
2057
1717
|
return __generator(this, function (_a) {
|
|
2058
1718
|
body = parsedOutput.body;
|
|
2059
1719
|
deserialized = deserializeAws_json1_0InvalidName(body, context);
|
|
2060
|
-
|
|
2061
|
-
return [2,
|
|
1720
|
+
exception = new InvalidName(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1721
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2062
1722
|
});
|
|
2063
1723
|
}); };
|
|
2064
1724
|
var deserializeAws_json1_0InvalidOutputResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2065
|
-
var body, deserialized,
|
|
1725
|
+
var body, deserialized, exception;
|
|
2066
1726
|
return __generator(this, function (_a) {
|
|
2067
1727
|
body = parsedOutput.body;
|
|
2068
1728
|
deserialized = deserializeAws_json1_0InvalidOutput(body, context);
|
|
2069
|
-
|
|
2070
|
-
return [2,
|
|
1729
|
+
exception = new InvalidOutput(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1730
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2071
1731
|
});
|
|
2072
1732
|
}); };
|
|
2073
1733
|
var deserializeAws_json1_0InvalidTokenResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2074
|
-
var body, deserialized,
|
|
1734
|
+
var body, deserialized, exception;
|
|
2075
1735
|
return __generator(this, function (_a) {
|
|
2076
1736
|
body = parsedOutput.body;
|
|
2077
1737
|
deserialized = deserializeAws_json1_0InvalidToken(body, context);
|
|
2078
|
-
|
|
2079
|
-
return [2,
|
|
1738
|
+
exception = new InvalidToken(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1739
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2080
1740
|
});
|
|
2081
1741
|
}); };
|
|
2082
1742
|
var deserializeAws_json1_0InvalidTracingConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2083
|
-
var body, deserialized,
|
|
1743
|
+
var body, deserialized, exception;
|
|
2084
1744
|
return __generator(this, function (_a) {
|
|
2085
1745
|
body = parsedOutput.body;
|
|
2086
1746
|
deserialized = deserializeAws_json1_0InvalidTracingConfiguration(body, context);
|
|
2087
|
-
|
|
2088
|
-
return [2,
|
|
1747
|
+
exception = new InvalidTracingConfiguration(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1748
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2089
1749
|
});
|
|
2090
1750
|
}); };
|
|
2091
1751
|
var deserializeAws_json1_0MissingRequiredParameterResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2092
|
-
var body, deserialized,
|
|
1752
|
+
var body, deserialized, exception;
|
|
2093
1753
|
return __generator(this, function (_a) {
|
|
2094
1754
|
body = parsedOutput.body;
|
|
2095
1755
|
deserialized = deserializeAws_json1_0MissingRequiredParameter(body, context);
|
|
2096
|
-
|
|
2097
|
-
return [2,
|
|
1756
|
+
exception = new MissingRequiredParameter(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1757
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2098
1758
|
});
|
|
2099
1759
|
}); };
|
|
2100
1760
|
var deserializeAws_json1_0ResourceNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2101
|
-
var body, deserialized,
|
|
1761
|
+
var body, deserialized, exception;
|
|
2102
1762
|
return __generator(this, function (_a) {
|
|
2103
1763
|
body = parsedOutput.body;
|
|
2104
1764
|
deserialized = deserializeAws_json1_0ResourceNotFound(body, context);
|
|
2105
|
-
|
|
2106
|
-
return [2,
|
|
1765
|
+
exception = new ResourceNotFound(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1766
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2107
1767
|
});
|
|
2108
1768
|
}); };
|
|
2109
1769
|
var deserializeAws_json1_0StateMachineAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2110
|
-
var body, deserialized,
|
|
1770
|
+
var body, deserialized, exception;
|
|
2111
1771
|
return __generator(this, function (_a) {
|
|
2112
1772
|
body = parsedOutput.body;
|
|
2113
1773
|
deserialized = deserializeAws_json1_0StateMachineAlreadyExists(body, context);
|
|
2114
|
-
|
|
2115
|
-
return [2,
|
|
1774
|
+
exception = new StateMachineAlreadyExists(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1775
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2116
1776
|
});
|
|
2117
1777
|
}); };
|
|
2118
1778
|
var deserializeAws_json1_0StateMachineDeletingResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2119
|
-
var body, deserialized,
|
|
1779
|
+
var body, deserialized, exception;
|
|
2120
1780
|
return __generator(this, function (_a) {
|
|
2121
1781
|
body = parsedOutput.body;
|
|
2122
1782
|
deserialized = deserializeAws_json1_0StateMachineDeleting(body, context);
|
|
2123
|
-
|
|
2124
|
-
return [2,
|
|
1783
|
+
exception = new StateMachineDeleting(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1784
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2125
1785
|
});
|
|
2126
1786
|
}); };
|
|
2127
1787
|
var deserializeAws_json1_0StateMachineDoesNotExistResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2128
|
-
var body, deserialized,
|
|
1788
|
+
var body, deserialized, exception;
|
|
2129
1789
|
return __generator(this, function (_a) {
|
|
2130
1790
|
body = parsedOutput.body;
|
|
2131
1791
|
deserialized = deserializeAws_json1_0StateMachineDoesNotExist(body, context);
|
|
2132
|
-
|
|
2133
|
-
return [2,
|
|
1792
|
+
exception = new StateMachineDoesNotExist(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1793
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2134
1794
|
});
|
|
2135
1795
|
}); };
|
|
2136
1796
|
var deserializeAws_json1_0StateMachineLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2137
|
-
var body, deserialized,
|
|
1797
|
+
var body, deserialized, exception;
|
|
2138
1798
|
return __generator(this, function (_a) {
|
|
2139
1799
|
body = parsedOutput.body;
|
|
2140
1800
|
deserialized = deserializeAws_json1_0StateMachineLimitExceeded(body, context);
|
|
2141
|
-
|
|
2142
|
-
return [2,
|
|
1801
|
+
exception = new StateMachineLimitExceeded(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1802
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2143
1803
|
});
|
|
2144
1804
|
}); };
|
|
2145
1805
|
var deserializeAws_json1_0StateMachineTypeNotSupportedResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2146
|
-
var body, deserialized,
|
|
1806
|
+
var body, deserialized, exception;
|
|
2147
1807
|
return __generator(this, function (_a) {
|
|
2148
1808
|
body = parsedOutput.body;
|
|
2149
1809
|
deserialized = deserializeAws_json1_0StateMachineTypeNotSupported(body, context);
|
|
2150
|
-
|
|
2151
|
-
return [2,
|
|
1810
|
+
exception = new StateMachineTypeNotSupported(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1811
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2152
1812
|
});
|
|
2153
1813
|
}); };
|
|
2154
1814
|
var deserializeAws_json1_0TaskDoesNotExistResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2155
|
-
var body, deserialized,
|
|
1815
|
+
var body, deserialized, exception;
|
|
2156
1816
|
return __generator(this, function (_a) {
|
|
2157
1817
|
body = parsedOutput.body;
|
|
2158
1818
|
deserialized = deserializeAws_json1_0TaskDoesNotExist(body, context);
|
|
2159
|
-
|
|
2160
|
-
return [2,
|
|
1819
|
+
exception = new TaskDoesNotExist(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1820
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2161
1821
|
});
|
|
2162
1822
|
}); };
|
|
2163
1823
|
var deserializeAws_json1_0TaskTimedOutResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2164
|
-
var body, deserialized,
|
|
1824
|
+
var body, deserialized, exception;
|
|
2165
1825
|
return __generator(this, function (_a) {
|
|
2166
1826
|
body = parsedOutput.body;
|
|
2167
1827
|
deserialized = deserializeAws_json1_0TaskTimedOut(body, context);
|
|
2168
|
-
|
|
2169
|
-
return [2,
|
|
1828
|
+
exception = new TaskTimedOut(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1829
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2170
1830
|
});
|
|
2171
1831
|
}); };
|
|
2172
1832
|
var deserializeAws_json1_0TooManyTagsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2173
|
-
var body, deserialized,
|
|
1833
|
+
var body, deserialized, exception;
|
|
2174
1834
|
return __generator(this, function (_a) {
|
|
2175
1835
|
body = parsedOutput.body;
|
|
2176
1836
|
deserialized = deserializeAws_json1_0TooManyTags(body, context);
|
|
2177
|
-
|
|
2178
|
-
return [2,
|
|
1837
|
+
exception = new TooManyTags(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1838
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2179
1839
|
});
|
|
2180
1840
|
}); };
|
|
2181
1841
|
var serializeAws_json1_0CloudWatchLogsLogGroup = function (input, context) {
|
|
@@ -2336,7 +1996,7 @@ var deserializeAws_json1_0ActivityLimitExceeded = function (output, context) {
|
|
|
2336
1996
|
};
|
|
2337
1997
|
};
|
|
2338
1998
|
var deserializeAws_json1_0ActivityList = function (output, context) {
|
|
2339
|
-
|
|
1999
|
+
var retVal = (output || [])
|
|
2340
2000
|
.filter(function (e) { return e != null; })
|
|
2341
2001
|
.map(function (entry) {
|
|
2342
2002
|
if (entry === null) {
|
|
@@ -2344,6 +2004,7 @@ var deserializeAws_json1_0ActivityList = function (output, context) {
|
|
|
2344
2004
|
}
|
|
2345
2005
|
return deserializeAws_json1_0ActivityListItem(entry, context);
|
|
2346
2006
|
});
|
|
2007
|
+
return retVal;
|
|
2347
2008
|
};
|
|
2348
2009
|
var deserializeAws_json1_0ActivityListItem = function (output, context) {
|
|
2349
2010
|
return {
|
|
@@ -2529,7 +2190,7 @@ var deserializeAws_json1_0ExecutionLimitExceeded = function (output, context) {
|
|
|
2529
2190
|
};
|
|
2530
2191
|
};
|
|
2531
2192
|
var deserializeAws_json1_0ExecutionList = function (output, context) {
|
|
2532
|
-
|
|
2193
|
+
var retVal = (output || [])
|
|
2533
2194
|
.filter(function (e) { return e != null; })
|
|
2534
2195
|
.map(function (entry) {
|
|
2535
2196
|
if (entry === null) {
|
|
@@ -2537,6 +2198,7 @@ var deserializeAws_json1_0ExecutionList = function (output, context) {
|
|
|
2537
2198
|
}
|
|
2538
2199
|
return deserializeAws_json1_0ExecutionListItem(entry, context);
|
|
2539
2200
|
});
|
|
2201
|
+
return retVal;
|
|
2540
2202
|
};
|
|
2541
2203
|
var deserializeAws_json1_0ExecutionListItem = function (output, context) {
|
|
2542
2204
|
return {
|
|
@@ -2703,7 +2365,7 @@ var deserializeAws_json1_0HistoryEventExecutionDataDetails = function (output, c
|
|
|
2703
2365
|
};
|
|
2704
2366
|
};
|
|
2705
2367
|
var deserializeAws_json1_0HistoryEventList = function (output, context) {
|
|
2706
|
-
|
|
2368
|
+
var retVal = (output || [])
|
|
2707
2369
|
.filter(function (e) { return e != null; })
|
|
2708
2370
|
.map(function (entry) {
|
|
2709
2371
|
if (entry === null) {
|
|
@@ -2711,6 +2373,7 @@ var deserializeAws_json1_0HistoryEventList = function (output, context) {
|
|
|
2711
2373
|
}
|
|
2712
2374
|
return deserializeAws_json1_0HistoryEvent(entry, context);
|
|
2713
2375
|
});
|
|
2376
|
+
return retVal;
|
|
2714
2377
|
};
|
|
2715
2378
|
var deserializeAws_json1_0InvalidArn = function (output, context) {
|
|
2716
2379
|
return {
|
|
@@ -2833,7 +2496,7 @@ var deserializeAws_json1_0LogDestination = function (output, context) {
|
|
|
2833
2496
|
};
|
|
2834
2497
|
};
|
|
2835
2498
|
var deserializeAws_json1_0LogDestinationList = function (output, context) {
|
|
2836
|
-
|
|
2499
|
+
var retVal = (output || [])
|
|
2837
2500
|
.filter(function (e) { return e != null; })
|
|
2838
2501
|
.map(function (entry) {
|
|
2839
2502
|
if (entry === null) {
|
|
@@ -2841,6 +2504,7 @@ var deserializeAws_json1_0LogDestinationList = function (output, context) {
|
|
|
2841
2504
|
}
|
|
2842
2505
|
return deserializeAws_json1_0LogDestination(entry, context);
|
|
2843
2506
|
});
|
|
2507
|
+
return retVal;
|
|
2844
2508
|
};
|
|
2845
2509
|
var deserializeAws_json1_0LoggingConfiguration = function (output, context) {
|
|
2846
2510
|
return {
|
|
@@ -2957,7 +2621,7 @@ var deserializeAws_json1_0StateMachineLimitExceeded = function (output, context)
|
|
|
2957
2621
|
};
|
|
2958
2622
|
};
|
|
2959
2623
|
var deserializeAws_json1_0StateMachineList = function (output, context) {
|
|
2960
|
-
|
|
2624
|
+
var retVal = (output || [])
|
|
2961
2625
|
.filter(function (e) { return e != null; })
|
|
2962
2626
|
.map(function (entry) {
|
|
2963
2627
|
if (entry === null) {
|
|
@@ -2965,6 +2629,7 @@ var deserializeAws_json1_0StateMachineList = function (output, context) {
|
|
|
2965
2629
|
}
|
|
2966
2630
|
return deserializeAws_json1_0StateMachineListItem(entry, context);
|
|
2967
2631
|
});
|
|
2632
|
+
return retVal;
|
|
2968
2633
|
};
|
|
2969
2634
|
var deserializeAws_json1_0StateMachineListItem = function (output, context) {
|
|
2970
2635
|
return {
|
|
@@ -2995,7 +2660,7 @@ var deserializeAws_json1_0Tag = function (output, context) {
|
|
|
2995
2660
|
};
|
|
2996
2661
|
};
|
|
2997
2662
|
var deserializeAws_json1_0TagList = function (output, context) {
|
|
2998
|
-
|
|
2663
|
+
var retVal = (output || [])
|
|
2999
2664
|
.filter(function (e) { return e != null; })
|
|
3000
2665
|
.map(function (entry) {
|
|
3001
2666
|
if (entry === null) {
|
|
@@ -3003,6 +2668,7 @@ var deserializeAws_json1_0TagList = function (output, context) {
|
|
|
3003
2668
|
}
|
|
3004
2669
|
return deserializeAws_json1_0Tag(entry, context);
|
|
3005
2670
|
});
|
|
2671
|
+
return retVal;
|
|
3006
2672
|
};
|
|
3007
2673
|
var deserializeAws_json1_0TagResourceOutput = function (output, context) {
|
|
3008
2674
|
return {};
|