@aws-sdk/client-sfn 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +255 -286
- package/dist-es/protocols/Aws_json1_0.js +222 -253
- package/package.json +26 -26
|
@@ -262,8 +262,7 @@ const deserializeAws_json1_0CreateActivityCommandError = async (output, context)
|
|
|
262
262
|
body: await parseBody(output.body, context),
|
|
263
263
|
};
|
|
264
264
|
let response;
|
|
265
|
-
|
|
266
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
267
266
|
switch (errorCode) {
|
|
268
267
|
case "ActivityLimitExceeded":
|
|
269
268
|
case "com.amazonaws.sfn#ActivityLimitExceeded":
|
|
@@ -276,10 +275,12 @@ const deserializeAws_json1_0CreateActivityCommandError = async (output, context)
|
|
|
276
275
|
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
277
276
|
default:
|
|
278
277
|
const parsedBody = parsedOutput.body;
|
|
278
|
+
const $metadata = deserializeMetadata(output);
|
|
279
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
279
280
|
response = new SFNServiceException_1.SFNServiceException({
|
|
280
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
281
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
281
282
|
$fault: "client",
|
|
282
|
-
$metadata
|
|
283
|
+
$metadata,
|
|
283
284
|
});
|
|
284
285
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
285
286
|
}
|
|
@@ -304,8 +305,7 @@ const deserializeAws_json1_0CreateStateMachineCommandError = async (output, cont
|
|
|
304
305
|
body: await parseBody(output.body, context),
|
|
305
306
|
};
|
|
306
307
|
let response;
|
|
307
|
-
|
|
308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
309
|
switch (errorCode) {
|
|
310
310
|
case "InvalidArn":
|
|
311
311
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -339,10 +339,12 @@ const deserializeAws_json1_0CreateStateMachineCommandError = async (output, cont
|
|
|
339
339
|
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
340
340
|
default:
|
|
341
341
|
const parsedBody = parsedOutput.body;
|
|
342
|
+
const $metadata = deserializeMetadata(output);
|
|
343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
342
344
|
response = new SFNServiceException_1.SFNServiceException({
|
|
343
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
344
346
|
$fault: "client",
|
|
345
|
-
$metadata
|
|
347
|
+
$metadata,
|
|
346
348
|
});
|
|
347
349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
348
350
|
}
|
|
@@ -367,18 +369,19 @@ const deserializeAws_json1_0DeleteActivityCommandError = async (output, context)
|
|
|
367
369
|
body: await parseBody(output.body, context),
|
|
368
370
|
};
|
|
369
371
|
let response;
|
|
370
|
-
|
|
371
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
373
|
switch (errorCode) {
|
|
373
374
|
case "InvalidArn":
|
|
374
375
|
case "com.amazonaws.sfn#InvalidArn":
|
|
375
376
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
376
377
|
default:
|
|
377
378
|
const parsedBody = parsedOutput.body;
|
|
379
|
+
const $metadata = deserializeMetadata(output);
|
|
380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
378
381
|
response = new SFNServiceException_1.SFNServiceException({
|
|
379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
380
383
|
$fault: "client",
|
|
381
|
-
$metadata
|
|
384
|
+
$metadata,
|
|
382
385
|
});
|
|
383
386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
384
387
|
}
|
|
@@ -403,18 +406,19 @@ const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, cont
|
|
|
403
406
|
body: await parseBody(output.body, context),
|
|
404
407
|
};
|
|
405
408
|
let response;
|
|
406
|
-
|
|
407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
408
410
|
switch (errorCode) {
|
|
409
411
|
case "InvalidArn":
|
|
410
412
|
case "com.amazonaws.sfn#InvalidArn":
|
|
411
413
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
412
414
|
default:
|
|
413
415
|
const parsedBody = parsedOutput.body;
|
|
416
|
+
const $metadata = deserializeMetadata(output);
|
|
417
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
414
418
|
response = new SFNServiceException_1.SFNServiceException({
|
|
415
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
419
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
416
420
|
$fault: "client",
|
|
417
|
-
$metadata
|
|
421
|
+
$metadata,
|
|
418
422
|
});
|
|
419
423
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
420
424
|
}
|
|
@@ -439,8 +443,7 @@ const deserializeAws_json1_0DescribeActivityCommandError = async (output, contex
|
|
|
439
443
|
body: await parseBody(output.body, context),
|
|
440
444
|
};
|
|
441
445
|
let response;
|
|
442
|
-
|
|
443
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
447
|
switch (errorCode) {
|
|
445
448
|
case "ActivityDoesNotExist":
|
|
446
449
|
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
@@ -450,10 +453,12 @@ const deserializeAws_json1_0DescribeActivityCommandError = async (output, contex
|
|
|
450
453
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
451
454
|
default:
|
|
452
455
|
const parsedBody = parsedOutput.body;
|
|
456
|
+
const $metadata = deserializeMetadata(output);
|
|
457
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
453
458
|
response = new SFNServiceException_1.SFNServiceException({
|
|
454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
459
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
455
460
|
$fault: "client",
|
|
456
|
-
$metadata
|
|
461
|
+
$metadata,
|
|
457
462
|
});
|
|
458
463
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
459
464
|
}
|
|
@@ -478,8 +483,7 @@ const deserializeAws_json1_0DescribeExecutionCommandError = async (output, conte
|
|
|
478
483
|
body: await parseBody(output.body, context),
|
|
479
484
|
};
|
|
480
485
|
let response;
|
|
481
|
-
|
|
482
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
487
|
switch (errorCode) {
|
|
484
488
|
case "ExecutionDoesNotExist":
|
|
485
489
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
@@ -489,10 +493,12 @@ const deserializeAws_json1_0DescribeExecutionCommandError = async (output, conte
|
|
|
489
493
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
490
494
|
default:
|
|
491
495
|
const parsedBody = parsedOutput.body;
|
|
496
|
+
const $metadata = deserializeMetadata(output);
|
|
497
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
492
498
|
response = new SFNServiceException_1.SFNServiceException({
|
|
493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
499
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
494
500
|
$fault: "client",
|
|
495
|
-
$metadata
|
|
501
|
+
$metadata,
|
|
496
502
|
});
|
|
497
503
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
498
504
|
}
|
|
@@ -517,8 +523,7 @@ const deserializeAws_json1_0DescribeStateMachineCommandError = async (output, co
|
|
|
517
523
|
body: await parseBody(output.body, context),
|
|
518
524
|
};
|
|
519
525
|
let response;
|
|
520
|
-
|
|
521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
527
|
switch (errorCode) {
|
|
523
528
|
case "InvalidArn":
|
|
524
529
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -528,10 +533,12 @@ const deserializeAws_json1_0DescribeStateMachineCommandError = async (output, co
|
|
|
528
533
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
529
534
|
default:
|
|
530
535
|
const parsedBody = parsedOutput.body;
|
|
536
|
+
const $metadata = deserializeMetadata(output);
|
|
537
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
531
538
|
response = new SFNServiceException_1.SFNServiceException({
|
|
532
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
539
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
533
540
|
$fault: "client",
|
|
534
|
-
$metadata
|
|
541
|
+
$metadata,
|
|
535
542
|
});
|
|
536
543
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
537
544
|
}
|
|
@@ -556,8 +563,7 @@ const deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = async
|
|
|
556
563
|
body: await parseBody(output.body, context),
|
|
557
564
|
};
|
|
558
565
|
let response;
|
|
559
|
-
|
|
560
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
567
|
switch (errorCode) {
|
|
562
568
|
case "ExecutionDoesNotExist":
|
|
563
569
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
@@ -567,10 +573,12 @@ const deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = async
|
|
|
567
573
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
568
574
|
default:
|
|
569
575
|
const parsedBody = parsedOutput.body;
|
|
576
|
+
const $metadata = deserializeMetadata(output);
|
|
577
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
570
578
|
response = new SFNServiceException_1.SFNServiceException({
|
|
571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
572
580
|
$fault: "client",
|
|
573
|
-
$metadata
|
|
581
|
+
$metadata,
|
|
574
582
|
});
|
|
575
583
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
576
584
|
}
|
|
@@ -595,8 +603,7 @@ const deserializeAws_json1_0GetActivityTaskCommandError = async (output, context
|
|
|
595
603
|
body: await parseBody(output.body, context),
|
|
596
604
|
};
|
|
597
605
|
let response;
|
|
598
|
-
|
|
599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
607
|
switch (errorCode) {
|
|
601
608
|
case "ActivityDoesNotExist":
|
|
602
609
|
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
@@ -609,10 +616,12 @@ const deserializeAws_json1_0GetActivityTaskCommandError = async (output, context
|
|
|
609
616
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
610
617
|
default:
|
|
611
618
|
const parsedBody = parsedOutput.body;
|
|
619
|
+
const $metadata = deserializeMetadata(output);
|
|
620
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
612
621
|
response = new SFNServiceException_1.SFNServiceException({
|
|
613
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
614
623
|
$fault: "client",
|
|
615
|
-
$metadata
|
|
624
|
+
$metadata,
|
|
616
625
|
});
|
|
617
626
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
618
627
|
}
|
|
@@ -637,8 +646,7 @@ const deserializeAws_json1_0GetExecutionHistoryCommandError = async (output, con
|
|
|
637
646
|
body: await parseBody(output.body, context),
|
|
638
647
|
};
|
|
639
648
|
let response;
|
|
640
|
-
|
|
641
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
650
|
switch (errorCode) {
|
|
643
651
|
case "ExecutionDoesNotExist":
|
|
644
652
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
@@ -651,10 +659,12 @@ const deserializeAws_json1_0GetExecutionHistoryCommandError = async (output, con
|
|
|
651
659
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
652
660
|
default:
|
|
653
661
|
const parsedBody = parsedOutput.body;
|
|
662
|
+
const $metadata = deserializeMetadata(output);
|
|
663
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
654
664
|
response = new SFNServiceException_1.SFNServiceException({
|
|
655
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
665
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
656
666
|
$fault: "client",
|
|
657
|
-
$metadata
|
|
667
|
+
$metadata,
|
|
658
668
|
});
|
|
659
669
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
660
670
|
}
|
|
@@ -679,18 +689,19 @@ const deserializeAws_json1_0ListActivitiesCommandError = async (output, context)
|
|
|
679
689
|
body: await parseBody(output.body, context),
|
|
680
690
|
};
|
|
681
691
|
let response;
|
|
682
|
-
|
|
683
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
693
|
switch (errorCode) {
|
|
685
694
|
case "InvalidToken":
|
|
686
695
|
case "com.amazonaws.sfn#InvalidToken":
|
|
687
696
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
688
697
|
default:
|
|
689
698
|
const parsedBody = parsedOutput.body;
|
|
699
|
+
const $metadata = deserializeMetadata(output);
|
|
700
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
690
701
|
response = new SFNServiceException_1.SFNServiceException({
|
|
691
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
692
703
|
$fault: "client",
|
|
693
|
-
$metadata
|
|
704
|
+
$metadata,
|
|
694
705
|
});
|
|
695
706
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
696
707
|
}
|
|
@@ -715,8 +726,7 @@ const deserializeAws_json1_0ListExecutionsCommandError = async (output, context)
|
|
|
715
726
|
body: await parseBody(output.body, context),
|
|
716
727
|
};
|
|
717
728
|
let response;
|
|
718
|
-
|
|
719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
730
|
switch (errorCode) {
|
|
721
731
|
case "InvalidArn":
|
|
722
732
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -732,10 +742,12 @@ const deserializeAws_json1_0ListExecutionsCommandError = async (output, context)
|
|
|
732
742
|
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
733
743
|
default:
|
|
734
744
|
const parsedBody = parsedOutput.body;
|
|
745
|
+
const $metadata = deserializeMetadata(output);
|
|
746
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
735
747
|
response = new SFNServiceException_1.SFNServiceException({
|
|
736
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
748
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
737
749
|
$fault: "client",
|
|
738
|
-
$metadata
|
|
750
|
+
$metadata,
|
|
739
751
|
});
|
|
740
752
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
741
753
|
}
|
|
@@ -760,18 +772,19 @@ const deserializeAws_json1_0ListStateMachinesCommandError = async (output, conte
|
|
|
760
772
|
body: await parseBody(output.body, context),
|
|
761
773
|
};
|
|
762
774
|
let response;
|
|
763
|
-
|
|
764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
776
|
switch (errorCode) {
|
|
766
777
|
case "InvalidToken":
|
|
767
778
|
case "com.amazonaws.sfn#InvalidToken":
|
|
768
779
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
769
780
|
default:
|
|
770
781
|
const parsedBody = parsedOutput.body;
|
|
782
|
+
const $metadata = deserializeMetadata(output);
|
|
783
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
771
784
|
response = new SFNServiceException_1.SFNServiceException({
|
|
772
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
785
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
773
786
|
$fault: "client",
|
|
774
|
-
$metadata
|
|
787
|
+
$metadata,
|
|
775
788
|
});
|
|
776
789
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
777
790
|
}
|
|
@@ -796,8 +809,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
796
809
|
body: await parseBody(output.body, context),
|
|
797
810
|
};
|
|
798
811
|
let response;
|
|
799
|
-
|
|
800
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
813
|
switch (errorCode) {
|
|
802
814
|
case "InvalidArn":
|
|
803
815
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -807,10 +819,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
807
819
|
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
808
820
|
default:
|
|
809
821
|
const parsedBody = parsedOutput.body;
|
|
822
|
+
const $metadata = deserializeMetadata(output);
|
|
823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
810
824
|
response = new SFNServiceException_1.SFNServiceException({
|
|
811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
812
826
|
$fault: "client",
|
|
813
|
-
$metadata
|
|
827
|
+
$metadata,
|
|
814
828
|
});
|
|
815
829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
816
830
|
}
|
|
@@ -835,8 +849,7 @@ const deserializeAws_json1_0SendTaskFailureCommandError = async (output, context
|
|
|
835
849
|
body: await parseBody(output.body, context),
|
|
836
850
|
};
|
|
837
851
|
let response;
|
|
838
|
-
|
|
839
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
853
|
switch (errorCode) {
|
|
841
854
|
case "InvalidToken":
|
|
842
855
|
case "com.amazonaws.sfn#InvalidToken":
|
|
@@ -849,10 +862,12 @@ const deserializeAws_json1_0SendTaskFailureCommandError = async (output, context
|
|
|
849
862
|
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
850
863
|
default:
|
|
851
864
|
const parsedBody = parsedOutput.body;
|
|
865
|
+
const $metadata = deserializeMetadata(output);
|
|
866
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
852
867
|
response = new SFNServiceException_1.SFNServiceException({
|
|
853
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
868
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
854
869
|
$fault: "client",
|
|
855
|
-
$metadata
|
|
870
|
+
$metadata,
|
|
856
871
|
});
|
|
857
872
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
858
873
|
}
|
|
@@ -877,8 +892,7 @@ const deserializeAws_json1_0SendTaskHeartbeatCommandError = async (output, conte
|
|
|
877
892
|
body: await parseBody(output.body, context),
|
|
878
893
|
};
|
|
879
894
|
let response;
|
|
880
|
-
|
|
881
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
896
|
switch (errorCode) {
|
|
883
897
|
case "InvalidToken":
|
|
884
898
|
case "com.amazonaws.sfn#InvalidToken":
|
|
@@ -891,10 +905,12 @@ const deserializeAws_json1_0SendTaskHeartbeatCommandError = async (output, conte
|
|
|
891
905
|
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
892
906
|
default:
|
|
893
907
|
const parsedBody = parsedOutput.body;
|
|
908
|
+
const $metadata = deserializeMetadata(output);
|
|
909
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
894
910
|
response = new SFNServiceException_1.SFNServiceException({
|
|
895
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
911
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
896
912
|
$fault: "client",
|
|
897
|
-
$metadata
|
|
913
|
+
$metadata,
|
|
898
914
|
});
|
|
899
915
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
900
916
|
}
|
|
@@ -919,8 +935,7 @@ const deserializeAws_json1_0SendTaskSuccessCommandError = async (output, context
|
|
|
919
935
|
body: await parseBody(output.body, context),
|
|
920
936
|
};
|
|
921
937
|
let response;
|
|
922
|
-
|
|
923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
939
|
switch (errorCode) {
|
|
925
940
|
case "InvalidOutput":
|
|
926
941
|
case "com.amazonaws.sfn#InvalidOutput":
|
|
@@ -936,10 +951,12 @@ const deserializeAws_json1_0SendTaskSuccessCommandError = async (output, context
|
|
|
936
951
|
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
937
952
|
default:
|
|
938
953
|
const parsedBody = parsedOutput.body;
|
|
954
|
+
const $metadata = deserializeMetadata(output);
|
|
955
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
939
956
|
response = new SFNServiceException_1.SFNServiceException({
|
|
940
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
957
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
941
958
|
$fault: "client",
|
|
942
|
-
$metadata
|
|
959
|
+
$metadata,
|
|
943
960
|
});
|
|
944
961
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
945
962
|
}
|
|
@@ -964,8 +981,7 @@ const deserializeAws_json1_0StartExecutionCommandError = async (output, context)
|
|
|
964
981
|
body: await parseBody(output.body, context),
|
|
965
982
|
};
|
|
966
983
|
let response;
|
|
967
|
-
|
|
968
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
985
|
switch (errorCode) {
|
|
970
986
|
case "ExecutionAlreadyExists":
|
|
971
987
|
case "com.amazonaws.sfn#ExecutionAlreadyExists":
|
|
@@ -990,10 +1006,12 @@ const deserializeAws_json1_0StartExecutionCommandError = async (output, context)
|
|
|
990
1006
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
991
1007
|
default:
|
|
992
1008
|
const parsedBody = parsedOutput.body;
|
|
1009
|
+
const $metadata = deserializeMetadata(output);
|
|
1010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
993
1011
|
response = new SFNServiceException_1.SFNServiceException({
|
|
994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
995
1013
|
$fault: "client",
|
|
996
|
-
$metadata
|
|
1014
|
+
$metadata,
|
|
997
1015
|
});
|
|
998
1016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
999
1017
|
}
|
|
@@ -1018,8 +1036,7 @@ const deserializeAws_json1_0StartSyncExecutionCommandError = async (output, cont
|
|
|
1018
1036
|
body: await parseBody(output.body, context),
|
|
1019
1037
|
};
|
|
1020
1038
|
let response;
|
|
1021
|
-
|
|
1022
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
1040
|
switch (errorCode) {
|
|
1024
1041
|
case "InvalidArn":
|
|
1025
1042
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -1041,10 +1058,12 @@ const deserializeAws_json1_0StartSyncExecutionCommandError = async (output, cont
|
|
|
1041
1058
|
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
1042
1059
|
default:
|
|
1043
1060
|
const parsedBody = parsedOutput.body;
|
|
1061
|
+
const $metadata = deserializeMetadata(output);
|
|
1062
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1044
1063
|
response = new SFNServiceException_1.SFNServiceException({
|
|
1045
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1064
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1046
1065
|
$fault: "client",
|
|
1047
|
-
$metadata
|
|
1066
|
+
$metadata,
|
|
1048
1067
|
});
|
|
1049
1068
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1050
1069
|
}
|
|
@@ -1069,8 +1088,7 @@ const deserializeAws_json1_0StopExecutionCommandError = async (output, context)
|
|
|
1069
1088
|
body: await parseBody(output.body, context),
|
|
1070
1089
|
};
|
|
1071
1090
|
let response;
|
|
1072
|
-
|
|
1073
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
1092
|
switch (errorCode) {
|
|
1075
1093
|
case "ExecutionDoesNotExist":
|
|
1076
1094
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
@@ -1080,10 +1098,12 @@ const deserializeAws_json1_0StopExecutionCommandError = async (output, context)
|
|
|
1080
1098
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1081
1099
|
default:
|
|
1082
1100
|
const parsedBody = parsedOutput.body;
|
|
1101
|
+
const $metadata = deserializeMetadata(output);
|
|
1102
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1083
1103
|
response = new SFNServiceException_1.SFNServiceException({
|
|
1084
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1085
1105
|
$fault: "client",
|
|
1086
|
-
$metadata
|
|
1106
|
+
$metadata,
|
|
1087
1107
|
});
|
|
1088
1108
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1089
1109
|
}
|
|
@@ -1108,8 +1128,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1108
1128
|
body: await parseBody(output.body, context),
|
|
1109
1129
|
};
|
|
1110
1130
|
let response;
|
|
1111
|
-
|
|
1112
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
1132
|
switch (errorCode) {
|
|
1114
1133
|
case "InvalidArn":
|
|
1115
1134
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -1122,10 +1141,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1122
1141
|
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
1123
1142
|
default:
|
|
1124
1143
|
const parsedBody = parsedOutput.body;
|
|
1144
|
+
const $metadata = deserializeMetadata(output);
|
|
1145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1125
1146
|
response = new SFNServiceException_1.SFNServiceException({
|
|
1126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1127
1148
|
$fault: "client",
|
|
1128
|
-
$metadata
|
|
1149
|
+
$metadata,
|
|
1129
1150
|
});
|
|
1130
1151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1131
1152
|
}
|
|
@@ -1150,8 +1171,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1150
1171
|
body: await parseBody(output.body, context),
|
|
1151
1172
|
};
|
|
1152
1173
|
let response;
|
|
1153
|
-
|
|
1154
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
1175
|
switch (errorCode) {
|
|
1156
1176
|
case "InvalidArn":
|
|
1157
1177
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -1161,10 +1181,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1161
1181
|
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1162
1182
|
default:
|
|
1163
1183
|
const parsedBody = parsedOutput.body;
|
|
1184
|
+
const $metadata = deserializeMetadata(output);
|
|
1185
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1164
1186
|
response = new SFNServiceException_1.SFNServiceException({
|
|
1165
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1187
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1166
1188
|
$fault: "client",
|
|
1167
|
-
$metadata
|
|
1189
|
+
$metadata,
|
|
1168
1190
|
});
|
|
1169
1191
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1170
1192
|
}
|
|
@@ -1189,8 +1211,7 @@ const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, cont
|
|
|
1189
1211
|
body: await parseBody(output.body, context),
|
|
1190
1212
|
};
|
|
1191
1213
|
let response;
|
|
1192
|
-
|
|
1193
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1215
|
switch (errorCode) {
|
|
1195
1216
|
case "InvalidArn":
|
|
1196
1217
|
case "com.amazonaws.sfn#InvalidArn":
|
|
@@ -1215,10 +1236,12 @@ const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, cont
|
|
|
1215
1236
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1216
1237
|
default:
|
|
1217
1238
|
const parsedBody = parsedOutput.body;
|
|
1239
|
+
const $metadata = deserializeMetadata(output);
|
|
1240
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1218
1241
|
response = new SFNServiceException_1.SFNServiceException({
|
|
1219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1242
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1220
1243
|
$fault: "client",
|
|
1221
|
-
$metadata
|
|
1244
|
+
$metadata,
|
|
1222
1245
|
});
|
|
1223
1246
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1224
1247
|
}
|
|
@@ -1441,110 +1464,103 @@ const deserializeAws_json1_0TooManyTagsResponse = async (parsedOutput, context)
|
|
|
1441
1464
|
};
|
|
1442
1465
|
const serializeAws_json1_0CloudWatchLogsLogGroup = (input, context) => {
|
|
1443
1466
|
return {
|
|
1444
|
-
...(input.logGroupArn
|
|
1467
|
+
...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
|
|
1445
1468
|
};
|
|
1446
1469
|
};
|
|
1447
1470
|
const serializeAws_json1_0CreateActivityInput = (input, context) => {
|
|
1448
1471
|
return {
|
|
1449
|
-
...(input.name
|
|
1450
|
-
...(input.tags
|
|
1472
|
+
...(input.name != null && { name: input.name }),
|
|
1473
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1451
1474
|
};
|
|
1452
1475
|
};
|
|
1453
1476
|
const serializeAws_json1_0CreateStateMachineInput = (input, context) => {
|
|
1454
1477
|
return {
|
|
1455
|
-
...(input.definition
|
|
1456
|
-
...(input.loggingConfiguration
|
|
1457
|
-
input.loggingConfiguration !== null && {
|
|
1478
|
+
...(input.definition != null && { definition: input.definition }),
|
|
1479
|
+
...(input.loggingConfiguration != null && {
|
|
1458
1480
|
loggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.loggingConfiguration, context),
|
|
1459
1481
|
}),
|
|
1460
|
-
...(input.name
|
|
1461
|
-
...(input.roleArn
|
|
1462
|
-
...(input.tags
|
|
1463
|
-
...(input.tracingConfiguration
|
|
1464
|
-
input.tracingConfiguration !== null && {
|
|
1482
|
+
...(input.name != null && { name: input.name }),
|
|
1483
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1484
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1485
|
+
...(input.tracingConfiguration != null && {
|
|
1465
1486
|
tracingConfiguration: serializeAws_json1_0TracingConfiguration(input.tracingConfiguration, context),
|
|
1466
1487
|
}),
|
|
1467
|
-
...(input.type
|
|
1488
|
+
...(input.type != null && { type: input.type }),
|
|
1468
1489
|
};
|
|
1469
1490
|
};
|
|
1470
1491
|
const serializeAws_json1_0DeleteActivityInput = (input, context) => {
|
|
1471
1492
|
return {
|
|
1472
|
-
...(input.activityArn
|
|
1493
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1473
1494
|
};
|
|
1474
1495
|
};
|
|
1475
1496
|
const serializeAws_json1_0DeleteStateMachineInput = (input, context) => {
|
|
1476
1497
|
return {
|
|
1477
|
-
...(input.stateMachineArn
|
|
1478
|
-
input.stateMachineArn !== null && { stateMachineArn: input.stateMachineArn }),
|
|
1498
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1479
1499
|
};
|
|
1480
1500
|
};
|
|
1481
1501
|
const serializeAws_json1_0DescribeActivityInput = (input, context) => {
|
|
1482
1502
|
return {
|
|
1483
|
-
...(input.activityArn
|
|
1503
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1484
1504
|
};
|
|
1485
1505
|
};
|
|
1486
1506
|
const serializeAws_json1_0DescribeExecutionInput = (input, context) => {
|
|
1487
1507
|
return {
|
|
1488
|
-
...(input.executionArn
|
|
1508
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1489
1509
|
};
|
|
1490
1510
|
};
|
|
1491
1511
|
const serializeAws_json1_0DescribeStateMachineForExecutionInput = (input, context) => {
|
|
1492
1512
|
return {
|
|
1493
|
-
...(input.executionArn
|
|
1513
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1494
1514
|
};
|
|
1495
1515
|
};
|
|
1496
1516
|
const serializeAws_json1_0DescribeStateMachineInput = (input, context) => {
|
|
1497
1517
|
return {
|
|
1498
|
-
...(input.stateMachineArn
|
|
1499
|
-
input.stateMachineArn !== null && { stateMachineArn: input.stateMachineArn }),
|
|
1518
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1500
1519
|
};
|
|
1501
1520
|
};
|
|
1502
1521
|
const serializeAws_json1_0GetActivityTaskInput = (input, context) => {
|
|
1503
1522
|
return {
|
|
1504
|
-
...(input.activityArn
|
|
1505
|
-
...(input.workerName
|
|
1523
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1524
|
+
...(input.workerName != null && { workerName: input.workerName }),
|
|
1506
1525
|
};
|
|
1507
1526
|
};
|
|
1508
1527
|
const serializeAws_json1_0GetExecutionHistoryInput = (input, context) => {
|
|
1509
1528
|
return {
|
|
1510
|
-
...(input.executionArn
|
|
1511
|
-
...(input.includeExecutionData
|
|
1512
|
-
|
|
1513
|
-
...(input.
|
|
1514
|
-
...(input.
|
|
1515
|
-
...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
|
|
1529
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1530
|
+
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1531
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1532
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1533
|
+
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
1516
1534
|
};
|
|
1517
1535
|
};
|
|
1518
1536
|
const serializeAws_json1_0ListActivitiesInput = (input, context) => {
|
|
1519
1537
|
return {
|
|
1520
|
-
...(input.maxResults
|
|
1521
|
-
...(input.nextToken
|
|
1538
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1539
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1522
1540
|
};
|
|
1523
1541
|
};
|
|
1524
1542
|
const serializeAws_json1_0ListExecutionsInput = (input, context) => {
|
|
1525
1543
|
return {
|
|
1526
|
-
...(input.maxResults
|
|
1527
|
-
...(input.nextToken
|
|
1528
|
-
...(input.stateMachineArn
|
|
1529
|
-
|
|
1530
|
-
...(input.statusFilter !== undefined && input.statusFilter !== null && { statusFilter: input.statusFilter }),
|
|
1544
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1545
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1546
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1547
|
+
...(input.statusFilter != null && { statusFilter: input.statusFilter }),
|
|
1531
1548
|
};
|
|
1532
1549
|
};
|
|
1533
1550
|
const serializeAws_json1_0ListStateMachinesInput = (input, context) => {
|
|
1534
1551
|
return {
|
|
1535
|
-
...(input.maxResults
|
|
1536
|
-
...(input.nextToken
|
|
1552
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1553
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1537
1554
|
};
|
|
1538
1555
|
};
|
|
1539
1556
|
const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
|
|
1540
1557
|
return {
|
|
1541
|
-
...(input.resourceArn
|
|
1558
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1542
1559
|
};
|
|
1543
1560
|
};
|
|
1544
1561
|
const serializeAws_json1_0LogDestination = (input, context) => {
|
|
1545
1562
|
return {
|
|
1546
|
-
...(input.cloudWatchLogsLogGroup
|
|
1547
|
-
input.cloudWatchLogsLogGroup !== null && {
|
|
1563
|
+
...(input.cloudWatchLogsLogGroup != null && {
|
|
1548
1564
|
cloudWatchLogsLogGroup: serializeAws_json1_0CloudWatchLogsLogGroup(input.cloudWatchLogsLogGroup, context),
|
|
1549
1565
|
}),
|
|
1550
1566
|
};
|
|
@@ -1561,62 +1577,58 @@ const serializeAws_json1_0LogDestinationList = (input, context) => {
|
|
|
1561
1577
|
};
|
|
1562
1578
|
const serializeAws_json1_0LoggingConfiguration = (input, context) => {
|
|
1563
1579
|
return {
|
|
1564
|
-
...(input.destinations
|
|
1565
|
-
input.destinations !== null && {
|
|
1580
|
+
...(input.destinations != null && {
|
|
1566
1581
|
destinations: serializeAws_json1_0LogDestinationList(input.destinations, context),
|
|
1567
1582
|
}),
|
|
1568
|
-
...(input.includeExecutionData
|
|
1569
|
-
|
|
1570
|
-
...(input.level !== undefined && input.level !== null && { level: input.level }),
|
|
1583
|
+
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1584
|
+
...(input.level != null && { level: input.level }),
|
|
1571
1585
|
};
|
|
1572
1586
|
};
|
|
1573
1587
|
const serializeAws_json1_0SendTaskFailureInput = (input, context) => {
|
|
1574
1588
|
return {
|
|
1575
|
-
...(input.cause
|
|
1576
|
-
...(input.error
|
|
1577
|
-
...(input.taskToken
|
|
1589
|
+
...(input.cause != null && { cause: input.cause }),
|
|
1590
|
+
...(input.error != null && { error: input.error }),
|
|
1591
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1578
1592
|
};
|
|
1579
1593
|
};
|
|
1580
1594
|
const serializeAws_json1_0SendTaskHeartbeatInput = (input, context) => {
|
|
1581
1595
|
return {
|
|
1582
|
-
...(input.taskToken
|
|
1596
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1583
1597
|
};
|
|
1584
1598
|
};
|
|
1585
1599
|
const serializeAws_json1_0SendTaskSuccessInput = (input, context) => {
|
|
1586
1600
|
return {
|
|
1587
|
-
...(input.output
|
|
1588
|
-
...(input.taskToken
|
|
1601
|
+
...(input.output != null && { output: input.output }),
|
|
1602
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1589
1603
|
};
|
|
1590
1604
|
};
|
|
1591
1605
|
const serializeAws_json1_0StartExecutionInput = (input, context) => {
|
|
1592
1606
|
return {
|
|
1593
|
-
...(input.input
|
|
1594
|
-
...(input.name
|
|
1595
|
-
...(input.stateMachineArn
|
|
1596
|
-
|
|
1597
|
-
...(input.traceHeader !== undefined && input.traceHeader !== null && { traceHeader: input.traceHeader }),
|
|
1607
|
+
...(input.input != null && { input: input.input }),
|
|
1608
|
+
...(input.name != null && { name: input.name }),
|
|
1609
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1610
|
+
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1598
1611
|
};
|
|
1599
1612
|
};
|
|
1600
1613
|
const serializeAws_json1_0StartSyncExecutionInput = (input, context) => {
|
|
1601
1614
|
return {
|
|
1602
|
-
...(input.input
|
|
1603
|
-
...(input.name
|
|
1604
|
-
...(input.stateMachineArn
|
|
1605
|
-
|
|
1606
|
-
...(input.traceHeader !== undefined && input.traceHeader !== null && { traceHeader: input.traceHeader }),
|
|
1615
|
+
...(input.input != null && { input: input.input }),
|
|
1616
|
+
...(input.name != null && { name: input.name }),
|
|
1617
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1618
|
+
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1607
1619
|
};
|
|
1608
1620
|
};
|
|
1609
1621
|
const serializeAws_json1_0StopExecutionInput = (input, context) => {
|
|
1610
1622
|
return {
|
|
1611
|
-
...(input.cause
|
|
1612
|
-
...(input.error
|
|
1613
|
-
...(input.executionArn
|
|
1623
|
+
...(input.cause != null && { cause: input.cause }),
|
|
1624
|
+
...(input.error != null && { error: input.error }),
|
|
1625
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1614
1626
|
};
|
|
1615
1627
|
};
|
|
1616
1628
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
1617
1629
|
return {
|
|
1618
|
-
...(input.key
|
|
1619
|
-
...(input.value
|
|
1630
|
+
...(input.key != null && { key: input.key }),
|
|
1631
|
+
...(input.value != null && { value: input.value }),
|
|
1620
1632
|
};
|
|
1621
1633
|
};
|
|
1622
1634
|
const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
@@ -1641,34 +1653,30 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1641
1653
|
};
|
|
1642
1654
|
const serializeAws_json1_0TagResourceInput = (input, context) => {
|
|
1643
1655
|
return {
|
|
1644
|
-
...(input.resourceArn
|
|
1645
|
-
...(input.tags
|
|
1656
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1657
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1646
1658
|
};
|
|
1647
1659
|
};
|
|
1648
1660
|
const serializeAws_json1_0TracingConfiguration = (input, context) => {
|
|
1649
1661
|
return {
|
|
1650
|
-
...(input.enabled
|
|
1662
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1651
1663
|
};
|
|
1652
1664
|
};
|
|
1653
1665
|
const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
1654
1666
|
return {
|
|
1655
|
-
...(input.resourceArn
|
|
1656
|
-
...(input.tagKeys
|
|
1657
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
|
|
1667
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1668
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
|
|
1658
1669
|
};
|
|
1659
1670
|
};
|
|
1660
1671
|
const serializeAws_json1_0UpdateStateMachineInput = (input, context) => {
|
|
1661
1672
|
return {
|
|
1662
|
-
...(input.definition
|
|
1663
|
-
...(input.loggingConfiguration
|
|
1664
|
-
input.loggingConfiguration !== null && {
|
|
1673
|
+
...(input.definition != null && { definition: input.definition }),
|
|
1674
|
+
...(input.loggingConfiguration != null && {
|
|
1665
1675
|
loggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.loggingConfiguration, context),
|
|
1666
1676
|
}),
|
|
1667
|
-
...(input.roleArn
|
|
1668
|
-
...(input.stateMachineArn
|
|
1669
|
-
|
|
1670
|
-
...(input.tracingConfiguration !== undefined &&
|
|
1671
|
-
input.tracingConfiguration !== null && {
|
|
1677
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1678
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1679
|
+
...(input.tracingConfiguration != null && {
|
|
1672
1680
|
tracingConfiguration: serializeAws_json1_0TracingConfiguration(input.tracingConfiguration, context),
|
|
1673
1681
|
}),
|
|
1674
1682
|
};
|
|
@@ -1703,7 +1711,7 @@ const deserializeAws_json1_0ActivityList = (output, context) => {
|
|
|
1703
1711
|
const deserializeAws_json1_0ActivityListItem = (output, context) => {
|
|
1704
1712
|
return {
|
|
1705
1713
|
activityArn: (0, smithy_client_1.expectString)(output.activityArn),
|
|
1706
|
-
creationDate: output.creationDate
|
|
1714
|
+
creationDate: output.creationDate != null
|
|
1707
1715
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1708
1716
|
: undefined,
|
|
1709
1717
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -1713,7 +1721,7 @@ const deserializeAws_json1_0ActivityScheduledEventDetails = (output, context) =>
|
|
|
1713
1721
|
return {
|
|
1714
1722
|
heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
|
|
1715
1723
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
1716
|
-
inputDetails: output.inputDetails
|
|
1724
|
+
inputDetails: output.inputDetails != null
|
|
1717
1725
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
1718
1726
|
: undefined,
|
|
1719
1727
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -1734,7 +1742,7 @@ const deserializeAws_json1_0ActivityStartedEventDetails = (output, context) => {
|
|
|
1734
1742
|
const deserializeAws_json1_0ActivitySucceededEventDetails = (output, context) => {
|
|
1735
1743
|
return {
|
|
1736
1744
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
1737
|
-
outputDetails: output.outputDetails
|
|
1745
|
+
outputDetails: output.outputDetails != null
|
|
1738
1746
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
1739
1747
|
: undefined,
|
|
1740
1748
|
};
|
|
@@ -1769,14 +1777,14 @@ const deserializeAws_json1_0CloudWatchLogsLogGroup = (output, context) => {
|
|
|
1769
1777
|
const deserializeAws_json1_0CreateActivityOutput = (output, context) => {
|
|
1770
1778
|
return {
|
|
1771
1779
|
activityArn: (0, smithy_client_1.expectString)(output.activityArn),
|
|
1772
|
-
creationDate: output.creationDate
|
|
1780
|
+
creationDate: output.creationDate != null
|
|
1773
1781
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1774
1782
|
: undefined,
|
|
1775
1783
|
};
|
|
1776
1784
|
};
|
|
1777
1785
|
const deserializeAws_json1_0CreateStateMachineOutput = (output, context) => {
|
|
1778
1786
|
return {
|
|
1779
|
-
creationDate: output.creationDate
|
|
1787
|
+
creationDate: output.creationDate != null
|
|
1780
1788
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1781
1789
|
: undefined,
|
|
1782
1790
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
@@ -1791,7 +1799,7 @@ const deserializeAws_json1_0DeleteStateMachineOutput = (output, context) => {
|
|
|
1791
1799
|
const deserializeAws_json1_0DescribeActivityOutput = (output, context) => {
|
|
1792
1800
|
return {
|
|
1793
1801
|
activityArn: (0, smithy_client_1.expectString)(output.activityArn),
|
|
1794
|
-
creationDate: output.creationDate
|
|
1802
|
+
creationDate: output.creationDate != null
|
|
1795
1803
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1796
1804
|
: undefined,
|
|
1797
1805
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -1801,56 +1809,50 @@ const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
|
|
|
1801
1809
|
return {
|
|
1802
1810
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
1803
1811
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
1804
|
-
inputDetails: output.inputDetails
|
|
1812
|
+
inputDetails: output.inputDetails != null
|
|
1805
1813
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
|
|
1806
1814
|
: undefined,
|
|
1807
1815
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1808
1816
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
1809
|
-
outputDetails: output.outputDetails
|
|
1817
|
+
outputDetails: output.outputDetails != null
|
|
1810
1818
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
|
|
1811
1819
|
: undefined,
|
|
1812
|
-
startDate: output.startDate
|
|
1813
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
1814
|
-
: undefined,
|
|
1820
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
1815
1821
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1816
1822
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1817
|
-
stopDate: output.stopDate
|
|
1818
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
1819
|
-
: undefined,
|
|
1823
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
1820
1824
|
traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
|
|
1821
1825
|
};
|
|
1822
1826
|
};
|
|
1823
1827
|
const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
1824
1828
|
return {
|
|
1825
1829
|
definition: (0, smithy_client_1.expectString)(output.definition),
|
|
1826
|
-
loggingConfiguration: output.loggingConfiguration
|
|
1830
|
+
loggingConfiguration: output.loggingConfiguration != null
|
|
1827
1831
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1828
1832
|
: undefined,
|
|
1829
1833
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1830
1834
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1831
1835
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1832
|
-
tracingConfiguration: output.tracingConfiguration
|
|
1836
|
+
tracingConfiguration: output.tracingConfiguration != null
|
|
1833
1837
|
? deserializeAws_json1_0TracingConfiguration(output.tracingConfiguration, context)
|
|
1834
1838
|
: undefined,
|
|
1835
|
-
updateDate: output.updateDate
|
|
1836
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate)))
|
|
1837
|
-
: undefined,
|
|
1839
|
+
updateDate: output.updateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate))) : undefined,
|
|
1838
1840
|
};
|
|
1839
1841
|
};
|
|
1840
1842
|
const deserializeAws_json1_0DescribeStateMachineOutput = (output, context) => {
|
|
1841
1843
|
return {
|
|
1842
|
-
creationDate: output.creationDate
|
|
1844
|
+
creationDate: output.creationDate != null
|
|
1843
1845
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1844
1846
|
: undefined,
|
|
1845
1847
|
definition: (0, smithy_client_1.expectString)(output.definition),
|
|
1846
|
-
loggingConfiguration: output.loggingConfiguration
|
|
1848
|
+
loggingConfiguration: output.loggingConfiguration != null
|
|
1847
1849
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1848
1850
|
: undefined,
|
|
1849
1851
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1850
1852
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1851
1853
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1852
1854
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1853
|
-
tracingConfiguration: output.tracingConfiguration
|
|
1855
|
+
tracingConfiguration: output.tracingConfiguration != null
|
|
1854
1856
|
? deserializeAws_json1_0TracingConfiguration(output.tracingConfiguration, context)
|
|
1855
1857
|
: undefined,
|
|
1856
1858
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -1898,20 +1900,16 @@ const deserializeAws_json1_0ExecutionListItem = (output, context) => {
|
|
|
1898
1900
|
return {
|
|
1899
1901
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
1900
1902
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1901
|
-
startDate: output.startDate
|
|
1902
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
1903
|
-
: undefined,
|
|
1903
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
1904
1904
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1905
1905
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1906
|
-
stopDate: output.stopDate
|
|
1907
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
1908
|
-
: undefined,
|
|
1906
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
1909
1907
|
};
|
|
1910
1908
|
};
|
|
1911
1909
|
const deserializeAws_json1_0ExecutionStartedEventDetails = (output, context) => {
|
|
1912
1910
|
return {
|
|
1913
1911
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
1914
|
-
inputDetails: output.inputDetails
|
|
1912
|
+
inputDetails: output.inputDetails != null
|
|
1915
1913
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
1916
1914
|
: undefined,
|
|
1917
1915
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
@@ -1920,7 +1918,7 @@ const deserializeAws_json1_0ExecutionStartedEventDetails = (output, context) =>
|
|
|
1920
1918
|
const deserializeAws_json1_0ExecutionSucceededEventDetails = (output, context) => {
|
|
1921
1919
|
return {
|
|
1922
1920
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
1923
|
-
outputDetails: output.outputDetails
|
|
1921
|
+
outputDetails: output.outputDetails != null
|
|
1924
1922
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
1925
1923
|
: undefined,
|
|
1926
1924
|
};
|
|
@@ -1939,117 +1937,111 @@ const deserializeAws_json1_0GetActivityTaskOutput = (output, context) => {
|
|
|
1939
1937
|
};
|
|
1940
1938
|
const deserializeAws_json1_0GetExecutionHistoryOutput = (output, context) => {
|
|
1941
1939
|
return {
|
|
1942
|
-
events: output.events
|
|
1943
|
-
? deserializeAws_json1_0HistoryEventList(output.events, context)
|
|
1944
|
-
: undefined,
|
|
1940
|
+
events: output.events != null ? deserializeAws_json1_0HistoryEventList(output.events, context) : undefined,
|
|
1945
1941
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1946
1942
|
};
|
|
1947
1943
|
};
|
|
1948
1944
|
const deserializeAws_json1_0HistoryEvent = (output, context) => {
|
|
1949
1945
|
return {
|
|
1950
|
-
activityFailedEventDetails: output.activityFailedEventDetails
|
|
1946
|
+
activityFailedEventDetails: output.activityFailedEventDetails != null
|
|
1951
1947
|
? deserializeAws_json1_0ActivityFailedEventDetails(output.activityFailedEventDetails, context)
|
|
1952
1948
|
: undefined,
|
|
1953
|
-
activityScheduleFailedEventDetails: output.activityScheduleFailedEventDetails
|
|
1949
|
+
activityScheduleFailedEventDetails: output.activityScheduleFailedEventDetails != null
|
|
1954
1950
|
? deserializeAws_json1_0ActivityScheduleFailedEventDetails(output.activityScheduleFailedEventDetails, context)
|
|
1955
1951
|
: undefined,
|
|
1956
|
-
activityScheduledEventDetails: output.activityScheduledEventDetails
|
|
1952
|
+
activityScheduledEventDetails: output.activityScheduledEventDetails != null
|
|
1957
1953
|
? deserializeAws_json1_0ActivityScheduledEventDetails(output.activityScheduledEventDetails, context)
|
|
1958
1954
|
: undefined,
|
|
1959
|
-
activityStartedEventDetails: output.activityStartedEventDetails
|
|
1955
|
+
activityStartedEventDetails: output.activityStartedEventDetails != null
|
|
1960
1956
|
? deserializeAws_json1_0ActivityStartedEventDetails(output.activityStartedEventDetails, context)
|
|
1961
1957
|
: undefined,
|
|
1962
|
-
activitySucceededEventDetails: output.activitySucceededEventDetails
|
|
1958
|
+
activitySucceededEventDetails: output.activitySucceededEventDetails != null
|
|
1963
1959
|
? deserializeAws_json1_0ActivitySucceededEventDetails(output.activitySucceededEventDetails, context)
|
|
1964
1960
|
: undefined,
|
|
1965
|
-
activityTimedOutEventDetails: output.activityTimedOutEventDetails
|
|
1961
|
+
activityTimedOutEventDetails: output.activityTimedOutEventDetails != null
|
|
1966
1962
|
? deserializeAws_json1_0ActivityTimedOutEventDetails(output.activityTimedOutEventDetails, context)
|
|
1967
1963
|
: undefined,
|
|
1968
|
-
executionAbortedEventDetails: output.executionAbortedEventDetails
|
|
1964
|
+
executionAbortedEventDetails: output.executionAbortedEventDetails != null
|
|
1969
1965
|
? deserializeAws_json1_0ExecutionAbortedEventDetails(output.executionAbortedEventDetails, context)
|
|
1970
1966
|
: undefined,
|
|
1971
|
-
executionFailedEventDetails: output.executionFailedEventDetails
|
|
1967
|
+
executionFailedEventDetails: output.executionFailedEventDetails != null
|
|
1972
1968
|
? deserializeAws_json1_0ExecutionFailedEventDetails(output.executionFailedEventDetails, context)
|
|
1973
1969
|
: undefined,
|
|
1974
|
-
executionStartedEventDetails: output.executionStartedEventDetails
|
|
1970
|
+
executionStartedEventDetails: output.executionStartedEventDetails != null
|
|
1975
1971
|
? deserializeAws_json1_0ExecutionStartedEventDetails(output.executionStartedEventDetails, context)
|
|
1976
1972
|
: undefined,
|
|
1977
|
-
executionSucceededEventDetails: output.executionSucceededEventDetails
|
|
1973
|
+
executionSucceededEventDetails: output.executionSucceededEventDetails != null
|
|
1978
1974
|
? deserializeAws_json1_0ExecutionSucceededEventDetails(output.executionSucceededEventDetails, context)
|
|
1979
1975
|
: undefined,
|
|
1980
|
-
executionTimedOutEventDetails: output.executionTimedOutEventDetails
|
|
1976
|
+
executionTimedOutEventDetails: output.executionTimedOutEventDetails != null
|
|
1981
1977
|
? deserializeAws_json1_0ExecutionTimedOutEventDetails(output.executionTimedOutEventDetails, context)
|
|
1982
1978
|
: undefined,
|
|
1983
1979
|
id: (0, smithy_client_1.expectLong)(output.id),
|
|
1984
|
-
lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails
|
|
1980
|
+
lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails != null
|
|
1985
1981
|
? deserializeAws_json1_0LambdaFunctionFailedEventDetails(output.lambdaFunctionFailedEventDetails, context)
|
|
1986
1982
|
: undefined,
|
|
1987
|
-
lambdaFunctionScheduleFailedEventDetails: output.lambdaFunctionScheduleFailedEventDetails
|
|
1988
|
-
output.lambdaFunctionScheduleFailedEventDetails !== null
|
|
1983
|
+
lambdaFunctionScheduleFailedEventDetails: output.lambdaFunctionScheduleFailedEventDetails != null
|
|
1989
1984
|
? deserializeAws_json1_0LambdaFunctionScheduleFailedEventDetails(output.lambdaFunctionScheduleFailedEventDetails, context)
|
|
1990
1985
|
: undefined,
|
|
1991
|
-
lambdaFunctionScheduledEventDetails: output.lambdaFunctionScheduledEventDetails
|
|
1986
|
+
lambdaFunctionScheduledEventDetails: output.lambdaFunctionScheduledEventDetails != null
|
|
1992
1987
|
? deserializeAws_json1_0LambdaFunctionScheduledEventDetails(output.lambdaFunctionScheduledEventDetails, context)
|
|
1993
1988
|
: undefined,
|
|
1994
|
-
lambdaFunctionStartFailedEventDetails: output.lambdaFunctionStartFailedEventDetails
|
|
1995
|
-
output.lambdaFunctionStartFailedEventDetails !== null
|
|
1989
|
+
lambdaFunctionStartFailedEventDetails: output.lambdaFunctionStartFailedEventDetails != null
|
|
1996
1990
|
? deserializeAws_json1_0LambdaFunctionStartFailedEventDetails(output.lambdaFunctionStartFailedEventDetails, context)
|
|
1997
1991
|
: undefined,
|
|
1998
|
-
lambdaFunctionSucceededEventDetails: output.lambdaFunctionSucceededEventDetails
|
|
1992
|
+
lambdaFunctionSucceededEventDetails: output.lambdaFunctionSucceededEventDetails != null
|
|
1999
1993
|
? deserializeAws_json1_0LambdaFunctionSucceededEventDetails(output.lambdaFunctionSucceededEventDetails, context)
|
|
2000
1994
|
: undefined,
|
|
2001
|
-
lambdaFunctionTimedOutEventDetails: output.lambdaFunctionTimedOutEventDetails
|
|
1995
|
+
lambdaFunctionTimedOutEventDetails: output.lambdaFunctionTimedOutEventDetails != null
|
|
2002
1996
|
? deserializeAws_json1_0LambdaFunctionTimedOutEventDetails(output.lambdaFunctionTimedOutEventDetails, context)
|
|
2003
1997
|
: undefined,
|
|
2004
|
-
mapIterationAbortedEventDetails: output.mapIterationAbortedEventDetails
|
|
1998
|
+
mapIterationAbortedEventDetails: output.mapIterationAbortedEventDetails != null
|
|
2005
1999
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationAbortedEventDetails, context)
|
|
2006
2000
|
: undefined,
|
|
2007
|
-
mapIterationFailedEventDetails: output.mapIterationFailedEventDetails
|
|
2001
|
+
mapIterationFailedEventDetails: output.mapIterationFailedEventDetails != null
|
|
2008
2002
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationFailedEventDetails, context)
|
|
2009
2003
|
: undefined,
|
|
2010
|
-
mapIterationStartedEventDetails: output.mapIterationStartedEventDetails
|
|
2004
|
+
mapIterationStartedEventDetails: output.mapIterationStartedEventDetails != null
|
|
2011
2005
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationStartedEventDetails, context)
|
|
2012
2006
|
: undefined,
|
|
2013
|
-
mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails
|
|
2007
|
+
mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails != null
|
|
2014
2008
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationSucceededEventDetails, context)
|
|
2015
2009
|
: undefined,
|
|
2016
|
-
mapStateStartedEventDetails: output.mapStateStartedEventDetails
|
|
2010
|
+
mapStateStartedEventDetails: output.mapStateStartedEventDetails != null
|
|
2017
2011
|
? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
|
|
2018
2012
|
: undefined,
|
|
2019
2013
|
previousEventId: (0, smithy_client_1.expectLong)(output.previousEventId),
|
|
2020
|
-
stateEnteredEventDetails: output.stateEnteredEventDetails
|
|
2014
|
+
stateEnteredEventDetails: output.stateEnteredEventDetails != null
|
|
2021
2015
|
? deserializeAws_json1_0StateEnteredEventDetails(output.stateEnteredEventDetails, context)
|
|
2022
2016
|
: undefined,
|
|
2023
|
-
stateExitedEventDetails: output.stateExitedEventDetails
|
|
2017
|
+
stateExitedEventDetails: output.stateExitedEventDetails != null
|
|
2024
2018
|
? deserializeAws_json1_0StateExitedEventDetails(output.stateExitedEventDetails, context)
|
|
2025
2019
|
: undefined,
|
|
2026
|
-
taskFailedEventDetails: output.taskFailedEventDetails
|
|
2020
|
+
taskFailedEventDetails: output.taskFailedEventDetails != null
|
|
2027
2021
|
? deserializeAws_json1_0TaskFailedEventDetails(output.taskFailedEventDetails, context)
|
|
2028
2022
|
: undefined,
|
|
2029
|
-
taskScheduledEventDetails: output.taskScheduledEventDetails
|
|
2023
|
+
taskScheduledEventDetails: output.taskScheduledEventDetails != null
|
|
2030
2024
|
? deserializeAws_json1_0TaskScheduledEventDetails(output.taskScheduledEventDetails, context)
|
|
2031
2025
|
: undefined,
|
|
2032
|
-
taskStartFailedEventDetails: output.taskStartFailedEventDetails
|
|
2026
|
+
taskStartFailedEventDetails: output.taskStartFailedEventDetails != null
|
|
2033
2027
|
? deserializeAws_json1_0TaskStartFailedEventDetails(output.taskStartFailedEventDetails, context)
|
|
2034
2028
|
: undefined,
|
|
2035
|
-
taskStartedEventDetails: output.taskStartedEventDetails
|
|
2029
|
+
taskStartedEventDetails: output.taskStartedEventDetails != null
|
|
2036
2030
|
? deserializeAws_json1_0TaskStartedEventDetails(output.taskStartedEventDetails, context)
|
|
2037
2031
|
: undefined,
|
|
2038
|
-
taskSubmitFailedEventDetails: output.taskSubmitFailedEventDetails
|
|
2032
|
+
taskSubmitFailedEventDetails: output.taskSubmitFailedEventDetails != null
|
|
2039
2033
|
? deserializeAws_json1_0TaskSubmitFailedEventDetails(output.taskSubmitFailedEventDetails, context)
|
|
2040
2034
|
: undefined,
|
|
2041
|
-
taskSubmittedEventDetails: output.taskSubmittedEventDetails
|
|
2035
|
+
taskSubmittedEventDetails: output.taskSubmittedEventDetails != null
|
|
2042
2036
|
? deserializeAws_json1_0TaskSubmittedEventDetails(output.taskSubmittedEventDetails, context)
|
|
2043
2037
|
: undefined,
|
|
2044
|
-
taskSucceededEventDetails: output.taskSucceededEventDetails
|
|
2038
|
+
taskSucceededEventDetails: output.taskSucceededEventDetails != null
|
|
2045
2039
|
? deserializeAws_json1_0TaskSucceededEventDetails(output.taskSucceededEventDetails, context)
|
|
2046
2040
|
: undefined,
|
|
2047
|
-
taskTimedOutEventDetails: output.taskTimedOutEventDetails
|
|
2041
|
+
taskTimedOutEventDetails: output.taskTimedOutEventDetails != null
|
|
2048
2042
|
? deserializeAws_json1_0TaskTimedOutEventDetails(output.taskTimedOutEventDetails, context)
|
|
2049
2043
|
: undefined,
|
|
2050
|
-
timestamp: output.timestamp
|
|
2051
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
|
|
2052
|
-
: undefined,
|
|
2044
|
+
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
2053
2045
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2054
2046
|
};
|
|
2055
2047
|
};
|
|
@@ -2118,7 +2110,7 @@ const deserializeAws_json1_0LambdaFunctionFailedEventDetails = (output, context)
|
|
|
2118
2110
|
const deserializeAws_json1_0LambdaFunctionScheduledEventDetails = (output, context) => {
|
|
2119
2111
|
return {
|
|
2120
2112
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
2121
|
-
inputDetails: output.inputDetails
|
|
2113
|
+
inputDetails: output.inputDetails != null
|
|
2122
2114
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
2123
2115
|
: undefined,
|
|
2124
2116
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -2140,7 +2132,7 @@ const deserializeAws_json1_0LambdaFunctionStartFailedEventDetails = (output, con
|
|
|
2140
2132
|
const deserializeAws_json1_0LambdaFunctionSucceededEventDetails = (output, context) => {
|
|
2141
2133
|
return {
|
|
2142
2134
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2143
|
-
outputDetails: output.outputDetails
|
|
2135
|
+
outputDetails: output.outputDetails != null
|
|
2144
2136
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2145
2137
|
: undefined,
|
|
2146
2138
|
};
|
|
@@ -2153,38 +2145,30 @@ const deserializeAws_json1_0LambdaFunctionTimedOutEventDetails = (output, contex
|
|
|
2153
2145
|
};
|
|
2154
2146
|
const deserializeAws_json1_0ListActivitiesOutput = (output, context) => {
|
|
2155
2147
|
return {
|
|
2156
|
-
activities: output.activities
|
|
2157
|
-
? deserializeAws_json1_0ActivityList(output.activities, context)
|
|
2158
|
-
: undefined,
|
|
2148
|
+
activities: output.activities != null ? deserializeAws_json1_0ActivityList(output.activities, context) : undefined,
|
|
2159
2149
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2160
2150
|
};
|
|
2161
2151
|
};
|
|
2162
2152
|
const deserializeAws_json1_0ListExecutionsOutput = (output, context) => {
|
|
2163
2153
|
return {
|
|
2164
|
-
executions: output.executions
|
|
2165
|
-
? deserializeAws_json1_0ExecutionList(output.executions, context)
|
|
2166
|
-
: undefined,
|
|
2154
|
+
executions: output.executions != null ? deserializeAws_json1_0ExecutionList(output.executions, context) : undefined,
|
|
2167
2155
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2168
2156
|
};
|
|
2169
2157
|
};
|
|
2170
2158
|
const deserializeAws_json1_0ListStateMachinesOutput = (output, context) => {
|
|
2171
2159
|
return {
|
|
2172
2160
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2173
|
-
stateMachines: output.stateMachines
|
|
2174
|
-
? deserializeAws_json1_0StateMachineList(output.stateMachines, context)
|
|
2175
|
-
: undefined,
|
|
2161
|
+
stateMachines: output.stateMachines != null ? deserializeAws_json1_0StateMachineList(output.stateMachines, context) : undefined,
|
|
2176
2162
|
};
|
|
2177
2163
|
};
|
|
2178
2164
|
const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
|
|
2179
2165
|
return {
|
|
2180
|
-
tags: output.tags
|
|
2181
|
-
? deserializeAws_json1_0TagList(output.tags, context)
|
|
2182
|
-
: undefined,
|
|
2166
|
+
tags: output.tags != null ? deserializeAws_json1_0TagList(output.tags, context) : undefined,
|
|
2183
2167
|
};
|
|
2184
2168
|
};
|
|
2185
2169
|
const deserializeAws_json1_0LogDestination = (output, context) => {
|
|
2186
2170
|
return {
|
|
2187
|
-
cloudWatchLogsLogGroup: output.cloudWatchLogsLogGroup
|
|
2171
|
+
cloudWatchLogsLogGroup: output.cloudWatchLogsLogGroup != null
|
|
2188
2172
|
? deserializeAws_json1_0CloudWatchLogsLogGroup(output.cloudWatchLogsLogGroup, context)
|
|
2189
2173
|
: undefined,
|
|
2190
2174
|
};
|
|
@@ -2202,9 +2186,7 @@ const deserializeAws_json1_0LogDestinationList = (output, context) => {
|
|
|
2202
2186
|
};
|
|
2203
2187
|
const deserializeAws_json1_0LoggingConfiguration = (output, context) => {
|
|
2204
2188
|
return {
|
|
2205
|
-
destinations: output.destinations
|
|
2206
|
-
? deserializeAws_json1_0LogDestinationList(output.destinations, context)
|
|
2207
|
-
: undefined,
|
|
2189
|
+
destinations: output.destinations != null ? deserializeAws_json1_0LogDestinationList(output.destinations, context) : undefined,
|
|
2208
2190
|
includeExecutionData: (0, smithy_client_1.expectBoolean)(output.includeExecutionData),
|
|
2209
2191
|
level: (0, smithy_client_1.expectString)(output.level),
|
|
2210
2192
|
};
|
|
@@ -2243,43 +2225,35 @@ const deserializeAws_json1_0SendTaskSuccessOutput = (output, context) => {
|
|
|
2243
2225
|
const deserializeAws_json1_0StartExecutionOutput = (output, context) => {
|
|
2244
2226
|
return {
|
|
2245
2227
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
2246
|
-
startDate: output.startDate
|
|
2247
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
2248
|
-
: undefined,
|
|
2228
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
2249
2229
|
};
|
|
2250
2230
|
};
|
|
2251
2231
|
const deserializeAws_json1_0StartSyncExecutionOutput = (output, context) => {
|
|
2252
2232
|
return {
|
|
2253
|
-
billingDetails: output.billingDetails
|
|
2254
|
-
? deserializeAws_json1_0BillingDetails(output.billingDetails, context)
|
|
2255
|
-
: undefined,
|
|
2233
|
+
billingDetails: output.billingDetails != null ? deserializeAws_json1_0BillingDetails(output.billingDetails, context) : undefined,
|
|
2256
2234
|
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2257
2235
|
error: (0, smithy_client_1.expectString)(output.error),
|
|
2258
2236
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
2259
2237
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
2260
|
-
inputDetails: output.inputDetails
|
|
2238
|
+
inputDetails: output.inputDetails != null
|
|
2261
2239
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
|
|
2262
2240
|
: undefined,
|
|
2263
2241
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2264
2242
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2265
|
-
outputDetails: output.outputDetails
|
|
2243
|
+
outputDetails: output.outputDetails != null
|
|
2266
2244
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
|
|
2267
2245
|
: undefined,
|
|
2268
|
-
startDate: output.startDate
|
|
2269
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
2270
|
-
: undefined,
|
|
2246
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
2271
2247
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
2272
2248
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2273
|
-
stopDate: output.stopDate
|
|
2274
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
2275
|
-
: undefined,
|
|
2249
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
2276
2250
|
traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
|
|
2277
2251
|
};
|
|
2278
2252
|
};
|
|
2279
2253
|
const deserializeAws_json1_0StateEnteredEventDetails = (output, context) => {
|
|
2280
2254
|
return {
|
|
2281
2255
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
2282
|
-
inputDetails: output.inputDetails
|
|
2256
|
+
inputDetails: output.inputDetails != null
|
|
2283
2257
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
2284
2258
|
: undefined,
|
|
2285
2259
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -2289,7 +2263,7 @@ const deserializeAws_json1_0StateExitedEventDetails = (output, context) => {
|
|
|
2289
2263
|
return {
|
|
2290
2264
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2291
2265
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2292
|
-
outputDetails: output.outputDetails
|
|
2266
|
+
outputDetails: output.outputDetails != null
|
|
2293
2267
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2294
2268
|
: undefined,
|
|
2295
2269
|
};
|
|
@@ -2327,7 +2301,7 @@ const deserializeAws_json1_0StateMachineList = (output, context) => {
|
|
|
2327
2301
|
};
|
|
2328
2302
|
const deserializeAws_json1_0StateMachineListItem = (output, context) => {
|
|
2329
2303
|
return {
|
|
2330
|
-
creationDate: output.creationDate
|
|
2304
|
+
creationDate: output.creationDate != null
|
|
2331
2305
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
2332
2306
|
: undefined,
|
|
2333
2307
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -2342,9 +2316,7 @@ const deserializeAws_json1_0StateMachineTypeNotSupported = (output, context) =>
|
|
|
2342
2316
|
};
|
|
2343
2317
|
const deserializeAws_json1_0StopExecutionOutput = (output, context) => {
|
|
2344
2318
|
return {
|
|
2345
|
-
stopDate: output.stopDate
|
|
2346
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
2347
|
-
: undefined,
|
|
2319
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
2348
2320
|
};
|
|
2349
2321
|
};
|
|
2350
2322
|
const deserializeAws_json1_0Tag = (output, context) => {
|
|
@@ -2415,7 +2387,7 @@ const deserializeAws_json1_0TaskSubmitFailedEventDetails = (output, context) =>
|
|
|
2415
2387
|
const deserializeAws_json1_0TaskSubmittedEventDetails = (output, context) => {
|
|
2416
2388
|
return {
|
|
2417
2389
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2418
|
-
outputDetails: output.outputDetails
|
|
2390
|
+
outputDetails: output.outputDetails != null
|
|
2419
2391
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2420
2392
|
: undefined,
|
|
2421
2393
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -2425,7 +2397,7 @@ const deserializeAws_json1_0TaskSubmittedEventDetails = (output, context) => {
|
|
|
2425
2397
|
const deserializeAws_json1_0TaskSucceededEventDetails = (output, context) => {
|
|
2426
2398
|
return {
|
|
2427
2399
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2428
|
-
outputDetails: output.outputDetails
|
|
2400
|
+
outputDetails: output.outputDetails != null
|
|
2429
2401
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2430
2402
|
: undefined,
|
|
2431
2403
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -2461,9 +2433,7 @@ const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
|
|
|
2461
2433
|
};
|
|
2462
2434
|
const deserializeAws_json1_0UpdateStateMachineOutput = (output, context) => {
|
|
2463
2435
|
return {
|
|
2464
|
-
updateDate: output.updateDate
|
|
2465
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate)))
|
|
2466
|
-
: undefined,
|
|
2436
|
+
updateDate: output.updateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate))) : undefined,
|
|
2467
2437
|
};
|
|
2468
2438
|
};
|
|
2469
2439
|
const deserializeMetadata = (output) => {
|
|
@@ -2528,5 +2498,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2528
2498
|
if (data["__type"] !== undefined) {
|
|
2529
2499
|
return sanitizeErrorCode(data["__type"]);
|
|
2530
2500
|
}
|
|
2531
|
-
return "";
|
|
2532
2501
|
};
|