@aws-sdk/client-swf 3.118.0 → 3.127.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.
@@ -396,8 +396,7 @@ const deserializeAws_json1_0CountClosedWorkflowExecutionsCommandError = async (o
396
396
  body: await parseBody(output.body, context),
397
397
  };
398
398
  let response;
399
- let errorCode = "UnknownError";
400
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
399
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
401
400
  switch (errorCode) {
402
401
  case "OperationNotPermittedFault":
403
402
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -407,10 +406,12 @@ const deserializeAws_json1_0CountClosedWorkflowExecutionsCommandError = async (o
407
406
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
408
407
  default:
409
408
  const parsedBody = parsedOutput.body;
409
+ const $metadata = deserializeMetadata(output);
410
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
410
411
  response = new SWFServiceException_1.SWFServiceException({
411
- name: parsedBody.code || parsedBody.Code || errorCode,
412
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
412
413
  $fault: "client",
413
- $metadata: deserializeMetadata(output),
414
+ $metadata,
414
415
  });
415
416
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
416
417
  }
@@ -435,8 +436,7 @@ const deserializeAws_json1_0CountOpenWorkflowExecutionsCommandError = async (out
435
436
  body: await parseBody(output.body, context),
436
437
  };
437
438
  let response;
438
- let errorCode = "UnknownError";
439
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
439
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
440
440
  switch (errorCode) {
441
441
  case "OperationNotPermittedFault":
442
442
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -446,10 +446,12 @@ const deserializeAws_json1_0CountOpenWorkflowExecutionsCommandError = async (out
446
446
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
447
447
  default:
448
448
  const parsedBody = parsedOutput.body;
449
+ const $metadata = deserializeMetadata(output);
450
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
449
451
  response = new SWFServiceException_1.SWFServiceException({
450
- name: parsedBody.code || parsedBody.Code || errorCode,
452
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
451
453
  $fault: "client",
452
- $metadata: deserializeMetadata(output),
454
+ $metadata,
453
455
  });
454
456
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
455
457
  }
@@ -474,8 +476,7 @@ const deserializeAws_json1_0CountPendingActivityTasksCommandError = async (outpu
474
476
  body: await parseBody(output.body, context),
475
477
  };
476
478
  let response;
477
- let errorCode = "UnknownError";
478
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
479
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
479
480
  switch (errorCode) {
480
481
  case "OperationNotPermittedFault":
481
482
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -485,10 +486,12 @@ const deserializeAws_json1_0CountPendingActivityTasksCommandError = async (outpu
485
486
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
486
487
  default:
487
488
  const parsedBody = parsedOutput.body;
489
+ const $metadata = deserializeMetadata(output);
490
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
488
491
  response = new SWFServiceException_1.SWFServiceException({
489
- name: parsedBody.code || parsedBody.Code || errorCode,
492
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
490
493
  $fault: "client",
491
- $metadata: deserializeMetadata(output),
494
+ $metadata,
492
495
  });
493
496
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
494
497
  }
@@ -513,8 +516,7 @@ const deserializeAws_json1_0CountPendingDecisionTasksCommandError = async (outpu
513
516
  body: await parseBody(output.body, context),
514
517
  };
515
518
  let response;
516
- let errorCode = "UnknownError";
517
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
519
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
518
520
  switch (errorCode) {
519
521
  case "OperationNotPermittedFault":
520
522
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -524,10 +526,12 @@ const deserializeAws_json1_0CountPendingDecisionTasksCommandError = async (outpu
524
526
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
525
527
  default:
526
528
  const parsedBody = parsedOutput.body;
529
+ const $metadata = deserializeMetadata(output);
530
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
527
531
  response = new SWFServiceException_1.SWFServiceException({
528
- name: parsedBody.code || parsedBody.Code || errorCode,
532
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
529
533
  $fault: "client",
530
- $metadata: deserializeMetadata(output),
534
+ $metadata,
531
535
  });
532
536
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
533
537
  }
@@ -549,8 +553,7 @@ const deserializeAws_json1_0DeprecateActivityTypeCommandError = async (output, c
549
553
  body: await parseBody(output.body, context),
550
554
  };
551
555
  let response;
552
- let errorCode = "UnknownError";
553
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
556
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
554
557
  switch (errorCode) {
555
558
  case "OperationNotPermittedFault":
556
559
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -563,10 +566,12 @@ const deserializeAws_json1_0DeprecateActivityTypeCommandError = async (output, c
563
566
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
564
567
  default:
565
568
  const parsedBody = parsedOutput.body;
569
+ const $metadata = deserializeMetadata(output);
570
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
566
571
  response = new SWFServiceException_1.SWFServiceException({
567
- name: parsedBody.code || parsedBody.Code || errorCode,
572
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
568
573
  $fault: "client",
569
- $metadata: deserializeMetadata(output),
574
+ $metadata,
570
575
  });
571
576
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
572
577
  }
@@ -588,8 +593,7 @@ const deserializeAws_json1_0DeprecateDomainCommandError = async (output, context
588
593
  body: await parseBody(output.body, context),
589
594
  };
590
595
  let response;
591
- let errorCode = "UnknownError";
592
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
596
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
593
597
  switch (errorCode) {
594
598
  case "DomainDeprecatedFault":
595
599
  case "com.amazonaws.swf#DomainDeprecatedFault":
@@ -602,10 +606,12 @@ const deserializeAws_json1_0DeprecateDomainCommandError = async (output, context
602
606
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
603
607
  default:
604
608
  const parsedBody = parsedOutput.body;
609
+ const $metadata = deserializeMetadata(output);
610
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
605
611
  response = new SWFServiceException_1.SWFServiceException({
606
- name: parsedBody.code || parsedBody.Code || errorCode,
612
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
607
613
  $fault: "client",
608
- $metadata: deserializeMetadata(output),
614
+ $metadata,
609
615
  });
610
616
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
611
617
  }
@@ -627,8 +633,7 @@ const deserializeAws_json1_0DeprecateWorkflowTypeCommandError = async (output, c
627
633
  body: await parseBody(output.body, context),
628
634
  };
629
635
  let response;
630
- let errorCode = "UnknownError";
631
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
636
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
632
637
  switch (errorCode) {
633
638
  case "OperationNotPermittedFault":
634
639
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -641,10 +646,12 @@ const deserializeAws_json1_0DeprecateWorkflowTypeCommandError = async (output, c
641
646
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
642
647
  default:
643
648
  const parsedBody = parsedOutput.body;
649
+ const $metadata = deserializeMetadata(output);
650
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
644
651
  response = new SWFServiceException_1.SWFServiceException({
645
- name: parsedBody.code || parsedBody.Code || errorCode,
652
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
646
653
  $fault: "client",
647
- $metadata: deserializeMetadata(output),
654
+ $metadata,
648
655
  });
649
656
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
650
657
  }
@@ -669,8 +676,7 @@ const deserializeAws_json1_0DescribeActivityTypeCommandError = async (output, co
669
676
  body: await parseBody(output.body, context),
670
677
  };
671
678
  let response;
672
- let errorCode = "UnknownError";
673
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
679
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
674
680
  switch (errorCode) {
675
681
  case "OperationNotPermittedFault":
676
682
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -680,10 +686,12 @@ const deserializeAws_json1_0DescribeActivityTypeCommandError = async (output, co
680
686
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
681
687
  default:
682
688
  const parsedBody = parsedOutput.body;
689
+ const $metadata = deserializeMetadata(output);
690
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
683
691
  response = new SWFServiceException_1.SWFServiceException({
684
- name: parsedBody.code || parsedBody.Code || errorCode,
692
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
685
693
  $fault: "client",
686
- $metadata: deserializeMetadata(output),
694
+ $metadata,
687
695
  });
688
696
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
689
697
  }
@@ -708,8 +716,7 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
708
716
  body: await parseBody(output.body, context),
709
717
  };
710
718
  let response;
711
- let errorCode = "UnknownError";
712
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
719
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
713
720
  switch (errorCode) {
714
721
  case "OperationNotPermittedFault":
715
722
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -719,10 +726,12 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
719
726
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
720
727
  default:
721
728
  const parsedBody = parsedOutput.body;
729
+ const $metadata = deserializeMetadata(output);
730
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
722
731
  response = new SWFServiceException_1.SWFServiceException({
723
- name: parsedBody.code || parsedBody.Code || errorCode,
732
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
724
733
  $fault: "client",
725
- $metadata: deserializeMetadata(output),
734
+ $metadata,
726
735
  });
727
736
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
728
737
  }
@@ -747,8 +756,7 @@ const deserializeAws_json1_0DescribeWorkflowExecutionCommandError = async (outpu
747
756
  body: await parseBody(output.body, context),
748
757
  };
749
758
  let response;
750
- let errorCode = "UnknownError";
751
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
759
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
752
760
  switch (errorCode) {
753
761
  case "OperationNotPermittedFault":
754
762
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -758,10 +766,12 @@ const deserializeAws_json1_0DescribeWorkflowExecutionCommandError = async (outpu
758
766
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
759
767
  default:
760
768
  const parsedBody = parsedOutput.body;
769
+ const $metadata = deserializeMetadata(output);
770
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
761
771
  response = new SWFServiceException_1.SWFServiceException({
762
- name: parsedBody.code || parsedBody.Code || errorCode,
772
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
763
773
  $fault: "client",
764
- $metadata: deserializeMetadata(output),
774
+ $metadata,
765
775
  });
766
776
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
767
777
  }
@@ -786,8 +796,7 @@ const deserializeAws_json1_0DescribeWorkflowTypeCommandError = async (output, co
786
796
  body: await parseBody(output.body, context),
787
797
  };
788
798
  let response;
789
- let errorCode = "UnknownError";
790
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
799
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
791
800
  switch (errorCode) {
792
801
  case "OperationNotPermittedFault":
793
802
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -797,10 +806,12 @@ const deserializeAws_json1_0DescribeWorkflowTypeCommandError = async (output, co
797
806
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
798
807
  default:
799
808
  const parsedBody = parsedOutput.body;
809
+ const $metadata = deserializeMetadata(output);
810
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
800
811
  response = new SWFServiceException_1.SWFServiceException({
801
- name: parsedBody.code || parsedBody.Code || errorCode,
812
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
802
813
  $fault: "client",
803
- $metadata: deserializeMetadata(output),
814
+ $metadata,
804
815
  });
805
816
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
806
817
  }
@@ -825,8 +836,7 @@ const deserializeAws_json1_0GetWorkflowExecutionHistoryCommandError = async (out
825
836
  body: await parseBody(output.body, context),
826
837
  };
827
838
  let response;
828
- let errorCode = "UnknownError";
829
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
839
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
830
840
  switch (errorCode) {
831
841
  case "OperationNotPermittedFault":
832
842
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -836,10 +846,12 @@ const deserializeAws_json1_0GetWorkflowExecutionHistoryCommandError = async (out
836
846
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
837
847
  default:
838
848
  const parsedBody = parsedOutput.body;
849
+ const $metadata = deserializeMetadata(output);
850
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
839
851
  response = new SWFServiceException_1.SWFServiceException({
840
- name: parsedBody.code || parsedBody.Code || errorCode,
852
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
841
853
  $fault: "client",
842
- $metadata: deserializeMetadata(output),
854
+ $metadata,
843
855
  });
844
856
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
845
857
  }
@@ -864,8 +876,7 @@ const deserializeAws_json1_0ListActivityTypesCommandError = async (output, conte
864
876
  body: await parseBody(output.body, context),
865
877
  };
866
878
  let response;
867
- let errorCode = "UnknownError";
868
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
879
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
869
880
  switch (errorCode) {
870
881
  case "OperationNotPermittedFault":
871
882
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -875,10 +886,12 @@ const deserializeAws_json1_0ListActivityTypesCommandError = async (output, conte
875
886
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
876
887
  default:
877
888
  const parsedBody = parsedOutput.body;
889
+ const $metadata = deserializeMetadata(output);
890
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
878
891
  response = new SWFServiceException_1.SWFServiceException({
879
- name: parsedBody.code || parsedBody.Code || errorCode,
892
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
880
893
  $fault: "client",
881
- $metadata: deserializeMetadata(output),
894
+ $metadata,
882
895
  });
883
896
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
884
897
  }
@@ -903,8 +916,7 @@ const deserializeAws_json1_0ListClosedWorkflowExecutionsCommandError = async (ou
903
916
  body: await parseBody(output.body, context),
904
917
  };
905
918
  let response;
906
- let errorCode = "UnknownError";
907
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
919
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
908
920
  switch (errorCode) {
909
921
  case "OperationNotPermittedFault":
910
922
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -914,10 +926,12 @@ const deserializeAws_json1_0ListClosedWorkflowExecutionsCommandError = async (ou
914
926
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
915
927
  default:
916
928
  const parsedBody = parsedOutput.body;
929
+ const $metadata = deserializeMetadata(output);
930
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
917
931
  response = new SWFServiceException_1.SWFServiceException({
918
- name: parsedBody.code || parsedBody.Code || errorCode,
932
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
919
933
  $fault: "client",
920
- $metadata: deserializeMetadata(output),
934
+ $metadata,
921
935
  });
922
936
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
923
937
  }
@@ -942,18 +956,19 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
942
956
  body: await parseBody(output.body, context),
943
957
  };
944
958
  let response;
945
- let errorCode = "UnknownError";
946
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
959
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
947
960
  switch (errorCode) {
948
961
  case "OperationNotPermittedFault":
949
962
  case "com.amazonaws.swf#OperationNotPermittedFault":
950
963
  throw await deserializeAws_json1_0OperationNotPermittedFaultResponse(parsedOutput, context);
951
964
  default:
952
965
  const parsedBody = parsedOutput.body;
966
+ const $metadata = deserializeMetadata(output);
967
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
953
968
  response = new SWFServiceException_1.SWFServiceException({
954
- name: parsedBody.code || parsedBody.Code || errorCode,
969
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
955
970
  $fault: "client",
956
- $metadata: deserializeMetadata(output),
971
+ $metadata,
957
972
  });
958
973
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
959
974
  }
@@ -978,8 +993,7 @@ const deserializeAws_json1_0ListOpenWorkflowExecutionsCommandError = async (outp
978
993
  body: await parseBody(output.body, context),
979
994
  };
980
995
  let response;
981
- let errorCode = "UnknownError";
982
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
996
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
983
997
  switch (errorCode) {
984
998
  case "OperationNotPermittedFault":
985
999
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -989,10 +1003,12 @@ const deserializeAws_json1_0ListOpenWorkflowExecutionsCommandError = async (outp
989
1003
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
990
1004
  default:
991
1005
  const parsedBody = parsedOutput.body;
1006
+ const $metadata = deserializeMetadata(output);
1007
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
992
1008
  response = new SWFServiceException_1.SWFServiceException({
993
- name: parsedBody.code || parsedBody.Code || errorCode,
1009
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
994
1010
  $fault: "client",
995
- $metadata: deserializeMetadata(output),
1011
+ $metadata,
996
1012
  });
997
1013
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
998
1014
  }
@@ -1017,8 +1033,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
1017
1033
  body: await parseBody(output.body, context),
1018
1034
  };
1019
1035
  let response;
1020
- let errorCode = "UnknownError";
1021
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1036
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1022
1037
  switch (errorCode) {
1023
1038
  case "LimitExceededFault":
1024
1039
  case "com.amazonaws.swf#LimitExceededFault":
@@ -1031,10 +1046,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
1031
1046
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1032
1047
  default:
1033
1048
  const parsedBody = parsedOutput.body;
1049
+ const $metadata = deserializeMetadata(output);
1050
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1034
1051
  response = new SWFServiceException_1.SWFServiceException({
1035
- name: parsedBody.code || parsedBody.Code || errorCode,
1052
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1036
1053
  $fault: "client",
1037
- $metadata: deserializeMetadata(output),
1054
+ $metadata,
1038
1055
  });
1039
1056
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1040
1057
  }
@@ -1059,8 +1076,7 @@ const deserializeAws_json1_0ListWorkflowTypesCommandError = async (output, conte
1059
1076
  body: await parseBody(output.body, context),
1060
1077
  };
1061
1078
  let response;
1062
- let errorCode = "UnknownError";
1063
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1079
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1064
1080
  switch (errorCode) {
1065
1081
  case "OperationNotPermittedFault":
1066
1082
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1070,10 +1086,12 @@ const deserializeAws_json1_0ListWorkflowTypesCommandError = async (output, conte
1070
1086
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1071
1087
  default:
1072
1088
  const parsedBody = parsedOutput.body;
1089
+ const $metadata = deserializeMetadata(output);
1090
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1073
1091
  response = new SWFServiceException_1.SWFServiceException({
1074
- name: parsedBody.code || parsedBody.Code || errorCode,
1092
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1075
1093
  $fault: "client",
1076
- $metadata: deserializeMetadata(output),
1094
+ $metadata,
1077
1095
  });
1078
1096
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1079
1097
  }
@@ -1098,8 +1116,7 @@ const deserializeAws_json1_0PollForActivityTaskCommandError = async (output, con
1098
1116
  body: await parseBody(output.body, context),
1099
1117
  };
1100
1118
  let response;
1101
- let errorCode = "UnknownError";
1102
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1119
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1103
1120
  switch (errorCode) {
1104
1121
  case "LimitExceededFault":
1105
1122
  case "com.amazonaws.swf#LimitExceededFault":
@@ -1112,10 +1129,12 @@ const deserializeAws_json1_0PollForActivityTaskCommandError = async (output, con
1112
1129
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1113
1130
  default:
1114
1131
  const parsedBody = parsedOutput.body;
1132
+ const $metadata = deserializeMetadata(output);
1133
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1115
1134
  response = new SWFServiceException_1.SWFServiceException({
1116
- name: parsedBody.code || parsedBody.Code || errorCode,
1135
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1117
1136
  $fault: "client",
1118
- $metadata: deserializeMetadata(output),
1137
+ $metadata,
1119
1138
  });
1120
1139
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1121
1140
  }
@@ -1140,8 +1159,7 @@ const deserializeAws_json1_0PollForDecisionTaskCommandError = async (output, con
1140
1159
  body: await parseBody(output.body, context),
1141
1160
  };
1142
1161
  let response;
1143
- let errorCode = "UnknownError";
1144
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1162
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1145
1163
  switch (errorCode) {
1146
1164
  case "LimitExceededFault":
1147
1165
  case "com.amazonaws.swf#LimitExceededFault":
@@ -1154,10 +1172,12 @@ const deserializeAws_json1_0PollForDecisionTaskCommandError = async (output, con
1154
1172
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1155
1173
  default:
1156
1174
  const parsedBody = parsedOutput.body;
1175
+ const $metadata = deserializeMetadata(output);
1176
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1157
1177
  response = new SWFServiceException_1.SWFServiceException({
1158
- name: parsedBody.code || parsedBody.Code || errorCode,
1178
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1159
1179
  $fault: "client",
1160
- $metadata: deserializeMetadata(output),
1180
+ $metadata,
1161
1181
  });
1162
1182
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1163
1183
  }
@@ -1182,8 +1202,7 @@ const deserializeAws_json1_0RecordActivityTaskHeartbeatCommandError = async (out
1182
1202
  body: await parseBody(output.body, context),
1183
1203
  };
1184
1204
  let response;
1185
- let errorCode = "UnknownError";
1186
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1205
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1187
1206
  switch (errorCode) {
1188
1207
  case "OperationNotPermittedFault":
1189
1208
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1193,10 +1212,12 @@ const deserializeAws_json1_0RecordActivityTaskHeartbeatCommandError = async (out
1193
1212
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1194
1213
  default:
1195
1214
  const parsedBody = parsedOutput.body;
1215
+ const $metadata = deserializeMetadata(output);
1216
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1196
1217
  response = new SWFServiceException_1.SWFServiceException({
1197
- name: parsedBody.code || parsedBody.Code || errorCode,
1218
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1198
1219
  $fault: "client",
1199
- $metadata: deserializeMetadata(output),
1220
+ $metadata,
1200
1221
  });
1201
1222
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1202
1223
  }
@@ -1218,8 +1239,7 @@ const deserializeAws_json1_0RegisterActivityTypeCommandError = async (output, co
1218
1239
  body: await parseBody(output.body, context),
1219
1240
  };
1220
1241
  let response;
1221
- let errorCode = "UnknownError";
1222
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1223
1243
  switch (errorCode) {
1224
1244
  case "LimitExceededFault":
1225
1245
  case "com.amazonaws.swf#LimitExceededFault":
@@ -1235,10 +1255,12 @@ const deserializeAws_json1_0RegisterActivityTypeCommandError = async (output, co
1235
1255
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1236
1256
  default:
1237
1257
  const parsedBody = parsedOutput.body;
1258
+ const $metadata = deserializeMetadata(output);
1259
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1238
1260
  response = new SWFServiceException_1.SWFServiceException({
1239
- name: parsedBody.code || parsedBody.Code || errorCode,
1261
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1240
1262
  $fault: "client",
1241
- $metadata: deserializeMetadata(output),
1263
+ $metadata,
1242
1264
  });
1243
1265
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1244
1266
  }
@@ -1260,8 +1282,7 @@ const deserializeAws_json1_0RegisterDomainCommandError = async (output, context)
1260
1282
  body: await parseBody(output.body, context),
1261
1283
  };
1262
1284
  let response;
1263
- let errorCode = "UnknownError";
1264
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1285
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1265
1286
  switch (errorCode) {
1266
1287
  case "DomainAlreadyExistsFault":
1267
1288
  case "com.amazonaws.swf#DomainAlreadyExistsFault":
@@ -1277,10 +1298,12 @@ const deserializeAws_json1_0RegisterDomainCommandError = async (output, context)
1277
1298
  throw await deserializeAws_json1_0TooManyTagsFaultResponse(parsedOutput, context);
1278
1299
  default:
1279
1300
  const parsedBody = parsedOutput.body;
1301
+ const $metadata = deserializeMetadata(output);
1302
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1280
1303
  response = new SWFServiceException_1.SWFServiceException({
1281
- name: parsedBody.code || parsedBody.Code || errorCode,
1304
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1282
1305
  $fault: "client",
1283
- $metadata: deserializeMetadata(output),
1306
+ $metadata,
1284
1307
  });
1285
1308
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1286
1309
  }
@@ -1302,8 +1325,7 @@ const deserializeAws_json1_0RegisterWorkflowTypeCommandError = async (output, co
1302
1325
  body: await parseBody(output.body, context),
1303
1326
  };
1304
1327
  let response;
1305
- let errorCode = "UnknownError";
1306
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1328
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1307
1329
  switch (errorCode) {
1308
1330
  case "LimitExceededFault":
1309
1331
  case "com.amazonaws.swf#LimitExceededFault":
@@ -1319,10 +1341,12 @@ const deserializeAws_json1_0RegisterWorkflowTypeCommandError = async (output, co
1319
1341
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1320
1342
  default:
1321
1343
  const parsedBody = parsedOutput.body;
1344
+ const $metadata = deserializeMetadata(output);
1345
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1322
1346
  response = new SWFServiceException_1.SWFServiceException({
1323
- name: parsedBody.code || parsedBody.Code || errorCode,
1347
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1324
1348
  $fault: "client",
1325
- $metadata: deserializeMetadata(output),
1349
+ $metadata,
1326
1350
  });
1327
1351
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1328
1352
  }
@@ -1344,8 +1368,7 @@ const deserializeAws_json1_0RequestCancelWorkflowExecutionCommandError = async (
1344
1368
  body: await parseBody(output.body, context),
1345
1369
  };
1346
1370
  let response;
1347
- let errorCode = "UnknownError";
1348
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1371
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1349
1372
  switch (errorCode) {
1350
1373
  case "OperationNotPermittedFault":
1351
1374
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1355,10 +1378,12 @@ const deserializeAws_json1_0RequestCancelWorkflowExecutionCommandError = async (
1355
1378
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1356
1379
  default:
1357
1380
  const parsedBody = parsedOutput.body;
1381
+ const $metadata = deserializeMetadata(output);
1382
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1358
1383
  response = new SWFServiceException_1.SWFServiceException({
1359
- name: parsedBody.code || parsedBody.Code || errorCode,
1384
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1360
1385
  $fault: "client",
1361
- $metadata: deserializeMetadata(output),
1386
+ $metadata,
1362
1387
  });
1363
1388
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1364
1389
  }
@@ -1380,8 +1405,7 @@ const deserializeAws_json1_0RespondActivityTaskCanceledCommandError = async (out
1380
1405
  body: await parseBody(output.body, context),
1381
1406
  };
1382
1407
  let response;
1383
- let errorCode = "UnknownError";
1384
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1408
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1385
1409
  switch (errorCode) {
1386
1410
  case "OperationNotPermittedFault":
1387
1411
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1391,10 +1415,12 @@ const deserializeAws_json1_0RespondActivityTaskCanceledCommandError = async (out
1391
1415
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1392
1416
  default:
1393
1417
  const parsedBody = parsedOutput.body;
1418
+ const $metadata = deserializeMetadata(output);
1419
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1394
1420
  response = new SWFServiceException_1.SWFServiceException({
1395
- name: parsedBody.code || parsedBody.Code || errorCode,
1421
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1396
1422
  $fault: "client",
1397
- $metadata: deserializeMetadata(output),
1423
+ $metadata,
1398
1424
  });
1399
1425
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1400
1426
  }
@@ -1416,8 +1442,7 @@ const deserializeAws_json1_0RespondActivityTaskCompletedCommandError = async (ou
1416
1442
  body: await parseBody(output.body, context),
1417
1443
  };
1418
1444
  let response;
1419
- let errorCode = "UnknownError";
1420
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1445
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1421
1446
  switch (errorCode) {
1422
1447
  case "OperationNotPermittedFault":
1423
1448
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1427,10 +1452,12 @@ const deserializeAws_json1_0RespondActivityTaskCompletedCommandError = async (ou
1427
1452
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1428
1453
  default:
1429
1454
  const parsedBody = parsedOutput.body;
1455
+ const $metadata = deserializeMetadata(output);
1456
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1430
1457
  response = new SWFServiceException_1.SWFServiceException({
1431
- name: parsedBody.code || parsedBody.Code || errorCode,
1458
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1432
1459
  $fault: "client",
1433
- $metadata: deserializeMetadata(output),
1460
+ $metadata,
1434
1461
  });
1435
1462
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1436
1463
  }
@@ -1452,8 +1479,7 @@ const deserializeAws_json1_0RespondActivityTaskFailedCommandError = async (outpu
1452
1479
  body: await parseBody(output.body, context),
1453
1480
  };
1454
1481
  let response;
1455
- let errorCode = "UnknownError";
1456
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1457
1483
  switch (errorCode) {
1458
1484
  case "OperationNotPermittedFault":
1459
1485
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1463,10 +1489,12 @@ const deserializeAws_json1_0RespondActivityTaskFailedCommandError = async (outpu
1463
1489
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1464
1490
  default:
1465
1491
  const parsedBody = parsedOutput.body;
1492
+ const $metadata = deserializeMetadata(output);
1493
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1466
1494
  response = new SWFServiceException_1.SWFServiceException({
1467
- name: parsedBody.code || parsedBody.Code || errorCode,
1495
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1468
1496
  $fault: "client",
1469
- $metadata: deserializeMetadata(output),
1497
+ $metadata,
1470
1498
  });
1471
1499
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1472
1500
  }
@@ -1488,8 +1516,7 @@ const deserializeAws_json1_0RespondDecisionTaskCompletedCommandError = async (ou
1488
1516
  body: await parseBody(output.body, context),
1489
1517
  };
1490
1518
  let response;
1491
- let errorCode = "UnknownError";
1492
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1519
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1493
1520
  switch (errorCode) {
1494
1521
  case "OperationNotPermittedFault":
1495
1522
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1499,10 +1526,12 @@ const deserializeAws_json1_0RespondDecisionTaskCompletedCommandError = async (ou
1499
1526
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1500
1527
  default:
1501
1528
  const parsedBody = parsedOutput.body;
1529
+ const $metadata = deserializeMetadata(output);
1530
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1502
1531
  response = new SWFServiceException_1.SWFServiceException({
1503
- name: parsedBody.code || parsedBody.Code || errorCode,
1532
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1504
1533
  $fault: "client",
1505
- $metadata: deserializeMetadata(output),
1534
+ $metadata,
1506
1535
  });
1507
1536
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1508
1537
  }
@@ -1524,8 +1553,7 @@ const deserializeAws_json1_0SignalWorkflowExecutionCommandError = async (output,
1524
1553
  body: await parseBody(output.body, context),
1525
1554
  };
1526
1555
  let response;
1527
- let errorCode = "UnknownError";
1528
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1556
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1529
1557
  switch (errorCode) {
1530
1558
  case "OperationNotPermittedFault":
1531
1559
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1535,10 +1563,12 @@ const deserializeAws_json1_0SignalWorkflowExecutionCommandError = async (output,
1535
1563
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1536
1564
  default:
1537
1565
  const parsedBody = parsedOutput.body;
1566
+ const $metadata = deserializeMetadata(output);
1567
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1538
1568
  response = new SWFServiceException_1.SWFServiceException({
1539
- name: parsedBody.code || parsedBody.Code || errorCode,
1569
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1540
1570
  $fault: "client",
1541
- $metadata: deserializeMetadata(output),
1571
+ $metadata,
1542
1572
  });
1543
1573
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1544
1574
  }
@@ -1563,8 +1593,7 @@ const deserializeAws_json1_0StartWorkflowExecutionCommandError = async (output,
1563
1593
  body: await parseBody(output.body, context),
1564
1594
  };
1565
1595
  let response;
1566
- let errorCode = "UnknownError";
1567
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1596
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1568
1597
  switch (errorCode) {
1569
1598
  case "DefaultUndefinedFault":
1570
1599
  case "com.amazonaws.swf#DefaultUndefinedFault":
@@ -1586,10 +1615,12 @@ const deserializeAws_json1_0StartWorkflowExecutionCommandError = async (output,
1586
1615
  throw await deserializeAws_json1_0WorkflowExecutionAlreadyStartedFaultResponse(parsedOutput, context);
1587
1616
  default:
1588
1617
  const parsedBody = parsedOutput.body;
1618
+ const $metadata = deserializeMetadata(output);
1619
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1589
1620
  response = new SWFServiceException_1.SWFServiceException({
1590
- name: parsedBody.code || parsedBody.Code || errorCode,
1621
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1591
1622
  $fault: "client",
1592
- $metadata: deserializeMetadata(output),
1623
+ $metadata,
1593
1624
  });
1594
1625
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1595
1626
  }
@@ -1611,8 +1642,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
1611
1642
  body: await parseBody(output.body, context),
1612
1643
  };
1613
1644
  let response;
1614
- let errorCode = "UnknownError";
1615
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1645
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1616
1646
  switch (errorCode) {
1617
1647
  case "LimitExceededFault":
1618
1648
  case "com.amazonaws.swf#LimitExceededFault":
@@ -1628,10 +1658,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
1628
1658
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1629
1659
  default:
1630
1660
  const parsedBody = parsedOutput.body;
1661
+ const $metadata = deserializeMetadata(output);
1662
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1631
1663
  response = new SWFServiceException_1.SWFServiceException({
1632
- name: parsedBody.code || parsedBody.Code || errorCode,
1664
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1633
1665
  $fault: "client",
1634
- $metadata: deserializeMetadata(output),
1666
+ $metadata,
1635
1667
  });
1636
1668
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1637
1669
  }
@@ -1653,8 +1685,7 @@ const deserializeAws_json1_0TerminateWorkflowExecutionCommandError = async (outp
1653
1685
  body: await parseBody(output.body, context),
1654
1686
  };
1655
1687
  let response;
1656
- let errorCode = "UnknownError";
1657
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1688
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1658
1689
  switch (errorCode) {
1659
1690
  case "OperationNotPermittedFault":
1660
1691
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1664,10 +1695,12 @@ const deserializeAws_json1_0TerminateWorkflowExecutionCommandError = async (outp
1664
1695
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1665
1696
  default:
1666
1697
  const parsedBody = parsedOutput.body;
1698
+ const $metadata = deserializeMetadata(output);
1699
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1667
1700
  response = new SWFServiceException_1.SWFServiceException({
1668
- name: parsedBody.code || parsedBody.Code || errorCode,
1701
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1669
1702
  $fault: "client",
1670
- $metadata: deserializeMetadata(output),
1703
+ $metadata,
1671
1704
  });
1672
1705
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1673
1706
  }
@@ -1689,8 +1722,7 @@ const deserializeAws_json1_0UndeprecateActivityTypeCommandError = async (output,
1689
1722
  body: await parseBody(output.body, context),
1690
1723
  };
1691
1724
  let response;
1692
- let errorCode = "UnknownError";
1693
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1725
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
1726
  switch (errorCode) {
1695
1727
  case "OperationNotPermittedFault":
1696
1728
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1703,10 +1735,12 @@ const deserializeAws_json1_0UndeprecateActivityTypeCommandError = async (output,
1703
1735
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1704
1736
  default:
1705
1737
  const parsedBody = parsedOutput.body;
1738
+ const $metadata = deserializeMetadata(output);
1739
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1706
1740
  response = new SWFServiceException_1.SWFServiceException({
1707
- name: parsedBody.code || parsedBody.Code || errorCode,
1741
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1708
1742
  $fault: "client",
1709
- $metadata: deserializeMetadata(output),
1743
+ $metadata,
1710
1744
  });
1711
1745
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1712
1746
  }
@@ -1728,8 +1762,7 @@ const deserializeAws_json1_0UndeprecateDomainCommandError = async (output, conte
1728
1762
  body: await parseBody(output.body, context),
1729
1763
  };
1730
1764
  let response;
1731
- let errorCode = "UnknownError";
1732
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1765
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1733
1766
  switch (errorCode) {
1734
1767
  case "DomainAlreadyExistsFault":
1735
1768
  case "com.amazonaws.swf#DomainAlreadyExistsFault":
@@ -1742,10 +1775,12 @@ const deserializeAws_json1_0UndeprecateDomainCommandError = async (output, conte
1742
1775
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1743
1776
  default:
1744
1777
  const parsedBody = parsedOutput.body;
1778
+ const $metadata = deserializeMetadata(output);
1779
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1745
1780
  response = new SWFServiceException_1.SWFServiceException({
1746
- name: parsedBody.code || parsedBody.Code || errorCode,
1781
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1747
1782
  $fault: "client",
1748
- $metadata: deserializeMetadata(output),
1783
+ $metadata,
1749
1784
  });
1750
1785
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1751
1786
  }
@@ -1767,8 +1802,7 @@ const deserializeAws_json1_0UndeprecateWorkflowTypeCommandError = async (output,
1767
1802
  body: await parseBody(output.body, context),
1768
1803
  };
1769
1804
  let response;
1770
- let errorCode = "UnknownError";
1771
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1805
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1772
1806
  switch (errorCode) {
1773
1807
  case "OperationNotPermittedFault":
1774
1808
  case "com.amazonaws.swf#OperationNotPermittedFault":
@@ -1781,10 +1815,12 @@ const deserializeAws_json1_0UndeprecateWorkflowTypeCommandError = async (output,
1781
1815
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1782
1816
  default:
1783
1817
  const parsedBody = parsedOutput.body;
1818
+ const $metadata = deserializeMetadata(output);
1819
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1784
1820
  response = new SWFServiceException_1.SWFServiceException({
1785
- name: parsedBody.code || parsedBody.Code || errorCode,
1821
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1786
1822
  $fault: "client",
1787
- $metadata: deserializeMetadata(output),
1823
+ $metadata,
1788
1824
  });
1789
1825
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1790
1826
  }
@@ -1806,8 +1842,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
1806
1842
  body: await parseBody(output.body, context),
1807
1843
  };
1808
1844
  let response;
1809
- let errorCode = "UnknownError";
1810
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1845
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1811
1846
  switch (errorCode) {
1812
1847
  case "LimitExceededFault":
1813
1848
  case "com.amazonaws.swf#LimitExceededFault":
@@ -1820,10 +1855,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
1820
1855
  throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
1821
1856
  default:
1822
1857
  const parsedBody = parsedOutput.body;
1858
+ const $metadata = deserializeMetadata(output);
1859
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1823
1860
  response = new SWFServiceException_1.SWFServiceException({
1824
- name: parsedBody.code || parsedBody.Code || errorCode,
1861
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1825
1862
  $fault: "client",
1826
- $metadata: deserializeMetadata(output),
1863
+ $metadata,
1827
1864
  });
1828
1865
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1829
1866
  }
@@ -1920,159 +1957,129 @@ const deserializeAws_json1_0WorkflowExecutionAlreadyStartedFaultResponse = async
1920
1957
  };
1921
1958
  const serializeAws_json1_0ActivityType = (input, context) => {
1922
1959
  return {
1923
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1924
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
1960
+ ...(input.name != null && { name: input.name }),
1961
+ ...(input.version != null && { version: input.version }),
1925
1962
  };
1926
1963
  };
1927
1964
  const serializeAws_json1_0CancelTimerDecisionAttributes = (input, context) => {
1928
1965
  return {
1929
- ...(input.timerId !== undefined && input.timerId !== null && { timerId: input.timerId }),
1966
+ ...(input.timerId != null && { timerId: input.timerId }),
1930
1967
  };
1931
1968
  };
1932
1969
  const serializeAws_json1_0CancelWorkflowExecutionDecisionAttributes = (input, context) => {
1933
1970
  return {
1934
- ...(input.details !== undefined && input.details !== null && { details: input.details }),
1971
+ ...(input.details != null && { details: input.details }),
1935
1972
  };
1936
1973
  };
1937
1974
  const serializeAws_json1_0CloseStatusFilter = (input, context) => {
1938
1975
  return {
1939
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
1976
+ ...(input.status != null && { status: input.status }),
1940
1977
  };
1941
1978
  };
1942
1979
  const serializeAws_json1_0CompleteWorkflowExecutionDecisionAttributes = (input, context) => {
1943
1980
  return {
1944
- ...(input.result !== undefined && input.result !== null && { result: input.result }),
1981
+ ...(input.result != null && { result: input.result }),
1945
1982
  };
1946
1983
  };
1947
1984
  const serializeAws_json1_0ContinueAsNewWorkflowExecutionDecisionAttributes = (input, context) => {
1948
1985
  return {
1949
- ...(input.childPolicy !== undefined && input.childPolicy !== null && { childPolicy: input.childPolicy }),
1950
- ...(input.executionStartToCloseTimeout !== undefined &&
1951
- input.executionStartToCloseTimeout !== null && {
1986
+ ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
1987
+ ...(input.executionStartToCloseTimeout != null && {
1952
1988
  executionStartToCloseTimeout: input.executionStartToCloseTimeout,
1953
1989
  }),
1954
- ...(input.input !== undefined && input.input !== null && { input: input.input }),
1955
- ...(input.lambdaRole !== undefined && input.lambdaRole !== null && { lambdaRole: input.lambdaRole }),
1956
- ...(input.tagList !== undefined &&
1957
- input.tagList !== null && { tagList: serializeAws_json1_0TagList(input.tagList, context) }),
1958
- ...(input.taskList !== undefined &&
1959
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
1960
- ...(input.taskPriority !== undefined && input.taskPriority !== null && { taskPriority: input.taskPriority }),
1961
- ...(input.taskStartToCloseTimeout !== undefined &&
1962
- input.taskStartToCloseTimeout !== null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
1963
- ...(input.workflowTypeVersion !== undefined &&
1964
- input.workflowTypeVersion !== null && { workflowTypeVersion: input.workflowTypeVersion }),
1990
+ ...(input.input != null && { input: input.input }),
1991
+ ...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
1992
+ ...(input.tagList != null && { tagList: serializeAws_json1_0TagList(input.tagList, context) }),
1993
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
1994
+ ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
1995
+ ...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
1996
+ ...(input.workflowTypeVersion != null && { workflowTypeVersion: input.workflowTypeVersion }),
1965
1997
  };
1966
1998
  };
1967
1999
  const serializeAws_json1_0CountClosedWorkflowExecutionsInput = (input, context) => {
1968
2000
  return {
1969
- ...(input.closeStatusFilter !== undefined &&
1970
- input.closeStatusFilter !== null && {
2001
+ ...(input.closeStatusFilter != null && {
1971
2002
  closeStatusFilter: serializeAws_json1_0CloseStatusFilter(input.closeStatusFilter, context),
1972
2003
  }),
1973
- ...(input.closeTimeFilter !== undefined &&
1974
- input.closeTimeFilter !== null && {
2004
+ ...(input.closeTimeFilter != null && {
1975
2005
  closeTimeFilter: serializeAws_json1_0ExecutionTimeFilter(input.closeTimeFilter, context),
1976
2006
  }),
1977
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
1978
- ...(input.executionFilter !== undefined &&
1979
- input.executionFilter !== null && {
2007
+ ...(input.domain != null && { domain: input.domain }),
2008
+ ...(input.executionFilter != null && {
1980
2009
  executionFilter: serializeAws_json1_0WorkflowExecutionFilter(input.executionFilter, context),
1981
2010
  }),
1982
- ...(input.startTimeFilter !== undefined &&
1983
- input.startTimeFilter !== null && {
2011
+ ...(input.startTimeFilter != null && {
1984
2012
  startTimeFilter: serializeAws_json1_0ExecutionTimeFilter(input.startTimeFilter, context),
1985
2013
  }),
1986
- ...(input.tagFilter !== undefined &&
1987
- input.tagFilter !== null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
1988
- ...(input.typeFilter !== undefined &&
1989
- input.typeFilter !== null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
2014
+ ...(input.tagFilter != null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
2015
+ ...(input.typeFilter != null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
1990
2016
  };
1991
2017
  };
1992
2018
  const serializeAws_json1_0CountOpenWorkflowExecutionsInput = (input, context) => {
1993
2019
  return {
1994
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
1995
- ...(input.executionFilter !== undefined &&
1996
- input.executionFilter !== null && {
2020
+ ...(input.domain != null && { domain: input.domain }),
2021
+ ...(input.executionFilter != null && {
1997
2022
  executionFilter: serializeAws_json1_0WorkflowExecutionFilter(input.executionFilter, context),
1998
2023
  }),
1999
- ...(input.startTimeFilter !== undefined &&
2000
- input.startTimeFilter !== null && {
2024
+ ...(input.startTimeFilter != null && {
2001
2025
  startTimeFilter: serializeAws_json1_0ExecutionTimeFilter(input.startTimeFilter, context),
2002
2026
  }),
2003
- ...(input.tagFilter !== undefined &&
2004
- input.tagFilter !== null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
2005
- ...(input.typeFilter !== undefined &&
2006
- input.typeFilter !== null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
2027
+ ...(input.tagFilter != null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
2028
+ ...(input.typeFilter != null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
2007
2029
  };
2008
2030
  };
2009
2031
  const serializeAws_json1_0CountPendingActivityTasksInput = (input, context) => {
2010
2032
  return {
2011
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2012
- ...(input.taskList !== undefined &&
2013
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2033
+ ...(input.domain != null && { domain: input.domain }),
2034
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2014
2035
  };
2015
2036
  };
2016
2037
  const serializeAws_json1_0CountPendingDecisionTasksInput = (input, context) => {
2017
2038
  return {
2018
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2019
- ...(input.taskList !== undefined &&
2020
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2039
+ ...(input.domain != null && { domain: input.domain }),
2040
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2021
2041
  };
2022
2042
  };
2023
2043
  const serializeAws_json1_0Decision = (input, context) => {
2024
2044
  return {
2025
- ...(input.cancelTimerDecisionAttributes !== undefined &&
2026
- input.cancelTimerDecisionAttributes !== null && {
2045
+ ...(input.cancelTimerDecisionAttributes != null && {
2027
2046
  cancelTimerDecisionAttributes: serializeAws_json1_0CancelTimerDecisionAttributes(input.cancelTimerDecisionAttributes, context),
2028
2047
  }),
2029
- ...(input.cancelWorkflowExecutionDecisionAttributes !== undefined &&
2030
- input.cancelWorkflowExecutionDecisionAttributes !== null && {
2048
+ ...(input.cancelWorkflowExecutionDecisionAttributes != null && {
2031
2049
  cancelWorkflowExecutionDecisionAttributes: serializeAws_json1_0CancelWorkflowExecutionDecisionAttributes(input.cancelWorkflowExecutionDecisionAttributes, context),
2032
2050
  }),
2033
- ...(input.completeWorkflowExecutionDecisionAttributes !== undefined &&
2034
- input.completeWorkflowExecutionDecisionAttributes !== null && {
2051
+ ...(input.completeWorkflowExecutionDecisionAttributes != null && {
2035
2052
  completeWorkflowExecutionDecisionAttributes: serializeAws_json1_0CompleteWorkflowExecutionDecisionAttributes(input.completeWorkflowExecutionDecisionAttributes, context),
2036
2053
  }),
2037
- ...(input.continueAsNewWorkflowExecutionDecisionAttributes !== undefined &&
2038
- input.continueAsNewWorkflowExecutionDecisionAttributes !== null && {
2054
+ ...(input.continueAsNewWorkflowExecutionDecisionAttributes != null && {
2039
2055
  continueAsNewWorkflowExecutionDecisionAttributes: serializeAws_json1_0ContinueAsNewWorkflowExecutionDecisionAttributes(input.continueAsNewWorkflowExecutionDecisionAttributes, context),
2040
2056
  }),
2041
- ...(input.decisionType !== undefined && input.decisionType !== null && { decisionType: input.decisionType }),
2042
- ...(input.failWorkflowExecutionDecisionAttributes !== undefined &&
2043
- input.failWorkflowExecutionDecisionAttributes !== null && {
2057
+ ...(input.decisionType != null && { decisionType: input.decisionType }),
2058
+ ...(input.failWorkflowExecutionDecisionAttributes != null && {
2044
2059
  failWorkflowExecutionDecisionAttributes: serializeAws_json1_0FailWorkflowExecutionDecisionAttributes(input.failWorkflowExecutionDecisionAttributes, context),
2045
2060
  }),
2046
- ...(input.recordMarkerDecisionAttributes !== undefined &&
2047
- input.recordMarkerDecisionAttributes !== null && {
2061
+ ...(input.recordMarkerDecisionAttributes != null && {
2048
2062
  recordMarkerDecisionAttributes: serializeAws_json1_0RecordMarkerDecisionAttributes(input.recordMarkerDecisionAttributes, context),
2049
2063
  }),
2050
- ...(input.requestCancelActivityTaskDecisionAttributes !== undefined &&
2051
- input.requestCancelActivityTaskDecisionAttributes !== null && {
2064
+ ...(input.requestCancelActivityTaskDecisionAttributes != null && {
2052
2065
  requestCancelActivityTaskDecisionAttributes: serializeAws_json1_0RequestCancelActivityTaskDecisionAttributes(input.requestCancelActivityTaskDecisionAttributes, context),
2053
2066
  }),
2054
- ...(input.requestCancelExternalWorkflowExecutionDecisionAttributes !== undefined &&
2055
- input.requestCancelExternalWorkflowExecutionDecisionAttributes !== null && {
2067
+ ...(input.requestCancelExternalWorkflowExecutionDecisionAttributes != null && {
2056
2068
  requestCancelExternalWorkflowExecutionDecisionAttributes: serializeAws_json1_0RequestCancelExternalWorkflowExecutionDecisionAttributes(input.requestCancelExternalWorkflowExecutionDecisionAttributes, context),
2057
2069
  }),
2058
- ...(input.scheduleActivityTaskDecisionAttributes !== undefined &&
2059
- input.scheduleActivityTaskDecisionAttributes !== null && {
2070
+ ...(input.scheduleActivityTaskDecisionAttributes != null && {
2060
2071
  scheduleActivityTaskDecisionAttributes: serializeAws_json1_0ScheduleActivityTaskDecisionAttributes(input.scheduleActivityTaskDecisionAttributes, context),
2061
2072
  }),
2062
- ...(input.scheduleLambdaFunctionDecisionAttributes !== undefined &&
2063
- input.scheduleLambdaFunctionDecisionAttributes !== null && {
2073
+ ...(input.scheduleLambdaFunctionDecisionAttributes != null && {
2064
2074
  scheduleLambdaFunctionDecisionAttributes: serializeAws_json1_0ScheduleLambdaFunctionDecisionAttributes(input.scheduleLambdaFunctionDecisionAttributes, context),
2065
2075
  }),
2066
- ...(input.signalExternalWorkflowExecutionDecisionAttributes !== undefined &&
2067
- input.signalExternalWorkflowExecutionDecisionAttributes !== null && {
2076
+ ...(input.signalExternalWorkflowExecutionDecisionAttributes != null && {
2068
2077
  signalExternalWorkflowExecutionDecisionAttributes: serializeAws_json1_0SignalExternalWorkflowExecutionDecisionAttributes(input.signalExternalWorkflowExecutionDecisionAttributes, context),
2069
2078
  }),
2070
- ...(input.startChildWorkflowExecutionDecisionAttributes !== undefined &&
2071
- input.startChildWorkflowExecutionDecisionAttributes !== null && {
2079
+ ...(input.startChildWorkflowExecutionDecisionAttributes != null && {
2072
2080
  startChildWorkflowExecutionDecisionAttributes: serializeAws_json1_0StartChildWorkflowExecutionDecisionAttributes(input.startChildWorkflowExecutionDecisionAttributes, context),
2073
2081
  }),
2074
- ...(input.startTimerDecisionAttributes !== undefined &&
2075
- input.startTimerDecisionAttributes !== null && {
2082
+ ...(input.startTimerDecisionAttributes != null && {
2076
2083
  startTimerDecisionAttributes: serializeAws_json1_0StartTimerDecisionAttributes(input.startTimerDecisionAttributes, context),
2077
2084
  }),
2078
2085
  };
@@ -2089,284 +2096,242 @@ const serializeAws_json1_0DecisionList = (input, context) => {
2089
2096
  };
2090
2097
  const serializeAws_json1_0DeprecateActivityTypeInput = (input, context) => {
2091
2098
  return {
2092
- ...(input.activityType !== undefined &&
2093
- input.activityType !== null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2094
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2099
+ ...(input.activityType != null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2100
+ ...(input.domain != null && { domain: input.domain }),
2095
2101
  };
2096
2102
  };
2097
2103
  const serializeAws_json1_0DeprecateDomainInput = (input, context) => {
2098
2104
  return {
2099
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2105
+ ...(input.name != null && { name: input.name }),
2100
2106
  };
2101
2107
  };
2102
2108
  const serializeAws_json1_0DeprecateWorkflowTypeInput = (input, context) => {
2103
2109
  return {
2104
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2105
- ...(input.workflowType !== undefined &&
2106
- input.workflowType !== null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2110
+ ...(input.domain != null && { domain: input.domain }),
2111
+ ...(input.workflowType != null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2107
2112
  };
2108
2113
  };
2109
2114
  const serializeAws_json1_0DescribeActivityTypeInput = (input, context) => {
2110
2115
  return {
2111
- ...(input.activityType !== undefined &&
2112
- input.activityType !== null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2113
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2116
+ ...(input.activityType != null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2117
+ ...(input.domain != null && { domain: input.domain }),
2114
2118
  };
2115
2119
  };
2116
2120
  const serializeAws_json1_0DescribeDomainInput = (input, context) => {
2117
2121
  return {
2118
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2122
+ ...(input.name != null && { name: input.name }),
2119
2123
  };
2120
2124
  };
2121
2125
  const serializeAws_json1_0DescribeWorkflowExecutionInput = (input, context) => {
2122
2126
  return {
2123
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2124
- ...(input.execution !== undefined &&
2125
- input.execution !== null && { execution: serializeAws_json1_0WorkflowExecution(input.execution, context) }),
2127
+ ...(input.domain != null && { domain: input.domain }),
2128
+ ...(input.execution != null && { execution: serializeAws_json1_0WorkflowExecution(input.execution, context) }),
2126
2129
  };
2127
2130
  };
2128
2131
  const serializeAws_json1_0DescribeWorkflowTypeInput = (input, context) => {
2129
2132
  return {
2130
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2131
- ...(input.workflowType !== undefined &&
2132
- input.workflowType !== null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2133
+ ...(input.domain != null && { domain: input.domain }),
2134
+ ...(input.workflowType != null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2133
2135
  };
2134
2136
  };
2135
2137
  const serializeAws_json1_0ExecutionTimeFilter = (input, context) => {
2136
2138
  return {
2137
- ...(input.latestDate !== undefined &&
2138
- input.latestDate !== null && { latestDate: Math.round(input.latestDate.getTime() / 1000) }),
2139
- ...(input.oldestDate !== undefined &&
2140
- input.oldestDate !== null && { oldestDate: Math.round(input.oldestDate.getTime() / 1000) }),
2139
+ ...(input.latestDate != null && { latestDate: Math.round(input.latestDate.getTime() / 1000) }),
2140
+ ...(input.oldestDate != null && { oldestDate: Math.round(input.oldestDate.getTime() / 1000) }),
2141
2141
  };
2142
2142
  };
2143
2143
  const serializeAws_json1_0FailWorkflowExecutionDecisionAttributes = (input, context) => {
2144
2144
  return {
2145
- ...(input.details !== undefined && input.details !== null && { details: input.details }),
2146
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
2145
+ ...(input.details != null && { details: input.details }),
2146
+ ...(input.reason != null && { reason: input.reason }),
2147
2147
  };
2148
2148
  };
2149
2149
  const serializeAws_json1_0GetWorkflowExecutionHistoryInput = (input, context) => {
2150
2150
  return {
2151
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2152
- ...(input.execution !== undefined &&
2153
- input.execution !== null && { execution: serializeAws_json1_0WorkflowExecution(input.execution, context) }),
2154
- ...(input.maximumPageSize !== undefined &&
2155
- input.maximumPageSize !== null && { maximumPageSize: input.maximumPageSize }),
2156
- ...(input.nextPageToken !== undefined && input.nextPageToken !== null && { nextPageToken: input.nextPageToken }),
2157
- ...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
2151
+ ...(input.domain != null && { domain: input.domain }),
2152
+ ...(input.execution != null && { execution: serializeAws_json1_0WorkflowExecution(input.execution, context) }),
2153
+ ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
2154
+ ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
2155
+ ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
2158
2156
  };
2159
2157
  };
2160
2158
  const serializeAws_json1_0ListActivityTypesInput = (input, context) => {
2161
2159
  return {
2162
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2163
- ...(input.maximumPageSize !== undefined &&
2164
- input.maximumPageSize !== null && { maximumPageSize: input.maximumPageSize }),
2165
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2166
- ...(input.nextPageToken !== undefined && input.nextPageToken !== null && { nextPageToken: input.nextPageToken }),
2167
- ...(input.registrationStatus !== undefined &&
2168
- input.registrationStatus !== null && { registrationStatus: input.registrationStatus }),
2169
- ...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
2160
+ ...(input.domain != null && { domain: input.domain }),
2161
+ ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
2162
+ ...(input.name != null && { name: input.name }),
2163
+ ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
2164
+ ...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
2165
+ ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
2170
2166
  };
2171
2167
  };
2172
2168
  const serializeAws_json1_0ListClosedWorkflowExecutionsInput = (input, context) => {
2173
2169
  return {
2174
- ...(input.closeStatusFilter !== undefined &&
2175
- input.closeStatusFilter !== null && {
2170
+ ...(input.closeStatusFilter != null && {
2176
2171
  closeStatusFilter: serializeAws_json1_0CloseStatusFilter(input.closeStatusFilter, context),
2177
2172
  }),
2178
- ...(input.closeTimeFilter !== undefined &&
2179
- input.closeTimeFilter !== null && {
2173
+ ...(input.closeTimeFilter != null && {
2180
2174
  closeTimeFilter: serializeAws_json1_0ExecutionTimeFilter(input.closeTimeFilter, context),
2181
2175
  }),
2182
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2183
- ...(input.executionFilter !== undefined &&
2184
- input.executionFilter !== null && {
2176
+ ...(input.domain != null && { domain: input.domain }),
2177
+ ...(input.executionFilter != null && {
2185
2178
  executionFilter: serializeAws_json1_0WorkflowExecutionFilter(input.executionFilter, context),
2186
2179
  }),
2187
- ...(input.maximumPageSize !== undefined &&
2188
- input.maximumPageSize !== null && { maximumPageSize: input.maximumPageSize }),
2189
- ...(input.nextPageToken !== undefined && input.nextPageToken !== null && { nextPageToken: input.nextPageToken }),
2190
- ...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
2191
- ...(input.startTimeFilter !== undefined &&
2192
- input.startTimeFilter !== null && {
2180
+ ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
2181
+ ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
2182
+ ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
2183
+ ...(input.startTimeFilter != null && {
2193
2184
  startTimeFilter: serializeAws_json1_0ExecutionTimeFilter(input.startTimeFilter, context),
2194
2185
  }),
2195
- ...(input.tagFilter !== undefined &&
2196
- input.tagFilter !== null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
2197
- ...(input.typeFilter !== undefined &&
2198
- input.typeFilter !== null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
2186
+ ...(input.tagFilter != null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
2187
+ ...(input.typeFilter != null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
2199
2188
  };
2200
2189
  };
2201
2190
  const serializeAws_json1_0ListDomainsInput = (input, context) => {
2202
2191
  return {
2203
- ...(input.maximumPageSize !== undefined &&
2204
- input.maximumPageSize !== null && { maximumPageSize: input.maximumPageSize }),
2205
- ...(input.nextPageToken !== undefined && input.nextPageToken !== null && { nextPageToken: input.nextPageToken }),
2206
- ...(input.registrationStatus !== undefined &&
2207
- input.registrationStatus !== null && { registrationStatus: input.registrationStatus }),
2208
- ...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
2192
+ ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
2193
+ ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
2194
+ ...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
2195
+ ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
2209
2196
  };
2210
2197
  };
2211
2198
  const serializeAws_json1_0ListOpenWorkflowExecutionsInput = (input, context) => {
2212
2199
  return {
2213
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2214
- ...(input.executionFilter !== undefined &&
2215
- input.executionFilter !== null && {
2200
+ ...(input.domain != null && { domain: input.domain }),
2201
+ ...(input.executionFilter != null && {
2216
2202
  executionFilter: serializeAws_json1_0WorkflowExecutionFilter(input.executionFilter, context),
2217
2203
  }),
2218
- ...(input.maximumPageSize !== undefined &&
2219
- input.maximumPageSize !== null && { maximumPageSize: input.maximumPageSize }),
2220
- ...(input.nextPageToken !== undefined && input.nextPageToken !== null && { nextPageToken: input.nextPageToken }),
2221
- ...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
2222
- ...(input.startTimeFilter !== undefined &&
2223
- input.startTimeFilter !== null && {
2204
+ ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
2205
+ ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
2206
+ ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
2207
+ ...(input.startTimeFilter != null && {
2224
2208
  startTimeFilter: serializeAws_json1_0ExecutionTimeFilter(input.startTimeFilter, context),
2225
2209
  }),
2226
- ...(input.tagFilter !== undefined &&
2227
- input.tagFilter !== null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
2228
- ...(input.typeFilter !== undefined &&
2229
- input.typeFilter !== null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
2210
+ ...(input.tagFilter != null && { tagFilter: serializeAws_json1_0TagFilter(input.tagFilter, context) }),
2211
+ ...(input.typeFilter != null && { typeFilter: serializeAws_json1_0WorkflowTypeFilter(input.typeFilter, context) }),
2230
2212
  };
2231
2213
  };
2232
2214
  const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
2233
2215
  return {
2234
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
2216
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2235
2217
  };
2236
2218
  };
2237
2219
  const serializeAws_json1_0ListWorkflowTypesInput = (input, context) => {
2238
2220
  return {
2239
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2240
- ...(input.maximumPageSize !== undefined &&
2241
- input.maximumPageSize !== null && { maximumPageSize: input.maximumPageSize }),
2242
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2243
- ...(input.nextPageToken !== undefined && input.nextPageToken !== null && { nextPageToken: input.nextPageToken }),
2244
- ...(input.registrationStatus !== undefined &&
2245
- input.registrationStatus !== null && { registrationStatus: input.registrationStatus }),
2246
- ...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
2221
+ ...(input.domain != null && { domain: input.domain }),
2222
+ ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
2223
+ ...(input.name != null && { name: input.name }),
2224
+ ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
2225
+ ...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
2226
+ ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
2247
2227
  };
2248
2228
  };
2249
2229
  const serializeAws_json1_0PollForActivityTaskInput = (input, context) => {
2250
2230
  return {
2251
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2252
- ...(input.identity !== undefined && input.identity !== null && { identity: input.identity }),
2253
- ...(input.taskList !== undefined &&
2254
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2231
+ ...(input.domain != null && { domain: input.domain }),
2232
+ ...(input.identity != null && { identity: input.identity }),
2233
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2255
2234
  };
2256
2235
  };
2257
2236
  const serializeAws_json1_0PollForDecisionTaskInput = (input, context) => {
2258
2237
  return {
2259
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2260
- ...(input.identity !== undefined && input.identity !== null && { identity: input.identity }),
2261
- ...(input.maximumPageSize !== undefined &&
2262
- input.maximumPageSize !== null && { maximumPageSize: input.maximumPageSize }),
2263
- ...(input.nextPageToken !== undefined && input.nextPageToken !== null && { nextPageToken: input.nextPageToken }),
2264
- ...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
2265
- ...(input.taskList !== undefined &&
2266
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2238
+ ...(input.domain != null && { domain: input.domain }),
2239
+ ...(input.identity != null && { identity: input.identity }),
2240
+ ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
2241
+ ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
2242
+ ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
2243
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2267
2244
  };
2268
2245
  };
2269
2246
  const serializeAws_json1_0RecordActivityTaskHeartbeatInput = (input, context) => {
2270
2247
  return {
2271
- ...(input.details !== undefined && input.details !== null && { details: input.details }),
2272
- ...(input.taskToken !== undefined && input.taskToken !== null && { taskToken: input.taskToken }),
2248
+ ...(input.details != null && { details: input.details }),
2249
+ ...(input.taskToken != null && { taskToken: input.taskToken }),
2273
2250
  };
2274
2251
  };
2275
2252
  const serializeAws_json1_0RecordMarkerDecisionAttributes = (input, context) => {
2276
2253
  return {
2277
- ...(input.details !== undefined && input.details !== null && { details: input.details }),
2278
- ...(input.markerName !== undefined && input.markerName !== null && { markerName: input.markerName }),
2254
+ ...(input.details != null && { details: input.details }),
2255
+ ...(input.markerName != null && { markerName: input.markerName }),
2279
2256
  };
2280
2257
  };
2281
2258
  const serializeAws_json1_0RegisterActivityTypeInput = (input, context) => {
2282
2259
  return {
2283
- ...(input.defaultTaskHeartbeatTimeout !== undefined &&
2284
- input.defaultTaskHeartbeatTimeout !== null && { defaultTaskHeartbeatTimeout: input.defaultTaskHeartbeatTimeout }),
2285
- ...(input.defaultTaskList !== undefined &&
2286
- input.defaultTaskList !== null && {
2260
+ ...(input.defaultTaskHeartbeatTimeout != null && {
2261
+ defaultTaskHeartbeatTimeout: input.defaultTaskHeartbeatTimeout,
2262
+ }),
2263
+ ...(input.defaultTaskList != null && {
2287
2264
  defaultTaskList: serializeAws_json1_0TaskList(input.defaultTaskList, context),
2288
2265
  }),
2289
- ...(input.defaultTaskPriority !== undefined &&
2290
- input.defaultTaskPriority !== null && { defaultTaskPriority: input.defaultTaskPriority }),
2291
- ...(input.defaultTaskScheduleToCloseTimeout !== undefined &&
2292
- input.defaultTaskScheduleToCloseTimeout !== null && {
2266
+ ...(input.defaultTaskPriority != null && { defaultTaskPriority: input.defaultTaskPriority }),
2267
+ ...(input.defaultTaskScheduleToCloseTimeout != null && {
2293
2268
  defaultTaskScheduleToCloseTimeout: input.defaultTaskScheduleToCloseTimeout,
2294
2269
  }),
2295
- ...(input.defaultTaskScheduleToStartTimeout !== undefined &&
2296
- input.defaultTaskScheduleToStartTimeout !== null && {
2270
+ ...(input.defaultTaskScheduleToStartTimeout != null && {
2297
2271
  defaultTaskScheduleToStartTimeout: input.defaultTaskScheduleToStartTimeout,
2298
2272
  }),
2299
- ...(input.defaultTaskStartToCloseTimeout !== undefined &&
2300
- input.defaultTaskStartToCloseTimeout !== null && {
2273
+ ...(input.defaultTaskStartToCloseTimeout != null && {
2301
2274
  defaultTaskStartToCloseTimeout: input.defaultTaskStartToCloseTimeout,
2302
2275
  }),
2303
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2304
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2305
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2306
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2276
+ ...(input.description != null && { description: input.description }),
2277
+ ...(input.domain != null && { domain: input.domain }),
2278
+ ...(input.name != null && { name: input.name }),
2279
+ ...(input.version != null && { version: input.version }),
2307
2280
  };
2308
2281
  };
2309
2282
  const serializeAws_json1_0RegisterDomainInput = (input, context) => {
2310
2283
  return {
2311
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2312
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2313
- ...(input.tags !== undefined &&
2314
- input.tags !== null && { tags: serializeAws_json1_0ResourceTagList(input.tags, context) }),
2315
- ...(input.workflowExecutionRetentionPeriodInDays !== undefined &&
2316
- input.workflowExecutionRetentionPeriodInDays !== null && {
2284
+ ...(input.description != null && { description: input.description }),
2285
+ ...(input.name != null && { name: input.name }),
2286
+ ...(input.tags != null && { tags: serializeAws_json1_0ResourceTagList(input.tags, context) }),
2287
+ ...(input.workflowExecutionRetentionPeriodInDays != null && {
2317
2288
  workflowExecutionRetentionPeriodInDays: input.workflowExecutionRetentionPeriodInDays,
2318
2289
  }),
2319
2290
  };
2320
2291
  };
2321
2292
  const serializeAws_json1_0RegisterWorkflowTypeInput = (input, context) => {
2322
2293
  return {
2323
- ...(input.defaultChildPolicy !== undefined &&
2324
- input.defaultChildPolicy !== null && { defaultChildPolicy: input.defaultChildPolicy }),
2325
- ...(input.defaultExecutionStartToCloseTimeout !== undefined &&
2326
- input.defaultExecutionStartToCloseTimeout !== null && {
2294
+ ...(input.defaultChildPolicy != null && { defaultChildPolicy: input.defaultChildPolicy }),
2295
+ ...(input.defaultExecutionStartToCloseTimeout != null && {
2327
2296
  defaultExecutionStartToCloseTimeout: input.defaultExecutionStartToCloseTimeout,
2328
2297
  }),
2329
- ...(input.defaultLambdaRole !== undefined &&
2330
- input.defaultLambdaRole !== null && { defaultLambdaRole: input.defaultLambdaRole }),
2331
- ...(input.defaultTaskList !== undefined &&
2332
- input.defaultTaskList !== null && {
2298
+ ...(input.defaultLambdaRole != null && { defaultLambdaRole: input.defaultLambdaRole }),
2299
+ ...(input.defaultTaskList != null && {
2333
2300
  defaultTaskList: serializeAws_json1_0TaskList(input.defaultTaskList, context),
2334
2301
  }),
2335
- ...(input.defaultTaskPriority !== undefined &&
2336
- input.defaultTaskPriority !== null && { defaultTaskPriority: input.defaultTaskPriority }),
2337
- ...(input.defaultTaskStartToCloseTimeout !== undefined &&
2338
- input.defaultTaskStartToCloseTimeout !== null && {
2302
+ ...(input.defaultTaskPriority != null && { defaultTaskPriority: input.defaultTaskPriority }),
2303
+ ...(input.defaultTaskStartToCloseTimeout != null && {
2339
2304
  defaultTaskStartToCloseTimeout: input.defaultTaskStartToCloseTimeout,
2340
2305
  }),
2341
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2342
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2343
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2344
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2306
+ ...(input.description != null && { description: input.description }),
2307
+ ...(input.domain != null && { domain: input.domain }),
2308
+ ...(input.name != null && { name: input.name }),
2309
+ ...(input.version != null && { version: input.version }),
2345
2310
  };
2346
2311
  };
2347
2312
  const serializeAws_json1_0RequestCancelActivityTaskDecisionAttributes = (input, context) => {
2348
2313
  return {
2349
- ...(input.activityId !== undefined && input.activityId !== null && { activityId: input.activityId }),
2314
+ ...(input.activityId != null && { activityId: input.activityId }),
2350
2315
  };
2351
2316
  };
2352
2317
  const serializeAws_json1_0RequestCancelExternalWorkflowExecutionDecisionAttributes = (input, context) => {
2353
2318
  return {
2354
- ...(input.control !== undefined && input.control !== null && { control: input.control }),
2355
- ...(input.runId !== undefined && input.runId !== null && { runId: input.runId }),
2356
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2319
+ ...(input.control != null && { control: input.control }),
2320
+ ...(input.runId != null && { runId: input.runId }),
2321
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2357
2322
  };
2358
2323
  };
2359
2324
  const serializeAws_json1_0RequestCancelWorkflowExecutionInput = (input, context) => {
2360
2325
  return {
2361
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2362
- ...(input.runId !== undefined && input.runId !== null && { runId: input.runId }),
2363
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2326
+ ...(input.domain != null && { domain: input.domain }),
2327
+ ...(input.runId != null && { runId: input.runId }),
2328
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2364
2329
  };
2365
2330
  };
2366
2331
  const serializeAws_json1_0ResourceTag = (input, context) => {
2367
2332
  return {
2368
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
2369
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2333
+ ...(input.key != null && { key: input.key }),
2334
+ ...(input.value != null && { value: input.value }),
2370
2335
  };
2371
2336
  };
2372
2337
  const serializeAws_json1_0ResourceTagKeyList = (input, context) => {
@@ -2391,135 +2356,115 @@ const serializeAws_json1_0ResourceTagList = (input, context) => {
2391
2356
  };
2392
2357
  const serializeAws_json1_0RespondActivityTaskCanceledInput = (input, context) => {
2393
2358
  return {
2394
- ...(input.details !== undefined && input.details !== null && { details: input.details }),
2395
- ...(input.taskToken !== undefined && input.taskToken !== null && { taskToken: input.taskToken }),
2359
+ ...(input.details != null && { details: input.details }),
2360
+ ...(input.taskToken != null && { taskToken: input.taskToken }),
2396
2361
  };
2397
2362
  };
2398
2363
  const serializeAws_json1_0RespondActivityTaskCompletedInput = (input, context) => {
2399
2364
  return {
2400
- ...(input.result !== undefined && input.result !== null && { result: input.result }),
2401
- ...(input.taskToken !== undefined && input.taskToken !== null && { taskToken: input.taskToken }),
2365
+ ...(input.result != null && { result: input.result }),
2366
+ ...(input.taskToken != null && { taskToken: input.taskToken }),
2402
2367
  };
2403
2368
  };
2404
2369
  const serializeAws_json1_0RespondActivityTaskFailedInput = (input, context) => {
2405
2370
  return {
2406
- ...(input.details !== undefined && input.details !== null && { details: input.details }),
2407
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
2408
- ...(input.taskToken !== undefined && input.taskToken !== null && { taskToken: input.taskToken }),
2371
+ ...(input.details != null && { details: input.details }),
2372
+ ...(input.reason != null && { reason: input.reason }),
2373
+ ...(input.taskToken != null && { taskToken: input.taskToken }),
2409
2374
  };
2410
2375
  };
2411
2376
  const serializeAws_json1_0RespondDecisionTaskCompletedInput = (input, context) => {
2412
2377
  return {
2413
- ...(input.decisions !== undefined &&
2414
- input.decisions !== null && { decisions: serializeAws_json1_0DecisionList(input.decisions, context) }),
2415
- ...(input.executionContext !== undefined &&
2416
- input.executionContext !== null && { executionContext: input.executionContext }),
2417
- ...(input.taskToken !== undefined && input.taskToken !== null && { taskToken: input.taskToken }),
2378
+ ...(input.decisions != null && { decisions: serializeAws_json1_0DecisionList(input.decisions, context) }),
2379
+ ...(input.executionContext != null && { executionContext: input.executionContext }),
2380
+ ...(input.taskToken != null && { taskToken: input.taskToken }),
2418
2381
  };
2419
2382
  };
2420
2383
  const serializeAws_json1_0ScheduleActivityTaskDecisionAttributes = (input, context) => {
2421
2384
  return {
2422
- ...(input.activityId !== undefined && input.activityId !== null && { activityId: input.activityId }),
2423
- ...(input.activityType !== undefined &&
2424
- input.activityType !== null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2425
- ...(input.control !== undefined && input.control !== null && { control: input.control }),
2426
- ...(input.heartbeatTimeout !== undefined &&
2427
- input.heartbeatTimeout !== null && { heartbeatTimeout: input.heartbeatTimeout }),
2428
- ...(input.input !== undefined && input.input !== null && { input: input.input }),
2429
- ...(input.scheduleToCloseTimeout !== undefined &&
2430
- input.scheduleToCloseTimeout !== null && { scheduleToCloseTimeout: input.scheduleToCloseTimeout }),
2431
- ...(input.scheduleToStartTimeout !== undefined &&
2432
- input.scheduleToStartTimeout !== null && { scheduleToStartTimeout: input.scheduleToStartTimeout }),
2433
- ...(input.startToCloseTimeout !== undefined &&
2434
- input.startToCloseTimeout !== null && { startToCloseTimeout: input.startToCloseTimeout }),
2435
- ...(input.taskList !== undefined &&
2436
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2437
- ...(input.taskPriority !== undefined && input.taskPriority !== null && { taskPriority: input.taskPriority }),
2385
+ ...(input.activityId != null && { activityId: input.activityId }),
2386
+ ...(input.activityType != null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2387
+ ...(input.control != null && { control: input.control }),
2388
+ ...(input.heartbeatTimeout != null && { heartbeatTimeout: input.heartbeatTimeout }),
2389
+ ...(input.input != null && { input: input.input }),
2390
+ ...(input.scheduleToCloseTimeout != null && { scheduleToCloseTimeout: input.scheduleToCloseTimeout }),
2391
+ ...(input.scheduleToStartTimeout != null && { scheduleToStartTimeout: input.scheduleToStartTimeout }),
2392
+ ...(input.startToCloseTimeout != null && { startToCloseTimeout: input.startToCloseTimeout }),
2393
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2394
+ ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
2438
2395
  };
2439
2396
  };
2440
2397
  const serializeAws_json1_0ScheduleLambdaFunctionDecisionAttributes = (input, context) => {
2441
2398
  return {
2442
- ...(input.control !== undefined && input.control !== null && { control: input.control }),
2443
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
2444
- ...(input.input !== undefined && input.input !== null && { input: input.input }),
2445
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2446
- ...(input.startToCloseTimeout !== undefined &&
2447
- input.startToCloseTimeout !== null && { startToCloseTimeout: input.startToCloseTimeout }),
2399
+ ...(input.control != null && { control: input.control }),
2400
+ ...(input.id != null && { id: input.id }),
2401
+ ...(input.input != null && { input: input.input }),
2402
+ ...(input.name != null && { name: input.name }),
2403
+ ...(input.startToCloseTimeout != null && { startToCloseTimeout: input.startToCloseTimeout }),
2448
2404
  };
2449
2405
  };
2450
2406
  const serializeAws_json1_0SignalExternalWorkflowExecutionDecisionAttributes = (input, context) => {
2451
2407
  return {
2452
- ...(input.control !== undefined && input.control !== null && { control: input.control }),
2453
- ...(input.input !== undefined && input.input !== null && { input: input.input }),
2454
- ...(input.runId !== undefined && input.runId !== null && { runId: input.runId }),
2455
- ...(input.signalName !== undefined && input.signalName !== null && { signalName: input.signalName }),
2456
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2408
+ ...(input.control != null && { control: input.control }),
2409
+ ...(input.input != null && { input: input.input }),
2410
+ ...(input.runId != null && { runId: input.runId }),
2411
+ ...(input.signalName != null && { signalName: input.signalName }),
2412
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2457
2413
  };
2458
2414
  };
2459
2415
  const serializeAws_json1_0SignalWorkflowExecutionInput = (input, context) => {
2460
2416
  return {
2461
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2462
- ...(input.input !== undefined && input.input !== null && { input: input.input }),
2463
- ...(input.runId !== undefined && input.runId !== null && { runId: input.runId }),
2464
- ...(input.signalName !== undefined && input.signalName !== null && { signalName: input.signalName }),
2465
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2417
+ ...(input.domain != null && { domain: input.domain }),
2418
+ ...(input.input != null && { input: input.input }),
2419
+ ...(input.runId != null && { runId: input.runId }),
2420
+ ...(input.signalName != null && { signalName: input.signalName }),
2421
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2466
2422
  };
2467
2423
  };
2468
2424
  const serializeAws_json1_0StartChildWorkflowExecutionDecisionAttributes = (input, context) => {
2469
2425
  return {
2470
- ...(input.childPolicy !== undefined && input.childPolicy !== null && { childPolicy: input.childPolicy }),
2471
- ...(input.control !== undefined && input.control !== null && { control: input.control }),
2472
- ...(input.executionStartToCloseTimeout !== undefined &&
2473
- input.executionStartToCloseTimeout !== null && {
2426
+ ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
2427
+ ...(input.control != null && { control: input.control }),
2428
+ ...(input.executionStartToCloseTimeout != null && {
2474
2429
  executionStartToCloseTimeout: input.executionStartToCloseTimeout,
2475
2430
  }),
2476
- ...(input.input !== undefined && input.input !== null && { input: input.input }),
2477
- ...(input.lambdaRole !== undefined && input.lambdaRole !== null && { lambdaRole: input.lambdaRole }),
2478
- ...(input.tagList !== undefined &&
2479
- input.tagList !== null && { tagList: serializeAws_json1_0TagList(input.tagList, context) }),
2480
- ...(input.taskList !== undefined &&
2481
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2482
- ...(input.taskPriority !== undefined && input.taskPriority !== null && { taskPriority: input.taskPriority }),
2483
- ...(input.taskStartToCloseTimeout !== undefined &&
2484
- input.taskStartToCloseTimeout !== null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
2485
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2486
- ...(input.workflowType !== undefined &&
2487
- input.workflowType !== null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2431
+ ...(input.input != null && { input: input.input }),
2432
+ ...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
2433
+ ...(input.tagList != null && { tagList: serializeAws_json1_0TagList(input.tagList, context) }),
2434
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2435
+ ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
2436
+ ...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
2437
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2438
+ ...(input.workflowType != null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2488
2439
  };
2489
2440
  };
2490
2441
  const serializeAws_json1_0StartTimerDecisionAttributes = (input, context) => {
2491
2442
  return {
2492
- ...(input.control !== undefined && input.control !== null && { control: input.control }),
2493
- ...(input.startToFireTimeout !== undefined &&
2494
- input.startToFireTimeout !== null && { startToFireTimeout: input.startToFireTimeout }),
2495
- ...(input.timerId !== undefined && input.timerId !== null && { timerId: input.timerId }),
2443
+ ...(input.control != null && { control: input.control }),
2444
+ ...(input.startToFireTimeout != null && { startToFireTimeout: input.startToFireTimeout }),
2445
+ ...(input.timerId != null && { timerId: input.timerId }),
2496
2446
  };
2497
2447
  };
2498
2448
  const serializeAws_json1_0StartWorkflowExecutionInput = (input, context) => {
2499
2449
  return {
2500
- ...(input.childPolicy !== undefined && input.childPolicy !== null && { childPolicy: input.childPolicy }),
2501
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2502
- ...(input.executionStartToCloseTimeout !== undefined &&
2503
- input.executionStartToCloseTimeout !== null && {
2450
+ ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
2451
+ ...(input.domain != null && { domain: input.domain }),
2452
+ ...(input.executionStartToCloseTimeout != null && {
2504
2453
  executionStartToCloseTimeout: input.executionStartToCloseTimeout,
2505
2454
  }),
2506
- ...(input.input !== undefined && input.input !== null && { input: input.input }),
2507
- ...(input.lambdaRole !== undefined && input.lambdaRole !== null && { lambdaRole: input.lambdaRole }),
2508
- ...(input.tagList !== undefined &&
2509
- input.tagList !== null && { tagList: serializeAws_json1_0TagList(input.tagList, context) }),
2510
- ...(input.taskList !== undefined &&
2511
- input.taskList !== null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2512
- ...(input.taskPriority !== undefined && input.taskPriority !== null && { taskPriority: input.taskPriority }),
2513
- ...(input.taskStartToCloseTimeout !== undefined &&
2514
- input.taskStartToCloseTimeout !== null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
2515
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2516
- ...(input.workflowType !== undefined &&
2517
- input.workflowType !== null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2455
+ ...(input.input != null && { input: input.input }),
2456
+ ...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
2457
+ ...(input.tagList != null && { tagList: serializeAws_json1_0TagList(input.tagList, context) }),
2458
+ ...(input.taskList != null && { taskList: serializeAws_json1_0TaskList(input.taskList, context) }),
2459
+ ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
2460
+ ...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
2461
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2462
+ ...(input.workflowType != null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2518
2463
  };
2519
2464
  };
2520
2465
  const serializeAws_json1_0TagFilter = (input, context) => {
2521
2466
  return {
2522
- ...(input.tag !== undefined && input.tag !== null && { tag: input.tag }),
2467
+ ...(input.tag != null && { tag: input.tag }),
2523
2468
  };
2524
2469
  };
2525
2470
  const serializeAws_json1_0TagList = (input, context) => {
@@ -2534,85 +2479,79 @@ const serializeAws_json1_0TagList = (input, context) => {
2534
2479
  };
2535
2480
  const serializeAws_json1_0TagResourceInput = (input, context) => {
2536
2481
  return {
2537
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
2538
- ...(input.tags !== undefined &&
2539
- input.tags !== null && { tags: serializeAws_json1_0ResourceTagList(input.tags, context) }),
2482
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2483
+ ...(input.tags != null && { tags: serializeAws_json1_0ResourceTagList(input.tags, context) }),
2540
2484
  };
2541
2485
  };
2542
2486
  const serializeAws_json1_0TaskList = (input, context) => {
2543
2487
  return {
2544
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2488
+ ...(input.name != null && { name: input.name }),
2545
2489
  };
2546
2490
  };
2547
2491
  const serializeAws_json1_0TerminateWorkflowExecutionInput = (input, context) => {
2548
2492
  return {
2549
- ...(input.childPolicy !== undefined && input.childPolicy !== null && { childPolicy: input.childPolicy }),
2550
- ...(input.details !== undefined && input.details !== null && { details: input.details }),
2551
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2552
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
2553
- ...(input.runId !== undefined && input.runId !== null && { runId: input.runId }),
2554
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2493
+ ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
2494
+ ...(input.details != null && { details: input.details }),
2495
+ ...(input.domain != null && { domain: input.domain }),
2496
+ ...(input.reason != null && { reason: input.reason }),
2497
+ ...(input.runId != null && { runId: input.runId }),
2498
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2555
2499
  };
2556
2500
  };
2557
2501
  const serializeAws_json1_0UndeprecateActivityTypeInput = (input, context) => {
2558
2502
  return {
2559
- ...(input.activityType !== undefined &&
2560
- input.activityType !== null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2561
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2503
+ ...(input.activityType != null && { activityType: serializeAws_json1_0ActivityType(input.activityType, context) }),
2504
+ ...(input.domain != null && { domain: input.domain }),
2562
2505
  };
2563
2506
  };
2564
2507
  const serializeAws_json1_0UndeprecateDomainInput = (input, context) => {
2565
2508
  return {
2566
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2509
+ ...(input.name != null && { name: input.name }),
2567
2510
  };
2568
2511
  };
2569
2512
  const serializeAws_json1_0UndeprecateWorkflowTypeInput = (input, context) => {
2570
2513
  return {
2571
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
2572
- ...(input.workflowType !== undefined &&
2573
- input.workflowType !== null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2514
+ ...(input.domain != null && { domain: input.domain }),
2515
+ ...(input.workflowType != null && { workflowType: serializeAws_json1_0WorkflowType(input.workflowType, context) }),
2574
2516
  };
2575
2517
  };
2576
2518
  const serializeAws_json1_0UntagResourceInput = (input, context) => {
2577
2519
  return {
2578
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
2579
- ...(input.tagKeys !== undefined &&
2580
- input.tagKeys !== null && { tagKeys: serializeAws_json1_0ResourceTagKeyList(input.tagKeys, context) }),
2520
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2521
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_0ResourceTagKeyList(input.tagKeys, context) }),
2581
2522
  };
2582
2523
  };
2583
2524
  const serializeAws_json1_0WorkflowExecution = (input, context) => {
2584
2525
  return {
2585
- ...(input.runId !== undefined && input.runId !== null && { runId: input.runId }),
2586
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2526
+ ...(input.runId != null && { runId: input.runId }),
2527
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2587
2528
  };
2588
2529
  };
2589
2530
  const serializeAws_json1_0WorkflowExecutionFilter = (input, context) => {
2590
2531
  return {
2591
- ...(input.workflowId !== undefined && input.workflowId !== null && { workflowId: input.workflowId }),
2532
+ ...(input.workflowId != null && { workflowId: input.workflowId }),
2592
2533
  };
2593
2534
  };
2594
2535
  const serializeAws_json1_0WorkflowType = (input, context) => {
2595
2536
  return {
2596
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2597
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2537
+ ...(input.name != null && { name: input.name }),
2538
+ ...(input.version != null && { version: input.version }),
2598
2539
  };
2599
2540
  };
2600
2541
  const serializeAws_json1_0WorkflowTypeFilter = (input, context) => {
2601
2542
  return {
2602
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2603
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2543
+ ...(input.name != null && { name: input.name }),
2544
+ ...(input.version != null && { version: input.version }),
2604
2545
  };
2605
2546
  };
2606
2547
  const deserializeAws_json1_0ActivityTask = (output, context) => {
2607
2548
  return {
2608
2549
  activityId: (0, smithy_client_1.expectString)(output.activityId),
2609
- activityType: output.activityType !== undefined && output.activityType !== null
2610
- ? deserializeAws_json1_0ActivityType(output.activityType, context)
2611
- : undefined,
2550
+ activityType: output.activityType != null ? deserializeAws_json1_0ActivityType(output.activityType, context) : undefined,
2612
2551
  input: (0, smithy_client_1.expectString)(output.input),
2613
2552
  startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
2614
2553
  taskToken: (0, smithy_client_1.expectString)(output.taskToken),
2615
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2554
+ workflowExecution: output.workflowExecution != null
2616
2555
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2617
2556
  : undefined,
2618
2557
  };
@@ -2649,9 +2588,7 @@ const deserializeAws_json1_0ActivityTaskFailedEventAttributes = (output, context
2649
2588
  const deserializeAws_json1_0ActivityTaskScheduledEventAttributes = (output, context) => {
2650
2589
  return {
2651
2590
  activityId: (0, smithy_client_1.expectString)(output.activityId),
2652
- activityType: output.activityType !== undefined && output.activityType !== null
2653
- ? deserializeAws_json1_0ActivityType(output.activityType, context)
2654
- : undefined,
2591
+ activityType: output.activityType != null ? deserializeAws_json1_0ActivityType(output.activityType, context) : undefined,
2655
2592
  control: (0, smithy_client_1.expectString)(output.control),
2656
2593
  decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
2657
2594
  heartbeatTimeout: (0, smithy_client_1.expectString)(output.heartbeatTimeout),
@@ -2659,9 +2596,7 @@ const deserializeAws_json1_0ActivityTaskScheduledEventAttributes = (output, cont
2659
2596
  scheduleToCloseTimeout: (0, smithy_client_1.expectString)(output.scheduleToCloseTimeout),
2660
2597
  scheduleToStartTimeout: (0, smithy_client_1.expectString)(output.scheduleToStartTimeout),
2661
2598
  startToCloseTimeout: (0, smithy_client_1.expectString)(output.startToCloseTimeout),
2662
- taskList: output.taskList !== undefined && output.taskList !== null
2663
- ? deserializeAws_json1_0TaskList(output.taskList, context)
2664
- : undefined,
2599
+ taskList: output.taskList != null ? deserializeAws_json1_0TaskList(output.taskList, context) : undefined,
2665
2600
  taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
2666
2601
  };
2667
2602
  };
@@ -2693,9 +2628,7 @@ const deserializeAws_json1_0ActivityType = (output, context) => {
2693
2628
  const deserializeAws_json1_0ActivityTypeConfiguration = (output, context) => {
2694
2629
  return {
2695
2630
  defaultTaskHeartbeatTimeout: (0, smithy_client_1.expectString)(output.defaultTaskHeartbeatTimeout),
2696
- defaultTaskList: output.defaultTaskList !== undefined && output.defaultTaskList !== null
2697
- ? deserializeAws_json1_0TaskList(output.defaultTaskList, context)
2698
- : undefined,
2631
+ defaultTaskList: output.defaultTaskList != null ? deserializeAws_json1_0TaskList(output.defaultTaskList, context) : undefined,
2699
2632
  defaultTaskPriority: (0, smithy_client_1.expectString)(output.defaultTaskPriority),
2700
2633
  defaultTaskScheduleToCloseTimeout: (0, smithy_client_1.expectString)(output.defaultTaskScheduleToCloseTimeout),
2701
2634
  defaultTaskScheduleToStartTimeout: (0, smithy_client_1.expectString)(output.defaultTaskScheduleToStartTimeout),
@@ -2704,23 +2637,19 @@ const deserializeAws_json1_0ActivityTypeConfiguration = (output, context) => {
2704
2637
  };
2705
2638
  const deserializeAws_json1_0ActivityTypeDetail = (output, context) => {
2706
2639
  return {
2707
- configuration: output.configuration !== undefined && output.configuration !== null
2640
+ configuration: output.configuration != null
2708
2641
  ? deserializeAws_json1_0ActivityTypeConfiguration(output.configuration, context)
2709
2642
  : undefined,
2710
- typeInfo: output.typeInfo !== undefined && output.typeInfo !== null
2711
- ? deserializeAws_json1_0ActivityTypeInfo(output.typeInfo, context)
2712
- : undefined,
2643
+ typeInfo: output.typeInfo != null ? deserializeAws_json1_0ActivityTypeInfo(output.typeInfo, context) : undefined,
2713
2644
  };
2714
2645
  };
2715
2646
  const deserializeAws_json1_0ActivityTypeInfo = (output, context) => {
2716
2647
  return {
2717
- activityType: output.activityType !== undefined && output.activityType !== null
2718
- ? deserializeAws_json1_0ActivityType(output.activityType, context)
2719
- : undefined,
2720
- creationDate: output.creationDate !== undefined && output.creationDate !== null
2648
+ activityType: output.activityType != null ? deserializeAws_json1_0ActivityType(output.activityType, context) : undefined,
2649
+ creationDate: output.creationDate != null
2721
2650
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
2722
2651
  : undefined,
2723
- deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
2652
+ deprecationDate: output.deprecationDate != null
2724
2653
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deprecationDate)))
2725
2654
  : undefined,
2726
2655
  description: (0, smithy_client_1.expectString)(output.description),
@@ -2741,9 +2670,7 @@ const deserializeAws_json1_0ActivityTypeInfoList = (output, context) => {
2741
2670
  const deserializeAws_json1_0ActivityTypeInfos = (output, context) => {
2742
2671
  return {
2743
2672
  nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
2744
- typeInfos: output.typeInfos !== undefined && output.typeInfos !== null
2745
- ? deserializeAws_json1_0ActivityTypeInfoList(output.typeInfos, context)
2746
- : undefined,
2673
+ typeInfos: output.typeInfos != null ? deserializeAws_json1_0ActivityTypeInfoList(output.typeInfos, context) : undefined,
2747
2674
  };
2748
2675
  };
2749
2676
  const deserializeAws_json1_0CancelTimerFailedEventAttributes = (output, context) => {
@@ -2764,12 +2691,10 @@ const deserializeAws_json1_0ChildWorkflowExecutionCanceledEventAttributes = (out
2764
2691
  details: (0, smithy_client_1.expectString)(output.details),
2765
2692
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2766
2693
  startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
2767
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2694
+ workflowExecution: output.workflowExecution != null
2768
2695
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2769
2696
  : undefined,
2770
- workflowType: output.workflowType !== undefined && output.workflowType !== null
2771
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
2772
- : undefined,
2697
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
2773
2698
  };
2774
2699
  };
2775
2700
  const deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes = (output, context) => {
@@ -2777,12 +2702,10 @@ const deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes = (ou
2777
2702
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2778
2703
  result: (0, smithy_client_1.expectString)(output.result),
2779
2704
  startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
2780
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2705
+ workflowExecution: output.workflowExecution != null
2781
2706
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2782
2707
  : undefined,
2783
- workflowType: output.workflowType !== undefined && output.workflowType !== null
2784
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
2785
- : undefined,
2708
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
2786
2709
  };
2787
2710
  };
2788
2711
  const deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes = (output, context) => {
@@ -2791,35 +2714,29 @@ const deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes = (outpu
2791
2714
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2792
2715
  reason: (0, smithy_client_1.expectString)(output.reason),
2793
2716
  startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
2794
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2717
+ workflowExecution: output.workflowExecution != null
2795
2718
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2796
2719
  : undefined,
2797
- workflowType: output.workflowType !== undefined && output.workflowType !== null
2798
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
2799
- : undefined,
2720
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
2800
2721
  };
2801
2722
  };
2802
2723
  const deserializeAws_json1_0ChildWorkflowExecutionStartedEventAttributes = (output, context) => {
2803
2724
  return {
2804
2725
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2805
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2726
+ workflowExecution: output.workflowExecution != null
2806
2727
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2807
2728
  : undefined,
2808
- workflowType: output.workflowType !== undefined && output.workflowType !== null
2809
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
2810
- : undefined,
2729
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
2811
2730
  };
2812
2731
  };
2813
2732
  const deserializeAws_json1_0ChildWorkflowExecutionTerminatedEventAttributes = (output, context) => {
2814
2733
  return {
2815
2734
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2816
2735
  startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
2817
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2736
+ workflowExecution: output.workflowExecution != null
2818
2737
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2819
2738
  : undefined,
2820
- workflowType: output.workflowType !== undefined && output.workflowType !== null
2821
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
2822
- : undefined,
2739
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
2823
2740
  };
2824
2741
  };
2825
2742
  const deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes = (output, context) => {
@@ -2827,12 +2744,10 @@ const deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes = (out
2827
2744
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2828
2745
  startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
2829
2746
  timeoutType: (0, smithy_client_1.expectString)(output.timeoutType),
2830
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2747
+ workflowExecution: output.workflowExecution != null
2831
2748
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2832
2749
  : undefined,
2833
- workflowType: output.workflowType !== undefined && output.workflowType !== null
2834
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
2835
- : undefined,
2750
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
2836
2751
  };
2837
2752
  };
2838
2753
  const deserializeAws_json1_0CompleteWorkflowExecutionFailedEventAttributes = (output, context) => {
@@ -2849,19 +2764,15 @@ const deserializeAws_json1_0ContinueAsNewWorkflowExecutionFailedEventAttributes
2849
2764
  };
2850
2765
  const deserializeAws_json1_0DecisionTask = (output, context) => {
2851
2766
  return {
2852
- events: output.events !== undefined && output.events !== null
2853
- ? deserializeAws_json1_0HistoryEventList(output.events, context)
2854
- : undefined,
2767
+ events: output.events != null ? deserializeAws_json1_0HistoryEventList(output.events, context) : undefined,
2855
2768
  nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
2856
2769
  previousStartedEventId: (0, smithy_client_1.expectLong)(output.previousStartedEventId),
2857
2770
  startedEventId: (0, smithy_client_1.expectLong)(output.startedEventId),
2858
2771
  taskToken: (0, smithy_client_1.expectString)(output.taskToken),
2859
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2772
+ workflowExecution: output.workflowExecution != null
2860
2773
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2861
2774
  : undefined,
2862
- workflowType: output.workflowType !== undefined && output.workflowType !== null
2863
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
2864
- : undefined,
2775
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
2865
2776
  };
2866
2777
  };
2867
2778
  const deserializeAws_json1_0DecisionTaskCompletedEventAttributes = (output, context) => {
@@ -2874,9 +2785,7 @@ const deserializeAws_json1_0DecisionTaskCompletedEventAttributes = (output, cont
2874
2785
  const deserializeAws_json1_0DecisionTaskScheduledEventAttributes = (output, context) => {
2875
2786
  return {
2876
2787
  startToCloseTimeout: (0, smithy_client_1.expectString)(output.startToCloseTimeout),
2877
- taskList: output.taskList !== undefined && output.taskList !== null
2878
- ? deserializeAws_json1_0TaskList(output.taskList, context)
2879
- : undefined,
2788
+ taskList: output.taskList != null ? deserializeAws_json1_0TaskList(output.taskList, context) : undefined,
2880
2789
  taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
2881
2790
  };
2882
2791
  };
@@ -2915,12 +2824,10 @@ const deserializeAws_json1_0DomainDeprecatedFault = (output, context) => {
2915
2824
  };
2916
2825
  const deserializeAws_json1_0DomainDetail = (output, context) => {
2917
2826
  return {
2918
- configuration: output.configuration !== undefined && output.configuration !== null
2827
+ configuration: output.configuration != null
2919
2828
  ? deserializeAws_json1_0DomainConfiguration(output.configuration, context)
2920
2829
  : undefined,
2921
- domainInfo: output.domainInfo !== undefined && output.domainInfo !== null
2922
- ? deserializeAws_json1_0DomainInfo(output.domainInfo, context)
2923
- : undefined,
2830
+ domainInfo: output.domainInfo != null ? deserializeAws_json1_0DomainInfo(output.domainInfo, context) : undefined,
2924
2831
  };
2925
2832
  };
2926
2833
  const deserializeAws_json1_0DomainInfo = (output, context) => {
@@ -2944,16 +2851,14 @@ const deserializeAws_json1_0DomainInfoList = (output, context) => {
2944
2851
  };
2945
2852
  const deserializeAws_json1_0DomainInfos = (output, context) => {
2946
2853
  return {
2947
- domainInfos: output.domainInfos !== undefined && output.domainInfos !== null
2948
- ? deserializeAws_json1_0DomainInfoList(output.domainInfos, context)
2949
- : undefined,
2854
+ domainInfos: output.domainInfos != null ? deserializeAws_json1_0DomainInfoList(output.domainInfos, context) : undefined,
2950
2855
  nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
2951
2856
  };
2952
2857
  };
2953
2858
  const deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttributes = (output, context) => {
2954
2859
  return {
2955
2860
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2956
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2861
+ workflowExecution: output.workflowExecution != null
2957
2862
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2958
2863
  : undefined,
2959
2864
  };
@@ -2961,7 +2866,7 @@ const deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttribu
2961
2866
  const deserializeAws_json1_0ExternalWorkflowExecutionSignaledEventAttributes = (output, context) => {
2962
2867
  return {
2963
2868
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
2964
- workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
2869
+ workflowExecution: output.workflowExecution != null
2965
2870
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
2966
2871
  : undefined,
2967
2872
  };
@@ -2974,214 +2879,177 @@ const deserializeAws_json1_0FailWorkflowExecutionFailedEventAttributes = (output
2974
2879
  };
2975
2880
  const deserializeAws_json1_0History = (output, context) => {
2976
2881
  return {
2977
- events: output.events !== undefined && output.events !== null
2978
- ? deserializeAws_json1_0HistoryEventList(output.events, context)
2979
- : undefined,
2882
+ events: output.events != null ? deserializeAws_json1_0HistoryEventList(output.events, context) : undefined,
2980
2883
  nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
2981
2884
  };
2982
2885
  };
2983
2886
  const deserializeAws_json1_0HistoryEvent = (output, context) => {
2984
2887
  return {
2985
- activityTaskCancelRequestedEventAttributes: output.activityTaskCancelRequestedEventAttributes !== undefined &&
2986
- output.activityTaskCancelRequestedEventAttributes !== null
2888
+ activityTaskCancelRequestedEventAttributes: output.activityTaskCancelRequestedEventAttributes != null
2987
2889
  ? deserializeAws_json1_0ActivityTaskCancelRequestedEventAttributes(output.activityTaskCancelRequestedEventAttributes, context)
2988
2890
  : undefined,
2989
- activityTaskCanceledEventAttributes: output.activityTaskCanceledEventAttributes !== undefined && output.activityTaskCanceledEventAttributes !== null
2891
+ activityTaskCanceledEventAttributes: output.activityTaskCanceledEventAttributes != null
2990
2892
  ? deserializeAws_json1_0ActivityTaskCanceledEventAttributes(output.activityTaskCanceledEventAttributes, context)
2991
2893
  : undefined,
2992
- activityTaskCompletedEventAttributes: output.activityTaskCompletedEventAttributes !== undefined && output.activityTaskCompletedEventAttributes !== null
2894
+ activityTaskCompletedEventAttributes: output.activityTaskCompletedEventAttributes != null
2993
2895
  ? deserializeAws_json1_0ActivityTaskCompletedEventAttributes(output.activityTaskCompletedEventAttributes, context)
2994
2896
  : undefined,
2995
- activityTaskFailedEventAttributes: output.activityTaskFailedEventAttributes !== undefined && output.activityTaskFailedEventAttributes !== null
2897
+ activityTaskFailedEventAttributes: output.activityTaskFailedEventAttributes != null
2996
2898
  ? deserializeAws_json1_0ActivityTaskFailedEventAttributes(output.activityTaskFailedEventAttributes, context)
2997
2899
  : undefined,
2998
- activityTaskScheduledEventAttributes: output.activityTaskScheduledEventAttributes !== undefined && output.activityTaskScheduledEventAttributes !== null
2900
+ activityTaskScheduledEventAttributes: output.activityTaskScheduledEventAttributes != null
2999
2901
  ? deserializeAws_json1_0ActivityTaskScheduledEventAttributes(output.activityTaskScheduledEventAttributes, context)
3000
2902
  : undefined,
3001
- activityTaskStartedEventAttributes: output.activityTaskStartedEventAttributes !== undefined && output.activityTaskStartedEventAttributes !== null
2903
+ activityTaskStartedEventAttributes: output.activityTaskStartedEventAttributes != null
3002
2904
  ? deserializeAws_json1_0ActivityTaskStartedEventAttributes(output.activityTaskStartedEventAttributes, context)
3003
2905
  : undefined,
3004
- activityTaskTimedOutEventAttributes: output.activityTaskTimedOutEventAttributes !== undefined && output.activityTaskTimedOutEventAttributes !== null
2906
+ activityTaskTimedOutEventAttributes: output.activityTaskTimedOutEventAttributes != null
3005
2907
  ? deserializeAws_json1_0ActivityTaskTimedOutEventAttributes(output.activityTaskTimedOutEventAttributes, context)
3006
2908
  : undefined,
3007
- cancelTimerFailedEventAttributes: output.cancelTimerFailedEventAttributes !== undefined && output.cancelTimerFailedEventAttributes !== null
2909
+ cancelTimerFailedEventAttributes: output.cancelTimerFailedEventAttributes != null
3008
2910
  ? deserializeAws_json1_0CancelTimerFailedEventAttributes(output.cancelTimerFailedEventAttributes, context)
3009
2911
  : undefined,
3010
- cancelWorkflowExecutionFailedEventAttributes: output.cancelWorkflowExecutionFailedEventAttributes !== undefined &&
3011
- output.cancelWorkflowExecutionFailedEventAttributes !== null
2912
+ cancelWorkflowExecutionFailedEventAttributes: output.cancelWorkflowExecutionFailedEventAttributes != null
3012
2913
  ? deserializeAws_json1_0CancelWorkflowExecutionFailedEventAttributes(output.cancelWorkflowExecutionFailedEventAttributes, context)
3013
2914
  : undefined,
3014
- childWorkflowExecutionCanceledEventAttributes: output.childWorkflowExecutionCanceledEventAttributes !== undefined &&
3015
- output.childWorkflowExecutionCanceledEventAttributes !== null
2915
+ childWorkflowExecutionCanceledEventAttributes: output.childWorkflowExecutionCanceledEventAttributes != null
3016
2916
  ? deserializeAws_json1_0ChildWorkflowExecutionCanceledEventAttributes(output.childWorkflowExecutionCanceledEventAttributes, context)
3017
2917
  : undefined,
3018
- childWorkflowExecutionCompletedEventAttributes: output.childWorkflowExecutionCompletedEventAttributes !== undefined &&
3019
- output.childWorkflowExecutionCompletedEventAttributes !== null
2918
+ childWorkflowExecutionCompletedEventAttributes: output.childWorkflowExecutionCompletedEventAttributes != null
3020
2919
  ? deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes(output.childWorkflowExecutionCompletedEventAttributes, context)
3021
2920
  : undefined,
3022
- childWorkflowExecutionFailedEventAttributes: output.childWorkflowExecutionFailedEventAttributes !== undefined &&
3023
- output.childWorkflowExecutionFailedEventAttributes !== null
2921
+ childWorkflowExecutionFailedEventAttributes: output.childWorkflowExecutionFailedEventAttributes != null
3024
2922
  ? deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes(output.childWorkflowExecutionFailedEventAttributes, context)
3025
2923
  : undefined,
3026
- childWorkflowExecutionStartedEventAttributes: output.childWorkflowExecutionStartedEventAttributes !== undefined &&
3027
- output.childWorkflowExecutionStartedEventAttributes !== null
2924
+ childWorkflowExecutionStartedEventAttributes: output.childWorkflowExecutionStartedEventAttributes != null
3028
2925
  ? deserializeAws_json1_0ChildWorkflowExecutionStartedEventAttributes(output.childWorkflowExecutionStartedEventAttributes, context)
3029
2926
  : undefined,
3030
- childWorkflowExecutionTerminatedEventAttributes: output.childWorkflowExecutionTerminatedEventAttributes !== undefined &&
3031
- output.childWorkflowExecutionTerminatedEventAttributes !== null
2927
+ childWorkflowExecutionTerminatedEventAttributes: output.childWorkflowExecutionTerminatedEventAttributes != null
3032
2928
  ? deserializeAws_json1_0ChildWorkflowExecutionTerminatedEventAttributes(output.childWorkflowExecutionTerminatedEventAttributes, context)
3033
2929
  : undefined,
3034
- childWorkflowExecutionTimedOutEventAttributes: output.childWorkflowExecutionTimedOutEventAttributes !== undefined &&
3035
- output.childWorkflowExecutionTimedOutEventAttributes !== null
2930
+ childWorkflowExecutionTimedOutEventAttributes: output.childWorkflowExecutionTimedOutEventAttributes != null
3036
2931
  ? deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes(output.childWorkflowExecutionTimedOutEventAttributes, context)
3037
2932
  : undefined,
3038
- completeWorkflowExecutionFailedEventAttributes: output.completeWorkflowExecutionFailedEventAttributes !== undefined &&
3039
- output.completeWorkflowExecutionFailedEventAttributes !== null
2933
+ completeWorkflowExecutionFailedEventAttributes: output.completeWorkflowExecutionFailedEventAttributes != null
3040
2934
  ? deserializeAws_json1_0CompleteWorkflowExecutionFailedEventAttributes(output.completeWorkflowExecutionFailedEventAttributes, context)
3041
2935
  : undefined,
3042
- continueAsNewWorkflowExecutionFailedEventAttributes: output.continueAsNewWorkflowExecutionFailedEventAttributes !== undefined &&
3043
- output.continueAsNewWorkflowExecutionFailedEventAttributes !== null
2936
+ continueAsNewWorkflowExecutionFailedEventAttributes: output.continueAsNewWorkflowExecutionFailedEventAttributes != null
3044
2937
  ? deserializeAws_json1_0ContinueAsNewWorkflowExecutionFailedEventAttributes(output.continueAsNewWorkflowExecutionFailedEventAttributes, context)
3045
2938
  : undefined,
3046
- decisionTaskCompletedEventAttributes: output.decisionTaskCompletedEventAttributes !== undefined && output.decisionTaskCompletedEventAttributes !== null
2939
+ decisionTaskCompletedEventAttributes: output.decisionTaskCompletedEventAttributes != null
3047
2940
  ? deserializeAws_json1_0DecisionTaskCompletedEventAttributes(output.decisionTaskCompletedEventAttributes, context)
3048
2941
  : undefined,
3049
- decisionTaskScheduledEventAttributes: output.decisionTaskScheduledEventAttributes !== undefined && output.decisionTaskScheduledEventAttributes !== null
2942
+ decisionTaskScheduledEventAttributes: output.decisionTaskScheduledEventAttributes != null
3050
2943
  ? deserializeAws_json1_0DecisionTaskScheduledEventAttributes(output.decisionTaskScheduledEventAttributes, context)
3051
2944
  : undefined,
3052
- decisionTaskStartedEventAttributes: output.decisionTaskStartedEventAttributes !== undefined && output.decisionTaskStartedEventAttributes !== null
2945
+ decisionTaskStartedEventAttributes: output.decisionTaskStartedEventAttributes != null
3053
2946
  ? deserializeAws_json1_0DecisionTaskStartedEventAttributes(output.decisionTaskStartedEventAttributes, context)
3054
2947
  : undefined,
3055
- decisionTaskTimedOutEventAttributes: output.decisionTaskTimedOutEventAttributes !== undefined && output.decisionTaskTimedOutEventAttributes !== null
2948
+ decisionTaskTimedOutEventAttributes: output.decisionTaskTimedOutEventAttributes != null
3056
2949
  ? deserializeAws_json1_0DecisionTaskTimedOutEventAttributes(output.decisionTaskTimedOutEventAttributes, context)
3057
2950
  : undefined,
3058
2951
  eventId: (0, smithy_client_1.expectLong)(output.eventId),
3059
- eventTimestamp: output.eventTimestamp !== undefined && output.eventTimestamp !== null
2952
+ eventTimestamp: output.eventTimestamp != null
3060
2953
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTimestamp)))
3061
2954
  : undefined,
3062
2955
  eventType: (0, smithy_client_1.expectString)(output.eventType),
3063
- externalWorkflowExecutionCancelRequestedEventAttributes: output.externalWorkflowExecutionCancelRequestedEventAttributes !== undefined &&
3064
- output.externalWorkflowExecutionCancelRequestedEventAttributes !== null
2956
+ externalWorkflowExecutionCancelRequestedEventAttributes: output.externalWorkflowExecutionCancelRequestedEventAttributes != null
3065
2957
  ? deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttributes(output.externalWorkflowExecutionCancelRequestedEventAttributes, context)
3066
2958
  : undefined,
3067
- externalWorkflowExecutionSignaledEventAttributes: output.externalWorkflowExecutionSignaledEventAttributes !== undefined &&
3068
- output.externalWorkflowExecutionSignaledEventAttributes !== null
2959
+ externalWorkflowExecutionSignaledEventAttributes: output.externalWorkflowExecutionSignaledEventAttributes != null
3069
2960
  ? deserializeAws_json1_0ExternalWorkflowExecutionSignaledEventAttributes(output.externalWorkflowExecutionSignaledEventAttributes, context)
3070
2961
  : undefined,
3071
- failWorkflowExecutionFailedEventAttributes: output.failWorkflowExecutionFailedEventAttributes !== undefined &&
3072
- output.failWorkflowExecutionFailedEventAttributes !== null
2962
+ failWorkflowExecutionFailedEventAttributes: output.failWorkflowExecutionFailedEventAttributes != null
3073
2963
  ? deserializeAws_json1_0FailWorkflowExecutionFailedEventAttributes(output.failWorkflowExecutionFailedEventAttributes, context)
3074
2964
  : undefined,
3075
- lambdaFunctionCompletedEventAttributes: output.lambdaFunctionCompletedEventAttributes !== undefined &&
3076
- output.lambdaFunctionCompletedEventAttributes !== null
2965
+ lambdaFunctionCompletedEventAttributes: output.lambdaFunctionCompletedEventAttributes != null
3077
2966
  ? deserializeAws_json1_0LambdaFunctionCompletedEventAttributes(output.lambdaFunctionCompletedEventAttributes, context)
3078
2967
  : undefined,
3079
- lambdaFunctionFailedEventAttributes: output.lambdaFunctionFailedEventAttributes !== undefined && output.lambdaFunctionFailedEventAttributes !== null
2968
+ lambdaFunctionFailedEventAttributes: output.lambdaFunctionFailedEventAttributes != null
3080
2969
  ? deserializeAws_json1_0LambdaFunctionFailedEventAttributes(output.lambdaFunctionFailedEventAttributes, context)
3081
2970
  : undefined,
3082
- lambdaFunctionScheduledEventAttributes: output.lambdaFunctionScheduledEventAttributes !== undefined &&
3083
- output.lambdaFunctionScheduledEventAttributes !== null
2971
+ lambdaFunctionScheduledEventAttributes: output.lambdaFunctionScheduledEventAttributes != null
3084
2972
  ? deserializeAws_json1_0LambdaFunctionScheduledEventAttributes(output.lambdaFunctionScheduledEventAttributes, context)
3085
2973
  : undefined,
3086
- lambdaFunctionStartedEventAttributes: output.lambdaFunctionStartedEventAttributes !== undefined && output.lambdaFunctionStartedEventAttributes !== null
2974
+ lambdaFunctionStartedEventAttributes: output.lambdaFunctionStartedEventAttributes != null
3087
2975
  ? deserializeAws_json1_0LambdaFunctionStartedEventAttributes(output.lambdaFunctionStartedEventAttributes, context)
3088
2976
  : undefined,
3089
- lambdaFunctionTimedOutEventAttributes: output.lambdaFunctionTimedOutEventAttributes !== undefined &&
3090
- output.lambdaFunctionTimedOutEventAttributes !== null
2977
+ lambdaFunctionTimedOutEventAttributes: output.lambdaFunctionTimedOutEventAttributes != null
3091
2978
  ? deserializeAws_json1_0LambdaFunctionTimedOutEventAttributes(output.lambdaFunctionTimedOutEventAttributes, context)
3092
2979
  : undefined,
3093
- markerRecordedEventAttributes: output.markerRecordedEventAttributes !== undefined && output.markerRecordedEventAttributes !== null
2980
+ markerRecordedEventAttributes: output.markerRecordedEventAttributes != null
3094
2981
  ? deserializeAws_json1_0MarkerRecordedEventAttributes(output.markerRecordedEventAttributes, context)
3095
2982
  : undefined,
3096
- recordMarkerFailedEventAttributes: output.recordMarkerFailedEventAttributes !== undefined && output.recordMarkerFailedEventAttributes !== null
2983
+ recordMarkerFailedEventAttributes: output.recordMarkerFailedEventAttributes != null
3097
2984
  ? deserializeAws_json1_0RecordMarkerFailedEventAttributes(output.recordMarkerFailedEventAttributes, context)
3098
2985
  : undefined,
3099
- requestCancelActivityTaskFailedEventAttributes: output.requestCancelActivityTaskFailedEventAttributes !== undefined &&
3100
- output.requestCancelActivityTaskFailedEventAttributes !== null
2986
+ requestCancelActivityTaskFailedEventAttributes: output.requestCancelActivityTaskFailedEventAttributes != null
3101
2987
  ? deserializeAws_json1_0RequestCancelActivityTaskFailedEventAttributes(output.requestCancelActivityTaskFailedEventAttributes, context)
3102
2988
  : undefined,
3103
- requestCancelExternalWorkflowExecutionFailedEventAttributes: output.requestCancelExternalWorkflowExecutionFailedEventAttributes !== undefined &&
3104
- output.requestCancelExternalWorkflowExecutionFailedEventAttributes !== null
2989
+ requestCancelExternalWorkflowExecutionFailedEventAttributes: output.requestCancelExternalWorkflowExecutionFailedEventAttributes != null
3105
2990
  ? deserializeAws_json1_0RequestCancelExternalWorkflowExecutionFailedEventAttributes(output.requestCancelExternalWorkflowExecutionFailedEventAttributes, context)
3106
2991
  : undefined,
3107
- requestCancelExternalWorkflowExecutionInitiatedEventAttributes: output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes !== undefined &&
3108
- output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes !== null
2992
+ requestCancelExternalWorkflowExecutionInitiatedEventAttributes: output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes != null
3109
2993
  ? deserializeAws_json1_0RequestCancelExternalWorkflowExecutionInitiatedEventAttributes(output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes, context)
3110
2994
  : undefined,
3111
- scheduleActivityTaskFailedEventAttributes: output.scheduleActivityTaskFailedEventAttributes !== undefined &&
3112
- output.scheduleActivityTaskFailedEventAttributes !== null
2995
+ scheduleActivityTaskFailedEventAttributes: output.scheduleActivityTaskFailedEventAttributes != null
3113
2996
  ? deserializeAws_json1_0ScheduleActivityTaskFailedEventAttributes(output.scheduleActivityTaskFailedEventAttributes, context)
3114
2997
  : undefined,
3115
- scheduleLambdaFunctionFailedEventAttributes: output.scheduleLambdaFunctionFailedEventAttributes !== undefined &&
3116
- output.scheduleLambdaFunctionFailedEventAttributes !== null
2998
+ scheduleLambdaFunctionFailedEventAttributes: output.scheduleLambdaFunctionFailedEventAttributes != null
3117
2999
  ? deserializeAws_json1_0ScheduleLambdaFunctionFailedEventAttributes(output.scheduleLambdaFunctionFailedEventAttributes, context)
3118
3000
  : undefined,
3119
- signalExternalWorkflowExecutionFailedEventAttributes: output.signalExternalWorkflowExecutionFailedEventAttributes !== undefined &&
3120
- output.signalExternalWorkflowExecutionFailedEventAttributes !== null
3001
+ signalExternalWorkflowExecutionFailedEventAttributes: output.signalExternalWorkflowExecutionFailedEventAttributes != null
3121
3002
  ? deserializeAws_json1_0SignalExternalWorkflowExecutionFailedEventAttributes(output.signalExternalWorkflowExecutionFailedEventAttributes, context)
3122
3003
  : undefined,
3123
- signalExternalWorkflowExecutionInitiatedEventAttributes: output.signalExternalWorkflowExecutionInitiatedEventAttributes !== undefined &&
3124
- output.signalExternalWorkflowExecutionInitiatedEventAttributes !== null
3004
+ signalExternalWorkflowExecutionInitiatedEventAttributes: output.signalExternalWorkflowExecutionInitiatedEventAttributes != null
3125
3005
  ? deserializeAws_json1_0SignalExternalWorkflowExecutionInitiatedEventAttributes(output.signalExternalWorkflowExecutionInitiatedEventAttributes, context)
3126
3006
  : undefined,
3127
- startChildWorkflowExecutionFailedEventAttributes: output.startChildWorkflowExecutionFailedEventAttributes !== undefined &&
3128
- output.startChildWorkflowExecutionFailedEventAttributes !== null
3007
+ startChildWorkflowExecutionFailedEventAttributes: output.startChildWorkflowExecutionFailedEventAttributes != null
3129
3008
  ? deserializeAws_json1_0StartChildWorkflowExecutionFailedEventAttributes(output.startChildWorkflowExecutionFailedEventAttributes, context)
3130
3009
  : undefined,
3131
- startChildWorkflowExecutionInitiatedEventAttributes: output.startChildWorkflowExecutionInitiatedEventAttributes !== undefined &&
3132
- output.startChildWorkflowExecutionInitiatedEventAttributes !== null
3010
+ startChildWorkflowExecutionInitiatedEventAttributes: output.startChildWorkflowExecutionInitiatedEventAttributes != null
3133
3011
  ? deserializeAws_json1_0StartChildWorkflowExecutionInitiatedEventAttributes(output.startChildWorkflowExecutionInitiatedEventAttributes, context)
3134
3012
  : undefined,
3135
- startLambdaFunctionFailedEventAttributes: output.startLambdaFunctionFailedEventAttributes !== undefined &&
3136
- output.startLambdaFunctionFailedEventAttributes !== null
3013
+ startLambdaFunctionFailedEventAttributes: output.startLambdaFunctionFailedEventAttributes != null
3137
3014
  ? deserializeAws_json1_0StartLambdaFunctionFailedEventAttributes(output.startLambdaFunctionFailedEventAttributes, context)
3138
3015
  : undefined,
3139
- startTimerFailedEventAttributes: output.startTimerFailedEventAttributes !== undefined && output.startTimerFailedEventAttributes !== null
3016
+ startTimerFailedEventAttributes: output.startTimerFailedEventAttributes != null
3140
3017
  ? deserializeAws_json1_0StartTimerFailedEventAttributes(output.startTimerFailedEventAttributes, context)
3141
3018
  : undefined,
3142
- timerCanceledEventAttributes: output.timerCanceledEventAttributes !== undefined && output.timerCanceledEventAttributes !== null
3019
+ timerCanceledEventAttributes: output.timerCanceledEventAttributes != null
3143
3020
  ? deserializeAws_json1_0TimerCanceledEventAttributes(output.timerCanceledEventAttributes, context)
3144
3021
  : undefined,
3145
- timerFiredEventAttributes: output.timerFiredEventAttributes !== undefined && output.timerFiredEventAttributes !== null
3022
+ timerFiredEventAttributes: output.timerFiredEventAttributes != null
3146
3023
  ? deserializeAws_json1_0TimerFiredEventAttributes(output.timerFiredEventAttributes, context)
3147
3024
  : undefined,
3148
- timerStartedEventAttributes: output.timerStartedEventAttributes !== undefined && output.timerStartedEventAttributes !== null
3025
+ timerStartedEventAttributes: output.timerStartedEventAttributes != null
3149
3026
  ? deserializeAws_json1_0TimerStartedEventAttributes(output.timerStartedEventAttributes, context)
3150
3027
  : undefined,
3151
- workflowExecutionCancelRequestedEventAttributes: output.workflowExecutionCancelRequestedEventAttributes !== undefined &&
3152
- output.workflowExecutionCancelRequestedEventAttributes !== null
3028
+ workflowExecutionCancelRequestedEventAttributes: output.workflowExecutionCancelRequestedEventAttributes != null
3153
3029
  ? deserializeAws_json1_0WorkflowExecutionCancelRequestedEventAttributes(output.workflowExecutionCancelRequestedEventAttributes, context)
3154
3030
  : undefined,
3155
- workflowExecutionCanceledEventAttributes: output.workflowExecutionCanceledEventAttributes !== undefined &&
3156
- output.workflowExecutionCanceledEventAttributes !== null
3031
+ workflowExecutionCanceledEventAttributes: output.workflowExecutionCanceledEventAttributes != null
3157
3032
  ? deserializeAws_json1_0WorkflowExecutionCanceledEventAttributes(output.workflowExecutionCanceledEventAttributes, context)
3158
3033
  : undefined,
3159
- workflowExecutionCompletedEventAttributes: output.workflowExecutionCompletedEventAttributes !== undefined &&
3160
- output.workflowExecutionCompletedEventAttributes !== null
3034
+ workflowExecutionCompletedEventAttributes: output.workflowExecutionCompletedEventAttributes != null
3161
3035
  ? deserializeAws_json1_0WorkflowExecutionCompletedEventAttributes(output.workflowExecutionCompletedEventAttributes, context)
3162
3036
  : undefined,
3163
- workflowExecutionContinuedAsNewEventAttributes: output.workflowExecutionContinuedAsNewEventAttributes !== undefined &&
3164
- output.workflowExecutionContinuedAsNewEventAttributes !== null
3037
+ workflowExecutionContinuedAsNewEventAttributes: output.workflowExecutionContinuedAsNewEventAttributes != null
3165
3038
  ? deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes(output.workflowExecutionContinuedAsNewEventAttributes, context)
3166
3039
  : undefined,
3167
- workflowExecutionFailedEventAttributes: output.workflowExecutionFailedEventAttributes !== undefined &&
3168
- output.workflowExecutionFailedEventAttributes !== null
3040
+ workflowExecutionFailedEventAttributes: output.workflowExecutionFailedEventAttributes != null
3169
3041
  ? deserializeAws_json1_0WorkflowExecutionFailedEventAttributes(output.workflowExecutionFailedEventAttributes, context)
3170
3042
  : undefined,
3171
- workflowExecutionSignaledEventAttributes: output.workflowExecutionSignaledEventAttributes !== undefined &&
3172
- output.workflowExecutionSignaledEventAttributes !== null
3043
+ workflowExecutionSignaledEventAttributes: output.workflowExecutionSignaledEventAttributes != null
3173
3044
  ? deserializeAws_json1_0WorkflowExecutionSignaledEventAttributes(output.workflowExecutionSignaledEventAttributes, context)
3174
3045
  : undefined,
3175
- workflowExecutionStartedEventAttributes: output.workflowExecutionStartedEventAttributes !== undefined &&
3176
- output.workflowExecutionStartedEventAttributes !== null
3046
+ workflowExecutionStartedEventAttributes: output.workflowExecutionStartedEventAttributes != null
3177
3047
  ? deserializeAws_json1_0WorkflowExecutionStartedEventAttributes(output.workflowExecutionStartedEventAttributes, context)
3178
3048
  : undefined,
3179
- workflowExecutionTerminatedEventAttributes: output.workflowExecutionTerminatedEventAttributes !== undefined &&
3180
- output.workflowExecutionTerminatedEventAttributes !== null
3049
+ workflowExecutionTerminatedEventAttributes: output.workflowExecutionTerminatedEventAttributes != null
3181
3050
  ? deserializeAws_json1_0WorkflowExecutionTerminatedEventAttributes(output.workflowExecutionTerminatedEventAttributes, context)
3182
3051
  : undefined,
3183
- workflowExecutionTimedOutEventAttributes: output.workflowExecutionTimedOutEventAttributes !== undefined &&
3184
- output.workflowExecutionTimedOutEventAttributes !== null
3052
+ workflowExecutionTimedOutEventAttributes: output.workflowExecutionTimedOutEventAttributes != null
3185
3053
  ? deserializeAws_json1_0WorkflowExecutionTimedOutEventAttributes(output.workflowExecutionTimedOutEventAttributes, context)
3186
3054
  : undefined,
3187
3055
  };
@@ -3241,9 +3109,7 @@ const deserializeAws_json1_0LimitExceededFault = (output, context) => {
3241
3109
  };
3242
3110
  const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
3243
3111
  return {
3244
- tags: output.tags !== undefined && output.tags !== null
3245
- ? deserializeAws_json1_0ResourceTagList(output.tags, context)
3246
- : undefined,
3112
+ tags: output.tags != null ? deserializeAws_json1_0ResourceTagList(output.tags, context) : undefined,
3247
3113
  };
3248
3114
  };
3249
3115
  const deserializeAws_json1_0MarkerRecordedEventAttributes = (output, context) => {
@@ -3321,9 +3187,7 @@ const deserializeAws_json1_0Run = (output, context) => {
3321
3187
  const deserializeAws_json1_0ScheduleActivityTaskFailedEventAttributes = (output, context) => {
3322
3188
  return {
3323
3189
  activityId: (0, smithy_client_1.expectString)(output.activityId),
3324
- activityType: output.activityType !== undefined && output.activityType !== null
3325
- ? deserializeAws_json1_0ActivityType(output.activityType, context)
3326
- : undefined,
3190
+ activityType: output.activityType != null ? deserializeAws_json1_0ActivityType(output.activityType, context) : undefined,
3327
3191
  cause: (0, smithy_client_1.expectString)(output.cause),
3328
3192
  decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
3329
3193
  };
@@ -3363,9 +3227,7 @@ const deserializeAws_json1_0StartChildWorkflowExecutionFailedEventAttributes = (
3363
3227
  decisionTaskCompletedEventId: (0, smithy_client_1.expectLong)(output.decisionTaskCompletedEventId),
3364
3228
  initiatedEventId: (0, smithy_client_1.expectLong)(output.initiatedEventId),
3365
3229
  workflowId: (0, smithy_client_1.expectString)(output.workflowId),
3366
- workflowType: output.workflowType !== undefined && output.workflowType !== null
3367
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
3368
- : undefined,
3230
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
3369
3231
  };
3370
3232
  };
3371
3233
  const deserializeAws_json1_0StartChildWorkflowExecutionInitiatedEventAttributes = (output, context) => {
@@ -3376,18 +3238,12 @@ const deserializeAws_json1_0StartChildWorkflowExecutionInitiatedEventAttributes
3376
3238
  executionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.executionStartToCloseTimeout),
3377
3239
  input: (0, smithy_client_1.expectString)(output.input),
3378
3240
  lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
3379
- tagList: output.tagList !== undefined && output.tagList !== null
3380
- ? deserializeAws_json1_0TagList(output.tagList, context)
3381
- : undefined,
3382
- taskList: output.taskList !== undefined && output.taskList !== null
3383
- ? deserializeAws_json1_0TaskList(output.taskList, context)
3384
- : undefined,
3241
+ tagList: output.tagList != null ? deserializeAws_json1_0TagList(output.tagList, context) : undefined,
3242
+ taskList: output.taskList != null ? deserializeAws_json1_0TaskList(output.taskList, context) : undefined,
3385
3243
  taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
3386
3244
  taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
3387
3245
  workflowId: (0, smithy_client_1.expectString)(output.workflowId),
3388
- workflowType: output.workflowType !== undefined && output.workflowType !== null
3389
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
3390
- : undefined,
3246
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
3391
3247
  };
3392
3248
  };
3393
3249
  const deserializeAws_json1_0StartLambdaFunctionFailedEventAttributes = (output, context) => {
@@ -3482,7 +3338,7 @@ const deserializeAws_json1_0WorkflowExecutionCancelRequestedEventAttributes = (o
3482
3338
  return {
3483
3339
  cause: (0, smithy_client_1.expectString)(output.cause),
3484
3340
  externalInitiatedEventId: (0, smithy_client_1.expectLong)(output.externalInitiatedEventId),
3485
- externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null
3341
+ externalWorkflowExecution: output.externalWorkflowExecution != null
3486
3342
  ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context)
3487
3343
  : undefined,
3488
3344
  };
@@ -3498,9 +3354,7 @@ const deserializeAws_json1_0WorkflowExecutionConfiguration = (output, context) =
3498
3354
  childPolicy: (0, smithy_client_1.expectString)(output.childPolicy),
3499
3355
  executionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.executionStartToCloseTimeout),
3500
3356
  lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
3501
- taskList: output.taskList !== undefined && output.taskList !== null
3502
- ? deserializeAws_json1_0TaskList(output.taskList, context)
3503
- : undefined,
3357
+ taskList: output.taskList != null ? deserializeAws_json1_0TaskList(output.taskList, context) : undefined,
3504
3358
  taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
3505
3359
  taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
3506
3360
  };
@@ -3513,17 +3367,11 @@ const deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes = (ou
3513
3367
  input: (0, smithy_client_1.expectString)(output.input),
3514
3368
  lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
3515
3369
  newExecutionRunId: (0, smithy_client_1.expectString)(output.newExecutionRunId),
3516
- tagList: output.tagList !== undefined && output.tagList !== null
3517
- ? deserializeAws_json1_0TagList(output.tagList, context)
3518
- : undefined,
3519
- taskList: output.taskList !== undefined && output.taskList !== null
3520
- ? deserializeAws_json1_0TaskList(output.taskList, context)
3521
- : undefined,
3370
+ tagList: output.tagList != null ? deserializeAws_json1_0TagList(output.tagList, context) : undefined,
3371
+ taskList: output.taskList != null ? deserializeAws_json1_0TaskList(output.taskList, context) : undefined,
3522
3372
  taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
3523
3373
  taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
3524
- workflowType: output.workflowType !== undefined && output.workflowType !== null
3525
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
3526
- : undefined,
3374
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
3527
3375
  };
3528
3376
  };
3529
3377
  const deserializeAws_json1_0WorkflowExecutionCount = (output, context) => {
@@ -3534,17 +3382,17 @@ const deserializeAws_json1_0WorkflowExecutionCount = (output, context) => {
3534
3382
  };
3535
3383
  const deserializeAws_json1_0WorkflowExecutionDetail = (output, context) => {
3536
3384
  return {
3537
- executionConfiguration: output.executionConfiguration !== undefined && output.executionConfiguration !== null
3385
+ executionConfiguration: output.executionConfiguration != null
3538
3386
  ? deserializeAws_json1_0WorkflowExecutionConfiguration(output.executionConfiguration, context)
3539
3387
  : undefined,
3540
- executionInfo: output.executionInfo !== undefined && output.executionInfo !== null
3388
+ executionInfo: output.executionInfo != null
3541
3389
  ? deserializeAws_json1_0WorkflowExecutionInfo(output.executionInfo, context)
3542
3390
  : undefined,
3543
- latestActivityTaskTimestamp: output.latestActivityTaskTimestamp !== undefined && output.latestActivityTaskTimestamp !== null
3391
+ latestActivityTaskTimestamp: output.latestActivityTaskTimestamp != null
3544
3392
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.latestActivityTaskTimestamp)))
3545
3393
  : undefined,
3546
3394
  latestExecutionContext: (0, smithy_client_1.expectString)(output.latestExecutionContext),
3547
- openCounts: output.openCounts !== undefined && output.openCounts !== null
3395
+ openCounts: output.openCounts != null
3548
3396
  ? deserializeAws_json1_0WorkflowExecutionOpenCounts(output.openCounts, context)
3549
3397
  : undefined,
3550
3398
  };
@@ -3560,25 +3408,17 @@ const deserializeAws_json1_0WorkflowExecutionInfo = (output, context) => {
3560
3408
  return {
3561
3409
  cancelRequested: (0, smithy_client_1.expectBoolean)(output.cancelRequested),
3562
3410
  closeStatus: (0, smithy_client_1.expectString)(output.closeStatus),
3563
- closeTimestamp: output.closeTimestamp !== undefined && output.closeTimestamp !== null
3411
+ closeTimestamp: output.closeTimestamp != null
3564
3412
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.closeTimestamp)))
3565
3413
  : undefined,
3566
- execution: output.execution !== undefined && output.execution !== null
3567
- ? deserializeAws_json1_0WorkflowExecution(output.execution, context)
3568
- : undefined,
3414
+ execution: output.execution != null ? deserializeAws_json1_0WorkflowExecution(output.execution, context) : undefined,
3569
3415
  executionStatus: (0, smithy_client_1.expectString)(output.executionStatus),
3570
- parent: output.parent !== undefined && output.parent !== null
3571
- ? deserializeAws_json1_0WorkflowExecution(output.parent, context)
3572
- : undefined,
3573
- startTimestamp: output.startTimestamp !== undefined && output.startTimestamp !== null
3416
+ parent: output.parent != null ? deserializeAws_json1_0WorkflowExecution(output.parent, context) : undefined,
3417
+ startTimestamp: output.startTimestamp != null
3574
3418
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTimestamp)))
3575
3419
  : undefined,
3576
- tagList: output.tagList !== undefined && output.tagList !== null
3577
- ? deserializeAws_json1_0TagList(output.tagList, context)
3578
- : undefined,
3579
- workflowType: output.workflowType !== undefined && output.workflowType !== null
3580
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
3581
- : undefined,
3420
+ tagList: output.tagList != null ? deserializeAws_json1_0TagList(output.tagList, context) : undefined,
3421
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
3582
3422
  };
3583
3423
  };
3584
3424
  const deserializeAws_json1_0WorkflowExecutionInfoList = (output, context) => {
@@ -3594,7 +3434,7 @@ const deserializeAws_json1_0WorkflowExecutionInfoList = (output, context) => {
3594
3434
  };
3595
3435
  const deserializeAws_json1_0WorkflowExecutionInfos = (output, context) => {
3596
3436
  return {
3597
- executionInfos: output.executionInfos !== undefined && output.executionInfos !== null
3437
+ executionInfos: output.executionInfos != null
3598
3438
  ? deserializeAws_json1_0WorkflowExecutionInfoList(output.executionInfos, context)
3599
3439
  : undefined,
3600
3440
  nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
@@ -3612,7 +3452,7 @@ const deserializeAws_json1_0WorkflowExecutionOpenCounts = (output, context) => {
3612
3452
  const deserializeAws_json1_0WorkflowExecutionSignaledEventAttributes = (output, context) => {
3613
3453
  return {
3614
3454
  externalInitiatedEventId: (0, smithy_client_1.expectLong)(output.externalInitiatedEventId),
3615
- externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null
3455
+ externalWorkflowExecution: output.externalWorkflowExecution != null
3616
3456
  ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context)
3617
3457
  : undefined,
3618
3458
  input: (0, smithy_client_1.expectString)(output.input),
@@ -3627,20 +3467,14 @@ const deserializeAws_json1_0WorkflowExecutionStartedEventAttributes = (output, c
3627
3467
  input: (0, smithy_client_1.expectString)(output.input),
3628
3468
  lambdaRole: (0, smithy_client_1.expectString)(output.lambdaRole),
3629
3469
  parentInitiatedEventId: (0, smithy_client_1.expectLong)(output.parentInitiatedEventId),
3630
- parentWorkflowExecution: output.parentWorkflowExecution !== undefined && output.parentWorkflowExecution !== null
3470
+ parentWorkflowExecution: output.parentWorkflowExecution != null
3631
3471
  ? deserializeAws_json1_0WorkflowExecution(output.parentWorkflowExecution, context)
3632
3472
  : undefined,
3633
- tagList: output.tagList !== undefined && output.tagList !== null
3634
- ? deserializeAws_json1_0TagList(output.tagList, context)
3635
- : undefined,
3636
- taskList: output.taskList !== undefined && output.taskList !== null
3637
- ? deserializeAws_json1_0TaskList(output.taskList, context)
3638
- : undefined,
3473
+ tagList: output.tagList != null ? deserializeAws_json1_0TagList(output.tagList, context) : undefined,
3474
+ taskList: output.taskList != null ? deserializeAws_json1_0TaskList(output.taskList, context) : undefined,
3639
3475
  taskPriority: (0, smithy_client_1.expectString)(output.taskPriority),
3640
3476
  taskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.taskStartToCloseTimeout),
3641
- workflowType: output.workflowType !== undefined && output.workflowType !== null
3642
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
3643
- : undefined,
3477
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
3644
3478
  };
3645
3479
  };
3646
3480
  const deserializeAws_json1_0WorkflowExecutionTerminatedEventAttributes = (output, context) => {
@@ -3668,36 +3502,30 @@ const deserializeAws_json1_0WorkflowTypeConfiguration = (output, context) => {
3668
3502
  defaultChildPolicy: (0, smithy_client_1.expectString)(output.defaultChildPolicy),
3669
3503
  defaultExecutionStartToCloseTimeout: (0, smithy_client_1.expectString)(output.defaultExecutionStartToCloseTimeout),
3670
3504
  defaultLambdaRole: (0, smithy_client_1.expectString)(output.defaultLambdaRole),
3671
- defaultTaskList: output.defaultTaskList !== undefined && output.defaultTaskList !== null
3672
- ? deserializeAws_json1_0TaskList(output.defaultTaskList, context)
3673
- : undefined,
3505
+ defaultTaskList: output.defaultTaskList != null ? deserializeAws_json1_0TaskList(output.defaultTaskList, context) : undefined,
3674
3506
  defaultTaskPriority: (0, smithy_client_1.expectString)(output.defaultTaskPriority),
3675
3507
  defaultTaskStartToCloseTimeout: (0, smithy_client_1.expectString)(output.defaultTaskStartToCloseTimeout),
3676
3508
  };
3677
3509
  };
3678
3510
  const deserializeAws_json1_0WorkflowTypeDetail = (output, context) => {
3679
3511
  return {
3680
- configuration: output.configuration !== undefined && output.configuration !== null
3512
+ configuration: output.configuration != null
3681
3513
  ? deserializeAws_json1_0WorkflowTypeConfiguration(output.configuration, context)
3682
3514
  : undefined,
3683
- typeInfo: output.typeInfo !== undefined && output.typeInfo !== null
3684
- ? deserializeAws_json1_0WorkflowTypeInfo(output.typeInfo, context)
3685
- : undefined,
3515
+ typeInfo: output.typeInfo != null ? deserializeAws_json1_0WorkflowTypeInfo(output.typeInfo, context) : undefined,
3686
3516
  };
3687
3517
  };
3688
3518
  const deserializeAws_json1_0WorkflowTypeInfo = (output, context) => {
3689
3519
  return {
3690
- creationDate: output.creationDate !== undefined && output.creationDate !== null
3520
+ creationDate: output.creationDate != null
3691
3521
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
3692
3522
  : undefined,
3693
- deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
3523
+ deprecationDate: output.deprecationDate != null
3694
3524
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deprecationDate)))
3695
3525
  : undefined,
3696
3526
  description: (0, smithy_client_1.expectString)(output.description),
3697
3527
  status: (0, smithy_client_1.expectString)(output.status),
3698
- workflowType: output.workflowType !== undefined && output.workflowType !== null
3699
- ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
3700
- : undefined,
3528
+ workflowType: output.workflowType != null ? deserializeAws_json1_0WorkflowType(output.workflowType, context) : undefined,
3701
3529
  };
3702
3530
  };
3703
3531
  const deserializeAws_json1_0WorkflowTypeInfoList = (output, context) => {
@@ -3714,9 +3542,7 @@ const deserializeAws_json1_0WorkflowTypeInfoList = (output, context) => {
3714
3542
  const deserializeAws_json1_0WorkflowTypeInfos = (output, context) => {
3715
3543
  return {
3716
3544
  nextPageToken: (0, smithy_client_1.expectString)(output.nextPageToken),
3717
- typeInfos: output.typeInfos !== undefined && output.typeInfos !== null
3718
- ? deserializeAws_json1_0WorkflowTypeInfoList(output.typeInfos, context)
3719
- : undefined,
3545
+ typeInfos: output.typeInfos != null ? deserializeAws_json1_0WorkflowTypeInfoList(output.typeInfos, context) : undefined,
3720
3546
  };
3721
3547
  };
3722
3548
  const deserializeMetadata = (output) => {
@@ -3781,5 +3607,4 @@ const loadRestJsonErrorCode = (output, data) => {
3781
3607
  if (data["__type"] !== undefined) {
3782
3608
  return sanitizeErrorCode(data["__type"]);
3783
3609
  }
3784
- return "";
3785
3610
  };