@aws-sdk/client-elastic-beanstalk 3.131.0 → 3.142.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/AbortEnvironmentUpdateCommand.js +1 -1
  4. package/dist-cjs/commands/ApplyEnvironmentManagedActionCommand.js +2 -2
  5. package/dist-cjs/commands/AssociateEnvironmentOperationsRoleCommand.js +1 -1
  6. package/dist-cjs/commands/CheckDNSAvailabilityCommand.js +2 -2
  7. package/dist-cjs/commands/ComposeEnvironmentsCommand.js +2 -2
  8. package/dist-cjs/commands/CreateApplicationCommand.js +2 -2
  9. package/dist-cjs/commands/CreateApplicationVersionCommand.js +2 -2
  10. package/dist-cjs/commands/CreateConfigurationTemplateCommand.js +2 -2
  11. package/dist-cjs/commands/CreateEnvironmentCommand.js +2 -2
  12. package/dist-cjs/commands/CreatePlatformVersionCommand.js +2 -2
  13. package/dist-cjs/commands/CreateStorageLocationCommand.js +1 -1
  14. package/dist-cjs/commands/DeleteApplicationCommand.js +1 -1
  15. package/dist-cjs/commands/DeleteApplicationVersionCommand.js +1 -1
  16. package/dist-cjs/commands/DeleteConfigurationTemplateCommand.js +1 -1
  17. package/dist-cjs/commands/DeleteEnvironmentConfigurationCommand.js +1 -1
  18. package/dist-cjs/commands/DeletePlatformVersionCommand.js +2 -2
  19. package/dist-cjs/commands/DescribeAccountAttributesCommand.js +1 -1
  20. package/dist-cjs/commands/DescribeApplicationVersionsCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeApplicationsCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeConfigurationOptionsCommand.js +2 -2
  23. package/dist-cjs/commands/DescribeConfigurationSettingsCommand.js +2 -2
  24. package/dist-cjs/commands/DescribeEnvironmentHealthCommand.js +2 -2
  25. package/dist-cjs/commands/DescribeEnvironmentManagedActionHistoryCommand.js +2 -2
  26. package/dist-cjs/commands/DescribeEnvironmentManagedActionsCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeEnvironmentResourcesCommand.js +2 -2
  28. package/dist-cjs/commands/DescribeEnvironmentsCommand.js +2 -2
  29. package/dist-cjs/commands/DescribeEventsCommand.js +2 -2
  30. package/dist-cjs/commands/DescribeInstancesHealthCommand.js +2 -2
  31. package/dist-cjs/commands/DescribePlatformVersionCommand.js +2 -2
  32. package/dist-cjs/commands/DisassociateEnvironmentOperationsRoleCommand.js +1 -1
  33. package/dist-cjs/commands/ListAvailableSolutionStacksCommand.js +1 -1
  34. package/dist-cjs/commands/ListPlatformBranchesCommand.js +2 -2
  35. package/dist-cjs/commands/ListPlatformVersionsCommand.js +2 -2
  36. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  37. package/dist-cjs/commands/RebuildEnvironmentCommand.js +1 -1
  38. package/dist-cjs/commands/RequestEnvironmentInfoCommand.js +1 -1
  39. package/dist-cjs/commands/RestartAppServerCommand.js +1 -1
  40. package/dist-cjs/commands/RetrieveEnvironmentInfoCommand.js +2 -2
  41. package/dist-cjs/commands/SwapEnvironmentCNAMEsCommand.js +1 -1
  42. package/dist-cjs/commands/TerminateEnvironmentCommand.js +2 -2
  43. package/dist-cjs/commands/UpdateApplicationCommand.js +2 -2
  44. package/dist-cjs/commands/UpdateApplicationResourceLifecycleCommand.js +2 -2
  45. package/dist-cjs/commands/UpdateApplicationVersionCommand.js +2 -2
  46. package/dist-cjs/commands/UpdateConfigurationTemplateCommand.js +2 -2
  47. package/dist-cjs/commands/UpdateEnvironmentCommand.js +2 -2
  48. package/dist-cjs/commands/UpdateTagsForResourceCommand.js +1 -1
  49. package/dist-cjs/commands/ValidateConfigurationSettingsCommand.js +2 -2
  50. package/dist-cjs/models/models_0.js +507 -759
  51. package/dist-cjs/protocols/Aws_query.js +474 -768
  52. package/dist-es/commands/AbortEnvironmentUpdateCommand.js +2 -2
  53. package/dist-es/commands/ApplyEnvironmentManagedActionCommand.js +3 -3
  54. package/dist-es/commands/AssociateEnvironmentOperationsRoleCommand.js +2 -2
  55. package/dist-es/commands/CheckDNSAvailabilityCommand.js +3 -3
  56. package/dist-es/commands/ComposeEnvironmentsCommand.js +3 -3
  57. package/dist-es/commands/CreateApplicationCommand.js +3 -3
  58. package/dist-es/commands/CreateApplicationVersionCommand.js +3 -3
  59. package/dist-es/commands/CreateConfigurationTemplateCommand.js +3 -3
  60. package/dist-es/commands/CreateEnvironmentCommand.js +3 -3
  61. package/dist-es/commands/CreatePlatformVersionCommand.js +3 -3
  62. package/dist-es/commands/CreateStorageLocationCommand.js +2 -2
  63. package/dist-es/commands/DeleteApplicationCommand.js +2 -2
  64. package/dist-es/commands/DeleteApplicationVersionCommand.js +2 -2
  65. package/dist-es/commands/DeleteConfigurationTemplateCommand.js +2 -2
  66. package/dist-es/commands/DeleteEnvironmentConfigurationCommand.js +2 -2
  67. package/dist-es/commands/DeletePlatformVersionCommand.js +3 -3
  68. package/dist-es/commands/DescribeAccountAttributesCommand.js +2 -2
  69. package/dist-es/commands/DescribeApplicationVersionsCommand.js +3 -3
  70. package/dist-es/commands/DescribeApplicationsCommand.js +3 -3
  71. package/dist-es/commands/DescribeConfigurationOptionsCommand.js +3 -3
  72. package/dist-es/commands/DescribeConfigurationSettingsCommand.js +3 -3
  73. package/dist-es/commands/DescribeEnvironmentHealthCommand.js +3 -3
  74. package/dist-es/commands/DescribeEnvironmentManagedActionHistoryCommand.js +3 -3
  75. package/dist-es/commands/DescribeEnvironmentManagedActionsCommand.js +3 -3
  76. package/dist-es/commands/DescribeEnvironmentResourcesCommand.js +3 -3
  77. package/dist-es/commands/DescribeEnvironmentsCommand.js +3 -3
  78. package/dist-es/commands/DescribeEventsCommand.js +3 -3
  79. package/dist-es/commands/DescribeInstancesHealthCommand.js +3 -3
  80. package/dist-es/commands/DescribePlatformVersionCommand.js +3 -3
  81. package/dist-es/commands/DisassociateEnvironmentOperationsRoleCommand.js +2 -2
  82. package/dist-es/commands/ListAvailableSolutionStacksCommand.js +2 -2
  83. package/dist-es/commands/ListPlatformBranchesCommand.js +3 -3
  84. package/dist-es/commands/ListPlatformVersionsCommand.js +3 -3
  85. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  86. package/dist-es/commands/RebuildEnvironmentCommand.js +2 -2
  87. package/dist-es/commands/RequestEnvironmentInfoCommand.js +2 -2
  88. package/dist-es/commands/RestartAppServerCommand.js +2 -2
  89. package/dist-es/commands/RetrieveEnvironmentInfoCommand.js +3 -3
  90. package/dist-es/commands/SwapEnvironmentCNAMEsCommand.js +2 -2
  91. package/dist-es/commands/TerminateEnvironmentCommand.js +3 -3
  92. package/dist-es/commands/UpdateApplicationCommand.js +3 -3
  93. package/dist-es/commands/UpdateApplicationResourceLifecycleCommand.js +3 -3
  94. package/dist-es/commands/UpdateApplicationVersionCommand.js +3 -3
  95. package/dist-es/commands/UpdateConfigurationTemplateCommand.js +3 -3
  96. package/dist-es/commands/UpdateEnvironmentCommand.js +3 -3
  97. package/dist-es/commands/UpdateTagsForResourceCommand.js +2 -2
  98. package/dist-es/commands/ValidateConfigurationSettingsCommand.js +3 -3
  99. package/dist-es/models/models_0.js +126 -504
  100. package/dist-es/protocols/Aws_query.js +588 -769
  101. package/dist-types/models/models_0.d.ts +504 -756
  102. package/dist-types/ts3.4/models/models_0.d.ts +252 -504
  103. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read, __values } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { ElasticBeanstalkServiceException as __BaseException } from "../models/ElasticBeanstalkServiceException";
@@ -503,7 +503,7 @@ export var deserializeAws_queryAbortEnvironmentUpdateCommand = function (output,
503
503
  });
504
504
  }); };
505
505
  var deserializeAws_queryAbortEnvironmentUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
506
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
506
+ var parsedOutput, _a, errorCode, _b, parsedBody;
507
507
  var _c;
508
508
  return __generator(this, function (_d) {
509
509
  switch (_d.label) {
@@ -524,14 +524,14 @@ var deserializeAws_queryAbortEnvironmentUpdateCommandError = function (output, c
524
524
  case 3: throw _d.sent();
525
525
  case 4:
526
526
  parsedBody = parsedOutput.body;
527
- $metadata = deserializeMetadata(output);
528
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
529
- response = new __BaseException({
530
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
531
- $fault: "client",
532
- $metadata: $metadata,
527
+ throwDefaultError({
528
+ output: output,
529
+ parsedBody: parsedBody.Error,
530
+ exceptionCtor: __BaseException,
531
+ errorCode: errorCode,
533
532
  });
534
- throw __decorateServiceException(response, parsedBody.Error);
533
+ _d.label = 5;
534
+ case 5: return [2];
535
535
  }
536
536
  });
537
537
  }); };
@@ -554,7 +554,7 @@ export var deserializeAws_queryApplyEnvironmentManagedActionCommand = function (
554
554
  });
555
555
  }); };
556
556
  var deserializeAws_queryApplyEnvironmentManagedActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
557
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
557
+ var parsedOutput, _a, errorCode, _b, parsedBody;
558
558
  var _c;
559
559
  return __generator(this, function (_d) {
560
560
  switch (_d.label) {
@@ -579,14 +579,14 @@ var deserializeAws_queryApplyEnvironmentManagedActionCommandError = function (ou
579
579
  case 5: throw _d.sent();
580
580
  case 6:
581
581
  parsedBody = parsedOutput.body;
582
- $metadata = deserializeMetadata(output);
583
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
584
- response = new __BaseException({
585
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
586
- $fault: "client",
587
- $metadata: $metadata,
582
+ throwDefaultError({
583
+ output: output,
584
+ parsedBody: parsedBody.Error,
585
+ exceptionCtor: __BaseException,
586
+ errorCode: errorCode,
588
587
  });
589
- throw __decorateServiceException(response, parsedBody.Error);
588
+ _d.label = 7;
589
+ case 7: return [2];
590
590
  }
591
591
  });
592
592
  }); };
@@ -609,7 +609,7 @@ export var deserializeAws_queryAssociateEnvironmentOperationsRoleCommand = funct
609
609
  });
610
610
  }); };
611
611
  var deserializeAws_queryAssociateEnvironmentOperationsRoleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
612
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
612
+ var parsedOutput, _a, errorCode, _b, parsedBody;
613
613
  var _c;
614
614
  return __generator(this, function (_d) {
615
615
  switch (_d.label) {
@@ -630,14 +630,14 @@ var deserializeAws_queryAssociateEnvironmentOperationsRoleCommandError = functio
630
630
  case 3: throw _d.sent();
631
631
  case 4:
632
632
  parsedBody = parsedOutput.body;
633
- $metadata = deserializeMetadata(output);
634
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
635
- response = new __BaseException({
636
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
637
- $fault: "client",
638
- $metadata: $metadata,
633
+ throwDefaultError({
634
+ output: output,
635
+ parsedBody: parsedBody.Error,
636
+ exceptionCtor: __BaseException,
637
+ errorCode: errorCode,
639
638
  });
640
- throw __decorateServiceException(response, parsedBody.Error);
639
+ _d.label = 5;
640
+ case 5: return [2];
641
641
  }
642
642
  });
643
643
  }); };
@@ -660,7 +660,7 @@ export var deserializeAws_queryCheckDNSAvailabilityCommand = function (output, c
660
660
  });
661
661
  }); };
662
662
  var deserializeAws_queryCheckDNSAvailabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
663
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
663
+ var parsedOutput, _a, errorCode, parsedBody;
664
664
  var _b;
665
665
  return __generator(this, function (_c) {
666
666
  switch (_c.label) {
@@ -671,18 +671,13 @@ var deserializeAws_queryCheckDNSAvailabilityCommandError = function (output, con
671
671
  case 1:
672
672
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
673
673
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
674
- switch (errorCode) {
675
- default:
676
- parsedBody = parsedOutput.body;
677
- $metadata = deserializeMetadata(output);
678
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
679
- response = new __BaseException({
680
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
681
- $fault: "client",
682
- $metadata: $metadata,
683
- });
684
- throw __decorateServiceException(response, parsedBody.Error);
685
- }
674
+ parsedBody = parsedOutput.body;
675
+ throwDefaultError({
676
+ output: output,
677
+ parsedBody: parsedBody.Error,
678
+ exceptionCtor: __BaseException,
679
+ errorCode: errorCode,
680
+ });
686
681
  return [2];
687
682
  }
688
683
  });
@@ -706,7 +701,7 @@ export var deserializeAws_queryComposeEnvironmentsCommand = function (output, co
706
701
  });
707
702
  }); };
708
703
  var deserializeAws_queryComposeEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
709
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
704
+ var parsedOutput, _a, errorCode, _b, parsedBody;
710
705
  var _c;
711
706
  return __generator(this, function (_d) {
712
707
  switch (_d.label) {
@@ -731,14 +726,14 @@ var deserializeAws_queryComposeEnvironmentsCommandError = function (output, cont
731
726
  case 5: throw _d.sent();
732
727
  case 6:
733
728
  parsedBody = parsedOutput.body;
734
- $metadata = deserializeMetadata(output);
735
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
736
- response = new __BaseException({
737
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
738
- $fault: "client",
739
- $metadata: $metadata,
729
+ throwDefaultError({
730
+ output: output,
731
+ parsedBody: parsedBody.Error,
732
+ exceptionCtor: __BaseException,
733
+ errorCode: errorCode,
740
734
  });
741
- throw __decorateServiceException(response, parsedBody.Error);
735
+ _d.label = 7;
736
+ case 7: return [2];
742
737
  }
743
738
  });
744
739
  }); };
@@ -761,7 +756,7 @@ export var deserializeAws_queryCreateApplicationCommand = function (output, cont
761
756
  });
762
757
  }); };
763
758
  var deserializeAws_queryCreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
764
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
759
+ var parsedOutput, _a, errorCode, _b, parsedBody;
765
760
  var _c;
766
761
  return __generator(this, function (_d) {
767
762
  switch (_d.label) {
@@ -782,14 +777,14 @@ var deserializeAws_queryCreateApplicationCommandError = function (output, contex
782
777
  case 3: throw _d.sent();
783
778
  case 4:
784
779
  parsedBody = parsedOutput.body;
785
- $metadata = deserializeMetadata(output);
786
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
787
- response = new __BaseException({
788
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
789
- $fault: "client",
790
- $metadata: $metadata,
780
+ throwDefaultError({
781
+ output: output,
782
+ parsedBody: parsedBody.Error,
783
+ exceptionCtor: __BaseException,
784
+ errorCode: errorCode,
791
785
  });
792
- throw __decorateServiceException(response, parsedBody.Error);
786
+ _d.label = 5;
787
+ case 5: return [2];
793
788
  }
794
789
  });
795
790
  }); };
@@ -812,7 +807,7 @@ export var deserializeAws_queryCreateApplicationVersionCommand = function (outpu
812
807
  });
813
808
  }); };
814
809
  var deserializeAws_queryCreateApplicationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
815
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
810
+ var parsedOutput, _a, errorCode, _b, parsedBody;
816
811
  var _c;
817
812
  return __generator(this, function (_d) {
818
813
  switch (_d.label) {
@@ -849,14 +844,14 @@ var deserializeAws_queryCreateApplicationVersionCommandError = function (output,
849
844
  case 11: throw _d.sent();
850
845
  case 12:
851
846
  parsedBody = parsedOutput.body;
852
- $metadata = deserializeMetadata(output);
853
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
854
- response = new __BaseException({
855
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
856
- $fault: "client",
857
- $metadata: $metadata,
847
+ throwDefaultError({
848
+ output: output,
849
+ parsedBody: parsedBody.Error,
850
+ exceptionCtor: __BaseException,
851
+ errorCode: errorCode,
858
852
  });
859
- throw __decorateServiceException(response, parsedBody.Error);
853
+ _d.label = 13;
854
+ case 13: return [2];
860
855
  }
861
856
  });
862
857
  }); };
@@ -879,7 +874,7 @@ export var deserializeAws_queryCreateConfigurationTemplateCommand = function (ou
879
874
  });
880
875
  }); };
881
876
  var deserializeAws_queryCreateConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
882
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
877
+ var parsedOutput, _a, errorCode, _b, parsedBody;
883
878
  var _c;
884
879
  return __generator(this, function (_d) {
885
880
  switch (_d.label) {
@@ -908,14 +903,14 @@ var deserializeAws_queryCreateConfigurationTemplateCommandError = function (outp
908
903
  case 7: throw _d.sent();
909
904
  case 8:
910
905
  parsedBody = parsedOutput.body;
911
- $metadata = deserializeMetadata(output);
912
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
913
- response = new __BaseException({
914
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
915
- $fault: "client",
916
- $metadata: $metadata,
906
+ throwDefaultError({
907
+ output: output,
908
+ parsedBody: parsedBody.Error,
909
+ exceptionCtor: __BaseException,
910
+ errorCode: errorCode,
917
911
  });
918
- throw __decorateServiceException(response, parsedBody.Error);
912
+ _d.label = 9;
913
+ case 9: return [2];
919
914
  }
920
915
  });
921
916
  }); };
@@ -938,7 +933,7 @@ export var deserializeAws_queryCreateEnvironmentCommand = function (output, cont
938
933
  });
939
934
  }); };
940
935
  var deserializeAws_queryCreateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
941
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
936
+ var parsedOutput, _a, errorCode, _b, parsedBody;
942
937
  var _c;
943
938
  return __generator(this, function (_d) {
944
939
  switch (_d.label) {
@@ -963,14 +958,14 @@ var deserializeAws_queryCreateEnvironmentCommandError = function (output, contex
963
958
  case 5: throw _d.sent();
964
959
  case 6:
965
960
  parsedBody = parsedOutput.body;
966
- $metadata = deserializeMetadata(output);
967
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
968
- response = new __BaseException({
969
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
970
- $fault: "client",
971
- $metadata: $metadata,
961
+ throwDefaultError({
962
+ output: output,
963
+ parsedBody: parsedBody.Error,
964
+ exceptionCtor: __BaseException,
965
+ errorCode: errorCode,
972
966
  });
973
- throw __decorateServiceException(response, parsedBody.Error);
967
+ _d.label = 7;
968
+ case 7: return [2];
974
969
  }
975
970
  });
976
971
  }); };
@@ -993,7 +988,7 @@ export var deserializeAws_queryCreatePlatformVersionCommand = function (output,
993
988
  });
994
989
  }); };
995
990
  var deserializeAws_queryCreatePlatformVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
996
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
991
+ var parsedOutput, _a, errorCode, _b, parsedBody;
997
992
  var _c;
998
993
  return __generator(this, function (_d) {
999
994
  switch (_d.label) {
@@ -1022,14 +1017,14 @@ var deserializeAws_queryCreatePlatformVersionCommandError = function (output, co
1022
1017
  case 7: throw _d.sent();
1023
1018
  case 8:
1024
1019
  parsedBody = parsedOutput.body;
1025
- $metadata = deserializeMetadata(output);
1026
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1027
- response = new __BaseException({
1028
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1029
- $fault: "client",
1030
- $metadata: $metadata,
1020
+ throwDefaultError({
1021
+ output: output,
1022
+ parsedBody: parsedBody.Error,
1023
+ exceptionCtor: __BaseException,
1024
+ errorCode: errorCode,
1031
1025
  });
1032
- throw __decorateServiceException(response, parsedBody.Error);
1026
+ _d.label = 9;
1027
+ case 9: return [2];
1033
1028
  }
1034
1029
  });
1035
1030
  }); };
@@ -1052,7 +1047,7 @@ export var deserializeAws_queryCreateStorageLocationCommand = function (output,
1052
1047
  });
1053
1048
  }); };
1054
1049
  var deserializeAws_queryCreateStorageLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1055
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1050
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1056
1051
  var _c;
1057
1052
  return __generator(this, function (_d) {
1058
1053
  switch (_d.label) {
@@ -1081,14 +1076,14 @@ var deserializeAws_queryCreateStorageLocationCommandError = function (output, co
1081
1076
  case 7: throw _d.sent();
1082
1077
  case 8:
1083
1078
  parsedBody = parsedOutput.body;
1084
- $metadata = deserializeMetadata(output);
1085
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1086
- response = new __BaseException({
1087
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1088
- $fault: "client",
1089
- $metadata: $metadata,
1079
+ throwDefaultError({
1080
+ output: output,
1081
+ parsedBody: parsedBody.Error,
1082
+ exceptionCtor: __BaseException,
1083
+ errorCode: errorCode,
1090
1084
  });
1091
- throw __decorateServiceException(response, parsedBody.Error);
1085
+ _d.label = 9;
1086
+ case 9: return [2];
1092
1087
  }
1093
1088
  });
1094
1089
  }); };
@@ -1111,7 +1106,7 @@ export var deserializeAws_queryDeleteApplicationCommand = function (output, cont
1111
1106
  });
1112
1107
  }); };
1113
1108
  var deserializeAws_queryDeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1114
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1109
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1115
1110
  var _c;
1116
1111
  return __generator(this, function (_d) {
1117
1112
  switch (_d.label) {
@@ -1132,14 +1127,14 @@ var deserializeAws_queryDeleteApplicationCommandError = function (output, contex
1132
1127
  case 3: throw _d.sent();
1133
1128
  case 4:
1134
1129
  parsedBody = parsedOutput.body;
1135
- $metadata = deserializeMetadata(output);
1136
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1137
- response = new __BaseException({
1138
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1139
- $fault: "client",
1140
- $metadata: $metadata,
1130
+ throwDefaultError({
1131
+ output: output,
1132
+ parsedBody: parsedBody.Error,
1133
+ exceptionCtor: __BaseException,
1134
+ errorCode: errorCode,
1141
1135
  });
1142
- throw __decorateServiceException(response, parsedBody.Error);
1136
+ _d.label = 5;
1137
+ case 5: return [2];
1143
1138
  }
1144
1139
  });
1145
1140
  }); };
@@ -1162,7 +1157,7 @@ export var deserializeAws_queryDeleteApplicationVersionCommand = function (outpu
1162
1157
  });
1163
1158
  }); };
1164
1159
  var deserializeAws_queryDeleteApplicationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1165
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1160
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1166
1161
  var _c;
1167
1162
  return __generator(this, function (_d) {
1168
1163
  switch (_d.label) {
@@ -1195,14 +1190,14 @@ var deserializeAws_queryDeleteApplicationVersionCommandError = function (output,
1195
1190
  case 9: throw _d.sent();
1196
1191
  case 10:
1197
1192
  parsedBody = parsedOutput.body;
1198
- $metadata = deserializeMetadata(output);
1199
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1200
- response = new __BaseException({
1201
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1202
- $fault: "client",
1203
- $metadata: $metadata,
1193
+ throwDefaultError({
1194
+ output: output,
1195
+ parsedBody: parsedBody.Error,
1196
+ exceptionCtor: __BaseException,
1197
+ errorCode: errorCode,
1204
1198
  });
1205
- throw __decorateServiceException(response, parsedBody.Error);
1199
+ _d.label = 11;
1200
+ case 11: return [2];
1206
1201
  }
1207
1202
  });
1208
1203
  }); };
@@ -1225,7 +1220,7 @@ export var deserializeAws_queryDeleteConfigurationTemplateCommand = function (ou
1225
1220
  });
1226
1221
  }); };
1227
1222
  var deserializeAws_queryDeleteConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1228
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1223
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1229
1224
  var _c;
1230
1225
  return __generator(this, function (_d) {
1231
1226
  switch (_d.label) {
@@ -1246,14 +1241,14 @@ var deserializeAws_queryDeleteConfigurationTemplateCommandError = function (outp
1246
1241
  case 3: throw _d.sent();
1247
1242
  case 4:
1248
1243
  parsedBody = parsedOutput.body;
1249
- $metadata = deserializeMetadata(output);
1250
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1251
- response = new __BaseException({
1252
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1253
- $fault: "client",
1254
- $metadata: $metadata,
1244
+ throwDefaultError({
1245
+ output: output,
1246
+ parsedBody: parsedBody.Error,
1247
+ exceptionCtor: __BaseException,
1248
+ errorCode: errorCode,
1255
1249
  });
1256
- throw __decorateServiceException(response, parsedBody.Error);
1250
+ _d.label = 5;
1251
+ case 5: return [2];
1257
1252
  }
1258
1253
  });
1259
1254
  }); };
@@ -1276,7 +1271,7 @@ export var deserializeAws_queryDeleteEnvironmentConfigurationCommand = function
1276
1271
  });
1277
1272
  }); };
1278
1273
  var deserializeAws_queryDeleteEnvironmentConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1279
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1274
+ var parsedOutput, _a, errorCode, parsedBody;
1280
1275
  var _b;
1281
1276
  return __generator(this, function (_c) {
1282
1277
  switch (_c.label) {
@@ -1287,18 +1282,13 @@ var deserializeAws_queryDeleteEnvironmentConfigurationCommandError = function (o
1287
1282
  case 1:
1288
1283
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1289
1284
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1290
- switch (errorCode) {
1291
- default:
1292
- parsedBody = parsedOutput.body;
1293
- $metadata = deserializeMetadata(output);
1294
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1295
- response = new __BaseException({
1296
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1297
- $fault: "client",
1298
- $metadata: $metadata,
1299
- });
1300
- throw __decorateServiceException(response, parsedBody.Error);
1301
- }
1285
+ parsedBody = parsedOutput.body;
1286
+ throwDefaultError({
1287
+ output: output,
1288
+ parsedBody: parsedBody.Error,
1289
+ exceptionCtor: __BaseException,
1290
+ errorCode: errorCode,
1291
+ });
1302
1292
  return [2];
1303
1293
  }
1304
1294
  });
@@ -1322,7 +1312,7 @@ export var deserializeAws_queryDeletePlatformVersionCommand = function (output,
1322
1312
  });
1323
1313
  }); };
1324
1314
  var deserializeAws_queryDeletePlatformVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1325
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1315
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1326
1316
  var _c;
1327
1317
  return __generator(this, function (_d) {
1328
1318
  switch (_d.label) {
@@ -1355,14 +1345,14 @@ var deserializeAws_queryDeletePlatformVersionCommandError = function (output, co
1355
1345
  case 9: throw _d.sent();
1356
1346
  case 10:
1357
1347
  parsedBody = parsedOutput.body;
1358
- $metadata = deserializeMetadata(output);
1359
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1360
- response = new __BaseException({
1361
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1362
- $fault: "client",
1363
- $metadata: $metadata,
1348
+ throwDefaultError({
1349
+ output: output,
1350
+ parsedBody: parsedBody.Error,
1351
+ exceptionCtor: __BaseException,
1352
+ errorCode: errorCode,
1364
1353
  });
1365
- throw __decorateServiceException(response, parsedBody.Error);
1354
+ _d.label = 11;
1355
+ case 11: return [2];
1366
1356
  }
1367
1357
  });
1368
1358
  }); };
@@ -1385,7 +1375,7 @@ export var deserializeAws_queryDescribeAccountAttributesCommand = function (outp
1385
1375
  });
1386
1376
  }); };
1387
1377
  var deserializeAws_queryDescribeAccountAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1388
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1378
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1389
1379
  var _c;
1390
1380
  return __generator(this, function (_d) {
1391
1381
  switch (_d.label) {
@@ -1406,14 +1396,14 @@ var deserializeAws_queryDescribeAccountAttributesCommandError = function (output
1406
1396
  case 3: throw _d.sent();
1407
1397
  case 4:
1408
1398
  parsedBody = parsedOutput.body;
1409
- $metadata = deserializeMetadata(output);
1410
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1411
- response = new __BaseException({
1412
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1413
- $fault: "client",
1414
- $metadata: $metadata,
1399
+ throwDefaultError({
1400
+ output: output,
1401
+ parsedBody: parsedBody.Error,
1402
+ exceptionCtor: __BaseException,
1403
+ errorCode: errorCode,
1415
1404
  });
1416
- throw __decorateServiceException(response, parsedBody.Error);
1405
+ _d.label = 5;
1406
+ case 5: return [2];
1417
1407
  }
1418
1408
  });
1419
1409
  }); };
@@ -1436,7 +1426,7 @@ export var deserializeAws_queryDescribeApplicationsCommand = function (output, c
1436
1426
  });
1437
1427
  }); };
1438
1428
  var deserializeAws_queryDescribeApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1439
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1429
+ var parsedOutput, _a, errorCode, parsedBody;
1440
1430
  var _b;
1441
1431
  return __generator(this, function (_c) {
1442
1432
  switch (_c.label) {
@@ -1447,18 +1437,13 @@ var deserializeAws_queryDescribeApplicationsCommandError = function (output, con
1447
1437
  case 1:
1448
1438
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1449
1439
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1450
- switch (errorCode) {
1451
- default:
1452
- parsedBody = parsedOutput.body;
1453
- $metadata = deserializeMetadata(output);
1454
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1455
- response = new __BaseException({
1456
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1457
- $fault: "client",
1458
- $metadata: $metadata,
1459
- });
1460
- throw __decorateServiceException(response, parsedBody.Error);
1461
- }
1440
+ parsedBody = parsedOutput.body;
1441
+ throwDefaultError({
1442
+ output: output,
1443
+ parsedBody: parsedBody.Error,
1444
+ exceptionCtor: __BaseException,
1445
+ errorCode: errorCode,
1446
+ });
1462
1447
  return [2];
1463
1448
  }
1464
1449
  });
@@ -1482,7 +1467,7 @@ export var deserializeAws_queryDescribeApplicationVersionsCommand = function (ou
1482
1467
  });
1483
1468
  }); };
1484
1469
  var deserializeAws_queryDescribeApplicationVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1485
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1470
+ var parsedOutput, _a, errorCode, parsedBody;
1486
1471
  var _b;
1487
1472
  return __generator(this, function (_c) {
1488
1473
  switch (_c.label) {
@@ -1493,18 +1478,13 @@ var deserializeAws_queryDescribeApplicationVersionsCommandError = function (outp
1493
1478
  case 1:
1494
1479
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1495
1480
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1496
- switch (errorCode) {
1497
- default:
1498
- parsedBody = parsedOutput.body;
1499
- $metadata = deserializeMetadata(output);
1500
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1501
- response = new __BaseException({
1502
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1503
- $fault: "client",
1504
- $metadata: $metadata,
1505
- });
1506
- throw __decorateServiceException(response, parsedBody.Error);
1507
- }
1481
+ parsedBody = parsedOutput.body;
1482
+ throwDefaultError({
1483
+ output: output,
1484
+ parsedBody: parsedBody.Error,
1485
+ exceptionCtor: __BaseException,
1486
+ errorCode: errorCode,
1487
+ });
1508
1488
  return [2];
1509
1489
  }
1510
1490
  });
@@ -1528,7 +1508,7 @@ export var deserializeAws_queryDescribeConfigurationOptionsCommand = function (o
1528
1508
  });
1529
1509
  }); };
1530
1510
  var deserializeAws_queryDescribeConfigurationOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1531
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1511
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1532
1512
  var _c;
1533
1513
  return __generator(this, function (_d) {
1534
1514
  switch (_d.label) {
@@ -1549,14 +1529,14 @@ var deserializeAws_queryDescribeConfigurationOptionsCommandError = function (out
1549
1529
  case 3: throw _d.sent();
1550
1530
  case 4:
1551
1531
  parsedBody = parsedOutput.body;
1552
- $metadata = deserializeMetadata(output);
1553
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1554
- response = new __BaseException({
1555
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1556
- $fault: "client",
1557
- $metadata: $metadata,
1532
+ throwDefaultError({
1533
+ output: output,
1534
+ parsedBody: parsedBody.Error,
1535
+ exceptionCtor: __BaseException,
1536
+ errorCode: errorCode,
1558
1537
  });
1559
- throw __decorateServiceException(response, parsedBody.Error);
1538
+ _d.label = 5;
1539
+ case 5: return [2];
1560
1540
  }
1561
1541
  });
1562
1542
  }); };
@@ -1579,7 +1559,7 @@ export var deserializeAws_queryDescribeConfigurationSettingsCommand = function (
1579
1559
  });
1580
1560
  }); };
1581
1561
  var deserializeAws_queryDescribeConfigurationSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1582
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1562
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1583
1563
  var _c;
1584
1564
  return __generator(this, function (_d) {
1585
1565
  switch (_d.label) {
@@ -1600,14 +1580,14 @@ var deserializeAws_queryDescribeConfigurationSettingsCommandError = function (ou
1600
1580
  case 3: throw _d.sent();
1601
1581
  case 4:
1602
1582
  parsedBody = parsedOutput.body;
1603
- $metadata = deserializeMetadata(output);
1604
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1605
- response = new __BaseException({
1606
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1607
- $fault: "client",
1608
- $metadata: $metadata,
1583
+ throwDefaultError({
1584
+ output: output,
1585
+ parsedBody: parsedBody.Error,
1586
+ exceptionCtor: __BaseException,
1587
+ errorCode: errorCode,
1609
1588
  });
1610
- throw __decorateServiceException(response, parsedBody.Error);
1589
+ _d.label = 5;
1590
+ case 5: return [2];
1611
1591
  }
1612
1592
  });
1613
1593
  }); };
@@ -1630,7 +1610,7 @@ export var deserializeAws_queryDescribeEnvironmentHealthCommand = function (outp
1630
1610
  });
1631
1611
  }); };
1632
1612
  var deserializeAws_queryDescribeEnvironmentHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1633
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1613
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1634
1614
  var _c;
1635
1615
  return __generator(this, function (_d) {
1636
1616
  switch (_d.label) {
@@ -1655,14 +1635,14 @@ var deserializeAws_queryDescribeEnvironmentHealthCommandError = function (output
1655
1635
  case 5: throw _d.sent();
1656
1636
  case 6:
1657
1637
  parsedBody = parsedOutput.body;
1658
- $metadata = deserializeMetadata(output);
1659
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1660
- response = new __BaseException({
1661
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1662
- $fault: "client",
1663
- $metadata: $metadata,
1638
+ throwDefaultError({
1639
+ output: output,
1640
+ parsedBody: parsedBody.Error,
1641
+ exceptionCtor: __BaseException,
1642
+ errorCode: errorCode,
1664
1643
  });
1665
- throw __decorateServiceException(response, parsedBody.Error);
1644
+ _d.label = 7;
1645
+ case 7: return [2];
1666
1646
  }
1667
1647
  });
1668
1648
  }); };
@@ -1685,7 +1665,7 @@ export var deserializeAws_queryDescribeEnvironmentManagedActionHistoryCommand =
1685
1665
  });
1686
1666
  }); };
1687
1667
  var deserializeAws_queryDescribeEnvironmentManagedActionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1688
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1668
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1689
1669
  var _c;
1690
1670
  return __generator(this, function (_d) {
1691
1671
  switch (_d.label) {
@@ -1706,14 +1686,14 @@ var deserializeAws_queryDescribeEnvironmentManagedActionHistoryCommandError = fu
1706
1686
  case 3: throw _d.sent();
1707
1687
  case 4:
1708
1688
  parsedBody = parsedOutput.body;
1709
- $metadata = deserializeMetadata(output);
1710
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1711
- response = new __BaseException({
1712
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1713
- $fault: "client",
1714
- $metadata: $metadata,
1689
+ throwDefaultError({
1690
+ output: output,
1691
+ parsedBody: parsedBody.Error,
1692
+ exceptionCtor: __BaseException,
1693
+ errorCode: errorCode,
1715
1694
  });
1716
- throw __decorateServiceException(response, parsedBody.Error);
1695
+ _d.label = 5;
1696
+ case 5: return [2];
1717
1697
  }
1718
1698
  });
1719
1699
  }); };
@@ -1736,7 +1716,7 @@ export var deserializeAws_queryDescribeEnvironmentManagedActionsCommand = functi
1736
1716
  });
1737
1717
  }); };
1738
1718
  var deserializeAws_queryDescribeEnvironmentManagedActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1739
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1719
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1740
1720
  var _c;
1741
1721
  return __generator(this, function (_d) {
1742
1722
  switch (_d.label) {
@@ -1757,14 +1737,14 @@ var deserializeAws_queryDescribeEnvironmentManagedActionsCommandError = function
1757
1737
  case 3: throw _d.sent();
1758
1738
  case 4:
1759
1739
  parsedBody = parsedOutput.body;
1760
- $metadata = deserializeMetadata(output);
1761
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1762
- response = new __BaseException({
1763
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1764
- $fault: "client",
1765
- $metadata: $metadata,
1740
+ throwDefaultError({
1741
+ output: output,
1742
+ parsedBody: parsedBody.Error,
1743
+ exceptionCtor: __BaseException,
1744
+ errorCode: errorCode,
1766
1745
  });
1767
- throw __decorateServiceException(response, parsedBody.Error);
1746
+ _d.label = 5;
1747
+ case 5: return [2];
1768
1748
  }
1769
1749
  });
1770
1750
  }); };
@@ -1787,7 +1767,7 @@ export var deserializeAws_queryDescribeEnvironmentResourcesCommand = function (o
1787
1767
  });
1788
1768
  }); };
1789
1769
  var deserializeAws_queryDescribeEnvironmentResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1790
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1770
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1791
1771
  var _c;
1792
1772
  return __generator(this, function (_d) {
1793
1773
  switch (_d.label) {
@@ -1808,14 +1788,14 @@ var deserializeAws_queryDescribeEnvironmentResourcesCommandError = function (out
1808
1788
  case 3: throw _d.sent();
1809
1789
  case 4:
1810
1790
  parsedBody = parsedOutput.body;
1811
- $metadata = deserializeMetadata(output);
1812
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1813
- response = new __BaseException({
1814
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1815
- $fault: "client",
1816
- $metadata: $metadata,
1791
+ throwDefaultError({
1792
+ output: output,
1793
+ parsedBody: parsedBody.Error,
1794
+ exceptionCtor: __BaseException,
1795
+ errorCode: errorCode,
1817
1796
  });
1818
- throw __decorateServiceException(response, parsedBody.Error);
1797
+ _d.label = 5;
1798
+ case 5: return [2];
1819
1799
  }
1820
1800
  });
1821
1801
  }); };
@@ -1838,7 +1818,7 @@ export var deserializeAws_queryDescribeEnvironmentsCommand = function (output, c
1838
1818
  });
1839
1819
  }); };
1840
1820
  var deserializeAws_queryDescribeEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1841
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1821
+ var parsedOutput, _a, errorCode, parsedBody;
1842
1822
  var _b;
1843
1823
  return __generator(this, function (_c) {
1844
1824
  switch (_c.label) {
@@ -1849,18 +1829,13 @@ var deserializeAws_queryDescribeEnvironmentsCommandError = function (output, con
1849
1829
  case 1:
1850
1830
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1851
1831
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1852
- switch (errorCode) {
1853
- default:
1854
- parsedBody = parsedOutput.body;
1855
- $metadata = deserializeMetadata(output);
1856
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1857
- response = new __BaseException({
1858
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1859
- $fault: "client",
1860
- $metadata: $metadata,
1861
- });
1862
- throw __decorateServiceException(response, parsedBody.Error);
1863
- }
1832
+ parsedBody = parsedOutput.body;
1833
+ throwDefaultError({
1834
+ output: output,
1835
+ parsedBody: parsedBody.Error,
1836
+ exceptionCtor: __BaseException,
1837
+ errorCode: errorCode,
1838
+ });
1864
1839
  return [2];
1865
1840
  }
1866
1841
  });
@@ -1884,7 +1859,7 @@ export var deserializeAws_queryDescribeEventsCommand = function (output, context
1884
1859
  });
1885
1860
  }); };
1886
1861
  var deserializeAws_queryDescribeEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1887
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1862
+ var parsedOutput, _a, errorCode, parsedBody;
1888
1863
  var _b;
1889
1864
  return __generator(this, function (_c) {
1890
1865
  switch (_c.label) {
@@ -1895,18 +1870,13 @@ var deserializeAws_queryDescribeEventsCommandError = function (output, context)
1895
1870
  case 1:
1896
1871
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1897
1872
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1898
- switch (errorCode) {
1899
- default:
1900
- parsedBody = parsedOutput.body;
1901
- $metadata = deserializeMetadata(output);
1902
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1903
- response = new __BaseException({
1904
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1905
- $fault: "client",
1906
- $metadata: $metadata,
1907
- });
1908
- throw __decorateServiceException(response, parsedBody.Error);
1909
- }
1873
+ parsedBody = parsedOutput.body;
1874
+ throwDefaultError({
1875
+ output: output,
1876
+ parsedBody: parsedBody.Error,
1877
+ exceptionCtor: __BaseException,
1878
+ errorCode: errorCode,
1879
+ });
1910
1880
  return [2];
1911
1881
  }
1912
1882
  });
@@ -1930,7 +1900,7 @@ export var deserializeAws_queryDescribeInstancesHealthCommand = function (output
1930
1900
  });
1931
1901
  }); };
1932
1902
  var deserializeAws_queryDescribeInstancesHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1933
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1903
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1934
1904
  var _c;
1935
1905
  return __generator(this, function (_d) {
1936
1906
  switch (_d.label) {
@@ -1955,14 +1925,14 @@ var deserializeAws_queryDescribeInstancesHealthCommandError = function (output,
1955
1925
  case 5: throw _d.sent();
1956
1926
  case 6:
1957
1927
  parsedBody = parsedOutput.body;
1958
- $metadata = deserializeMetadata(output);
1959
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1960
- response = new __BaseException({
1961
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1962
- $fault: "client",
1963
- $metadata: $metadata,
1928
+ throwDefaultError({
1929
+ output: output,
1930
+ parsedBody: parsedBody.Error,
1931
+ exceptionCtor: __BaseException,
1932
+ errorCode: errorCode,
1964
1933
  });
1965
- throw __decorateServiceException(response, parsedBody.Error);
1934
+ _d.label = 7;
1935
+ case 7: return [2];
1966
1936
  }
1967
1937
  });
1968
1938
  }); };
@@ -1985,7 +1955,7 @@ export var deserializeAws_queryDescribePlatformVersionCommand = function (output
1985
1955
  });
1986
1956
  }); };
1987
1957
  var deserializeAws_queryDescribePlatformVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1988
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1958
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1989
1959
  var _c;
1990
1960
  return __generator(this, function (_d) {
1991
1961
  switch (_d.label) {
@@ -2010,14 +1980,14 @@ var deserializeAws_queryDescribePlatformVersionCommandError = function (output,
2010
1980
  case 5: throw _d.sent();
2011
1981
  case 6:
2012
1982
  parsedBody = parsedOutput.body;
2013
- $metadata = deserializeMetadata(output);
2014
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2015
- response = new __BaseException({
2016
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2017
- $fault: "client",
2018
- $metadata: $metadata,
1983
+ throwDefaultError({
1984
+ output: output,
1985
+ parsedBody: parsedBody.Error,
1986
+ exceptionCtor: __BaseException,
1987
+ errorCode: errorCode,
2019
1988
  });
2020
- throw __decorateServiceException(response, parsedBody.Error);
1989
+ _d.label = 7;
1990
+ case 7: return [2];
2021
1991
  }
2022
1992
  });
2023
1993
  }); };
@@ -2040,7 +2010,7 @@ export var deserializeAws_queryDisassociateEnvironmentOperationsRoleCommand = fu
2040
2010
  });
2041
2011
  }); };
2042
2012
  var deserializeAws_queryDisassociateEnvironmentOperationsRoleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2043
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2013
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2044
2014
  var _c;
2045
2015
  return __generator(this, function (_d) {
2046
2016
  switch (_d.label) {
@@ -2061,14 +2031,14 @@ var deserializeAws_queryDisassociateEnvironmentOperationsRoleCommandError = func
2061
2031
  case 3: throw _d.sent();
2062
2032
  case 4:
2063
2033
  parsedBody = parsedOutput.body;
2064
- $metadata = deserializeMetadata(output);
2065
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2066
- response = new __BaseException({
2067
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2068
- $fault: "client",
2069
- $metadata: $metadata,
2034
+ throwDefaultError({
2035
+ output: output,
2036
+ parsedBody: parsedBody.Error,
2037
+ exceptionCtor: __BaseException,
2038
+ errorCode: errorCode,
2070
2039
  });
2071
- throw __decorateServiceException(response, parsedBody.Error);
2040
+ _d.label = 5;
2041
+ case 5: return [2];
2072
2042
  }
2073
2043
  });
2074
2044
  }); };
@@ -2091,7 +2061,7 @@ export var deserializeAws_queryListAvailableSolutionStacksCommand = function (ou
2091
2061
  });
2092
2062
  }); };
2093
2063
  var deserializeAws_queryListAvailableSolutionStacksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2094
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2064
+ var parsedOutput, _a, errorCode, parsedBody;
2095
2065
  var _b;
2096
2066
  return __generator(this, function (_c) {
2097
2067
  switch (_c.label) {
@@ -2102,18 +2072,13 @@ var deserializeAws_queryListAvailableSolutionStacksCommandError = function (outp
2102
2072
  case 1:
2103
2073
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2104
2074
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2105
- switch (errorCode) {
2106
- default:
2107
- parsedBody = parsedOutput.body;
2108
- $metadata = deserializeMetadata(output);
2109
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2110
- response = new __BaseException({
2111
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2112
- $fault: "client",
2113
- $metadata: $metadata,
2114
- });
2115
- throw __decorateServiceException(response, parsedBody.Error);
2116
- }
2075
+ parsedBody = parsedOutput.body;
2076
+ throwDefaultError({
2077
+ output: output,
2078
+ parsedBody: parsedBody.Error,
2079
+ exceptionCtor: __BaseException,
2080
+ errorCode: errorCode,
2081
+ });
2117
2082
  return [2];
2118
2083
  }
2119
2084
  });
@@ -2137,7 +2102,7 @@ export var deserializeAws_queryListPlatformBranchesCommand = function (output, c
2137
2102
  });
2138
2103
  }); };
2139
2104
  var deserializeAws_queryListPlatformBranchesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2140
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2105
+ var parsedOutput, _a, errorCode, parsedBody;
2141
2106
  var _b;
2142
2107
  return __generator(this, function (_c) {
2143
2108
  switch (_c.label) {
@@ -2148,18 +2113,13 @@ var deserializeAws_queryListPlatformBranchesCommandError = function (output, con
2148
2113
  case 1:
2149
2114
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2150
2115
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2151
- switch (errorCode) {
2152
- default:
2153
- parsedBody = parsedOutput.body;
2154
- $metadata = deserializeMetadata(output);
2155
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2156
- response = new __BaseException({
2157
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2158
- $fault: "client",
2159
- $metadata: $metadata,
2160
- });
2161
- throw __decorateServiceException(response, parsedBody.Error);
2162
- }
2116
+ parsedBody = parsedOutput.body;
2117
+ throwDefaultError({
2118
+ output: output,
2119
+ parsedBody: parsedBody.Error,
2120
+ exceptionCtor: __BaseException,
2121
+ errorCode: errorCode,
2122
+ });
2163
2123
  return [2];
2164
2124
  }
2165
2125
  });
@@ -2183,7 +2143,7 @@ export var deserializeAws_queryListPlatformVersionsCommand = function (output, c
2183
2143
  });
2184
2144
  }); };
2185
2145
  var deserializeAws_queryListPlatformVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2186
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2146
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2187
2147
  var _c;
2188
2148
  return __generator(this, function (_d) {
2189
2149
  switch (_d.label) {
@@ -2208,14 +2168,14 @@ var deserializeAws_queryListPlatformVersionsCommandError = function (output, con
2208
2168
  case 5: throw _d.sent();
2209
2169
  case 6:
2210
2170
  parsedBody = parsedOutput.body;
2211
- $metadata = deserializeMetadata(output);
2212
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2213
- response = new __BaseException({
2214
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2215
- $fault: "client",
2216
- $metadata: $metadata,
2171
+ throwDefaultError({
2172
+ output: output,
2173
+ parsedBody: parsedBody.Error,
2174
+ exceptionCtor: __BaseException,
2175
+ errorCode: errorCode,
2217
2176
  });
2218
- throw __decorateServiceException(response, parsedBody.Error);
2177
+ _d.label = 7;
2178
+ case 7: return [2];
2219
2179
  }
2220
2180
  });
2221
2181
  }); };
@@ -2238,7 +2198,7 @@ export var deserializeAws_queryListTagsForResourceCommand = function (output, co
2238
2198
  });
2239
2199
  }); };
2240
2200
  var deserializeAws_queryListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2241
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2201
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2242
2202
  var _c;
2243
2203
  return __generator(this, function (_d) {
2244
2204
  switch (_d.label) {
@@ -2267,14 +2227,14 @@ var deserializeAws_queryListTagsForResourceCommandError = function (output, cont
2267
2227
  case 7: throw _d.sent();
2268
2228
  case 8:
2269
2229
  parsedBody = parsedOutput.body;
2270
- $metadata = deserializeMetadata(output);
2271
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2272
- response = new __BaseException({
2273
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2274
- $fault: "client",
2275
- $metadata: $metadata,
2230
+ throwDefaultError({
2231
+ output: output,
2232
+ parsedBody: parsedBody.Error,
2233
+ exceptionCtor: __BaseException,
2234
+ errorCode: errorCode,
2276
2235
  });
2277
- throw __decorateServiceException(response, parsedBody.Error);
2236
+ _d.label = 9;
2237
+ case 9: return [2];
2278
2238
  }
2279
2239
  });
2280
2240
  }); };
@@ -2297,7 +2257,7 @@ export var deserializeAws_queryRebuildEnvironmentCommand = function (output, con
2297
2257
  });
2298
2258
  }); };
2299
2259
  var deserializeAws_queryRebuildEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2300
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2260
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2301
2261
  var _c;
2302
2262
  return __generator(this, function (_d) {
2303
2263
  switch (_d.label) {
@@ -2318,14 +2278,14 @@ var deserializeAws_queryRebuildEnvironmentCommandError = function (output, conte
2318
2278
  case 3: throw _d.sent();
2319
2279
  case 4:
2320
2280
  parsedBody = parsedOutput.body;
2321
- $metadata = deserializeMetadata(output);
2322
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2323
- response = new __BaseException({
2324
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2325
- $fault: "client",
2326
- $metadata: $metadata,
2281
+ throwDefaultError({
2282
+ output: output,
2283
+ parsedBody: parsedBody.Error,
2284
+ exceptionCtor: __BaseException,
2285
+ errorCode: errorCode,
2327
2286
  });
2328
- throw __decorateServiceException(response, parsedBody.Error);
2287
+ _d.label = 5;
2288
+ case 5: return [2];
2329
2289
  }
2330
2290
  });
2331
2291
  }); };
@@ -2348,7 +2308,7 @@ export var deserializeAws_queryRequestEnvironmentInfoCommand = function (output,
2348
2308
  });
2349
2309
  }); };
2350
2310
  var deserializeAws_queryRequestEnvironmentInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2351
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2311
+ var parsedOutput, _a, errorCode, parsedBody;
2352
2312
  var _b;
2353
2313
  return __generator(this, function (_c) {
2354
2314
  switch (_c.label) {
@@ -2359,18 +2319,13 @@ var deserializeAws_queryRequestEnvironmentInfoCommandError = function (output, c
2359
2319
  case 1:
2360
2320
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2361
2321
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2362
- switch (errorCode) {
2363
- default:
2364
- parsedBody = parsedOutput.body;
2365
- $metadata = deserializeMetadata(output);
2366
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2367
- response = new __BaseException({
2368
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2369
- $fault: "client",
2370
- $metadata: $metadata,
2371
- });
2372
- throw __decorateServiceException(response, parsedBody.Error);
2373
- }
2322
+ parsedBody = parsedOutput.body;
2323
+ throwDefaultError({
2324
+ output: output,
2325
+ parsedBody: parsedBody.Error,
2326
+ exceptionCtor: __BaseException,
2327
+ errorCode: errorCode,
2328
+ });
2374
2329
  return [2];
2375
2330
  }
2376
2331
  });
@@ -2394,7 +2349,7 @@ export var deserializeAws_queryRestartAppServerCommand = function (output, conte
2394
2349
  });
2395
2350
  }); };
2396
2351
  var deserializeAws_queryRestartAppServerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2397
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2352
+ var parsedOutput, _a, errorCode, parsedBody;
2398
2353
  var _b;
2399
2354
  return __generator(this, function (_c) {
2400
2355
  switch (_c.label) {
@@ -2405,18 +2360,13 @@ var deserializeAws_queryRestartAppServerCommandError = function (output, context
2405
2360
  case 1:
2406
2361
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2407
2362
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2408
- switch (errorCode) {
2409
- default:
2410
- parsedBody = parsedOutput.body;
2411
- $metadata = deserializeMetadata(output);
2412
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2413
- response = new __BaseException({
2414
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2415
- $fault: "client",
2416
- $metadata: $metadata,
2417
- });
2418
- throw __decorateServiceException(response, parsedBody.Error);
2419
- }
2363
+ parsedBody = parsedOutput.body;
2364
+ throwDefaultError({
2365
+ output: output,
2366
+ parsedBody: parsedBody.Error,
2367
+ exceptionCtor: __BaseException,
2368
+ errorCode: errorCode,
2369
+ });
2420
2370
  return [2];
2421
2371
  }
2422
2372
  });
@@ -2440,7 +2390,7 @@ export var deserializeAws_queryRetrieveEnvironmentInfoCommand = function (output
2440
2390
  });
2441
2391
  }); };
2442
2392
  var deserializeAws_queryRetrieveEnvironmentInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2443
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2393
+ var parsedOutput, _a, errorCode, parsedBody;
2444
2394
  var _b;
2445
2395
  return __generator(this, function (_c) {
2446
2396
  switch (_c.label) {
@@ -2451,18 +2401,13 @@ var deserializeAws_queryRetrieveEnvironmentInfoCommandError = function (output,
2451
2401
  case 1:
2452
2402
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2453
2403
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2454
- switch (errorCode) {
2455
- default:
2456
- parsedBody = parsedOutput.body;
2457
- $metadata = deserializeMetadata(output);
2458
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2459
- response = new __BaseException({
2460
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2461
- $fault: "client",
2462
- $metadata: $metadata,
2463
- });
2464
- throw __decorateServiceException(response, parsedBody.Error);
2465
- }
2404
+ parsedBody = parsedOutput.body;
2405
+ throwDefaultError({
2406
+ output: output,
2407
+ parsedBody: parsedBody.Error,
2408
+ exceptionCtor: __BaseException,
2409
+ errorCode: errorCode,
2410
+ });
2466
2411
  return [2];
2467
2412
  }
2468
2413
  });
@@ -2486,7 +2431,7 @@ export var deserializeAws_querySwapEnvironmentCNAMEsCommand = function (output,
2486
2431
  });
2487
2432
  }); };
2488
2433
  var deserializeAws_querySwapEnvironmentCNAMEsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2489
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2434
+ var parsedOutput, _a, errorCode, parsedBody;
2490
2435
  var _b;
2491
2436
  return __generator(this, function (_c) {
2492
2437
  switch (_c.label) {
@@ -2497,18 +2442,13 @@ var deserializeAws_querySwapEnvironmentCNAMEsCommandError = function (output, co
2497
2442
  case 1:
2498
2443
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2499
2444
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2500
- switch (errorCode) {
2501
- default:
2502
- parsedBody = parsedOutput.body;
2503
- $metadata = deserializeMetadata(output);
2504
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2505
- response = new __BaseException({
2506
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2507
- $fault: "client",
2508
- $metadata: $metadata,
2509
- });
2510
- throw __decorateServiceException(response, parsedBody.Error);
2511
- }
2445
+ parsedBody = parsedOutput.body;
2446
+ throwDefaultError({
2447
+ output: output,
2448
+ parsedBody: parsedBody.Error,
2449
+ exceptionCtor: __BaseException,
2450
+ errorCode: errorCode,
2451
+ });
2512
2452
  return [2];
2513
2453
  }
2514
2454
  });
@@ -2532,7 +2472,7 @@ export var deserializeAws_queryTerminateEnvironmentCommand = function (output, c
2532
2472
  });
2533
2473
  }); };
2534
2474
  var deserializeAws_queryTerminateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2535
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2475
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2536
2476
  var _c;
2537
2477
  return __generator(this, function (_d) {
2538
2478
  switch (_d.label) {
@@ -2553,14 +2493,14 @@ var deserializeAws_queryTerminateEnvironmentCommandError = function (output, con
2553
2493
  case 3: throw _d.sent();
2554
2494
  case 4:
2555
2495
  parsedBody = parsedOutput.body;
2556
- $metadata = deserializeMetadata(output);
2557
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2558
- response = new __BaseException({
2559
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2560
- $fault: "client",
2561
- $metadata: $metadata,
2496
+ throwDefaultError({
2497
+ output: output,
2498
+ parsedBody: parsedBody.Error,
2499
+ exceptionCtor: __BaseException,
2500
+ errorCode: errorCode,
2562
2501
  });
2563
- throw __decorateServiceException(response, parsedBody.Error);
2502
+ _d.label = 5;
2503
+ case 5: return [2];
2564
2504
  }
2565
2505
  });
2566
2506
  }); };
@@ -2583,7 +2523,7 @@ export var deserializeAws_queryUpdateApplicationCommand = function (output, cont
2583
2523
  });
2584
2524
  }); };
2585
2525
  var deserializeAws_queryUpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2586
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2526
+ var parsedOutput, _a, errorCode, parsedBody;
2587
2527
  var _b;
2588
2528
  return __generator(this, function (_c) {
2589
2529
  switch (_c.label) {
@@ -2594,18 +2534,13 @@ var deserializeAws_queryUpdateApplicationCommandError = function (output, contex
2594
2534
  case 1:
2595
2535
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2596
2536
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2597
- switch (errorCode) {
2598
- default:
2599
- parsedBody = parsedOutput.body;
2600
- $metadata = deserializeMetadata(output);
2601
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2602
- response = new __BaseException({
2603
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2604
- $fault: "client",
2605
- $metadata: $metadata,
2606
- });
2607
- throw __decorateServiceException(response, parsedBody.Error);
2608
- }
2537
+ parsedBody = parsedOutput.body;
2538
+ throwDefaultError({
2539
+ output: output,
2540
+ parsedBody: parsedBody.Error,
2541
+ exceptionCtor: __BaseException,
2542
+ errorCode: errorCode,
2543
+ });
2609
2544
  return [2];
2610
2545
  }
2611
2546
  });
@@ -2629,7 +2564,7 @@ export var deserializeAws_queryUpdateApplicationResourceLifecycleCommand = funct
2629
2564
  });
2630
2565
  }); };
2631
2566
  var deserializeAws_queryUpdateApplicationResourceLifecycleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2632
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2567
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2633
2568
  var _c;
2634
2569
  return __generator(this, function (_d) {
2635
2570
  switch (_d.label) {
@@ -2650,14 +2585,14 @@ var deserializeAws_queryUpdateApplicationResourceLifecycleCommandError = functio
2650
2585
  case 3: throw _d.sent();
2651
2586
  case 4:
2652
2587
  parsedBody = parsedOutput.body;
2653
- $metadata = deserializeMetadata(output);
2654
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2655
- response = new __BaseException({
2656
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2657
- $fault: "client",
2658
- $metadata: $metadata,
2588
+ throwDefaultError({
2589
+ output: output,
2590
+ parsedBody: parsedBody.Error,
2591
+ exceptionCtor: __BaseException,
2592
+ errorCode: errorCode,
2659
2593
  });
2660
- throw __decorateServiceException(response, parsedBody.Error);
2594
+ _d.label = 5;
2595
+ case 5: return [2];
2661
2596
  }
2662
2597
  });
2663
2598
  }); };
@@ -2680,7 +2615,7 @@ export var deserializeAws_queryUpdateApplicationVersionCommand = function (outpu
2680
2615
  });
2681
2616
  }); };
2682
2617
  var deserializeAws_queryUpdateApplicationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2683
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2618
+ var parsedOutput, _a, errorCode, parsedBody;
2684
2619
  var _b;
2685
2620
  return __generator(this, function (_c) {
2686
2621
  switch (_c.label) {
@@ -2691,18 +2626,13 @@ var deserializeAws_queryUpdateApplicationVersionCommandError = function (output,
2691
2626
  case 1:
2692
2627
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2693
2628
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2694
- switch (errorCode) {
2695
- default:
2696
- parsedBody = parsedOutput.body;
2697
- $metadata = deserializeMetadata(output);
2698
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2699
- response = new __BaseException({
2700
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2701
- $fault: "client",
2702
- $metadata: $metadata,
2703
- });
2704
- throw __decorateServiceException(response, parsedBody.Error);
2705
- }
2629
+ parsedBody = parsedOutput.body;
2630
+ throwDefaultError({
2631
+ output: output,
2632
+ parsedBody: parsedBody.Error,
2633
+ exceptionCtor: __BaseException,
2634
+ errorCode: errorCode,
2635
+ });
2706
2636
  return [2];
2707
2637
  }
2708
2638
  });
@@ -2726,7 +2656,7 @@ export var deserializeAws_queryUpdateConfigurationTemplateCommand = function (ou
2726
2656
  });
2727
2657
  }); };
2728
2658
  var deserializeAws_queryUpdateConfigurationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2729
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2659
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2730
2660
  var _c;
2731
2661
  return __generator(this, function (_d) {
2732
2662
  switch (_d.label) {
@@ -2751,14 +2681,14 @@ var deserializeAws_queryUpdateConfigurationTemplateCommandError = function (outp
2751
2681
  case 5: throw _d.sent();
2752
2682
  case 6:
2753
2683
  parsedBody = parsedOutput.body;
2754
- $metadata = deserializeMetadata(output);
2755
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2756
- response = new __BaseException({
2757
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2758
- $fault: "client",
2759
- $metadata: $metadata,
2684
+ throwDefaultError({
2685
+ output: output,
2686
+ parsedBody: parsedBody.Error,
2687
+ exceptionCtor: __BaseException,
2688
+ errorCode: errorCode,
2760
2689
  });
2761
- throw __decorateServiceException(response, parsedBody.Error);
2690
+ _d.label = 7;
2691
+ case 7: return [2];
2762
2692
  }
2763
2693
  });
2764
2694
  }); };
@@ -2781,7 +2711,7 @@ export var deserializeAws_queryUpdateEnvironmentCommand = function (output, cont
2781
2711
  });
2782
2712
  }); };
2783
2713
  var deserializeAws_queryUpdateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2784
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2714
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2785
2715
  var _c;
2786
2716
  return __generator(this, function (_d) {
2787
2717
  switch (_d.label) {
@@ -2806,14 +2736,14 @@ var deserializeAws_queryUpdateEnvironmentCommandError = function (output, contex
2806
2736
  case 5: throw _d.sent();
2807
2737
  case 6:
2808
2738
  parsedBody = parsedOutput.body;
2809
- $metadata = deserializeMetadata(output);
2810
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2811
- response = new __BaseException({
2812
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2813
- $fault: "client",
2814
- $metadata: $metadata,
2739
+ throwDefaultError({
2740
+ output: output,
2741
+ parsedBody: parsedBody.Error,
2742
+ exceptionCtor: __BaseException,
2743
+ errorCode: errorCode,
2815
2744
  });
2816
- throw __decorateServiceException(response, parsedBody.Error);
2745
+ _d.label = 7;
2746
+ case 7: return [2];
2817
2747
  }
2818
2748
  });
2819
2749
  }); };
@@ -2836,7 +2766,7 @@ export var deserializeAws_queryUpdateTagsForResourceCommand = function (output,
2836
2766
  });
2837
2767
  }); };
2838
2768
  var deserializeAws_queryUpdateTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2839
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2769
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2840
2770
  var _c;
2841
2771
  return __generator(this, function (_d) {
2842
2772
  switch (_d.label) {
@@ -2873,14 +2803,14 @@ var deserializeAws_queryUpdateTagsForResourceCommandError = function (output, co
2873
2803
  case 11: throw _d.sent();
2874
2804
  case 12:
2875
2805
  parsedBody = parsedOutput.body;
2876
- $metadata = deserializeMetadata(output);
2877
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2878
- response = new __BaseException({
2879
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2880
- $fault: "client",
2881
- $metadata: $metadata,
2806
+ throwDefaultError({
2807
+ output: output,
2808
+ parsedBody: parsedBody.Error,
2809
+ exceptionCtor: __BaseException,
2810
+ errorCode: errorCode,
2882
2811
  });
2883
- throw __decorateServiceException(response, parsedBody.Error);
2812
+ _d.label = 13;
2813
+ case 13: return [2];
2884
2814
  }
2885
2815
  });
2886
2816
  }); };
@@ -2903,7 +2833,7 @@ export var deserializeAws_queryValidateConfigurationSettingsCommand = function (
2903
2833
  });
2904
2834
  }); };
2905
2835
  var deserializeAws_queryValidateConfigurationSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2906
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2836
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2907
2837
  var _c;
2908
2838
  return __generator(this, function (_d) {
2909
2839
  switch (_d.label) {
@@ -2928,14 +2858,14 @@ var deserializeAws_queryValidateConfigurationSettingsCommandError = function (ou
2928
2858
  case 5: throw _d.sent();
2929
2859
  case 6:
2930
2860
  parsedBody = parsedOutput.body;
2931
- $metadata = deserializeMetadata(output);
2932
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2933
- response = new __BaseException({
2934
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2935
- $fault: "client",
2936
- $metadata: $metadata,
2861
+ throwDefaultError({
2862
+ output: output,
2863
+ parsedBody: parsedBody.Error,
2864
+ exceptionCtor: __BaseException,
2865
+ errorCode: errorCode,
2937
2866
  });
2938
- throw __decorateServiceException(response, parsedBody.Error);
2867
+ _d.label = 7;
2868
+ case 7: return [2];
2939
2869
  }
2940
2870
  });
2941
2871
  }); };
@@ -3112,10 +3042,10 @@ var deserializeAws_queryTooManyTagsExceptionResponse = function (parsedOutput, c
3112
3042
  }); };
3113
3043
  var serializeAws_queryAbortEnvironmentUpdateMessage = function (input, context) {
3114
3044
  var entries = {};
3115
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3045
+ if (input.EnvironmentId != null) {
3116
3046
  entries["EnvironmentId"] = input.EnvironmentId;
3117
3047
  }
3118
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3048
+ if (input.EnvironmentName != null) {
3119
3049
  entries["EnvironmentName"] = input.EnvironmentName;
3120
3050
  }
3121
3051
  return entries;
@@ -3145,10 +3075,10 @@ var serializeAws_queryApplicationNamesList = function (input, context) {
3145
3075
  };
3146
3076
  var serializeAws_queryApplicationResourceLifecycleConfig = function (input, context) {
3147
3077
  var entries = {};
3148
- if (input.ServiceRole !== undefined && input.ServiceRole !== null) {
3078
+ if (input.ServiceRole != null) {
3149
3079
  entries["ServiceRole"] = input.ServiceRole;
3150
3080
  }
3151
- if (input.VersionLifecycleConfig !== undefined && input.VersionLifecycleConfig !== null) {
3081
+ if (input.VersionLifecycleConfig != null) {
3152
3082
  var memberEntries = serializeAws_queryApplicationVersionLifecycleConfig(input.VersionLifecycleConfig, context);
3153
3083
  Object.entries(memberEntries).forEach(function (_a) {
3154
3084
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3160,7 +3090,7 @@ var serializeAws_queryApplicationResourceLifecycleConfig = function (input, cont
3160
3090
  };
3161
3091
  var serializeAws_queryApplicationVersionLifecycleConfig = function (input, context) {
3162
3092
  var entries = {};
3163
- if (input.MaxCountRule !== undefined && input.MaxCountRule !== null) {
3093
+ if (input.MaxCountRule != null) {
3164
3094
  var memberEntries = serializeAws_queryMaxCountRule(input.MaxCountRule, context);
3165
3095
  Object.entries(memberEntries).forEach(function (_a) {
3166
3096
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3168,7 +3098,7 @@ var serializeAws_queryApplicationVersionLifecycleConfig = function (input, conte
3168
3098
  entries[loc] = value;
3169
3099
  });
3170
3100
  }
3171
- if (input.MaxAgeRule !== undefined && input.MaxAgeRule !== null) {
3101
+ if (input.MaxAgeRule != null) {
3172
3102
  var memberEntries = serializeAws_queryMaxAgeRule(input.MaxAgeRule, context);
3173
3103
  Object.entries(memberEntries).forEach(function (_a) {
3174
3104
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3180,62 +3110,62 @@ var serializeAws_queryApplicationVersionLifecycleConfig = function (input, conte
3180
3110
  };
3181
3111
  var serializeAws_queryApplyEnvironmentManagedActionRequest = function (input, context) {
3182
3112
  var entries = {};
3183
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3113
+ if (input.EnvironmentName != null) {
3184
3114
  entries["EnvironmentName"] = input.EnvironmentName;
3185
3115
  }
3186
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3116
+ if (input.EnvironmentId != null) {
3187
3117
  entries["EnvironmentId"] = input.EnvironmentId;
3188
3118
  }
3189
- if (input.ActionId !== undefined && input.ActionId !== null) {
3119
+ if (input.ActionId != null) {
3190
3120
  entries["ActionId"] = input.ActionId;
3191
3121
  }
3192
3122
  return entries;
3193
3123
  };
3194
3124
  var serializeAws_queryAssociateEnvironmentOperationsRoleMessage = function (input, context) {
3195
3125
  var entries = {};
3196
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3126
+ if (input.EnvironmentName != null) {
3197
3127
  entries["EnvironmentName"] = input.EnvironmentName;
3198
3128
  }
3199
- if (input.OperationsRole !== undefined && input.OperationsRole !== null) {
3129
+ if (input.OperationsRole != null) {
3200
3130
  entries["OperationsRole"] = input.OperationsRole;
3201
3131
  }
3202
3132
  return entries;
3203
3133
  };
3204
3134
  var serializeAws_queryBuildConfiguration = function (input, context) {
3205
3135
  var entries = {};
3206
- if (input.ArtifactName !== undefined && input.ArtifactName !== null) {
3136
+ if (input.ArtifactName != null) {
3207
3137
  entries["ArtifactName"] = input.ArtifactName;
3208
3138
  }
3209
- if (input.CodeBuildServiceRole !== undefined && input.CodeBuildServiceRole !== null) {
3139
+ if (input.CodeBuildServiceRole != null) {
3210
3140
  entries["CodeBuildServiceRole"] = input.CodeBuildServiceRole;
3211
3141
  }
3212
- if (input.ComputeType !== undefined && input.ComputeType !== null) {
3142
+ if (input.ComputeType != null) {
3213
3143
  entries["ComputeType"] = input.ComputeType;
3214
3144
  }
3215
- if (input.Image !== undefined && input.Image !== null) {
3145
+ if (input.Image != null) {
3216
3146
  entries["Image"] = input.Image;
3217
3147
  }
3218
- if (input.TimeoutInMinutes !== undefined && input.TimeoutInMinutes !== null) {
3148
+ if (input.TimeoutInMinutes != null) {
3219
3149
  entries["TimeoutInMinutes"] = input.TimeoutInMinutes;
3220
3150
  }
3221
3151
  return entries;
3222
3152
  };
3223
3153
  var serializeAws_queryCheckDNSAvailabilityMessage = function (input, context) {
3224
3154
  var entries = {};
3225
- if (input.CNAMEPrefix !== undefined && input.CNAMEPrefix !== null) {
3155
+ if (input.CNAMEPrefix != null) {
3226
3156
  entries["CNAMEPrefix"] = input.CNAMEPrefix;
3227
3157
  }
3228
3158
  return entries;
3229
3159
  };
3230
3160
  var serializeAws_queryComposeEnvironmentsMessage = function (input, context) {
3231
3161
  var entries = {};
3232
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3162
+ if (input.ApplicationName != null) {
3233
3163
  entries["ApplicationName"] = input.ApplicationName;
3234
3164
  }
3235
- if (input.GroupName !== undefined && input.GroupName !== null) {
3165
+ if (input.GroupName != null) {
3236
3166
  entries["GroupName"] = input.GroupName;
3237
3167
  }
3238
- if (input.VersionLabels !== undefined && input.VersionLabels !== null) {
3168
+ if (input.VersionLabels != null) {
3239
3169
  var memberEntries = serializeAws_queryVersionLabels(input.VersionLabels, context);
3240
3170
  Object.entries(memberEntries).forEach(function (_a) {
3241
3171
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3247,16 +3177,16 @@ var serializeAws_queryComposeEnvironmentsMessage = function (input, context) {
3247
3177
  };
3248
3178
  var serializeAws_queryConfigurationOptionSetting = function (input, context) {
3249
3179
  var entries = {};
3250
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
3180
+ if (input.ResourceName != null) {
3251
3181
  entries["ResourceName"] = input.ResourceName;
3252
3182
  }
3253
- if (input.Namespace !== undefined && input.Namespace !== null) {
3183
+ if (input.Namespace != null) {
3254
3184
  entries["Namespace"] = input.Namespace;
3255
3185
  }
3256
- if (input.OptionName !== undefined && input.OptionName !== null) {
3186
+ if (input.OptionName != null) {
3257
3187
  entries["OptionName"] = input.OptionName;
3258
3188
  }
3259
- if (input.Value !== undefined && input.Value !== null) {
3189
+ if (input.Value != null) {
3260
3190
  entries["Value"] = input.Value;
3261
3191
  }
3262
3192
  return entries;
@@ -3290,13 +3220,13 @@ var serializeAws_queryConfigurationOptionSettingsList = function (input, context
3290
3220
  };
3291
3221
  var serializeAws_queryCreateApplicationMessage = function (input, context) {
3292
3222
  var entries = {};
3293
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3223
+ if (input.ApplicationName != null) {
3294
3224
  entries["ApplicationName"] = input.ApplicationName;
3295
3225
  }
3296
- if (input.Description !== undefined && input.Description !== null) {
3226
+ if (input.Description != null) {
3297
3227
  entries["Description"] = input.Description;
3298
3228
  }
3299
- if (input.ResourceLifecycleConfig !== undefined && input.ResourceLifecycleConfig !== null) {
3229
+ if (input.ResourceLifecycleConfig != null) {
3300
3230
  var memberEntries = serializeAws_queryApplicationResourceLifecycleConfig(input.ResourceLifecycleConfig, context);
3301
3231
  Object.entries(memberEntries).forEach(function (_a) {
3302
3232
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3304,7 +3234,7 @@ var serializeAws_queryCreateApplicationMessage = function (input, context) {
3304
3234
  entries[loc] = value;
3305
3235
  });
3306
3236
  }
3307
- if (input.Tags !== undefined && input.Tags !== null) {
3237
+ if (input.Tags != null) {
3308
3238
  var memberEntries = serializeAws_queryTags(input.Tags, context);
3309
3239
  Object.entries(memberEntries).forEach(function (_a) {
3310
3240
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3316,16 +3246,16 @@ var serializeAws_queryCreateApplicationMessage = function (input, context) {
3316
3246
  };
3317
3247
  var serializeAws_queryCreateApplicationVersionMessage = function (input, context) {
3318
3248
  var entries = {};
3319
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3249
+ if (input.ApplicationName != null) {
3320
3250
  entries["ApplicationName"] = input.ApplicationName;
3321
3251
  }
3322
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
3252
+ if (input.VersionLabel != null) {
3323
3253
  entries["VersionLabel"] = input.VersionLabel;
3324
3254
  }
3325
- if (input.Description !== undefined && input.Description !== null) {
3255
+ if (input.Description != null) {
3326
3256
  entries["Description"] = input.Description;
3327
3257
  }
3328
- if (input.SourceBuildInformation !== undefined && input.SourceBuildInformation !== null) {
3258
+ if (input.SourceBuildInformation != null) {
3329
3259
  var memberEntries = serializeAws_querySourceBuildInformation(input.SourceBuildInformation, context);
3330
3260
  Object.entries(memberEntries).forEach(function (_a) {
3331
3261
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3333,7 +3263,7 @@ var serializeAws_queryCreateApplicationVersionMessage = function (input, context
3333
3263
  entries[loc] = value;
3334
3264
  });
3335
3265
  }
3336
- if (input.SourceBundle !== undefined && input.SourceBundle !== null) {
3266
+ if (input.SourceBundle != null) {
3337
3267
  var memberEntries = serializeAws_queryS3Location(input.SourceBundle, context);
3338
3268
  Object.entries(memberEntries).forEach(function (_a) {
3339
3269
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3341,7 +3271,7 @@ var serializeAws_queryCreateApplicationVersionMessage = function (input, context
3341
3271
  entries[loc] = value;
3342
3272
  });
3343
3273
  }
3344
- if (input.BuildConfiguration !== undefined && input.BuildConfiguration !== null) {
3274
+ if (input.BuildConfiguration != null) {
3345
3275
  var memberEntries = serializeAws_queryBuildConfiguration(input.BuildConfiguration, context);
3346
3276
  Object.entries(memberEntries).forEach(function (_a) {
3347
3277
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3349,13 +3279,13 @@ var serializeAws_queryCreateApplicationVersionMessage = function (input, context
3349
3279
  entries[loc] = value;
3350
3280
  });
3351
3281
  }
3352
- if (input.AutoCreateApplication !== undefined && input.AutoCreateApplication !== null) {
3282
+ if (input.AutoCreateApplication != null) {
3353
3283
  entries["AutoCreateApplication"] = input.AutoCreateApplication;
3354
3284
  }
3355
- if (input.Process !== undefined && input.Process !== null) {
3285
+ if (input.Process != null) {
3356
3286
  entries["Process"] = input.Process;
3357
3287
  }
3358
- if (input.Tags !== undefined && input.Tags !== null) {
3288
+ if (input.Tags != null) {
3359
3289
  var memberEntries = serializeAws_queryTags(input.Tags, context);
3360
3290
  Object.entries(memberEntries).forEach(function (_a) {
3361
3291
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3367,19 +3297,19 @@ var serializeAws_queryCreateApplicationVersionMessage = function (input, context
3367
3297
  };
3368
3298
  var serializeAws_queryCreateConfigurationTemplateMessage = function (input, context) {
3369
3299
  var entries = {};
3370
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3300
+ if (input.ApplicationName != null) {
3371
3301
  entries["ApplicationName"] = input.ApplicationName;
3372
3302
  }
3373
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3303
+ if (input.TemplateName != null) {
3374
3304
  entries["TemplateName"] = input.TemplateName;
3375
3305
  }
3376
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
3306
+ if (input.SolutionStackName != null) {
3377
3307
  entries["SolutionStackName"] = input.SolutionStackName;
3378
3308
  }
3379
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
3309
+ if (input.PlatformArn != null) {
3380
3310
  entries["PlatformArn"] = input.PlatformArn;
3381
3311
  }
3382
- if (input.SourceConfiguration !== undefined && input.SourceConfiguration !== null) {
3312
+ if (input.SourceConfiguration != null) {
3383
3313
  var memberEntries = serializeAws_querySourceConfiguration(input.SourceConfiguration, context);
3384
3314
  Object.entries(memberEntries).forEach(function (_a) {
3385
3315
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3387,13 +3317,13 @@ var serializeAws_queryCreateConfigurationTemplateMessage = function (input, cont
3387
3317
  entries[loc] = value;
3388
3318
  });
3389
3319
  }
3390
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3320
+ if (input.EnvironmentId != null) {
3391
3321
  entries["EnvironmentId"] = input.EnvironmentId;
3392
3322
  }
3393
- if (input.Description !== undefined && input.Description !== null) {
3323
+ if (input.Description != null) {
3394
3324
  entries["Description"] = input.Description;
3395
3325
  }
3396
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
3326
+ if (input.OptionSettings != null) {
3397
3327
  var memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
3398
3328
  Object.entries(memberEntries).forEach(function (_a) {
3399
3329
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3401,7 +3331,7 @@ var serializeAws_queryCreateConfigurationTemplateMessage = function (input, cont
3401
3331
  entries[loc] = value;
3402
3332
  });
3403
3333
  }
3404
- if (input.Tags !== undefined && input.Tags !== null) {
3334
+ if (input.Tags != null) {
3405
3335
  var memberEntries = serializeAws_queryTags(input.Tags, context);
3406
3336
  Object.entries(memberEntries).forEach(function (_a) {
3407
3337
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3413,22 +3343,22 @@ var serializeAws_queryCreateConfigurationTemplateMessage = function (input, cont
3413
3343
  };
3414
3344
  var serializeAws_queryCreateEnvironmentMessage = function (input, context) {
3415
3345
  var entries = {};
3416
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3346
+ if (input.ApplicationName != null) {
3417
3347
  entries["ApplicationName"] = input.ApplicationName;
3418
3348
  }
3419
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3349
+ if (input.EnvironmentName != null) {
3420
3350
  entries["EnvironmentName"] = input.EnvironmentName;
3421
3351
  }
3422
- if (input.GroupName !== undefined && input.GroupName !== null) {
3352
+ if (input.GroupName != null) {
3423
3353
  entries["GroupName"] = input.GroupName;
3424
3354
  }
3425
- if (input.Description !== undefined && input.Description !== null) {
3355
+ if (input.Description != null) {
3426
3356
  entries["Description"] = input.Description;
3427
3357
  }
3428
- if (input.CNAMEPrefix !== undefined && input.CNAMEPrefix !== null) {
3358
+ if (input.CNAMEPrefix != null) {
3429
3359
  entries["CNAMEPrefix"] = input.CNAMEPrefix;
3430
3360
  }
3431
- if (input.Tier !== undefined && input.Tier !== null) {
3361
+ if (input.Tier != null) {
3432
3362
  var memberEntries = serializeAws_queryEnvironmentTier(input.Tier, context);
3433
3363
  Object.entries(memberEntries).forEach(function (_a) {
3434
3364
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3436,7 +3366,7 @@ var serializeAws_queryCreateEnvironmentMessage = function (input, context) {
3436
3366
  entries[loc] = value;
3437
3367
  });
3438
3368
  }
3439
- if (input.Tags !== undefined && input.Tags !== null) {
3369
+ if (input.Tags != null) {
3440
3370
  var memberEntries = serializeAws_queryTags(input.Tags, context);
3441
3371
  Object.entries(memberEntries).forEach(function (_a) {
3442
3372
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3444,19 +3374,19 @@ var serializeAws_queryCreateEnvironmentMessage = function (input, context) {
3444
3374
  entries[loc] = value;
3445
3375
  });
3446
3376
  }
3447
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
3377
+ if (input.VersionLabel != null) {
3448
3378
  entries["VersionLabel"] = input.VersionLabel;
3449
3379
  }
3450
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3380
+ if (input.TemplateName != null) {
3451
3381
  entries["TemplateName"] = input.TemplateName;
3452
3382
  }
3453
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
3383
+ if (input.SolutionStackName != null) {
3454
3384
  entries["SolutionStackName"] = input.SolutionStackName;
3455
3385
  }
3456
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
3386
+ if (input.PlatformArn != null) {
3457
3387
  entries["PlatformArn"] = input.PlatformArn;
3458
3388
  }
3459
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
3389
+ if (input.OptionSettings != null) {
3460
3390
  var memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
3461
3391
  Object.entries(memberEntries).forEach(function (_a) {
3462
3392
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3464,7 +3394,7 @@ var serializeAws_queryCreateEnvironmentMessage = function (input, context) {
3464
3394
  entries[loc] = value;
3465
3395
  });
3466
3396
  }
3467
- if (input.OptionsToRemove !== undefined && input.OptionsToRemove !== null) {
3397
+ if (input.OptionsToRemove != null) {
3468
3398
  var memberEntries = serializeAws_queryOptionsSpecifierList(input.OptionsToRemove, context);
3469
3399
  Object.entries(memberEntries).forEach(function (_a) {
3470
3400
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3472,20 +3402,20 @@ var serializeAws_queryCreateEnvironmentMessage = function (input, context) {
3472
3402
  entries[loc] = value;
3473
3403
  });
3474
3404
  }
3475
- if (input.OperationsRole !== undefined && input.OperationsRole !== null) {
3405
+ if (input.OperationsRole != null) {
3476
3406
  entries["OperationsRole"] = input.OperationsRole;
3477
3407
  }
3478
3408
  return entries;
3479
3409
  };
3480
3410
  var serializeAws_queryCreatePlatformVersionRequest = function (input, context) {
3481
3411
  var entries = {};
3482
- if (input.PlatformName !== undefined && input.PlatformName !== null) {
3412
+ if (input.PlatformName != null) {
3483
3413
  entries["PlatformName"] = input.PlatformName;
3484
3414
  }
3485
- if (input.PlatformVersion !== undefined && input.PlatformVersion !== null) {
3415
+ if (input.PlatformVersion != null) {
3486
3416
  entries["PlatformVersion"] = input.PlatformVersion;
3487
3417
  }
3488
- if (input.PlatformDefinitionBundle !== undefined && input.PlatformDefinitionBundle !== null) {
3418
+ if (input.PlatformDefinitionBundle != null) {
3489
3419
  var memberEntries = serializeAws_queryS3Location(input.PlatformDefinitionBundle, context);
3490
3420
  Object.entries(memberEntries).forEach(function (_a) {
3491
3421
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3493,10 +3423,10 @@ var serializeAws_queryCreatePlatformVersionRequest = function (input, context) {
3493
3423
  entries[loc] = value;
3494
3424
  });
3495
3425
  }
3496
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3426
+ if (input.EnvironmentName != null) {
3497
3427
  entries["EnvironmentName"] = input.EnvironmentName;
3498
3428
  }
3499
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
3429
+ if (input.OptionSettings != null) {
3500
3430
  var memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
3501
3431
  Object.entries(memberEntries).forEach(function (_a) {
3502
3432
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3504,7 +3434,7 @@ var serializeAws_queryCreatePlatformVersionRequest = function (input, context) {
3504
3434
  entries[loc] = value;
3505
3435
  });
3506
3436
  }
3507
- if (input.Tags !== undefined && input.Tags !== null) {
3437
+ if (input.Tags != null) {
3508
3438
  var memberEntries = serializeAws_queryTags(input.Tags, context);
3509
3439
  Object.entries(memberEntries).forEach(function (_a) {
3510
3440
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3516,57 +3446,57 @@ var serializeAws_queryCreatePlatformVersionRequest = function (input, context) {
3516
3446
  };
3517
3447
  var serializeAws_queryDeleteApplicationMessage = function (input, context) {
3518
3448
  var entries = {};
3519
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3449
+ if (input.ApplicationName != null) {
3520
3450
  entries["ApplicationName"] = input.ApplicationName;
3521
3451
  }
3522
- if (input.TerminateEnvByForce !== undefined && input.TerminateEnvByForce !== null) {
3452
+ if (input.TerminateEnvByForce != null) {
3523
3453
  entries["TerminateEnvByForce"] = input.TerminateEnvByForce;
3524
3454
  }
3525
3455
  return entries;
3526
3456
  };
3527
3457
  var serializeAws_queryDeleteApplicationVersionMessage = function (input, context) {
3528
3458
  var entries = {};
3529
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3459
+ if (input.ApplicationName != null) {
3530
3460
  entries["ApplicationName"] = input.ApplicationName;
3531
3461
  }
3532
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
3462
+ if (input.VersionLabel != null) {
3533
3463
  entries["VersionLabel"] = input.VersionLabel;
3534
3464
  }
3535
- if (input.DeleteSourceBundle !== undefined && input.DeleteSourceBundle !== null) {
3465
+ if (input.DeleteSourceBundle != null) {
3536
3466
  entries["DeleteSourceBundle"] = input.DeleteSourceBundle;
3537
3467
  }
3538
3468
  return entries;
3539
3469
  };
3540
3470
  var serializeAws_queryDeleteConfigurationTemplateMessage = function (input, context) {
3541
3471
  var entries = {};
3542
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3472
+ if (input.ApplicationName != null) {
3543
3473
  entries["ApplicationName"] = input.ApplicationName;
3544
3474
  }
3545
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3475
+ if (input.TemplateName != null) {
3546
3476
  entries["TemplateName"] = input.TemplateName;
3547
3477
  }
3548
3478
  return entries;
3549
3479
  };
3550
3480
  var serializeAws_queryDeleteEnvironmentConfigurationMessage = function (input, context) {
3551
3481
  var entries = {};
3552
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3482
+ if (input.ApplicationName != null) {
3553
3483
  entries["ApplicationName"] = input.ApplicationName;
3554
3484
  }
3555
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3485
+ if (input.EnvironmentName != null) {
3556
3486
  entries["EnvironmentName"] = input.EnvironmentName;
3557
3487
  }
3558
3488
  return entries;
3559
3489
  };
3560
3490
  var serializeAws_queryDeletePlatformVersionRequest = function (input, context) {
3561
3491
  var entries = {};
3562
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
3492
+ if (input.PlatformArn != null) {
3563
3493
  entries["PlatformArn"] = input.PlatformArn;
3564
3494
  }
3565
3495
  return entries;
3566
3496
  };
3567
3497
  var serializeAws_queryDescribeApplicationsMessage = function (input, context) {
3568
3498
  var entries = {};
3569
- if (input.ApplicationNames !== undefined && input.ApplicationNames !== null) {
3499
+ if (input.ApplicationNames != null) {
3570
3500
  var memberEntries = serializeAws_queryApplicationNamesList(input.ApplicationNames, context);
3571
3501
  Object.entries(memberEntries).forEach(function (_a) {
3572
3502
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3578,10 +3508,10 @@ var serializeAws_queryDescribeApplicationsMessage = function (input, context) {
3578
3508
  };
3579
3509
  var serializeAws_queryDescribeApplicationVersionsMessage = function (input, context) {
3580
3510
  var entries = {};
3581
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3511
+ if (input.ApplicationName != null) {
3582
3512
  entries["ApplicationName"] = input.ApplicationName;
3583
3513
  }
3584
- if (input.VersionLabels !== undefined && input.VersionLabels !== null) {
3514
+ if (input.VersionLabels != null) {
3585
3515
  var memberEntries = serializeAws_queryVersionLabelsList(input.VersionLabels, context);
3586
3516
  Object.entries(memberEntries).forEach(function (_a) {
3587
3517
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3589,32 +3519,32 @@ var serializeAws_queryDescribeApplicationVersionsMessage = function (input, cont
3589
3519
  entries[loc] = value;
3590
3520
  });
3591
3521
  }
3592
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
3522
+ if (input.MaxRecords != null) {
3593
3523
  entries["MaxRecords"] = input.MaxRecords;
3594
3524
  }
3595
- if (input.NextToken !== undefined && input.NextToken !== null) {
3525
+ if (input.NextToken != null) {
3596
3526
  entries["NextToken"] = input.NextToken;
3597
3527
  }
3598
3528
  return entries;
3599
3529
  };
3600
3530
  var serializeAws_queryDescribeConfigurationOptionsMessage = function (input, context) {
3601
3531
  var entries = {};
3602
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3532
+ if (input.ApplicationName != null) {
3603
3533
  entries["ApplicationName"] = input.ApplicationName;
3604
3534
  }
3605
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3535
+ if (input.TemplateName != null) {
3606
3536
  entries["TemplateName"] = input.TemplateName;
3607
3537
  }
3608
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3538
+ if (input.EnvironmentName != null) {
3609
3539
  entries["EnvironmentName"] = input.EnvironmentName;
3610
3540
  }
3611
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
3541
+ if (input.SolutionStackName != null) {
3612
3542
  entries["SolutionStackName"] = input.SolutionStackName;
3613
3543
  }
3614
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
3544
+ if (input.PlatformArn != null) {
3615
3545
  entries["PlatformArn"] = input.PlatformArn;
3616
3546
  }
3617
- if (input.Options !== undefined && input.Options !== null) {
3547
+ if (input.Options != null) {
3618
3548
  var memberEntries = serializeAws_queryOptionsSpecifierList(input.Options, context);
3619
3549
  Object.entries(memberEntries).forEach(function (_a) {
3620
3550
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3626,26 +3556,26 @@ var serializeAws_queryDescribeConfigurationOptionsMessage = function (input, con
3626
3556
  };
3627
3557
  var serializeAws_queryDescribeConfigurationSettingsMessage = function (input, context) {
3628
3558
  var entries = {};
3629
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3559
+ if (input.ApplicationName != null) {
3630
3560
  entries["ApplicationName"] = input.ApplicationName;
3631
3561
  }
3632
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3562
+ if (input.TemplateName != null) {
3633
3563
  entries["TemplateName"] = input.TemplateName;
3634
3564
  }
3635
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3565
+ if (input.EnvironmentName != null) {
3636
3566
  entries["EnvironmentName"] = input.EnvironmentName;
3637
3567
  }
3638
3568
  return entries;
3639
3569
  };
3640
3570
  var serializeAws_queryDescribeEnvironmentHealthRequest = function (input, context) {
3641
3571
  var entries = {};
3642
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3572
+ if (input.EnvironmentName != null) {
3643
3573
  entries["EnvironmentName"] = input.EnvironmentName;
3644
3574
  }
3645
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3575
+ if (input.EnvironmentId != null) {
3646
3576
  entries["EnvironmentId"] = input.EnvironmentId;
3647
3577
  }
3648
- if (input.AttributeNames !== undefined && input.AttributeNames !== null) {
3578
+ if (input.AttributeNames != null) {
3649
3579
  var memberEntries = serializeAws_queryEnvironmentHealthAttributes(input.AttributeNames, context);
3650
3580
  Object.entries(memberEntries).forEach(function (_a) {
3651
3581
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3657,52 +3587,52 @@ var serializeAws_queryDescribeEnvironmentHealthRequest = function (input, contex
3657
3587
  };
3658
3588
  var serializeAws_queryDescribeEnvironmentManagedActionHistoryRequest = function (input, context) {
3659
3589
  var entries = {};
3660
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3590
+ if (input.EnvironmentId != null) {
3661
3591
  entries["EnvironmentId"] = input.EnvironmentId;
3662
3592
  }
3663
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3593
+ if (input.EnvironmentName != null) {
3664
3594
  entries["EnvironmentName"] = input.EnvironmentName;
3665
3595
  }
3666
- if (input.NextToken !== undefined && input.NextToken !== null) {
3596
+ if (input.NextToken != null) {
3667
3597
  entries["NextToken"] = input.NextToken;
3668
3598
  }
3669
- if (input.MaxItems !== undefined && input.MaxItems !== null) {
3599
+ if (input.MaxItems != null) {
3670
3600
  entries["MaxItems"] = input.MaxItems;
3671
3601
  }
3672
3602
  return entries;
3673
3603
  };
3674
3604
  var serializeAws_queryDescribeEnvironmentManagedActionsRequest = function (input, context) {
3675
3605
  var entries = {};
3676
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3606
+ if (input.EnvironmentName != null) {
3677
3607
  entries["EnvironmentName"] = input.EnvironmentName;
3678
3608
  }
3679
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3609
+ if (input.EnvironmentId != null) {
3680
3610
  entries["EnvironmentId"] = input.EnvironmentId;
3681
3611
  }
3682
- if (input.Status !== undefined && input.Status !== null) {
3612
+ if (input.Status != null) {
3683
3613
  entries["Status"] = input.Status;
3684
3614
  }
3685
3615
  return entries;
3686
3616
  };
3687
3617
  var serializeAws_queryDescribeEnvironmentResourcesMessage = function (input, context) {
3688
3618
  var entries = {};
3689
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3619
+ if (input.EnvironmentId != null) {
3690
3620
  entries["EnvironmentId"] = input.EnvironmentId;
3691
3621
  }
3692
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3622
+ if (input.EnvironmentName != null) {
3693
3623
  entries["EnvironmentName"] = input.EnvironmentName;
3694
3624
  }
3695
3625
  return entries;
3696
3626
  };
3697
3627
  var serializeAws_queryDescribeEnvironmentsMessage = function (input, context) {
3698
3628
  var entries = {};
3699
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3629
+ if (input.ApplicationName != null) {
3700
3630
  entries["ApplicationName"] = input.ApplicationName;
3701
3631
  }
3702
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
3632
+ if (input.VersionLabel != null) {
3703
3633
  entries["VersionLabel"] = input.VersionLabel;
3704
3634
  }
3705
- if (input.EnvironmentIds !== undefined && input.EnvironmentIds !== null) {
3635
+ if (input.EnvironmentIds != null) {
3706
3636
  var memberEntries = serializeAws_queryEnvironmentIdList(input.EnvironmentIds, context);
3707
3637
  Object.entries(memberEntries).forEach(function (_a) {
3708
3638
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3710,7 +3640,7 @@ var serializeAws_queryDescribeEnvironmentsMessage = function (input, context) {
3710
3640
  entries[loc] = value;
3711
3641
  });
3712
3642
  }
3713
- if (input.EnvironmentNames !== undefined && input.EnvironmentNames !== null) {
3643
+ if (input.EnvironmentNames != null) {
3714
3644
  var memberEntries = serializeAws_queryEnvironmentNamesList(input.EnvironmentNames, context);
3715
3645
  Object.entries(memberEntries).forEach(function (_a) {
3716
3646
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3718,69 +3648,69 @@ var serializeAws_queryDescribeEnvironmentsMessage = function (input, context) {
3718
3648
  entries[loc] = value;
3719
3649
  });
3720
3650
  }
3721
- if (input.IncludeDeleted !== undefined && input.IncludeDeleted !== null) {
3651
+ if (input.IncludeDeleted != null) {
3722
3652
  entries["IncludeDeleted"] = input.IncludeDeleted;
3723
3653
  }
3724
- if (input.IncludedDeletedBackTo !== undefined && input.IncludedDeletedBackTo !== null) {
3654
+ if (input.IncludedDeletedBackTo != null) {
3725
3655
  entries["IncludedDeletedBackTo"] = input.IncludedDeletedBackTo.toISOString().split(".")[0] + "Z";
3726
3656
  }
3727
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
3657
+ if (input.MaxRecords != null) {
3728
3658
  entries["MaxRecords"] = input.MaxRecords;
3729
3659
  }
3730
- if (input.NextToken !== undefined && input.NextToken !== null) {
3660
+ if (input.NextToken != null) {
3731
3661
  entries["NextToken"] = input.NextToken;
3732
3662
  }
3733
3663
  return entries;
3734
3664
  };
3735
3665
  var serializeAws_queryDescribeEventsMessage = function (input, context) {
3736
3666
  var entries = {};
3737
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3667
+ if (input.ApplicationName != null) {
3738
3668
  entries["ApplicationName"] = input.ApplicationName;
3739
3669
  }
3740
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
3670
+ if (input.VersionLabel != null) {
3741
3671
  entries["VersionLabel"] = input.VersionLabel;
3742
3672
  }
3743
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3673
+ if (input.TemplateName != null) {
3744
3674
  entries["TemplateName"] = input.TemplateName;
3745
3675
  }
3746
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3676
+ if (input.EnvironmentId != null) {
3747
3677
  entries["EnvironmentId"] = input.EnvironmentId;
3748
3678
  }
3749
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3679
+ if (input.EnvironmentName != null) {
3750
3680
  entries["EnvironmentName"] = input.EnvironmentName;
3751
3681
  }
3752
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
3682
+ if (input.PlatformArn != null) {
3753
3683
  entries["PlatformArn"] = input.PlatformArn;
3754
3684
  }
3755
- if (input.RequestId !== undefined && input.RequestId !== null) {
3685
+ if (input.RequestId != null) {
3756
3686
  entries["RequestId"] = input.RequestId;
3757
3687
  }
3758
- if (input.Severity !== undefined && input.Severity !== null) {
3688
+ if (input.Severity != null) {
3759
3689
  entries["Severity"] = input.Severity;
3760
3690
  }
3761
- if (input.StartTime !== undefined && input.StartTime !== null) {
3691
+ if (input.StartTime != null) {
3762
3692
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
3763
3693
  }
3764
- if (input.EndTime !== undefined && input.EndTime !== null) {
3694
+ if (input.EndTime != null) {
3765
3695
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
3766
3696
  }
3767
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
3697
+ if (input.MaxRecords != null) {
3768
3698
  entries["MaxRecords"] = input.MaxRecords;
3769
3699
  }
3770
- if (input.NextToken !== undefined && input.NextToken !== null) {
3700
+ if (input.NextToken != null) {
3771
3701
  entries["NextToken"] = input.NextToken;
3772
3702
  }
3773
3703
  return entries;
3774
3704
  };
3775
3705
  var serializeAws_queryDescribeInstancesHealthRequest = function (input, context) {
3776
3706
  var entries = {};
3777
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3707
+ if (input.EnvironmentName != null) {
3778
3708
  entries["EnvironmentName"] = input.EnvironmentName;
3779
3709
  }
3780
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3710
+ if (input.EnvironmentId != null) {
3781
3711
  entries["EnvironmentId"] = input.EnvironmentId;
3782
3712
  }
3783
- if (input.AttributeNames !== undefined && input.AttributeNames !== null) {
3713
+ if (input.AttributeNames != null) {
3784
3714
  var memberEntries = serializeAws_queryInstancesHealthAttributes(input.AttributeNames, context);
3785
3715
  Object.entries(memberEntries).forEach(function (_a) {
3786
3716
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3788,21 +3718,21 @@ var serializeAws_queryDescribeInstancesHealthRequest = function (input, context)
3788
3718
  entries[loc] = value;
3789
3719
  });
3790
3720
  }
3791
- if (input.NextToken !== undefined && input.NextToken !== null) {
3721
+ if (input.NextToken != null) {
3792
3722
  entries["NextToken"] = input.NextToken;
3793
3723
  }
3794
3724
  return entries;
3795
3725
  };
3796
3726
  var serializeAws_queryDescribePlatformVersionRequest = function (input, context) {
3797
3727
  var entries = {};
3798
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
3728
+ if (input.PlatformArn != null) {
3799
3729
  entries["PlatformArn"] = input.PlatformArn;
3800
3730
  }
3801
3731
  return entries;
3802
3732
  };
3803
3733
  var serializeAws_queryDisassociateEnvironmentOperationsRoleMessage = function (input, context) {
3804
3734
  var entries = {};
3805
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3735
+ if (input.EnvironmentName != null) {
3806
3736
  entries["EnvironmentName"] = input.EnvironmentName;
3807
3737
  }
3808
3738
  return entries;
@@ -3878,13 +3808,13 @@ var serializeAws_queryEnvironmentNamesList = function (input, context) {
3878
3808
  };
3879
3809
  var serializeAws_queryEnvironmentTier = function (input, context) {
3880
3810
  var entries = {};
3881
- if (input.Name !== undefined && input.Name !== null) {
3811
+ if (input.Name != null) {
3882
3812
  entries["Name"] = input.Name;
3883
3813
  }
3884
- if (input.Type !== undefined && input.Type !== null) {
3814
+ if (input.Type != null) {
3885
3815
  entries["Type"] = input.Type;
3886
3816
  }
3887
- if (input.Version !== undefined && input.Version !== null) {
3817
+ if (input.Version != null) {
3888
3818
  entries["Version"] = input.Version;
3889
3819
  }
3890
3820
  return entries;
@@ -3914,7 +3844,7 @@ var serializeAws_queryInstancesHealthAttributes = function (input, context) {
3914
3844
  };
3915
3845
  var serializeAws_queryListPlatformBranchesRequest = function (input, context) {
3916
3846
  var entries = {};
3917
- if (input.Filters !== undefined && input.Filters !== null) {
3847
+ if (input.Filters != null) {
3918
3848
  var memberEntries = serializeAws_querySearchFilters(input.Filters, context);
3919
3849
  Object.entries(memberEntries).forEach(function (_a) {
3920
3850
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3922,17 +3852,17 @@ var serializeAws_queryListPlatformBranchesRequest = function (input, context) {
3922
3852
  entries[loc] = value;
3923
3853
  });
3924
3854
  }
3925
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
3855
+ if (input.MaxRecords != null) {
3926
3856
  entries["MaxRecords"] = input.MaxRecords;
3927
3857
  }
3928
- if (input.NextToken !== undefined && input.NextToken !== null) {
3858
+ if (input.NextToken != null) {
3929
3859
  entries["NextToken"] = input.NextToken;
3930
3860
  }
3931
3861
  return entries;
3932
3862
  };
3933
3863
  var serializeAws_queryListPlatformVersionsRequest = function (input, context) {
3934
3864
  var entries = {};
3935
- if (input.Filters !== undefined && input.Filters !== null) {
3865
+ if (input.Filters != null) {
3936
3866
  var memberEntries = serializeAws_queryPlatformFilters(input.Filters, context);
3937
3867
  Object.entries(memberEntries).forEach(function (_a) {
3938
3868
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3940,56 +3870,56 @@ var serializeAws_queryListPlatformVersionsRequest = function (input, context) {
3940
3870
  entries[loc] = value;
3941
3871
  });
3942
3872
  }
3943
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
3873
+ if (input.MaxRecords != null) {
3944
3874
  entries["MaxRecords"] = input.MaxRecords;
3945
3875
  }
3946
- if (input.NextToken !== undefined && input.NextToken !== null) {
3876
+ if (input.NextToken != null) {
3947
3877
  entries["NextToken"] = input.NextToken;
3948
3878
  }
3949
3879
  return entries;
3950
3880
  };
3951
3881
  var serializeAws_queryListTagsForResourceMessage = function (input, context) {
3952
3882
  var entries = {};
3953
- if (input.ResourceArn !== undefined && input.ResourceArn !== null) {
3883
+ if (input.ResourceArn != null) {
3954
3884
  entries["ResourceArn"] = input.ResourceArn;
3955
3885
  }
3956
3886
  return entries;
3957
3887
  };
3958
3888
  var serializeAws_queryMaxAgeRule = function (input, context) {
3959
3889
  var entries = {};
3960
- if (input.Enabled !== undefined && input.Enabled !== null) {
3890
+ if (input.Enabled != null) {
3961
3891
  entries["Enabled"] = input.Enabled;
3962
3892
  }
3963
- if (input.MaxAgeInDays !== undefined && input.MaxAgeInDays !== null) {
3893
+ if (input.MaxAgeInDays != null) {
3964
3894
  entries["MaxAgeInDays"] = input.MaxAgeInDays;
3965
3895
  }
3966
- if (input.DeleteSourceFromS3 !== undefined && input.DeleteSourceFromS3 !== null) {
3896
+ if (input.DeleteSourceFromS3 != null) {
3967
3897
  entries["DeleteSourceFromS3"] = input.DeleteSourceFromS3;
3968
3898
  }
3969
3899
  return entries;
3970
3900
  };
3971
3901
  var serializeAws_queryMaxCountRule = function (input, context) {
3972
3902
  var entries = {};
3973
- if (input.Enabled !== undefined && input.Enabled !== null) {
3903
+ if (input.Enabled != null) {
3974
3904
  entries["Enabled"] = input.Enabled;
3975
3905
  }
3976
- if (input.MaxCount !== undefined && input.MaxCount !== null) {
3906
+ if (input.MaxCount != null) {
3977
3907
  entries["MaxCount"] = input.MaxCount;
3978
3908
  }
3979
- if (input.DeleteSourceFromS3 !== undefined && input.DeleteSourceFromS3 !== null) {
3909
+ if (input.DeleteSourceFromS3 != null) {
3980
3910
  entries["DeleteSourceFromS3"] = input.DeleteSourceFromS3;
3981
3911
  }
3982
3912
  return entries;
3983
3913
  };
3984
3914
  var serializeAws_queryOptionSpecification = function (input, context) {
3985
3915
  var entries = {};
3986
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
3916
+ if (input.ResourceName != null) {
3987
3917
  entries["ResourceName"] = input.ResourceName;
3988
3918
  }
3989
- if (input.Namespace !== undefined && input.Namespace !== null) {
3919
+ if (input.Namespace != null) {
3990
3920
  entries["Namespace"] = input.Namespace;
3991
3921
  }
3992
- if (input.OptionName !== undefined && input.OptionName !== null) {
3922
+ if (input.OptionName != null) {
3993
3923
  entries["OptionName"] = input.OptionName;
3994
3924
  }
3995
3925
  return entries;
@@ -4023,13 +3953,13 @@ var serializeAws_queryOptionsSpecifierList = function (input, context) {
4023
3953
  };
4024
3954
  var serializeAws_queryPlatformFilter = function (input, context) {
4025
3955
  var entries = {};
4026
- if (input.Type !== undefined && input.Type !== null) {
3956
+ if (input.Type != null) {
4027
3957
  entries["Type"] = input.Type;
4028
3958
  }
4029
- if (input.Operator !== undefined && input.Operator !== null) {
3959
+ if (input.Operator != null) {
4030
3960
  entries["Operator"] = input.Operator;
4031
3961
  }
4032
- if (input.Values !== undefined && input.Values !== null) {
3962
+ if (input.Values != null) {
4033
3963
  var memberEntries = serializeAws_queryPlatformFilterValueList(input.Values, context);
4034
3964
  Object.entries(memberEntries).forEach(function (_a) {
4035
3965
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4091,69 +4021,69 @@ var serializeAws_queryPlatformFilterValueList = function (input, context) {
4091
4021
  };
4092
4022
  var serializeAws_queryRebuildEnvironmentMessage = function (input, context) {
4093
4023
  var entries = {};
4094
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
4024
+ if (input.EnvironmentId != null) {
4095
4025
  entries["EnvironmentId"] = input.EnvironmentId;
4096
4026
  }
4097
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
4027
+ if (input.EnvironmentName != null) {
4098
4028
  entries["EnvironmentName"] = input.EnvironmentName;
4099
4029
  }
4100
4030
  return entries;
4101
4031
  };
4102
4032
  var serializeAws_queryRequestEnvironmentInfoMessage = function (input, context) {
4103
4033
  var entries = {};
4104
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
4034
+ if (input.EnvironmentId != null) {
4105
4035
  entries["EnvironmentId"] = input.EnvironmentId;
4106
4036
  }
4107
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
4037
+ if (input.EnvironmentName != null) {
4108
4038
  entries["EnvironmentName"] = input.EnvironmentName;
4109
4039
  }
4110
- if (input.InfoType !== undefined && input.InfoType !== null) {
4040
+ if (input.InfoType != null) {
4111
4041
  entries["InfoType"] = input.InfoType;
4112
4042
  }
4113
4043
  return entries;
4114
4044
  };
4115
4045
  var serializeAws_queryRestartAppServerMessage = function (input, context) {
4116
4046
  var entries = {};
4117
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
4047
+ if (input.EnvironmentId != null) {
4118
4048
  entries["EnvironmentId"] = input.EnvironmentId;
4119
4049
  }
4120
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
4050
+ if (input.EnvironmentName != null) {
4121
4051
  entries["EnvironmentName"] = input.EnvironmentName;
4122
4052
  }
4123
4053
  return entries;
4124
4054
  };
4125
4055
  var serializeAws_queryRetrieveEnvironmentInfoMessage = function (input, context) {
4126
4056
  var entries = {};
4127
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
4057
+ if (input.EnvironmentId != null) {
4128
4058
  entries["EnvironmentId"] = input.EnvironmentId;
4129
4059
  }
4130
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
4060
+ if (input.EnvironmentName != null) {
4131
4061
  entries["EnvironmentName"] = input.EnvironmentName;
4132
4062
  }
4133
- if (input.InfoType !== undefined && input.InfoType !== null) {
4063
+ if (input.InfoType != null) {
4134
4064
  entries["InfoType"] = input.InfoType;
4135
4065
  }
4136
4066
  return entries;
4137
4067
  };
4138
4068
  var serializeAws_queryS3Location = function (input, context) {
4139
4069
  var entries = {};
4140
- if (input.S3Bucket !== undefined && input.S3Bucket !== null) {
4070
+ if (input.S3Bucket != null) {
4141
4071
  entries["S3Bucket"] = input.S3Bucket;
4142
4072
  }
4143
- if (input.S3Key !== undefined && input.S3Key !== null) {
4073
+ if (input.S3Key != null) {
4144
4074
  entries["S3Key"] = input.S3Key;
4145
4075
  }
4146
4076
  return entries;
4147
4077
  };
4148
4078
  var serializeAws_querySearchFilter = function (input, context) {
4149
4079
  var entries = {};
4150
- if (input.Attribute !== undefined && input.Attribute !== null) {
4080
+ if (input.Attribute != null) {
4151
4081
  entries["Attribute"] = input.Attribute;
4152
4082
  }
4153
- if (input.Operator !== undefined && input.Operator !== null) {
4083
+ if (input.Operator != null) {
4154
4084
  entries["Operator"] = input.Operator;
4155
4085
  }
4156
- if (input.Values !== undefined && input.Values !== null) {
4086
+ if (input.Values != null) {
4157
4087
  var memberEntries = serializeAws_querySearchFilterValues(input.Values, context);
4158
4088
  Object.entries(memberEntries).forEach(function (_a) {
4159
4089
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4215,49 +4145,49 @@ var serializeAws_querySearchFilterValues = function (input, context) {
4215
4145
  };
4216
4146
  var serializeAws_querySourceBuildInformation = function (input, context) {
4217
4147
  var entries = {};
4218
- if (input.SourceType !== undefined && input.SourceType !== null) {
4148
+ if (input.SourceType != null) {
4219
4149
  entries["SourceType"] = input.SourceType;
4220
4150
  }
4221
- if (input.SourceRepository !== undefined && input.SourceRepository !== null) {
4151
+ if (input.SourceRepository != null) {
4222
4152
  entries["SourceRepository"] = input.SourceRepository;
4223
4153
  }
4224
- if (input.SourceLocation !== undefined && input.SourceLocation !== null) {
4154
+ if (input.SourceLocation != null) {
4225
4155
  entries["SourceLocation"] = input.SourceLocation;
4226
4156
  }
4227
4157
  return entries;
4228
4158
  };
4229
4159
  var serializeAws_querySourceConfiguration = function (input, context) {
4230
4160
  var entries = {};
4231
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
4161
+ if (input.ApplicationName != null) {
4232
4162
  entries["ApplicationName"] = input.ApplicationName;
4233
4163
  }
4234
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
4164
+ if (input.TemplateName != null) {
4235
4165
  entries["TemplateName"] = input.TemplateName;
4236
4166
  }
4237
4167
  return entries;
4238
4168
  };
4239
4169
  var serializeAws_querySwapEnvironmentCNAMEsMessage = function (input, context) {
4240
4170
  var entries = {};
4241
- if (input.SourceEnvironmentId !== undefined && input.SourceEnvironmentId !== null) {
4171
+ if (input.SourceEnvironmentId != null) {
4242
4172
  entries["SourceEnvironmentId"] = input.SourceEnvironmentId;
4243
4173
  }
4244
- if (input.SourceEnvironmentName !== undefined && input.SourceEnvironmentName !== null) {
4174
+ if (input.SourceEnvironmentName != null) {
4245
4175
  entries["SourceEnvironmentName"] = input.SourceEnvironmentName;
4246
4176
  }
4247
- if (input.DestinationEnvironmentId !== undefined && input.DestinationEnvironmentId !== null) {
4177
+ if (input.DestinationEnvironmentId != null) {
4248
4178
  entries["DestinationEnvironmentId"] = input.DestinationEnvironmentId;
4249
4179
  }
4250
- if (input.DestinationEnvironmentName !== undefined && input.DestinationEnvironmentName !== null) {
4180
+ if (input.DestinationEnvironmentName != null) {
4251
4181
  entries["DestinationEnvironmentName"] = input.DestinationEnvironmentName;
4252
4182
  }
4253
4183
  return entries;
4254
4184
  };
4255
4185
  var serializeAws_queryTag = function (input, context) {
4256
4186
  var entries = {};
4257
- if (input.Key !== undefined && input.Key !== null) {
4187
+ if (input.Key != null) {
4258
4188
  entries["Key"] = input.Key;
4259
4189
  }
4260
- if (input.Value !== undefined && input.Value !== null) {
4190
+ if (input.Value != null) {
4261
4191
  entries["Value"] = input.Value;
4262
4192
  }
4263
4193
  return entries;
@@ -4341,36 +4271,36 @@ var serializeAws_queryTags = function (input, context) {
4341
4271
  };
4342
4272
  var serializeAws_queryTerminateEnvironmentMessage = function (input, context) {
4343
4273
  var entries = {};
4344
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
4274
+ if (input.EnvironmentId != null) {
4345
4275
  entries["EnvironmentId"] = input.EnvironmentId;
4346
4276
  }
4347
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
4277
+ if (input.EnvironmentName != null) {
4348
4278
  entries["EnvironmentName"] = input.EnvironmentName;
4349
4279
  }
4350
- if (input.TerminateResources !== undefined && input.TerminateResources !== null) {
4280
+ if (input.TerminateResources != null) {
4351
4281
  entries["TerminateResources"] = input.TerminateResources;
4352
4282
  }
4353
- if (input.ForceTerminate !== undefined && input.ForceTerminate !== null) {
4283
+ if (input.ForceTerminate != null) {
4354
4284
  entries["ForceTerminate"] = input.ForceTerminate;
4355
4285
  }
4356
4286
  return entries;
4357
4287
  };
4358
4288
  var serializeAws_queryUpdateApplicationMessage = function (input, context) {
4359
4289
  var entries = {};
4360
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
4290
+ if (input.ApplicationName != null) {
4361
4291
  entries["ApplicationName"] = input.ApplicationName;
4362
4292
  }
4363
- if (input.Description !== undefined && input.Description !== null) {
4293
+ if (input.Description != null) {
4364
4294
  entries["Description"] = input.Description;
4365
4295
  }
4366
4296
  return entries;
4367
4297
  };
4368
4298
  var serializeAws_queryUpdateApplicationResourceLifecycleMessage = function (input, context) {
4369
4299
  var entries = {};
4370
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
4300
+ if (input.ApplicationName != null) {
4371
4301
  entries["ApplicationName"] = input.ApplicationName;
4372
4302
  }
4373
- if (input.ResourceLifecycleConfig !== undefined && input.ResourceLifecycleConfig !== null) {
4303
+ if (input.ResourceLifecycleConfig != null) {
4374
4304
  var memberEntries = serializeAws_queryApplicationResourceLifecycleConfig(input.ResourceLifecycleConfig, context);
4375
4305
  Object.entries(memberEntries).forEach(function (_a) {
4376
4306
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4382,29 +4312,29 @@ var serializeAws_queryUpdateApplicationResourceLifecycleMessage = function (inpu
4382
4312
  };
4383
4313
  var serializeAws_queryUpdateApplicationVersionMessage = function (input, context) {
4384
4314
  var entries = {};
4385
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
4315
+ if (input.ApplicationName != null) {
4386
4316
  entries["ApplicationName"] = input.ApplicationName;
4387
4317
  }
4388
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
4318
+ if (input.VersionLabel != null) {
4389
4319
  entries["VersionLabel"] = input.VersionLabel;
4390
4320
  }
4391
- if (input.Description !== undefined && input.Description !== null) {
4321
+ if (input.Description != null) {
4392
4322
  entries["Description"] = input.Description;
4393
4323
  }
4394
4324
  return entries;
4395
4325
  };
4396
4326
  var serializeAws_queryUpdateConfigurationTemplateMessage = function (input, context) {
4397
4327
  var entries = {};
4398
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
4328
+ if (input.ApplicationName != null) {
4399
4329
  entries["ApplicationName"] = input.ApplicationName;
4400
4330
  }
4401
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
4331
+ if (input.TemplateName != null) {
4402
4332
  entries["TemplateName"] = input.TemplateName;
4403
4333
  }
4404
- if (input.Description !== undefined && input.Description !== null) {
4334
+ if (input.Description != null) {
4405
4335
  entries["Description"] = input.Description;
4406
4336
  }
4407
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
4337
+ if (input.OptionSettings != null) {
4408
4338
  var memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
4409
4339
  Object.entries(memberEntries).forEach(function (_a) {
4410
4340
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4412,7 +4342,7 @@ var serializeAws_queryUpdateConfigurationTemplateMessage = function (input, cont
4412
4342
  entries[loc] = value;
4413
4343
  });
4414
4344
  }
4415
- if (input.OptionsToRemove !== undefined && input.OptionsToRemove !== null) {
4345
+ if (input.OptionsToRemove != null) {
4416
4346
  var memberEntries = serializeAws_queryOptionsSpecifierList(input.OptionsToRemove, context);
4417
4347
  Object.entries(memberEntries).forEach(function (_a) {
4418
4348
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4424,22 +4354,22 @@ var serializeAws_queryUpdateConfigurationTemplateMessage = function (input, cont
4424
4354
  };
4425
4355
  var serializeAws_queryUpdateEnvironmentMessage = function (input, context) {
4426
4356
  var entries = {};
4427
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
4357
+ if (input.ApplicationName != null) {
4428
4358
  entries["ApplicationName"] = input.ApplicationName;
4429
4359
  }
4430
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
4360
+ if (input.EnvironmentId != null) {
4431
4361
  entries["EnvironmentId"] = input.EnvironmentId;
4432
4362
  }
4433
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
4363
+ if (input.EnvironmentName != null) {
4434
4364
  entries["EnvironmentName"] = input.EnvironmentName;
4435
4365
  }
4436
- if (input.GroupName !== undefined && input.GroupName !== null) {
4366
+ if (input.GroupName != null) {
4437
4367
  entries["GroupName"] = input.GroupName;
4438
4368
  }
4439
- if (input.Description !== undefined && input.Description !== null) {
4369
+ if (input.Description != null) {
4440
4370
  entries["Description"] = input.Description;
4441
4371
  }
4442
- if (input.Tier !== undefined && input.Tier !== null) {
4372
+ if (input.Tier != null) {
4443
4373
  var memberEntries = serializeAws_queryEnvironmentTier(input.Tier, context);
4444
4374
  Object.entries(memberEntries).forEach(function (_a) {
4445
4375
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4447,19 +4377,19 @@ var serializeAws_queryUpdateEnvironmentMessage = function (input, context) {
4447
4377
  entries[loc] = value;
4448
4378
  });
4449
4379
  }
4450
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
4380
+ if (input.VersionLabel != null) {
4451
4381
  entries["VersionLabel"] = input.VersionLabel;
4452
4382
  }
4453
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
4383
+ if (input.TemplateName != null) {
4454
4384
  entries["TemplateName"] = input.TemplateName;
4455
4385
  }
4456
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
4386
+ if (input.SolutionStackName != null) {
4457
4387
  entries["SolutionStackName"] = input.SolutionStackName;
4458
4388
  }
4459
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
4389
+ if (input.PlatformArn != null) {
4460
4390
  entries["PlatformArn"] = input.PlatformArn;
4461
4391
  }
4462
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
4392
+ if (input.OptionSettings != null) {
4463
4393
  var memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
4464
4394
  Object.entries(memberEntries).forEach(function (_a) {
4465
4395
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4467,7 +4397,7 @@ var serializeAws_queryUpdateEnvironmentMessage = function (input, context) {
4467
4397
  entries[loc] = value;
4468
4398
  });
4469
4399
  }
4470
- if (input.OptionsToRemove !== undefined && input.OptionsToRemove !== null) {
4400
+ if (input.OptionsToRemove != null) {
4471
4401
  var memberEntries = serializeAws_queryOptionsSpecifierList(input.OptionsToRemove, context);
4472
4402
  Object.entries(memberEntries).forEach(function (_a) {
4473
4403
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4479,10 +4409,10 @@ var serializeAws_queryUpdateEnvironmentMessage = function (input, context) {
4479
4409
  };
4480
4410
  var serializeAws_queryUpdateTagsForResourceMessage = function (input, context) {
4481
4411
  var entries = {};
4482
- if (input.ResourceArn !== undefined && input.ResourceArn !== null) {
4412
+ if (input.ResourceArn != null) {
4483
4413
  entries["ResourceArn"] = input.ResourceArn;
4484
4414
  }
4485
- if (input.TagsToAdd !== undefined && input.TagsToAdd !== null) {
4415
+ if (input.TagsToAdd != null) {
4486
4416
  var memberEntries = serializeAws_queryTagList(input.TagsToAdd, context);
4487
4417
  Object.entries(memberEntries).forEach(function (_a) {
4488
4418
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4490,7 +4420,7 @@ var serializeAws_queryUpdateTagsForResourceMessage = function (input, context) {
4490
4420
  entries[loc] = value;
4491
4421
  });
4492
4422
  }
4493
- if (input.TagsToRemove !== undefined && input.TagsToRemove !== null) {
4423
+ if (input.TagsToRemove != null) {
4494
4424
  var memberEntries = serializeAws_queryTagKeyList(input.TagsToRemove, context);
4495
4425
  Object.entries(memberEntries).forEach(function (_a) {
4496
4426
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4502,16 +4432,16 @@ var serializeAws_queryUpdateTagsForResourceMessage = function (input, context) {
4502
4432
  };
4503
4433
  var serializeAws_queryValidateConfigurationSettingsMessage = function (input, context) {
4504
4434
  var entries = {};
4505
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
4435
+ if (input.ApplicationName != null) {
4506
4436
  entries["ApplicationName"] = input.ApplicationName;
4507
4437
  }
4508
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
4438
+ if (input.TemplateName != null) {
4509
4439
  entries["TemplateName"] = input.TemplateName;
4510
4440
  }
4511
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
4441
+ if (input.EnvironmentName != null) {
4512
4442
  entries["EnvironmentName"] = input.EnvironmentName;
4513
4443
  }
4514
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
4444
+ if (input.OptionSettings != null) {
4515
4445
  var memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
4516
4446
  Object.entries(memberEntries).forEach(function (_a) {
4517
4447
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4615,9 +4545,6 @@ var deserializeAws_queryApplicationDescriptionList = function (output, context)
4615
4545
  return (output || [])
4616
4546
  .filter(function (e) { return e != null; })
4617
4547
  .map(function (entry) {
4618
- if (entry === null) {
4619
- return null;
4620
- }
4621
4548
  return deserializeAws_queryApplicationDescription(entry, context);
4622
4549
  });
4623
4550
  };
@@ -4738,9 +4665,6 @@ var deserializeAws_queryApplicationVersionDescriptionList = function (output, co
4738
4665
  return (output || [])
4739
4666
  .filter(function (e) { return e != null; })
4740
4667
  .map(function (entry) {
4741
- if (entry === null) {
4742
- return null;
4743
- }
4744
4668
  return deserializeAws_queryApplicationVersionDescription(entry, context);
4745
4669
  });
4746
4670
  };
@@ -4816,9 +4740,6 @@ var deserializeAws_queryAutoScalingGroupList = function (output, context) {
4816
4740
  return (output || [])
4817
4741
  .filter(function (e) { return e != null; })
4818
4742
  .map(function (entry) {
4819
- if (entry === null) {
4820
- return null;
4821
- }
4822
4743
  return deserializeAws_queryAutoScalingGroup(entry, context);
4823
4744
  });
4824
4745
  };
@@ -4826,9 +4747,6 @@ var deserializeAws_queryAvailableSolutionStackDetailsList = function (output, co
4826
4747
  return (output || [])
4827
4748
  .filter(function (e) { return e != null; })
4828
4749
  .map(function (entry) {
4829
- if (entry === null) {
4830
- return null;
4831
- }
4832
4750
  return deserializeAws_querySolutionStackDescription(entry, context);
4833
4751
  });
4834
4752
  };
@@ -4836,9 +4754,6 @@ var deserializeAws_queryAvailableSolutionStackNamesList = function (output, cont
4836
4754
  return (output || [])
4837
4755
  .filter(function (e) { return e != null; })
4838
4756
  .map(function (entry) {
4839
- if (entry === null) {
4840
- return null;
4841
- }
4842
4757
  return __expectString(entry);
4843
4758
  });
4844
4759
  };
@@ -4855,9 +4770,6 @@ var deserializeAws_queryCauses = function (output, context) {
4855
4770
  return (output || [])
4856
4771
  .filter(function (e) { return e != null; })
4857
4772
  .map(function (entry) {
4858
- if (entry === null) {
4859
- return null;
4860
- }
4861
4773
  return __expectString(entry);
4862
4774
  });
4863
4775
  };
@@ -4939,9 +4851,6 @@ var deserializeAws_queryConfigurationOptionDescriptionsList = function (output,
4939
4851
  return (output || [])
4940
4852
  .filter(function (e) { return e != null; })
4941
4853
  .map(function (entry) {
4942
- if (entry === null) {
4943
- return null;
4944
- }
4945
4854
  return deserializeAws_queryConfigurationOptionDescription(entry, context);
4946
4855
  });
4947
4856
  };
@@ -4949,9 +4858,6 @@ var deserializeAws_queryConfigurationOptionPossibleValues = function (output, co
4949
4858
  return (output || [])
4950
4859
  .filter(function (e) { return e != null; })
4951
4860
  .map(function (entry) {
4952
- if (entry === null) {
4953
- return null;
4954
- }
4955
4861
  return __expectString(entry);
4956
4862
  });
4957
4863
  };
@@ -5000,9 +4906,6 @@ var deserializeAws_queryConfigurationOptionSettingsList = function (output, cont
5000
4906
  return (output || [])
5001
4907
  .filter(function (e) { return e != null; })
5002
4908
  .map(function (entry) {
5003
- if (entry === null) {
5004
- return null;
5005
- }
5006
4909
  return deserializeAws_queryConfigurationOptionSetting(entry, context);
5007
4910
  });
5008
4911
  };
@@ -5058,9 +4961,6 @@ var deserializeAws_queryConfigurationSettingsDescriptionList = function (output,
5058
4961
  return (output || [])
5059
4962
  .filter(function (e) { return e != null; })
5060
4963
  .map(function (entry) {
5061
- if (entry === null) {
5062
- return null;
5063
- }
5064
4964
  return deserializeAws_queryConfigurationSettingsDescription(entry, context);
5065
4965
  });
5066
4966
  };
@@ -5092,9 +4992,6 @@ var deserializeAws_queryConfigurationTemplateNamesList = function (output, conte
5092
4992
  return (output || [])
5093
4993
  .filter(function (e) { return e != null; })
5094
4994
  .map(function (entry) {
5095
- if (entry === null) {
5096
- return null;
5097
- }
5098
4995
  return __expectString(entry);
5099
4996
  });
5100
4997
  };
@@ -5174,9 +5071,6 @@ var deserializeAws_queryCustomAmiList = function (output, context) {
5174
5071
  return (output || [])
5175
5072
  .filter(function (e) { return e != null; })
5176
5073
  .map(function (entry) {
5177
- if (entry === null) {
5178
- return null;
5179
- }
5180
5074
  return deserializeAws_queryCustomAmi(entry, context);
5181
5075
  });
5182
5076
  };
@@ -5422,9 +5316,6 @@ var deserializeAws_queryEnvironmentDescriptionsList = function (output, context)
5422
5316
  return (output || [])
5423
5317
  .filter(function (e) { return e != null; })
5424
5318
  .map(function (entry) {
5425
- if (entry === null) {
5426
- return null;
5427
- }
5428
5319
  return deserializeAws_queryEnvironmentDescription(entry, context);
5429
5320
  });
5430
5321
  };
@@ -5469,9 +5360,6 @@ var deserializeAws_queryEnvironmentInfoDescriptionList = function (output, conte
5469
5360
  return (output || [])
5470
5361
  .filter(function (e) { return e != null; })
5471
5362
  .map(function (entry) {
5472
- if (entry === null) {
5473
- return null;
5474
- }
5475
5363
  return deserializeAws_queryEnvironmentInfoDescription(entry, context);
5476
5364
  });
5477
5365
  };
@@ -5492,9 +5380,6 @@ var deserializeAws_queryEnvironmentLinks = function (output, context) {
5492
5380
  return (output || [])
5493
5381
  .filter(function (e) { return e != null; })
5494
5382
  .map(function (entry) {
5495
- if (entry === null) {
5496
- return null;
5497
- }
5498
5383
  return deserializeAws_queryEnvironmentLink(entry, context);
5499
5384
  });
5500
5385
  };
@@ -5636,9 +5521,6 @@ var deserializeAws_queryEventDescriptionList = function (output, context) {
5636
5521
  return (output || [])
5637
5522
  .filter(function (e) { return e != null; })
5638
5523
  .map(function (entry) {
5639
- if (entry === null) {
5640
- return null;
5641
- }
5642
5524
  return deserializeAws_queryEventDescription(entry, context);
5643
5525
  });
5644
5526
  };
@@ -5671,9 +5553,6 @@ var deserializeAws_queryInstanceHealthList = function (output, context) {
5671
5553
  return (output || [])
5672
5554
  .filter(function (e) { return e != null; })
5673
5555
  .map(function (entry) {
5674
- if (entry === null) {
5675
- return null;
5676
- }
5677
5556
  return deserializeAws_querySingleInstanceHealth(entry, context);
5678
5557
  });
5679
5558
  };
@@ -5718,9 +5597,6 @@ var deserializeAws_queryInstanceList = function (output, context) {
5718
5597
  return (output || [])
5719
5598
  .filter(function (e) { return e != null; })
5720
5599
  .map(function (entry) {
5721
- if (entry === null) {
5722
- return null;
5723
- }
5724
5600
  return deserializeAws_queryInstance(entry, context);
5725
5601
  });
5726
5602
  };
@@ -5792,9 +5668,6 @@ var deserializeAws_queryLaunchConfigurationList = function (output, context) {
5792
5668
  return (output || [])
5793
5669
  .filter(function (e) { return e != null; })
5794
5670
  .map(function (entry) {
5795
- if (entry === null) {
5796
- return null;
5797
- }
5798
5671
  return deserializeAws_queryLaunchConfiguration(entry, context);
5799
5672
  });
5800
5673
  };
@@ -5811,9 +5684,6 @@ var deserializeAws_queryLaunchTemplateList = function (output, context) {
5811
5684
  return (output || [])
5812
5685
  .filter(function (e) { return e != null; })
5813
5686
  .map(function (entry) {
5814
- if (entry === null) {
5815
- return null;
5816
- }
5817
5687
  return deserializeAws_queryLaunchTemplate(entry, context);
5818
5688
  });
5819
5689
  };
@@ -5886,9 +5756,6 @@ var deserializeAws_queryLoadAverage = function (output, context) {
5886
5756
  return (output || [])
5887
5757
  .filter(function (e) { return e != null; })
5888
5758
  .map(function (entry) {
5889
- if (entry === null) {
5890
- return null;
5891
- }
5892
5759
  return __strictParseFloat(entry);
5893
5760
  });
5894
5761
  };
@@ -5925,9 +5792,6 @@ var deserializeAws_queryLoadBalancerList = function (output, context) {
5925
5792
  return (output || [])
5926
5793
  .filter(function (e) { return e != null; })
5927
5794
  .map(function (entry) {
5928
- if (entry === null) {
5929
- return null;
5930
- }
5931
5795
  return deserializeAws_queryLoadBalancer(entry, context);
5932
5796
  });
5933
5797
  };
@@ -5935,9 +5799,6 @@ var deserializeAws_queryLoadBalancerListenersDescription = function (output, con
5935
5799
  return (output || [])
5936
5800
  .filter(function (e) { return e != null; })
5937
5801
  .map(function (entry) {
5938
- if (entry === null) {
5939
- return null;
5940
- }
5941
5802
  return deserializeAws_queryListener(entry, context);
5942
5803
  });
5943
5804
  };
@@ -6007,9 +5868,6 @@ var deserializeAws_queryManagedActionHistoryItems = function (output, context) {
6007
5868
  return (output || [])
6008
5869
  .filter(function (e) { return e != null; })
6009
5870
  .map(function (entry) {
6010
- if (entry === null) {
6011
- return null;
6012
- }
6013
5871
  return deserializeAws_queryManagedActionHistoryItem(entry, context);
6014
5872
  });
6015
5873
  };
@@ -6026,9 +5884,6 @@ var deserializeAws_queryManagedActions = function (output, context) {
6026
5884
  return (output || [])
6027
5885
  .filter(function (e) { return e != null; })
6028
5886
  .map(function (entry) {
6029
- if (entry === null) {
6030
- return null;
6031
- }
6032
5887
  return deserializeAws_queryManagedAction(entry, context);
6033
5888
  });
6034
5889
  };
@@ -6120,9 +5975,6 @@ var deserializeAws_queryPlatformBranchSummaryList = function (output, context) {
6120
5975
  return (output || [])
6121
5976
  .filter(function (e) { return e != null; })
6122
5977
  .map(function (entry) {
6123
- if (entry === null) {
6124
- return null;
6125
- }
6126
5978
  return deserializeAws_queryPlatformBranchSummary(entry, context);
6127
5979
  });
6128
5980
  };
@@ -6247,9 +6099,6 @@ var deserializeAws_queryPlatformFrameworks = function (output, context) {
6247
6099
  return (output || [])
6248
6100
  .filter(function (e) { return e != null; })
6249
6101
  .map(function (entry) {
6250
- if (entry === null) {
6251
- return null;
6252
- }
6253
6102
  return deserializeAws_queryPlatformFramework(entry, context);
6254
6103
  });
6255
6104
  };
@@ -6270,9 +6119,6 @@ var deserializeAws_queryPlatformProgrammingLanguages = function (output, context
6270
6119
  return (output || [])
6271
6120
  .filter(function (e) { return e != null; })
6272
6121
  .map(function (entry) {
6273
- if (entry === null) {
6274
- return null;
6275
- }
6276
6122
  return deserializeAws_queryPlatformProgrammingLanguage(entry, context);
6277
6123
  });
6278
6124
  };
@@ -6339,9 +6185,6 @@ var deserializeAws_queryPlatformSummaryList = function (output, context) {
6339
6185
  return (output || [])
6340
6186
  .filter(function (e) { return e != null; })
6341
6187
  .map(function (entry) {
6342
- if (entry === null) {
6343
- return null;
6344
- }
6345
6188
  return deserializeAws_queryPlatformSummary(entry, context);
6346
6189
  });
6347
6190
  };
@@ -6371,9 +6214,6 @@ var deserializeAws_queryQueueList = function (output, context) {
6371
6214
  return (output || [])
6372
6215
  .filter(function (e) { return e != null; })
6373
6216
  .map(function (entry) {
6374
- if (entry === null) {
6375
- return null;
6376
- }
6377
6217
  return deserializeAws_queryQueue(entry, context);
6378
6218
  });
6379
6219
  };
@@ -6556,9 +6396,6 @@ var deserializeAws_querySolutionStackFileTypeList = function (output, context) {
6556
6396
  return (output || [])
6557
6397
  .filter(function (e) { return e != null; })
6558
6398
  .map(function (entry) {
6559
- if (entry === null) {
6560
- return null;
6561
- }
6562
6399
  return __expectString(entry);
6563
6400
  });
6564
6401
  };
@@ -6613,9 +6450,6 @@ var deserializeAws_querySupportedAddonList = function (output, context) {
6613
6450
  return (output || [])
6614
6451
  .filter(function (e) { return e != null; })
6615
6452
  .map(function (entry) {
6616
- if (entry === null) {
6617
- return null;
6618
- }
6619
6453
  return __expectString(entry);
6620
6454
  });
6621
6455
  };
@@ -6623,9 +6457,6 @@ var deserializeAws_querySupportedTierList = function (output, context) {
6623
6457
  return (output || [])
6624
6458
  .filter(function (e) { return e != null; })
6625
6459
  .map(function (entry) {
6626
- if (entry === null) {
6627
- return null;
6628
- }
6629
6460
  return __expectString(entry);
6630
6461
  });
6631
6462
  };
@@ -6662,9 +6493,6 @@ var deserializeAws_queryTagList = function (output, context) {
6662
6493
  return (output || [])
6663
6494
  .filter(function (e) { return e != null; })
6664
6495
  .map(function (entry) {
6665
- if (entry === null) {
6666
- return null;
6667
- }
6668
6496
  return deserializeAws_queryTag(entry, context);
6669
6497
  });
6670
6498
  };
@@ -6744,9 +6572,6 @@ var deserializeAws_queryTriggerList = function (output, context) {
6744
6572
  return (output || [])
6745
6573
  .filter(function (e) { return e != null; })
6746
6574
  .map(function (entry) {
6747
- if (entry === null) {
6748
- return null;
6749
- }
6750
6575
  return deserializeAws_queryTrigger(entry, context);
6751
6576
  });
6752
6577
  };
@@ -6775,9 +6600,6 @@ var deserializeAws_queryValidationMessagesList = function (output, context) {
6775
6600
  return (output || [])
6776
6601
  .filter(function (e) { return e != null; })
6777
6602
  .map(function (entry) {
6778
- if (entry === null) {
6779
- return null;
6780
- }
6781
6603
  return deserializeAws_queryValidationMessage(entry, context);
6782
6604
  });
6783
6605
  };
@@ -6785,9 +6607,6 @@ var deserializeAws_queryVersionLabelsList = function (output, context) {
6785
6607
  return (output || [])
6786
6608
  .filter(function (e) { return e != null; })
6787
6609
  .map(function (entry) {
6788
- if (entry === null) {
6789
- return null;
6790
- }
6791
6610
  return __expectString(entry);
6792
6611
  });
6793
6612
  };