@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
@@ -629,7 +629,6 @@ const deserializeAws_queryAbortEnvironmentUpdateCommandError = async (output, co
629
629
  ...output,
630
630
  body: await parseBody(output.body, context),
631
631
  };
632
- let response;
633
632
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
634
633
  switch (errorCode) {
635
634
  case "InsufficientPrivilegesException":
@@ -637,14 +636,12 @@ const deserializeAws_queryAbortEnvironmentUpdateCommandError = async (output, co
637
636
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
638
637
  default:
639
638
  const parsedBody = parsedOutput.body;
640
- const $metadata = deserializeMetadata(output);
641
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
642
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
643
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
644
- $fault: "client",
645
- $metadata,
639
+ (0, smithy_client_1.throwDefaultError)({
640
+ output,
641
+ parsedBody: parsedBody.Error,
642
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
643
+ errorCode,
646
644
  });
647
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
648
645
  }
649
646
  };
650
647
  const deserializeAws_queryApplyEnvironmentManagedActionCommand = async (output, context) => {
@@ -666,7 +663,6 @@ const deserializeAws_queryApplyEnvironmentManagedActionCommandError = async (out
666
663
  ...output,
667
664
  body: await parseBody(output.body, context),
668
665
  };
669
- let response;
670
666
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
671
667
  switch (errorCode) {
672
668
  case "ElasticBeanstalkServiceException":
@@ -677,14 +673,12 @@ const deserializeAws_queryApplyEnvironmentManagedActionCommandError = async (out
677
673
  throw await deserializeAws_queryManagedActionInvalidStateExceptionResponse(parsedOutput, context);
678
674
  default:
679
675
  const parsedBody = parsedOutput.body;
680
- const $metadata = deserializeMetadata(output);
681
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
682
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
683
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
684
- $fault: "client",
685
- $metadata,
676
+ (0, smithy_client_1.throwDefaultError)({
677
+ output,
678
+ parsedBody: parsedBody.Error,
679
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
680
+ errorCode,
686
681
  });
687
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
688
682
  }
689
683
  };
690
684
  const deserializeAws_queryAssociateEnvironmentOperationsRoleCommand = async (output, context) => {
@@ -703,7 +697,6 @@ const deserializeAws_queryAssociateEnvironmentOperationsRoleCommandError = async
703
697
  ...output,
704
698
  body: await parseBody(output.body, context),
705
699
  };
706
- let response;
707
700
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
708
701
  switch (errorCode) {
709
702
  case "InsufficientPrivilegesException":
@@ -711,14 +704,12 @@ const deserializeAws_queryAssociateEnvironmentOperationsRoleCommandError = async
711
704
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
712
705
  default:
713
706
  const parsedBody = parsedOutput.body;
714
- const $metadata = deserializeMetadata(output);
715
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
716
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
717
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
718
- $fault: "client",
719
- $metadata,
707
+ (0, smithy_client_1.throwDefaultError)({
708
+ output,
709
+ parsedBody: parsedBody.Error,
710
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
711
+ errorCode,
720
712
  });
721
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
722
713
  }
723
714
  };
724
715
  const deserializeAws_queryCheckDNSAvailabilityCommand = async (output, context) => {
@@ -740,20 +731,14 @@ const deserializeAws_queryCheckDNSAvailabilityCommandError = async (output, cont
740
731
  ...output,
741
732
  body: await parseBody(output.body, context),
742
733
  };
743
- let response;
744
734
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
745
- switch (errorCode) {
746
- default:
747
- const parsedBody = parsedOutput.body;
748
- const $metadata = deserializeMetadata(output);
749
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
750
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
751
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
752
- $fault: "client",
753
- $metadata,
754
- });
755
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
756
- }
735
+ const parsedBody = parsedOutput.body;
736
+ (0, smithy_client_1.throwDefaultError)({
737
+ output,
738
+ parsedBody: parsedBody.Error,
739
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
740
+ errorCode,
741
+ });
757
742
  };
758
743
  const deserializeAws_queryComposeEnvironmentsCommand = async (output, context) => {
759
744
  if (output.statusCode >= 300) {
@@ -774,7 +759,6 @@ const deserializeAws_queryComposeEnvironmentsCommandError = async (output, conte
774
759
  ...output,
775
760
  body: await parseBody(output.body, context),
776
761
  };
777
- let response;
778
762
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
779
763
  switch (errorCode) {
780
764
  case "InsufficientPrivilegesException":
@@ -785,14 +769,12 @@ const deserializeAws_queryComposeEnvironmentsCommandError = async (output, conte
785
769
  throw await deserializeAws_queryTooManyEnvironmentsExceptionResponse(parsedOutput, context);
786
770
  default:
787
771
  const parsedBody = parsedOutput.body;
788
- const $metadata = deserializeMetadata(output);
789
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
790
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
791
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
792
- $fault: "client",
793
- $metadata,
772
+ (0, smithy_client_1.throwDefaultError)({
773
+ output,
774
+ parsedBody: parsedBody.Error,
775
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
776
+ errorCode,
794
777
  });
795
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
796
778
  }
797
779
  };
798
780
  const deserializeAws_queryCreateApplicationCommand = async (output, context) => {
@@ -814,7 +796,6 @@ const deserializeAws_queryCreateApplicationCommandError = async (output, context
814
796
  ...output,
815
797
  body: await parseBody(output.body, context),
816
798
  };
817
- let response;
818
799
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
819
800
  switch (errorCode) {
820
801
  case "TooManyApplicationsException":
@@ -822,14 +803,12 @@ const deserializeAws_queryCreateApplicationCommandError = async (output, context
822
803
  throw await deserializeAws_queryTooManyApplicationsExceptionResponse(parsedOutput, context);
823
804
  default:
824
805
  const parsedBody = parsedOutput.body;
825
- const $metadata = deserializeMetadata(output);
826
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
827
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
828
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
829
- $fault: "client",
830
- $metadata,
806
+ (0, smithy_client_1.throwDefaultError)({
807
+ output,
808
+ parsedBody: parsedBody.Error,
809
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
810
+ errorCode,
831
811
  });
832
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
833
812
  }
834
813
  };
835
814
  const deserializeAws_queryCreateApplicationVersionCommand = async (output, context) => {
@@ -851,7 +830,6 @@ const deserializeAws_queryCreateApplicationVersionCommandError = async (output,
851
830
  ...output,
852
831
  body: await parseBody(output.body, context),
853
832
  };
854
- let response;
855
833
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
856
834
  switch (errorCode) {
857
835
  case "CodeBuildNotInServiceRegionException":
@@ -871,14 +849,12 @@ const deserializeAws_queryCreateApplicationVersionCommandError = async (output,
871
849
  throw await deserializeAws_queryTooManyApplicationVersionsExceptionResponse(parsedOutput, context);
872
850
  default:
873
851
  const parsedBody = parsedOutput.body;
874
- const $metadata = deserializeMetadata(output);
875
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
876
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
877
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
878
- $fault: "client",
879
- $metadata,
852
+ (0, smithy_client_1.throwDefaultError)({
853
+ output,
854
+ parsedBody: parsedBody.Error,
855
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
856
+ errorCode,
880
857
  });
881
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
882
858
  }
883
859
  };
884
860
  const deserializeAws_queryCreateConfigurationTemplateCommand = async (output, context) => {
@@ -900,7 +876,6 @@ const deserializeAws_queryCreateConfigurationTemplateCommandError = async (outpu
900
876
  ...output,
901
877
  body: await parseBody(output.body, context),
902
878
  };
903
- let response;
904
879
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
905
880
  switch (errorCode) {
906
881
  case "InsufficientPrivilegesException":
@@ -914,14 +889,12 @@ const deserializeAws_queryCreateConfigurationTemplateCommandError = async (outpu
914
889
  throw await deserializeAws_queryTooManyConfigurationTemplatesExceptionResponse(parsedOutput, context);
915
890
  default:
916
891
  const parsedBody = parsedOutput.body;
917
- const $metadata = deserializeMetadata(output);
918
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
919
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
920
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
921
- $fault: "client",
922
- $metadata,
892
+ (0, smithy_client_1.throwDefaultError)({
893
+ output,
894
+ parsedBody: parsedBody.Error,
895
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
896
+ errorCode,
923
897
  });
924
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
925
898
  }
926
899
  };
927
900
  const deserializeAws_queryCreateEnvironmentCommand = async (output, context) => {
@@ -943,7 +916,6 @@ const deserializeAws_queryCreateEnvironmentCommandError = async (output, context
943
916
  ...output,
944
917
  body: await parseBody(output.body, context),
945
918
  };
946
- let response;
947
919
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
948
920
  switch (errorCode) {
949
921
  case "InsufficientPrivilegesException":
@@ -954,14 +926,12 @@ const deserializeAws_queryCreateEnvironmentCommandError = async (output, context
954
926
  throw await deserializeAws_queryTooManyEnvironmentsExceptionResponse(parsedOutput, context);
955
927
  default:
956
928
  const parsedBody = parsedOutput.body;
957
- const $metadata = deserializeMetadata(output);
958
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
959
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
960
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
961
- $fault: "client",
962
- $metadata,
929
+ (0, smithy_client_1.throwDefaultError)({
930
+ output,
931
+ parsedBody: parsedBody.Error,
932
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
933
+ errorCode,
963
934
  });
964
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
965
935
  }
966
936
  };
967
937
  const deserializeAws_queryCreatePlatformVersionCommand = async (output, context) => {
@@ -983,7 +953,6 @@ const deserializeAws_queryCreatePlatformVersionCommandError = async (output, con
983
953
  ...output,
984
954
  body: await parseBody(output.body, context),
985
955
  };
986
- let response;
987
956
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
988
957
  switch (errorCode) {
989
958
  case "ElasticBeanstalkServiceException":
@@ -997,14 +966,12 @@ const deserializeAws_queryCreatePlatformVersionCommandError = async (output, con
997
966
  throw await deserializeAws_queryTooManyPlatformsExceptionResponse(parsedOutput, context);
998
967
  default:
999
968
  const parsedBody = parsedOutput.body;
1000
- const $metadata = deserializeMetadata(output);
1001
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1002
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1003
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1004
- $fault: "client",
1005
- $metadata,
969
+ (0, smithy_client_1.throwDefaultError)({
970
+ output,
971
+ parsedBody: parsedBody.Error,
972
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
973
+ errorCode,
1006
974
  });
1007
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1008
975
  }
1009
976
  };
1010
977
  const deserializeAws_queryCreateStorageLocationCommand = async (output, context) => {
@@ -1026,7 +993,6 @@ const deserializeAws_queryCreateStorageLocationCommandError = async (output, con
1026
993
  ...output,
1027
994
  body: await parseBody(output.body, context),
1028
995
  };
1029
- let response;
1030
996
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1031
997
  switch (errorCode) {
1032
998
  case "InsufficientPrivilegesException":
@@ -1040,14 +1006,12 @@ const deserializeAws_queryCreateStorageLocationCommandError = async (output, con
1040
1006
  throw await deserializeAws_queryTooManyBucketsExceptionResponse(parsedOutput, context);
1041
1007
  default:
1042
1008
  const parsedBody = parsedOutput.body;
1043
- const $metadata = deserializeMetadata(output);
1044
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1045
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1046
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1047
- $fault: "client",
1048
- $metadata,
1009
+ (0, smithy_client_1.throwDefaultError)({
1010
+ output,
1011
+ parsedBody: parsedBody.Error,
1012
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1013
+ errorCode,
1049
1014
  });
1050
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1051
1015
  }
1052
1016
  };
1053
1017
  const deserializeAws_queryDeleteApplicationCommand = async (output, context) => {
@@ -1066,7 +1030,6 @@ const deserializeAws_queryDeleteApplicationCommandError = async (output, context
1066
1030
  ...output,
1067
1031
  body: await parseBody(output.body, context),
1068
1032
  };
1069
- let response;
1070
1033
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1071
1034
  switch (errorCode) {
1072
1035
  case "OperationInProgressException":
@@ -1074,14 +1037,12 @@ const deserializeAws_queryDeleteApplicationCommandError = async (output, context
1074
1037
  throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
1075
1038
  default:
1076
1039
  const parsedBody = parsedOutput.body;
1077
- const $metadata = deserializeMetadata(output);
1078
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1079
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1080
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1081
- $fault: "client",
1082
- $metadata,
1040
+ (0, smithy_client_1.throwDefaultError)({
1041
+ output,
1042
+ parsedBody: parsedBody.Error,
1043
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1044
+ errorCode,
1083
1045
  });
1084
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1085
1046
  }
1086
1047
  };
1087
1048
  const deserializeAws_queryDeleteApplicationVersionCommand = async (output, context) => {
@@ -1100,7 +1061,6 @@ const deserializeAws_queryDeleteApplicationVersionCommandError = async (output,
1100
1061
  ...output,
1101
1062
  body: await parseBody(output.body, context),
1102
1063
  };
1103
- let response;
1104
1064
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1105
1065
  switch (errorCode) {
1106
1066
  case "InsufficientPrivilegesException":
@@ -1117,14 +1077,12 @@ const deserializeAws_queryDeleteApplicationVersionCommandError = async (output,
1117
1077
  throw await deserializeAws_querySourceBundleDeletionExceptionResponse(parsedOutput, context);
1118
1078
  default:
1119
1079
  const parsedBody = parsedOutput.body;
1120
- const $metadata = deserializeMetadata(output);
1121
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1122
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1123
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1124
- $fault: "client",
1125
- $metadata,
1080
+ (0, smithy_client_1.throwDefaultError)({
1081
+ output,
1082
+ parsedBody: parsedBody.Error,
1083
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1084
+ errorCode,
1126
1085
  });
1127
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1128
1086
  }
1129
1087
  };
1130
1088
  const deserializeAws_queryDeleteConfigurationTemplateCommand = async (output, context) => {
@@ -1143,7 +1101,6 @@ const deserializeAws_queryDeleteConfigurationTemplateCommandError = async (outpu
1143
1101
  ...output,
1144
1102
  body: await parseBody(output.body, context),
1145
1103
  };
1146
- let response;
1147
1104
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1148
1105
  switch (errorCode) {
1149
1106
  case "OperationInProgressException":
@@ -1151,14 +1108,12 @@ const deserializeAws_queryDeleteConfigurationTemplateCommandError = async (outpu
1151
1108
  throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
1152
1109
  default:
1153
1110
  const parsedBody = parsedOutput.body;
1154
- const $metadata = deserializeMetadata(output);
1155
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1156
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1157
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1158
- $fault: "client",
1159
- $metadata,
1111
+ (0, smithy_client_1.throwDefaultError)({
1112
+ output,
1113
+ parsedBody: parsedBody.Error,
1114
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1115
+ errorCode,
1160
1116
  });
1161
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1162
1117
  }
1163
1118
  };
1164
1119
  const deserializeAws_queryDeleteEnvironmentConfigurationCommand = async (output, context) => {
@@ -1177,20 +1132,14 @@ const deserializeAws_queryDeleteEnvironmentConfigurationCommandError = async (ou
1177
1132
  ...output,
1178
1133
  body: await parseBody(output.body, context),
1179
1134
  };
1180
- let response;
1181
1135
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1182
- switch (errorCode) {
1183
- default:
1184
- const parsedBody = parsedOutput.body;
1185
- const $metadata = deserializeMetadata(output);
1186
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1187
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1188
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1189
- $fault: "client",
1190
- $metadata,
1191
- });
1192
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1193
- }
1136
+ const parsedBody = parsedOutput.body;
1137
+ (0, smithy_client_1.throwDefaultError)({
1138
+ output,
1139
+ parsedBody: parsedBody.Error,
1140
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1141
+ errorCode,
1142
+ });
1194
1143
  };
1195
1144
  const deserializeAws_queryDeletePlatformVersionCommand = async (output, context) => {
1196
1145
  if (output.statusCode >= 300) {
@@ -1211,7 +1160,6 @@ const deserializeAws_queryDeletePlatformVersionCommandError = async (output, con
1211
1160
  ...output,
1212
1161
  body: await parseBody(output.body, context),
1213
1162
  };
1214
- let response;
1215
1163
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1216
1164
  switch (errorCode) {
1217
1165
  case "ElasticBeanstalkServiceException":
@@ -1228,14 +1176,12 @@ const deserializeAws_queryDeletePlatformVersionCommandError = async (output, con
1228
1176
  throw await deserializeAws_queryPlatformVersionStillReferencedExceptionResponse(parsedOutput, context);
1229
1177
  default:
1230
1178
  const parsedBody = parsedOutput.body;
1231
- const $metadata = deserializeMetadata(output);
1232
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1233
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1234
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1235
- $fault: "client",
1236
- $metadata,
1179
+ (0, smithy_client_1.throwDefaultError)({
1180
+ output,
1181
+ parsedBody: parsedBody.Error,
1182
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1183
+ errorCode,
1237
1184
  });
1238
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1239
1185
  }
1240
1186
  };
1241
1187
  const deserializeAws_queryDescribeAccountAttributesCommand = async (output, context) => {
@@ -1257,7 +1203,6 @@ const deserializeAws_queryDescribeAccountAttributesCommandError = async (output,
1257
1203
  ...output,
1258
1204
  body: await parseBody(output.body, context),
1259
1205
  };
1260
- let response;
1261
1206
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1262
1207
  switch (errorCode) {
1263
1208
  case "InsufficientPrivilegesException":
@@ -1265,14 +1210,12 @@ const deserializeAws_queryDescribeAccountAttributesCommandError = async (output,
1265
1210
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
1266
1211
  default:
1267
1212
  const parsedBody = parsedOutput.body;
1268
- const $metadata = deserializeMetadata(output);
1269
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1270
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1271
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1272
- $fault: "client",
1273
- $metadata,
1213
+ (0, smithy_client_1.throwDefaultError)({
1214
+ output,
1215
+ parsedBody: parsedBody.Error,
1216
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1217
+ errorCode,
1274
1218
  });
1275
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1276
1219
  }
1277
1220
  };
1278
1221
  const deserializeAws_queryDescribeApplicationsCommand = async (output, context) => {
@@ -1294,20 +1237,14 @@ const deserializeAws_queryDescribeApplicationsCommandError = async (output, cont
1294
1237
  ...output,
1295
1238
  body: await parseBody(output.body, context),
1296
1239
  };
1297
- let response;
1298
1240
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1299
- switch (errorCode) {
1300
- default:
1301
- const parsedBody = parsedOutput.body;
1302
- const $metadata = deserializeMetadata(output);
1303
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1304
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1305
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1306
- $fault: "client",
1307
- $metadata,
1308
- });
1309
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1310
- }
1241
+ const parsedBody = parsedOutput.body;
1242
+ (0, smithy_client_1.throwDefaultError)({
1243
+ output,
1244
+ parsedBody: parsedBody.Error,
1245
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1246
+ errorCode,
1247
+ });
1311
1248
  };
1312
1249
  const deserializeAws_queryDescribeApplicationVersionsCommand = async (output, context) => {
1313
1250
  if (output.statusCode >= 300) {
@@ -1328,20 +1265,14 @@ const deserializeAws_queryDescribeApplicationVersionsCommandError = async (outpu
1328
1265
  ...output,
1329
1266
  body: await parseBody(output.body, context),
1330
1267
  };
1331
- let response;
1332
1268
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1333
- switch (errorCode) {
1334
- default:
1335
- const parsedBody = parsedOutput.body;
1336
- const $metadata = deserializeMetadata(output);
1337
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1338
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1339
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1340
- $fault: "client",
1341
- $metadata,
1342
- });
1343
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1344
- }
1269
+ const parsedBody = parsedOutput.body;
1270
+ (0, smithy_client_1.throwDefaultError)({
1271
+ output,
1272
+ parsedBody: parsedBody.Error,
1273
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1274
+ errorCode,
1275
+ });
1345
1276
  };
1346
1277
  const deserializeAws_queryDescribeConfigurationOptionsCommand = async (output, context) => {
1347
1278
  if (output.statusCode >= 300) {
@@ -1362,7 +1293,6 @@ const deserializeAws_queryDescribeConfigurationOptionsCommandError = async (outp
1362
1293
  ...output,
1363
1294
  body: await parseBody(output.body, context),
1364
1295
  };
1365
- let response;
1366
1296
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1367
1297
  switch (errorCode) {
1368
1298
  case "TooManyBucketsException":
@@ -1370,14 +1300,12 @@ const deserializeAws_queryDescribeConfigurationOptionsCommandError = async (outp
1370
1300
  throw await deserializeAws_queryTooManyBucketsExceptionResponse(parsedOutput, context);
1371
1301
  default:
1372
1302
  const parsedBody = parsedOutput.body;
1373
- const $metadata = deserializeMetadata(output);
1374
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1375
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1376
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1377
- $fault: "client",
1378
- $metadata,
1303
+ (0, smithy_client_1.throwDefaultError)({
1304
+ output,
1305
+ parsedBody: parsedBody.Error,
1306
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1307
+ errorCode,
1379
1308
  });
1380
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1381
1309
  }
1382
1310
  };
1383
1311
  const deserializeAws_queryDescribeConfigurationSettingsCommand = async (output, context) => {
@@ -1399,7 +1327,6 @@ const deserializeAws_queryDescribeConfigurationSettingsCommandError = async (out
1399
1327
  ...output,
1400
1328
  body: await parseBody(output.body, context),
1401
1329
  };
1402
- let response;
1403
1330
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1404
1331
  switch (errorCode) {
1405
1332
  case "TooManyBucketsException":
@@ -1407,14 +1334,12 @@ const deserializeAws_queryDescribeConfigurationSettingsCommandError = async (out
1407
1334
  throw await deserializeAws_queryTooManyBucketsExceptionResponse(parsedOutput, context);
1408
1335
  default:
1409
1336
  const parsedBody = parsedOutput.body;
1410
- const $metadata = deserializeMetadata(output);
1411
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1412
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1413
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1414
- $fault: "client",
1415
- $metadata,
1337
+ (0, smithy_client_1.throwDefaultError)({
1338
+ output,
1339
+ parsedBody: parsedBody.Error,
1340
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1341
+ errorCode,
1416
1342
  });
1417
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1418
1343
  }
1419
1344
  };
1420
1345
  const deserializeAws_queryDescribeEnvironmentHealthCommand = async (output, context) => {
@@ -1436,7 +1361,6 @@ const deserializeAws_queryDescribeEnvironmentHealthCommandError = async (output,
1436
1361
  ...output,
1437
1362
  body: await parseBody(output.body, context),
1438
1363
  };
1439
- let response;
1440
1364
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1441
1365
  switch (errorCode) {
1442
1366
  case "ElasticBeanstalkServiceException":
@@ -1447,14 +1371,12 @@ const deserializeAws_queryDescribeEnvironmentHealthCommandError = async (output,
1447
1371
  throw await deserializeAws_queryInvalidRequestExceptionResponse(parsedOutput, context);
1448
1372
  default:
1449
1373
  const parsedBody = parsedOutput.body;
1450
- const $metadata = deserializeMetadata(output);
1451
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1452
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1453
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1454
- $fault: "client",
1455
- $metadata,
1374
+ (0, smithy_client_1.throwDefaultError)({
1375
+ output,
1376
+ parsedBody: parsedBody.Error,
1377
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1378
+ errorCode,
1456
1379
  });
1457
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1458
1380
  }
1459
1381
  };
1460
1382
  const deserializeAws_queryDescribeEnvironmentManagedActionHistoryCommand = async (output, context) => {
@@ -1476,7 +1398,6 @@ const deserializeAws_queryDescribeEnvironmentManagedActionHistoryCommandError =
1476
1398
  ...output,
1477
1399
  body: await parseBody(output.body, context),
1478
1400
  };
1479
- let response;
1480
1401
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1481
1402
  switch (errorCode) {
1482
1403
  case "ElasticBeanstalkServiceException":
@@ -1484,14 +1405,12 @@ const deserializeAws_queryDescribeEnvironmentManagedActionHistoryCommandError =
1484
1405
  throw await deserializeAws_queryElasticBeanstalkServiceExceptionResponse(parsedOutput, context);
1485
1406
  default:
1486
1407
  const parsedBody = parsedOutput.body;
1487
- const $metadata = deserializeMetadata(output);
1488
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1489
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1490
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1491
- $fault: "client",
1492
- $metadata,
1408
+ (0, smithy_client_1.throwDefaultError)({
1409
+ output,
1410
+ parsedBody: parsedBody.Error,
1411
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1412
+ errorCode,
1493
1413
  });
1494
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1495
1414
  }
1496
1415
  };
1497
1416
  const deserializeAws_queryDescribeEnvironmentManagedActionsCommand = async (output, context) => {
@@ -1513,7 +1432,6 @@ const deserializeAws_queryDescribeEnvironmentManagedActionsCommandError = async
1513
1432
  ...output,
1514
1433
  body: await parseBody(output.body, context),
1515
1434
  };
1516
- let response;
1517
1435
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1518
1436
  switch (errorCode) {
1519
1437
  case "ElasticBeanstalkServiceException":
@@ -1521,14 +1439,12 @@ const deserializeAws_queryDescribeEnvironmentManagedActionsCommandError = async
1521
1439
  throw await deserializeAws_queryElasticBeanstalkServiceExceptionResponse(parsedOutput, context);
1522
1440
  default:
1523
1441
  const parsedBody = parsedOutput.body;
1524
- const $metadata = deserializeMetadata(output);
1525
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1526
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1527
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1528
- $fault: "client",
1529
- $metadata,
1442
+ (0, smithy_client_1.throwDefaultError)({
1443
+ output,
1444
+ parsedBody: parsedBody.Error,
1445
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1446
+ errorCode,
1530
1447
  });
1531
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1532
1448
  }
1533
1449
  };
1534
1450
  const deserializeAws_queryDescribeEnvironmentResourcesCommand = async (output, context) => {
@@ -1550,7 +1466,6 @@ const deserializeAws_queryDescribeEnvironmentResourcesCommandError = async (outp
1550
1466
  ...output,
1551
1467
  body: await parseBody(output.body, context),
1552
1468
  };
1553
- let response;
1554
1469
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1555
1470
  switch (errorCode) {
1556
1471
  case "InsufficientPrivilegesException":
@@ -1558,14 +1473,12 @@ const deserializeAws_queryDescribeEnvironmentResourcesCommandError = async (outp
1558
1473
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
1559
1474
  default:
1560
1475
  const parsedBody = parsedOutput.body;
1561
- const $metadata = deserializeMetadata(output);
1562
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1563
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1564
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1565
- $fault: "client",
1566
- $metadata,
1476
+ (0, smithy_client_1.throwDefaultError)({
1477
+ output,
1478
+ parsedBody: parsedBody.Error,
1479
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1480
+ errorCode,
1567
1481
  });
1568
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1569
1482
  }
1570
1483
  };
1571
1484
  const deserializeAws_queryDescribeEnvironmentsCommand = async (output, context) => {
@@ -1587,20 +1500,14 @@ const deserializeAws_queryDescribeEnvironmentsCommandError = async (output, cont
1587
1500
  ...output,
1588
1501
  body: await parseBody(output.body, context),
1589
1502
  };
1590
- let response;
1591
1503
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1592
- switch (errorCode) {
1593
- default:
1594
- const parsedBody = parsedOutput.body;
1595
- const $metadata = deserializeMetadata(output);
1596
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1597
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1598
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1599
- $fault: "client",
1600
- $metadata,
1601
- });
1602
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1603
- }
1504
+ const parsedBody = parsedOutput.body;
1505
+ (0, smithy_client_1.throwDefaultError)({
1506
+ output,
1507
+ parsedBody: parsedBody.Error,
1508
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1509
+ errorCode,
1510
+ });
1604
1511
  };
1605
1512
  const deserializeAws_queryDescribeEventsCommand = async (output, context) => {
1606
1513
  if (output.statusCode >= 300) {
@@ -1621,20 +1528,14 @@ const deserializeAws_queryDescribeEventsCommandError = async (output, context) =
1621
1528
  ...output,
1622
1529
  body: await parseBody(output.body, context),
1623
1530
  };
1624
- let response;
1625
1531
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1626
- switch (errorCode) {
1627
- default:
1628
- const parsedBody = parsedOutput.body;
1629
- const $metadata = deserializeMetadata(output);
1630
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1631
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1632
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1633
- $fault: "client",
1634
- $metadata,
1635
- });
1636
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1637
- }
1532
+ const parsedBody = parsedOutput.body;
1533
+ (0, smithy_client_1.throwDefaultError)({
1534
+ output,
1535
+ parsedBody: parsedBody.Error,
1536
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1537
+ errorCode,
1538
+ });
1638
1539
  };
1639
1540
  const deserializeAws_queryDescribeInstancesHealthCommand = async (output, context) => {
1640
1541
  if (output.statusCode >= 300) {
@@ -1655,7 +1556,6 @@ const deserializeAws_queryDescribeInstancesHealthCommandError = async (output, c
1655
1556
  ...output,
1656
1557
  body: await parseBody(output.body, context),
1657
1558
  };
1658
- let response;
1659
1559
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1660
1560
  switch (errorCode) {
1661
1561
  case "ElasticBeanstalkServiceException":
@@ -1666,14 +1566,12 @@ const deserializeAws_queryDescribeInstancesHealthCommandError = async (output, c
1666
1566
  throw await deserializeAws_queryInvalidRequestExceptionResponse(parsedOutput, context);
1667
1567
  default:
1668
1568
  const parsedBody = parsedOutput.body;
1669
- const $metadata = deserializeMetadata(output);
1670
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1671
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1672
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1673
- $fault: "client",
1674
- $metadata,
1569
+ (0, smithy_client_1.throwDefaultError)({
1570
+ output,
1571
+ parsedBody: parsedBody.Error,
1572
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1573
+ errorCode,
1675
1574
  });
1676
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1677
1575
  }
1678
1576
  };
1679
1577
  const deserializeAws_queryDescribePlatformVersionCommand = async (output, context) => {
@@ -1695,7 +1593,6 @@ const deserializeAws_queryDescribePlatformVersionCommandError = async (output, c
1695
1593
  ...output,
1696
1594
  body: await parseBody(output.body, context),
1697
1595
  };
1698
- let response;
1699
1596
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1700
1597
  switch (errorCode) {
1701
1598
  case "ElasticBeanstalkServiceException":
@@ -1706,14 +1603,12 @@ const deserializeAws_queryDescribePlatformVersionCommandError = async (output, c
1706
1603
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
1707
1604
  default:
1708
1605
  const parsedBody = parsedOutput.body;
1709
- const $metadata = deserializeMetadata(output);
1710
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1711
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1712
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1713
- $fault: "client",
1714
- $metadata,
1606
+ (0, smithy_client_1.throwDefaultError)({
1607
+ output,
1608
+ parsedBody: parsedBody.Error,
1609
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1610
+ errorCode,
1715
1611
  });
1716
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1717
1612
  }
1718
1613
  };
1719
1614
  const deserializeAws_queryDisassociateEnvironmentOperationsRoleCommand = async (output, context) => {
@@ -1732,7 +1627,6 @@ const deserializeAws_queryDisassociateEnvironmentOperationsRoleCommandError = as
1732
1627
  ...output,
1733
1628
  body: await parseBody(output.body, context),
1734
1629
  };
1735
- let response;
1736
1630
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1737
1631
  switch (errorCode) {
1738
1632
  case "InsufficientPrivilegesException":
@@ -1740,14 +1634,12 @@ const deserializeAws_queryDisassociateEnvironmentOperationsRoleCommandError = as
1740
1634
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
1741
1635
  default:
1742
1636
  const parsedBody = parsedOutput.body;
1743
- const $metadata = deserializeMetadata(output);
1744
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1745
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1746
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1747
- $fault: "client",
1748
- $metadata,
1637
+ (0, smithy_client_1.throwDefaultError)({
1638
+ output,
1639
+ parsedBody: parsedBody.Error,
1640
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1641
+ errorCode,
1749
1642
  });
1750
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1751
1643
  }
1752
1644
  };
1753
1645
  const deserializeAws_queryListAvailableSolutionStacksCommand = async (output, context) => {
@@ -1769,20 +1661,14 @@ const deserializeAws_queryListAvailableSolutionStacksCommandError = async (outpu
1769
1661
  ...output,
1770
1662
  body: await parseBody(output.body, context),
1771
1663
  };
1772
- let response;
1773
1664
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1774
- switch (errorCode) {
1775
- default:
1776
- const parsedBody = parsedOutput.body;
1777
- const $metadata = deserializeMetadata(output);
1778
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1779
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1780
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1781
- $fault: "client",
1782
- $metadata,
1783
- });
1784
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1785
- }
1665
+ const parsedBody = parsedOutput.body;
1666
+ (0, smithy_client_1.throwDefaultError)({
1667
+ output,
1668
+ parsedBody: parsedBody.Error,
1669
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1670
+ errorCode,
1671
+ });
1786
1672
  };
1787
1673
  const deserializeAws_queryListPlatformBranchesCommand = async (output, context) => {
1788
1674
  if (output.statusCode >= 300) {
@@ -1803,20 +1689,14 @@ const deserializeAws_queryListPlatformBranchesCommandError = async (output, cont
1803
1689
  ...output,
1804
1690
  body: await parseBody(output.body, context),
1805
1691
  };
1806
- let response;
1807
1692
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1808
- switch (errorCode) {
1809
- default:
1810
- const parsedBody = parsedOutput.body;
1811
- const $metadata = deserializeMetadata(output);
1812
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1813
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1814
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1815
- $fault: "client",
1816
- $metadata,
1817
- });
1818
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1819
- }
1693
+ const parsedBody = parsedOutput.body;
1694
+ (0, smithy_client_1.throwDefaultError)({
1695
+ output,
1696
+ parsedBody: parsedBody.Error,
1697
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1698
+ errorCode,
1699
+ });
1820
1700
  };
1821
1701
  const deserializeAws_queryListPlatformVersionsCommand = async (output, context) => {
1822
1702
  if (output.statusCode >= 300) {
@@ -1837,7 +1717,6 @@ const deserializeAws_queryListPlatformVersionsCommandError = async (output, cont
1837
1717
  ...output,
1838
1718
  body: await parseBody(output.body, context),
1839
1719
  };
1840
- let response;
1841
1720
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1842
1721
  switch (errorCode) {
1843
1722
  case "ElasticBeanstalkServiceException":
@@ -1848,14 +1727,12 @@ const deserializeAws_queryListPlatformVersionsCommandError = async (output, cont
1848
1727
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
1849
1728
  default:
1850
1729
  const parsedBody = parsedOutput.body;
1851
- const $metadata = deserializeMetadata(output);
1852
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1853
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1854
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1855
- $fault: "client",
1856
- $metadata,
1730
+ (0, smithy_client_1.throwDefaultError)({
1731
+ output,
1732
+ parsedBody: parsedBody.Error,
1733
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1734
+ errorCode,
1857
1735
  });
1858
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1859
1736
  }
1860
1737
  };
1861
1738
  const deserializeAws_queryListTagsForResourceCommand = async (output, context) => {
@@ -1877,7 +1754,6 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
1877
1754
  ...output,
1878
1755
  body: await parseBody(output.body, context),
1879
1756
  };
1880
- let response;
1881
1757
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1882
1758
  switch (errorCode) {
1883
1759
  case "InsufficientPrivilegesException":
@@ -1891,14 +1767,12 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
1891
1767
  throw await deserializeAws_queryResourceTypeNotSupportedExceptionResponse(parsedOutput, context);
1892
1768
  default:
1893
1769
  const parsedBody = parsedOutput.body;
1894
- const $metadata = deserializeMetadata(output);
1895
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1896
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1897
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1898
- $fault: "client",
1899
- $metadata,
1770
+ (0, smithy_client_1.throwDefaultError)({
1771
+ output,
1772
+ parsedBody: parsedBody.Error,
1773
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1774
+ errorCode,
1900
1775
  });
1901
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1902
1776
  }
1903
1777
  };
1904
1778
  const deserializeAws_queryRebuildEnvironmentCommand = async (output, context) => {
@@ -1917,7 +1791,6 @@ const deserializeAws_queryRebuildEnvironmentCommandError = async (output, contex
1917
1791
  ...output,
1918
1792
  body: await parseBody(output.body, context),
1919
1793
  };
1920
- let response;
1921
1794
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1922
1795
  switch (errorCode) {
1923
1796
  case "InsufficientPrivilegesException":
@@ -1925,14 +1798,12 @@ const deserializeAws_queryRebuildEnvironmentCommandError = async (output, contex
1925
1798
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
1926
1799
  default:
1927
1800
  const parsedBody = parsedOutput.body;
1928
- const $metadata = deserializeMetadata(output);
1929
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1930
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1931
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1932
- $fault: "client",
1933
- $metadata,
1801
+ (0, smithy_client_1.throwDefaultError)({
1802
+ output,
1803
+ parsedBody: parsedBody.Error,
1804
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1805
+ errorCode,
1934
1806
  });
1935
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1936
1807
  }
1937
1808
  };
1938
1809
  const deserializeAws_queryRequestEnvironmentInfoCommand = async (output, context) => {
@@ -1951,20 +1822,14 @@ const deserializeAws_queryRequestEnvironmentInfoCommandError = async (output, co
1951
1822
  ...output,
1952
1823
  body: await parseBody(output.body, context),
1953
1824
  };
1954
- let response;
1955
1825
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1956
- switch (errorCode) {
1957
- default:
1958
- const parsedBody = parsedOutput.body;
1959
- const $metadata = deserializeMetadata(output);
1960
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1961
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1962
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1963
- $fault: "client",
1964
- $metadata,
1965
- });
1966
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1967
- }
1826
+ const parsedBody = parsedOutput.body;
1827
+ (0, smithy_client_1.throwDefaultError)({
1828
+ output,
1829
+ parsedBody: parsedBody.Error,
1830
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1831
+ errorCode,
1832
+ });
1968
1833
  };
1969
1834
  const deserializeAws_queryRestartAppServerCommand = async (output, context) => {
1970
1835
  if (output.statusCode >= 300) {
@@ -1982,20 +1847,14 @@ const deserializeAws_queryRestartAppServerCommandError = async (output, context)
1982
1847
  ...output,
1983
1848
  body: await parseBody(output.body, context),
1984
1849
  };
1985
- let response;
1986
1850
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1987
- switch (errorCode) {
1988
- default:
1989
- const parsedBody = parsedOutput.body;
1990
- const $metadata = deserializeMetadata(output);
1991
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1992
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
1993
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1994
- $fault: "client",
1995
- $metadata,
1996
- });
1997
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1998
- }
1851
+ const parsedBody = parsedOutput.body;
1852
+ (0, smithy_client_1.throwDefaultError)({
1853
+ output,
1854
+ parsedBody: parsedBody.Error,
1855
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1856
+ errorCode,
1857
+ });
1999
1858
  };
2000
1859
  const deserializeAws_queryRetrieveEnvironmentInfoCommand = async (output, context) => {
2001
1860
  if (output.statusCode >= 300) {
@@ -2016,20 +1875,14 @@ const deserializeAws_queryRetrieveEnvironmentInfoCommandError = async (output, c
2016
1875
  ...output,
2017
1876
  body: await parseBody(output.body, context),
2018
1877
  };
2019
- let response;
2020
1878
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2021
- switch (errorCode) {
2022
- default:
2023
- const parsedBody = parsedOutput.body;
2024
- const $metadata = deserializeMetadata(output);
2025
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2026
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2027
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2028
- $fault: "client",
2029
- $metadata,
2030
- });
2031
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2032
- }
1879
+ const parsedBody = parsedOutput.body;
1880
+ (0, smithy_client_1.throwDefaultError)({
1881
+ output,
1882
+ parsedBody: parsedBody.Error,
1883
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1884
+ errorCode,
1885
+ });
2033
1886
  };
2034
1887
  const deserializeAws_querySwapEnvironmentCNAMEsCommand = async (output, context) => {
2035
1888
  if (output.statusCode >= 300) {
@@ -2047,20 +1900,14 @@ const deserializeAws_querySwapEnvironmentCNAMEsCommandError = async (output, con
2047
1900
  ...output,
2048
1901
  body: await parseBody(output.body, context),
2049
1902
  };
2050
- let response;
2051
1903
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2052
- switch (errorCode) {
2053
- default:
2054
- const parsedBody = parsedOutput.body;
2055
- const $metadata = deserializeMetadata(output);
2056
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2057
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2058
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2059
- $fault: "client",
2060
- $metadata,
2061
- });
2062
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2063
- }
1904
+ const parsedBody = parsedOutput.body;
1905
+ (0, smithy_client_1.throwDefaultError)({
1906
+ output,
1907
+ parsedBody: parsedBody.Error,
1908
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1909
+ errorCode,
1910
+ });
2064
1911
  };
2065
1912
  const deserializeAws_queryTerminateEnvironmentCommand = async (output, context) => {
2066
1913
  if (output.statusCode >= 300) {
@@ -2081,7 +1928,6 @@ const deserializeAws_queryTerminateEnvironmentCommandError = async (output, cont
2081
1928
  ...output,
2082
1929
  body: await parseBody(output.body, context),
2083
1930
  };
2084
- let response;
2085
1931
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2086
1932
  switch (errorCode) {
2087
1933
  case "InsufficientPrivilegesException":
@@ -2089,14 +1935,12 @@ const deserializeAws_queryTerminateEnvironmentCommandError = async (output, cont
2089
1935
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
2090
1936
  default:
2091
1937
  const parsedBody = parsedOutput.body;
2092
- const $metadata = deserializeMetadata(output);
2093
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2094
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2095
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2096
- $fault: "client",
2097
- $metadata,
1938
+ (0, smithy_client_1.throwDefaultError)({
1939
+ output,
1940
+ parsedBody: parsedBody.Error,
1941
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1942
+ errorCode,
2098
1943
  });
2099
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2100
1944
  }
2101
1945
  };
2102
1946
  const deserializeAws_queryUpdateApplicationCommand = async (output, context) => {
@@ -2118,20 +1962,14 @@ const deserializeAws_queryUpdateApplicationCommandError = async (output, context
2118
1962
  ...output,
2119
1963
  body: await parseBody(output.body, context),
2120
1964
  };
2121
- let response;
2122
1965
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2123
- switch (errorCode) {
2124
- default:
2125
- const parsedBody = parsedOutput.body;
2126
- const $metadata = deserializeMetadata(output);
2127
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2128
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2129
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2130
- $fault: "client",
2131
- $metadata,
2132
- });
2133
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2134
- }
1966
+ const parsedBody = parsedOutput.body;
1967
+ (0, smithy_client_1.throwDefaultError)({
1968
+ output,
1969
+ parsedBody: parsedBody.Error,
1970
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1971
+ errorCode,
1972
+ });
2135
1973
  };
2136
1974
  const deserializeAws_queryUpdateApplicationResourceLifecycleCommand = async (output, context) => {
2137
1975
  if (output.statusCode >= 300) {
@@ -2152,7 +1990,6 @@ const deserializeAws_queryUpdateApplicationResourceLifecycleCommandError = async
2152
1990
  ...output,
2153
1991
  body: await parseBody(output.body, context),
2154
1992
  };
2155
- let response;
2156
1993
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2157
1994
  switch (errorCode) {
2158
1995
  case "InsufficientPrivilegesException":
@@ -2160,14 +1997,12 @@ const deserializeAws_queryUpdateApplicationResourceLifecycleCommandError = async
2160
1997
  throw await deserializeAws_queryInsufficientPrivilegesExceptionResponse(parsedOutput, context);
2161
1998
  default:
2162
1999
  const parsedBody = parsedOutput.body;
2163
- const $metadata = deserializeMetadata(output);
2164
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2165
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2166
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2167
- $fault: "client",
2168
- $metadata,
2000
+ (0, smithy_client_1.throwDefaultError)({
2001
+ output,
2002
+ parsedBody: parsedBody.Error,
2003
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2004
+ errorCode,
2169
2005
  });
2170
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2171
2006
  }
2172
2007
  };
2173
2008
  const deserializeAws_queryUpdateApplicationVersionCommand = async (output, context) => {
@@ -2189,20 +2024,14 @@ const deserializeAws_queryUpdateApplicationVersionCommandError = async (output,
2189
2024
  ...output,
2190
2025
  body: await parseBody(output.body, context),
2191
2026
  };
2192
- let response;
2193
2027
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2194
- switch (errorCode) {
2195
- default:
2196
- const parsedBody = parsedOutput.body;
2197
- const $metadata = deserializeMetadata(output);
2198
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2199
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2200
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2201
- $fault: "client",
2202
- $metadata,
2203
- });
2204
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2205
- }
2028
+ const parsedBody = parsedOutput.body;
2029
+ (0, smithy_client_1.throwDefaultError)({
2030
+ output,
2031
+ parsedBody: parsedBody.Error,
2032
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2033
+ errorCode,
2034
+ });
2206
2035
  };
2207
2036
  const deserializeAws_queryUpdateConfigurationTemplateCommand = async (output, context) => {
2208
2037
  if (output.statusCode >= 300) {
@@ -2223,7 +2052,6 @@ const deserializeAws_queryUpdateConfigurationTemplateCommandError = async (outpu
2223
2052
  ...output,
2224
2053
  body: await parseBody(output.body, context),
2225
2054
  };
2226
- let response;
2227
2055
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2228
2056
  switch (errorCode) {
2229
2057
  case "InsufficientPrivilegesException":
@@ -2234,14 +2062,12 @@ const deserializeAws_queryUpdateConfigurationTemplateCommandError = async (outpu
2234
2062
  throw await deserializeAws_queryTooManyBucketsExceptionResponse(parsedOutput, context);
2235
2063
  default:
2236
2064
  const parsedBody = parsedOutput.body;
2237
- const $metadata = deserializeMetadata(output);
2238
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2239
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2240
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2241
- $fault: "client",
2242
- $metadata,
2065
+ (0, smithy_client_1.throwDefaultError)({
2066
+ output,
2067
+ parsedBody: parsedBody.Error,
2068
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2069
+ errorCode,
2243
2070
  });
2244
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2245
2071
  }
2246
2072
  };
2247
2073
  const deserializeAws_queryUpdateEnvironmentCommand = async (output, context) => {
@@ -2263,7 +2089,6 @@ const deserializeAws_queryUpdateEnvironmentCommandError = async (output, context
2263
2089
  ...output,
2264
2090
  body: await parseBody(output.body, context),
2265
2091
  };
2266
- let response;
2267
2092
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2268
2093
  switch (errorCode) {
2269
2094
  case "InsufficientPrivilegesException":
@@ -2274,14 +2099,12 @@ const deserializeAws_queryUpdateEnvironmentCommandError = async (output, context
2274
2099
  throw await deserializeAws_queryTooManyBucketsExceptionResponse(parsedOutput, context);
2275
2100
  default:
2276
2101
  const parsedBody = parsedOutput.body;
2277
- const $metadata = deserializeMetadata(output);
2278
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2279
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2280
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2281
- $fault: "client",
2282
- $metadata,
2102
+ (0, smithy_client_1.throwDefaultError)({
2103
+ output,
2104
+ parsedBody: parsedBody.Error,
2105
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2106
+ errorCode,
2283
2107
  });
2284
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2285
2108
  }
2286
2109
  };
2287
2110
  const deserializeAws_queryUpdateTagsForResourceCommand = async (output, context) => {
@@ -2300,7 +2123,6 @@ const deserializeAws_queryUpdateTagsForResourceCommandError = async (output, con
2300
2123
  ...output,
2301
2124
  body: await parseBody(output.body, context),
2302
2125
  };
2303
- let response;
2304
2126
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2305
2127
  switch (errorCode) {
2306
2128
  case "InsufficientPrivilegesException":
@@ -2320,14 +2142,12 @@ const deserializeAws_queryUpdateTagsForResourceCommandError = async (output, con
2320
2142
  throw await deserializeAws_queryTooManyTagsExceptionResponse(parsedOutput, context);
2321
2143
  default:
2322
2144
  const parsedBody = parsedOutput.body;
2323
- const $metadata = deserializeMetadata(output);
2324
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2325
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2326
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2327
- $fault: "client",
2328
- $metadata,
2145
+ (0, smithy_client_1.throwDefaultError)({
2146
+ output,
2147
+ parsedBody: parsedBody.Error,
2148
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2149
+ errorCode,
2329
2150
  });
2330
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2331
2151
  }
2332
2152
  };
2333
2153
  const deserializeAws_queryValidateConfigurationSettingsCommand = async (output, context) => {
@@ -2349,7 +2169,6 @@ const deserializeAws_queryValidateConfigurationSettingsCommandError = async (out
2349
2169
  ...output,
2350
2170
  body: await parseBody(output.body, context),
2351
2171
  };
2352
- let response;
2353
2172
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2354
2173
  switch (errorCode) {
2355
2174
  case "InsufficientPrivilegesException":
@@ -2360,14 +2179,12 @@ const deserializeAws_queryValidateConfigurationSettingsCommandError = async (out
2360
2179
  throw await deserializeAws_queryTooManyBucketsExceptionResponse(parsedOutput, context);
2361
2180
  default:
2362
2181
  const parsedBody = parsedOutput.body;
2363
- const $metadata = deserializeMetadata(output);
2364
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2365
- response = new ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException({
2366
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2367
- $fault: "client",
2368
- $metadata,
2182
+ (0, smithy_client_1.throwDefaultError)({
2183
+ output,
2184
+ parsedBody: parsedBody.Error,
2185
+ exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2186
+ errorCode,
2369
2187
  });
2370
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2371
2188
  }
2372
2189
  };
2373
2190
  const deserializeAws_queryCodeBuildNotInServiceRegionExceptionResponse = async (parsedOutput, context) => {
@@ -2543,10 +2360,10 @@ const deserializeAws_queryTooManyTagsExceptionResponse = async (parsedOutput, co
2543
2360
  };
2544
2361
  const serializeAws_queryAbortEnvironmentUpdateMessage = (input, context) => {
2545
2362
  const entries = {};
2546
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2363
+ if (input.EnvironmentId != null) {
2547
2364
  entries["EnvironmentId"] = input.EnvironmentId;
2548
2365
  }
2549
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2366
+ if (input.EnvironmentName != null) {
2550
2367
  entries["EnvironmentName"] = input.EnvironmentName;
2551
2368
  }
2552
2369
  return entries;
@@ -2565,10 +2382,10 @@ const serializeAws_queryApplicationNamesList = (input, context) => {
2565
2382
  };
2566
2383
  const serializeAws_queryApplicationResourceLifecycleConfig = (input, context) => {
2567
2384
  const entries = {};
2568
- if (input.ServiceRole !== undefined && input.ServiceRole !== null) {
2385
+ if (input.ServiceRole != null) {
2569
2386
  entries["ServiceRole"] = input.ServiceRole;
2570
2387
  }
2571
- if (input.VersionLifecycleConfig !== undefined && input.VersionLifecycleConfig !== null) {
2388
+ if (input.VersionLifecycleConfig != null) {
2572
2389
  const memberEntries = serializeAws_queryApplicationVersionLifecycleConfig(input.VersionLifecycleConfig, context);
2573
2390
  Object.entries(memberEntries).forEach(([key, value]) => {
2574
2391
  const loc = `VersionLifecycleConfig.${key}`;
@@ -2579,14 +2396,14 @@ const serializeAws_queryApplicationResourceLifecycleConfig = (input, context) =>
2579
2396
  };
2580
2397
  const serializeAws_queryApplicationVersionLifecycleConfig = (input, context) => {
2581
2398
  const entries = {};
2582
- if (input.MaxCountRule !== undefined && input.MaxCountRule !== null) {
2399
+ if (input.MaxCountRule != null) {
2583
2400
  const memberEntries = serializeAws_queryMaxCountRule(input.MaxCountRule, context);
2584
2401
  Object.entries(memberEntries).forEach(([key, value]) => {
2585
2402
  const loc = `MaxCountRule.${key}`;
2586
2403
  entries[loc] = value;
2587
2404
  });
2588
2405
  }
2589
- if (input.MaxAgeRule !== undefined && input.MaxAgeRule !== null) {
2406
+ if (input.MaxAgeRule != null) {
2590
2407
  const memberEntries = serializeAws_queryMaxAgeRule(input.MaxAgeRule, context);
2591
2408
  Object.entries(memberEntries).forEach(([key, value]) => {
2592
2409
  const loc = `MaxAgeRule.${key}`;
@@ -2597,62 +2414,62 @@ const serializeAws_queryApplicationVersionLifecycleConfig = (input, context) =>
2597
2414
  };
2598
2415
  const serializeAws_queryApplyEnvironmentManagedActionRequest = (input, context) => {
2599
2416
  const entries = {};
2600
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2417
+ if (input.EnvironmentName != null) {
2601
2418
  entries["EnvironmentName"] = input.EnvironmentName;
2602
2419
  }
2603
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2420
+ if (input.EnvironmentId != null) {
2604
2421
  entries["EnvironmentId"] = input.EnvironmentId;
2605
2422
  }
2606
- if (input.ActionId !== undefined && input.ActionId !== null) {
2423
+ if (input.ActionId != null) {
2607
2424
  entries["ActionId"] = input.ActionId;
2608
2425
  }
2609
2426
  return entries;
2610
2427
  };
2611
2428
  const serializeAws_queryAssociateEnvironmentOperationsRoleMessage = (input, context) => {
2612
2429
  const entries = {};
2613
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2430
+ if (input.EnvironmentName != null) {
2614
2431
  entries["EnvironmentName"] = input.EnvironmentName;
2615
2432
  }
2616
- if (input.OperationsRole !== undefined && input.OperationsRole !== null) {
2433
+ if (input.OperationsRole != null) {
2617
2434
  entries["OperationsRole"] = input.OperationsRole;
2618
2435
  }
2619
2436
  return entries;
2620
2437
  };
2621
2438
  const serializeAws_queryBuildConfiguration = (input, context) => {
2622
2439
  const entries = {};
2623
- if (input.ArtifactName !== undefined && input.ArtifactName !== null) {
2440
+ if (input.ArtifactName != null) {
2624
2441
  entries["ArtifactName"] = input.ArtifactName;
2625
2442
  }
2626
- if (input.CodeBuildServiceRole !== undefined && input.CodeBuildServiceRole !== null) {
2443
+ if (input.CodeBuildServiceRole != null) {
2627
2444
  entries["CodeBuildServiceRole"] = input.CodeBuildServiceRole;
2628
2445
  }
2629
- if (input.ComputeType !== undefined && input.ComputeType !== null) {
2446
+ if (input.ComputeType != null) {
2630
2447
  entries["ComputeType"] = input.ComputeType;
2631
2448
  }
2632
- if (input.Image !== undefined && input.Image !== null) {
2449
+ if (input.Image != null) {
2633
2450
  entries["Image"] = input.Image;
2634
2451
  }
2635
- if (input.TimeoutInMinutes !== undefined && input.TimeoutInMinutes !== null) {
2452
+ if (input.TimeoutInMinutes != null) {
2636
2453
  entries["TimeoutInMinutes"] = input.TimeoutInMinutes;
2637
2454
  }
2638
2455
  return entries;
2639
2456
  };
2640
2457
  const serializeAws_queryCheckDNSAvailabilityMessage = (input, context) => {
2641
2458
  const entries = {};
2642
- if (input.CNAMEPrefix !== undefined && input.CNAMEPrefix !== null) {
2459
+ if (input.CNAMEPrefix != null) {
2643
2460
  entries["CNAMEPrefix"] = input.CNAMEPrefix;
2644
2461
  }
2645
2462
  return entries;
2646
2463
  };
2647
2464
  const serializeAws_queryComposeEnvironmentsMessage = (input, context) => {
2648
2465
  const entries = {};
2649
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2466
+ if (input.ApplicationName != null) {
2650
2467
  entries["ApplicationName"] = input.ApplicationName;
2651
2468
  }
2652
- if (input.GroupName !== undefined && input.GroupName !== null) {
2469
+ if (input.GroupName != null) {
2653
2470
  entries["GroupName"] = input.GroupName;
2654
2471
  }
2655
- if (input.VersionLabels !== undefined && input.VersionLabels !== null) {
2472
+ if (input.VersionLabels != null) {
2656
2473
  const memberEntries = serializeAws_queryVersionLabels(input.VersionLabels, context);
2657
2474
  Object.entries(memberEntries).forEach(([key, value]) => {
2658
2475
  const loc = `VersionLabels.${key}`;
@@ -2663,16 +2480,16 @@ const serializeAws_queryComposeEnvironmentsMessage = (input, context) => {
2663
2480
  };
2664
2481
  const serializeAws_queryConfigurationOptionSetting = (input, context) => {
2665
2482
  const entries = {};
2666
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
2483
+ if (input.ResourceName != null) {
2667
2484
  entries["ResourceName"] = input.ResourceName;
2668
2485
  }
2669
- if (input.Namespace !== undefined && input.Namespace !== null) {
2486
+ if (input.Namespace != null) {
2670
2487
  entries["Namespace"] = input.Namespace;
2671
2488
  }
2672
- if (input.OptionName !== undefined && input.OptionName !== null) {
2489
+ if (input.OptionName != null) {
2673
2490
  entries["OptionName"] = input.OptionName;
2674
2491
  }
2675
- if (input.Value !== undefined && input.Value !== null) {
2492
+ if (input.Value != null) {
2676
2493
  entries["Value"] = input.Value;
2677
2494
  }
2678
2495
  return entries;
@@ -2694,20 +2511,20 @@ const serializeAws_queryConfigurationOptionSettingsList = (input, context) => {
2694
2511
  };
2695
2512
  const serializeAws_queryCreateApplicationMessage = (input, context) => {
2696
2513
  const entries = {};
2697
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2514
+ if (input.ApplicationName != null) {
2698
2515
  entries["ApplicationName"] = input.ApplicationName;
2699
2516
  }
2700
- if (input.Description !== undefined && input.Description !== null) {
2517
+ if (input.Description != null) {
2701
2518
  entries["Description"] = input.Description;
2702
2519
  }
2703
- if (input.ResourceLifecycleConfig !== undefined && input.ResourceLifecycleConfig !== null) {
2520
+ if (input.ResourceLifecycleConfig != null) {
2704
2521
  const memberEntries = serializeAws_queryApplicationResourceLifecycleConfig(input.ResourceLifecycleConfig, context);
2705
2522
  Object.entries(memberEntries).forEach(([key, value]) => {
2706
2523
  const loc = `ResourceLifecycleConfig.${key}`;
2707
2524
  entries[loc] = value;
2708
2525
  });
2709
2526
  }
2710
- if (input.Tags !== undefined && input.Tags !== null) {
2527
+ if (input.Tags != null) {
2711
2528
  const memberEntries = serializeAws_queryTags(input.Tags, context);
2712
2529
  Object.entries(memberEntries).forEach(([key, value]) => {
2713
2530
  const loc = `Tags.${key}`;
@@ -2718,43 +2535,43 @@ const serializeAws_queryCreateApplicationMessage = (input, context) => {
2718
2535
  };
2719
2536
  const serializeAws_queryCreateApplicationVersionMessage = (input, context) => {
2720
2537
  const entries = {};
2721
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2538
+ if (input.ApplicationName != null) {
2722
2539
  entries["ApplicationName"] = input.ApplicationName;
2723
2540
  }
2724
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
2541
+ if (input.VersionLabel != null) {
2725
2542
  entries["VersionLabel"] = input.VersionLabel;
2726
2543
  }
2727
- if (input.Description !== undefined && input.Description !== null) {
2544
+ if (input.Description != null) {
2728
2545
  entries["Description"] = input.Description;
2729
2546
  }
2730
- if (input.SourceBuildInformation !== undefined && input.SourceBuildInformation !== null) {
2547
+ if (input.SourceBuildInformation != null) {
2731
2548
  const memberEntries = serializeAws_querySourceBuildInformation(input.SourceBuildInformation, context);
2732
2549
  Object.entries(memberEntries).forEach(([key, value]) => {
2733
2550
  const loc = `SourceBuildInformation.${key}`;
2734
2551
  entries[loc] = value;
2735
2552
  });
2736
2553
  }
2737
- if (input.SourceBundle !== undefined && input.SourceBundle !== null) {
2554
+ if (input.SourceBundle != null) {
2738
2555
  const memberEntries = serializeAws_queryS3Location(input.SourceBundle, context);
2739
2556
  Object.entries(memberEntries).forEach(([key, value]) => {
2740
2557
  const loc = `SourceBundle.${key}`;
2741
2558
  entries[loc] = value;
2742
2559
  });
2743
2560
  }
2744
- if (input.BuildConfiguration !== undefined && input.BuildConfiguration !== null) {
2561
+ if (input.BuildConfiguration != null) {
2745
2562
  const memberEntries = serializeAws_queryBuildConfiguration(input.BuildConfiguration, context);
2746
2563
  Object.entries(memberEntries).forEach(([key, value]) => {
2747
2564
  const loc = `BuildConfiguration.${key}`;
2748
2565
  entries[loc] = value;
2749
2566
  });
2750
2567
  }
2751
- if (input.AutoCreateApplication !== undefined && input.AutoCreateApplication !== null) {
2568
+ if (input.AutoCreateApplication != null) {
2752
2569
  entries["AutoCreateApplication"] = input.AutoCreateApplication;
2753
2570
  }
2754
- if (input.Process !== undefined && input.Process !== null) {
2571
+ if (input.Process != null) {
2755
2572
  entries["Process"] = input.Process;
2756
2573
  }
2757
- if (input.Tags !== undefined && input.Tags !== null) {
2574
+ if (input.Tags != null) {
2758
2575
  const memberEntries = serializeAws_queryTags(input.Tags, context);
2759
2576
  Object.entries(memberEntries).forEach(([key, value]) => {
2760
2577
  const loc = `Tags.${key}`;
@@ -2765,39 +2582,39 @@ const serializeAws_queryCreateApplicationVersionMessage = (input, context) => {
2765
2582
  };
2766
2583
  const serializeAws_queryCreateConfigurationTemplateMessage = (input, context) => {
2767
2584
  const entries = {};
2768
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2585
+ if (input.ApplicationName != null) {
2769
2586
  entries["ApplicationName"] = input.ApplicationName;
2770
2587
  }
2771
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
2588
+ if (input.TemplateName != null) {
2772
2589
  entries["TemplateName"] = input.TemplateName;
2773
2590
  }
2774
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
2591
+ if (input.SolutionStackName != null) {
2775
2592
  entries["SolutionStackName"] = input.SolutionStackName;
2776
2593
  }
2777
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
2594
+ if (input.PlatformArn != null) {
2778
2595
  entries["PlatformArn"] = input.PlatformArn;
2779
2596
  }
2780
- if (input.SourceConfiguration !== undefined && input.SourceConfiguration !== null) {
2597
+ if (input.SourceConfiguration != null) {
2781
2598
  const memberEntries = serializeAws_querySourceConfiguration(input.SourceConfiguration, context);
2782
2599
  Object.entries(memberEntries).forEach(([key, value]) => {
2783
2600
  const loc = `SourceConfiguration.${key}`;
2784
2601
  entries[loc] = value;
2785
2602
  });
2786
2603
  }
2787
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2604
+ if (input.EnvironmentId != null) {
2788
2605
  entries["EnvironmentId"] = input.EnvironmentId;
2789
2606
  }
2790
- if (input.Description !== undefined && input.Description !== null) {
2607
+ if (input.Description != null) {
2791
2608
  entries["Description"] = input.Description;
2792
2609
  }
2793
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
2610
+ if (input.OptionSettings != null) {
2794
2611
  const memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
2795
2612
  Object.entries(memberEntries).forEach(([key, value]) => {
2796
2613
  const loc = `OptionSettings.${key}`;
2797
2614
  entries[loc] = value;
2798
2615
  });
2799
2616
  }
2800
- if (input.Tags !== undefined && input.Tags !== null) {
2617
+ if (input.Tags != null) {
2801
2618
  const memberEntries = serializeAws_queryTags(input.Tags, context);
2802
2619
  Object.entries(memberEntries).forEach(([key, value]) => {
2803
2620
  const loc = `Tags.${key}`;
@@ -2808,92 +2625,92 @@ const serializeAws_queryCreateConfigurationTemplateMessage = (input, context) =>
2808
2625
  };
2809
2626
  const serializeAws_queryCreateEnvironmentMessage = (input, context) => {
2810
2627
  const entries = {};
2811
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2628
+ if (input.ApplicationName != null) {
2812
2629
  entries["ApplicationName"] = input.ApplicationName;
2813
2630
  }
2814
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2631
+ if (input.EnvironmentName != null) {
2815
2632
  entries["EnvironmentName"] = input.EnvironmentName;
2816
2633
  }
2817
- if (input.GroupName !== undefined && input.GroupName !== null) {
2634
+ if (input.GroupName != null) {
2818
2635
  entries["GroupName"] = input.GroupName;
2819
2636
  }
2820
- if (input.Description !== undefined && input.Description !== null) {
2637
+ if (input.Description != null) {
2821
2638
  entries["Description"] = input.Description;
2822
2639
  }
2823
- if (input.CNAMEPrefix !== undefined && input.CNAMEPrefix !== null) {
2640
+ if (input.CNAMEPrefix != null) {
2824
2641
  entries["CNAMEPrefix"] = input.CNAMEPrefix;
2825
2642
  }
2826
- if (input.Tier !== undefined && input.Tier !== null) {
2643
+ if (input.Tier != null) {
2827
2644
  const memberEntries = serializeAws_queryEnvironmentTier(input.Tier, context);
2828
2645
  Object.entries(memberEntries).forEach(([key, value]) => {
2829
2646
  const loc = `Tier.${key}`;
2830
2647
  entries[loc] = value;
2831
2648
  });
2832
2649
  }
2833
- if (input.Tags !== undefined && input.Tags !== null) {
2650
+ if (input.Tags != null) {
2834
2651
  const memberEntries = serializeAws_queryTags(input.Tags, context);
2835
2652
  Object.entries(memberEntries).forEach(([key, value]) => {
2836
2653
  const loc = `Tags.${key}`;
2837
2654
  entries[loc] = value;
2838
2655
  });
2839
2656
  }
2840
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
2657
+ if (input.VersionLabel != null) {
2841
2658
  entries["VersionLabel"] = input.VersionLabel;
2842
2659
  }
2843
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
2660
+ if (input.TemplateName != null) {
2844
2661
  entries["TemplateName"] = input.TemplateName;
2845
2662
  }
2846
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
2663
+ if (input.SolutionStackName != null) {
2847
2664
  entries["SolutionStackName"] = input.SolutionStackName;
2848
2665
  }
2849
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
2666
+ if (input.PlatformArn != null) {
2850
2667
  entries["PlatformArn"] = input.PlatformArn;
2851
2668
  }
2852
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
2669
+ if (input.OptionSettings != null) {
2853
2670
  const memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
2854
2671
  Object.entries(memberEntries).forEach(([key, value]) => {
2855
2672
  const loc = `OptionSettings.${key}`;
2856
2673
  entries[loc] = value;
2857
2674
  });
2858
2675
  }
2859
- if (input.OptionsToRemove !== undefined && input.OptionsToRemove !== null) {
2676
+ if (input.OptionsToRemove != null) {
2860
2677
  const memberEntries = serializeAws_queryOptionsSpecifierList(input.OptionsToRemove, context);
2861
2678
  Object.entries(memberEntries).forEach(([key, value]) => {
2862
2679
  const loc = `OptionsToRemove.${key}`;
2863
2680
  entries[loc] = value;
2864
2681
  });
2865
2682
  }
2866
- if (input.OperationsRole !== undefined && input.OperationsRole !== null) {
2683
+ if (input.OperationsRole != null) {
2867
2684
  entries["OperationsRole"] = input.OperationsRole;
2868
2685
  }
2869
2686
  return entries;
2870
2687
  };
2871
2688
  const serializeAws_queryCreatePlatformVersionRequest = (input, context) => {
2872
2689
  const entries = {};
2873
- if (input.PlatformName !== undefined && input.PlatformName !== null) {
2690
+ if (input.PlatformName != null) {
2874
2691
  entries["PlatformName"] = input.PlatformName;
2875
2692
  }
2876
- if (input.PlatformVersion !== undefined && input.PlatformVersion !== null) {
2693
+ if (input.PlatformVersion != null) {
2877
2694
  entries["PlatformVersion"] = input.PlatformVersion;
2878
2695
  }
2879
- if (input.PlatformDefinitionBundle !== undefined && input.PlatformDefinitionBundle !== null) {
2696
+ if (input.PlatformDefinitionBundle != null) {
2880
2697
  const memberEntries = serializeAws_queryS3Location(input.PlatformDefinitionBundle, context);
2881
2698
  Object.entries(memberEntries).forEach(([key, value]) => {
2882
2699
  const loc = `PlatformDefinitionBundle.${key}`;
2883
2700
  entries[loc] = value;
2884
2701
  });
2885
2702
  }
2886
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2703
+ if (input.EnvironmentName != null) {
2887
2704
  entries["EnvironmentName"] = input.EnvironmentName;
2888
2705
  }
2889
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
2706
+ if (input.OptionSettings != null) {
2890
2707
  const memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
2891
2708
  Object.entries(memberEntries).forEach(([key, value]) => {
2892
2709
  const loc = `OptionSettings.${key}`;
2893
2710
  entries[loc] = value;
2894
2711
  });
2895
2712
  }
2896
- if (input.Tags !== undefined && input.Tags !== null) {
2713
+ if (input.Tags != null) {
2897
2714
  const memberEntries = serializeAws_queryTags(input.Tags, context);
2898
2715
  Object.entries(memberEntries).forEach(([key, value]) => {
2899
2716
  const loc = `Tags.${key}`;
@@ -2904,57 +2721,57 @@ const serializeAws_queryCreatePlatformVersionRequest = (input, context) => {
2904
2721
  };
2905
2722
  const serializeAws_queryDeleteApplicationMessage = (input, context) => {
2906
2723
  const entries = {};
2907
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2724
+ if (input.ApplicationName != null) {
2908
2725
  entries["ApplicationName"] = input.ApplicationName;
2909
2726
  }
2910
- if (input.TerminateEnvByForce !== undefined && input.TerminateEnvByForce !== null) {
2727
+ if (input.TerminateEnvByForce != null) {
2911
2728
  entries["TerminateEnvByForce"] = input.TerminateEnvByForce;
2912
2729
  }
2913
2730
  return entries;
2914
2731
  };
2915
2732
  const serializeAws_queryDeleteApplicationVersionMessage = (input, context) => {
2916
2733
  const entries = {};
2917
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2734
+ if (input.ApplicationName != null) {
2918
2735
  entries["ApplicationName"] = input.ApplicationName;
2919
2736
  }
2920
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
2737
+ if (input.VersionLabel != null) {
2921
2738
  entries["VersionLabel"] = input.VersionLabel;
2922
2739
  }
2923
- if (input.DeleteSourceBundle !== undefined && input.DeleteSourceBundle !== null) {
2740
+ if (input.DeleteSourceBundle != null) {
2924
2741
  entries["DeleteSourceBundle"] = input.DeleteSourceBundle;
2925
2742
  }
2926
2743
  return entries;
2927
2744
  };
2928
2745
  const serializeAws_queryDeleteConfigurationTemplateMessage = (input, context) => {
2929
2746
  const entries = {};
2930
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2747
+ if (input.ApplicationName != null) {
2931
2748
  entries["ApplicationName"] = input.ApplicationName;
2932
2749
  }
2933
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
2750
+ if (input.TemplateName != null) {
2934
2751
  entries["TemplateName"] = input.TemplateName;
2935
2752
  }
2936
2753
  return entries;
2937
2754
  };
2938
2755
  const serializeAws_queryDeleteEnvironmentConfigurationMessage = (input, context) => {
2939
2756
  const entries = {};
2940
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2757
+ if (input.ApplicationName != null) {
2941
2758
  entries["ApplicationName"] = input.ApplicationName;
2942
2759
  }
2943
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2760
+ if (input.EnvironmentName != null) {
2944
2761
  entries["EnvironmentName"] = input.EnvironmentName;
2945
2762
  }
2946
2763
  return entries;
2947
2764
  };
2948
2765
  const serializeAws_queryDeletePlatformVersionRequest = (input, context) => {
2949
2766
  const entries = {};
2950
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
2767
+ if (input.PlatformArn != null) {
2951
2768
  entries["PlatformArn"] = input.PlatformArn;
2952
2769
  }
2953
2770
  return entries;
2954
2771
  };
2955
2772
  const serializeAws_queryDescribeApplicationsMessage = (input, context) => {
2956
2773
  const entries = {};
2957
- if (input.ApplicationNames !== undefined && input.ApplicationNames !== null) {
2774
+ if (input.ApplicationNames != null) {
2958
2775
  const memberEntries = serializeAws_queryApplicationNamesList(input.ApplicationNames, context);
2959
2776
  Object.entries(memberEntries).forEach(([key, value]) => {
2960
2777
  const loc = `ApplicationNames.${key}`;
@@ -2965,42 +2782,42 @@ const serializeAws_queryDescribeApplicationsMessage = (input, context) => {
2965
2782
  };
2966
2783
  const serializeAws_queryDescribeApplicationVersionsMessage = (input, context) => {
2967
2784
  const entries = {};
2968
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2785
+ if (input.ApplicationName != null) {
2969
2786
  entries["ApplicationName"] = input.ApplicationName;
2970
2787
  }
2971
- if (input.VersionLabels !== undefined && input.VersionLabels !== null) {
2788
+ if (input.VersionLabels != null) {
2972
2789
  const memberEntries = serializeAws_queryVersionLabelsList(input.VersionLabels, context);
2973
2790
  Object.entries(memberEntries).forEach(([key, value]) => {
2974
2791
  const loc = `VersionLabels.${key}`;
2975
2792
  entries[loc] = value;
2976
2793
  });
2977
2794
  }
2978
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
2795
+ if (input.MaxRecords != null) {
2979
2796
  entries["MaxRecords"] = input.MaxRecords;
2980
2797
  }
2981
- if (input.NextToken !== undefined && input.NextToken !== null) {
2798
+ if (input.NextToken != null) {
2982
2799
  entries["NextToken"] = input.NextToken;
2983
2800
  }
2984
2801
  return entries;
2985
2802
  };
2986
2803
  const serializeAws_queryDescribeConfigurationOptionsMessage = (input, context) => {
2987
2804
  const entries = {};
2988
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2805
+ if (input.ApplicationName != null) {
2989
2806
  entries["ApplicationName"] = input.ApplicationName;
2990
2807
  }
2991
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
2808
+ if (input.TemplateName != null) {
2992
2809
  entries["TemplateName"] = input.TemplateName;
2993
2810
  }
2994
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2811
+ if (input.EnvironmentName != null) {
2995
2812
  entries["EnvironmentName"] = input.EnvironmentName;
2996
2813
  }
2997
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
2814
+ if (input.SolutionStackName != null) {
2998
2815
  entries["SolutionStackName"] = input.SolutionStackName;
2999
2816
  }
3000
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
2817
+ if (input.PlatformArn != null) {
3001
2818
  entries["PlatformArn"] = input.PlatformArn;
3002
2819
  }
3003
- if (input.Options !== undefined && input.Options !== null) {
2820
+ if (input.Options != null) {
3004
2821
  const memberEntries = serializeAws_queryOptionsSpecifierList(input.Options, context);
3005
2822
  Object.entries(memberEntries).forEach(([key, value]) => {
3006
2823
  const loc = `Options.${key}`;
@@ -3011,26 +2828,26 @@ const serializeAws_queryDescribeConfigurationOptionsMessage = (input, context) =
3011
2828
  };
3012
2829
  const serializeAws_queryDescribeConfigurationSettingsMessage = (input, context) => {
3013
2830
  const entries = {};
3014
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2831
+ if (input.ApplicationName != null) {
3015
2832
  entries["ApplicationName"] = input.ApplicationName;
3016
2833
  }
3017
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
2834
+ if (input.TemplateName != null) {
3018
2835
  entries["TemplateName"] = input.TemplateName;
3019
2836
  }
3020
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2837
+ if (input.EnvironmentName != null) {
3021
2838
  entries["EnvironmentName"] = input.EnvironmentName;
3022
2839
  }
3023
2840
  return entries;
3024
2841
  };
3025
2842
  const serializeAws_queryDescribeEnvironmentHealthRequest = (input, context) => {
3026
2843
  const entries = {};
3027
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2844
+ if (input.EnvironmentName != null) {
3028
2845
  entries["EnvironmentName"] = input.EnvironmentName;
3029
2846
  }
3030
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2847
+ if (input.EnvironmentId != null) {
3031
2848
  entries["EnvironmentId"] = input.EnvironmentId;
3032
2849
  }
3033
- if (input.AttributeNames !== undefined && input.AttributeNames !== null) {
2850
+ if (input.AttributeNames != null) {
3034
2851
  const memberEntries = serializeAws_queryEnvironmentHealthAttributes(input.AttributeNames, context);
3035
2852
  Object.entries(memberEntries).forEach(([key, value]) => {
3036
2853
  const loc = `AttributeNames.${key}`;
@@ -3041,149 +2858,149 @@ const serializeAws_queryDescribeEnvironmentHealthRequest = (input, context) => {
3041
2858
  };
3042
2859
  const serializeAws_queryDescribeEnvironmentManagedActionHistoryRequest = (input, context) => {
3043
2860
  const entries = {};
3044
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2861
+ if (input.EnvironmentId != null) {
3045
2862
  entries["EnvironmentId"] = input.EnvironmentId;
3046
2863
  }
3047
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2864
+ if (input.EnvironmentName != null) {
3048
2865
  entries["EnvironmentName"] = input.EnvironmentName;
3049
2866
  }
3050
- if (input.NextToken !== undefined && input.NextToken !== null) {
2867
+ if (input.NextToken != null) {
3051
2868
  entries["NextToken"] = input.NextToken;
3052
2869
  }
3053
- if (input.MaxItems !== undefined && input.MaxItems !== null) {
2870
+ if (input.MaxItems != null) {
3054
2871
  entries["MaxItems"] = input.MaxItems;
3055
2872
  }
3056
2873
  return entries;
3057
2874
  };
3058
2875
  const serializeAws_queryDescribeEnvironmentManagedActionsRequest = (input, context) => {
3059
2876
  const entries = {};
3060
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2877
+ if (input.EnvironmentName != null) {
3061
2878
  entries["EnvironmentName"] = input.EnvironmentName;
3062
2879
  }
3063
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2880
+ if (input.EnvironmentId != null) {
3064
2881
  entries["EnvironmentId"] = input.EnvironmentId;
3065
2882
  }
3066
- if (input.Status !== undefined && input.Status !== null) {
2883
+ if (input.Status != null) {
3067
2884
  entries["Status"] = input.Status;
3068
2885
  }
3069
2886
  return entries;
3070
2887
  };
3071
2888
  const serializeAws_queryDescribeEnvironmentResourcesMessage = (input, context) => {
3072
2889
  const entries = {};
3073
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2890
+ if (input.EnvironmentId != null) {
3074
2891
  entries["EnvironmentId"] = input.EnvironmentId;
3075
2892
  }
3076
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2893
+ if (input.EnvironmentName != null) {
3077
2894
  entries["EnvironmentName"] = input.EnvironmentName;
3078
2895
  }
3079
2896
  return entries;
3080
2897
  };
3081
2898
  const serializeAws_queryDescribeEnvironmentsMessage = (input, context) => {
3082
2899
  const entries = {};
3083
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2900
+ if (input.ApplicationName != null) {
3084
2901
  entries["ApplicationName"] = input.ApplicationName;
3085
2902
  }
3086
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
2903
+ if (input.VersionLabel != null) {
3087
2904
  entries["VersionLabel"] = input.VersionLabel;
3088
2905
  }
3089
- if (input.EnvironmentIds !== undefined && input.EnvironmentIds !== null) {
2906
+ if (input.EnvironmentIds != null) {
3090
2907
  const memberEntries = serializeAws_queryEnvironmentIdList(input.EnvironmentIds, context);
3091
2908
  Object.entries(memberEntries).forEach(([key, value]) => {
3092
2909
  const loc = `EnvironmentIds.${key}`;
3093
2910
  entries[loc] = value;
3094
2911
  });
3095
2912
  }
3096
- if (input.EnvironmentNames !== undefined && input.EnvironmentNames !== null) {
2913
+ if (input.EnvironmentNames != null) {
3097
2914
  const memberEntries = serializeAws_queryEnvironmentNamesList(input.EnvironmentNames, context);
3098
2915
  Object.entries(memberEntries).forEach(([key, value]) => {
3099
2916
  const loc = `EnvironmentNames.${key}`;
3100
2917
  entries[loc] = value;
3101
2918
  });
3102
2919
  }
3103
- if (input.IncludeDeleted !== undefined && input.IncludeDeleted !== null) {
2920
+ if (input.IncludeDeleted != null) {
3104
2921
  entries["IncludeDeleted"] = input.IncludeDeleted;
3105
2922
  }
3106
- if (input.IncludedDeletedBackTo !== undefined && input.IncludedDeletedBackTo !== null) {
2923
+ if (input.IncludedDeletedBackTo != null) {
3107
2924
  entries["IncludedDeletedBackTo"] = input.IncludedDeletedBackTo.toISOString().split(".")[0] + "Z";
3108
2925
  }
3109
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
2926
+ if (input.MaxRecords != null) {
3110
2927
  entries["MaxRecords"] = input.MaxRecords;
3111
2928
  }
3112
- if (input.NextToken !== undefined && input.NextToken !== null) {
2929
+ if (input.NextToken != null) {
3113
2930
  entries["NextToken"] = input.NextToken;
3114
2931
  }
3115
2932
  return entries;
3116
2933
  };
3117
2934
  const serializeAws_queryDescribeEventsMessage = (input, context) => {
3118
2935
  const entries = {};
3119
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
2936
+ if (input.ApplicationName != null) {
3120
2937
  entries["ApplicationName"] = input.ApplicationName;
3121
2938
  }
3122
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
2939
+ if (input.VersionLabel != null) {
3123
2940
  entries["VersionLabel"] = input.VersionLabel;
3124
2941
  }
3125
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
2942
+ if (input.TemplateName != null) {
3126
2943
  entries["TemplateName"] = input.TemplateName;
3127
2944
  }
3128
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2945
+ if (input.EnvironmentId != null) {
3129
2946
  entries["EnvironmentId"] = input.EnvironmentId;
3130
2947
  }
3131
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2948
+ if (input.EnvironmentName != null) {
3132
2949
  entries["EnvironmentName"] = input.EnvironmentName;
3133
2950
  }
3134
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
2951
+ if (input.PlatformArn != null) {
3135
2952
  entries["PlatformArn"] = input.PlatformArn;
3136
2953
  }
3137
- if (input.RequestId !== undefined && input.RequestId !== null) {
2954
+ if (input.RequestId != null) {
3138
2955
  entries["RequestId"] = input.RequestId;
3139
2956
  }
3140
- if (input.Severity !== undefined && input.Severity !== null) {
2957
+ if (input.Severity != null) {
3141
2958
  entries["Severity"] = input.Severity;
3142
2959
  }
3143
- if (input.StartTime !== undefined && input.StartTime !== null) {
2960
+ if (input.StartTime != null) {
3144
2961
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
3145
2962
  }
3146
- if (input.EndTime !== undefined && input.EndTime !== null) {
2963
+ if (input.EndTime != null) {
3147
2964
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
3148
2965
  }
3149
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
2966
+ if (input.MaxRecords != null) {
3150
2967
  entries["MaxRecords"] = input.MaxRecords;
3151
2968
  }
3152
- if (input.NextToken !== undefined && input.NextToken !== null) {
2969
+ if (input.NextToken != null) {
3153
2970
  entries["NextToken"] = input.NextToken;
3154
2971
  }
3155
2972
  return entries;
3156
2973
  };
3157
2974
  const serializeAws_queryDescribeInstancesHealthRequest = (input, context) => {
3158
2975
  const entries = {};
3159
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
2976
+ if (input.EnvironmentName != null) {
3160
2977
  entries["EnvironmentName"] = input.EnvironmentName;
3161
2978
  }
3162
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
2979
+ if (input.EnvironmentId != null) {
3163
2980
  entries["EnvironmentId"] = input.EnvironmentId;
3164
2981
  }
3165
- if (input.AttributeNames !== undefined && input.AttributeNames !== null) {
2982
+ if (input.AttributeNames != null) {
3166
2983
  const memberEntries = serializeAws_queryInstancesHealthAttributes(input.AttributeNames, context);
3167
2984
  Object.entries(memberEntries).forEach(([key, value]) => {
3168
2985
  const loc = `AttributeNames.${key}`;
3169
2986
  entries[loc] = value;
3170
2987
  });
3171
2988
  }
3172
- if (input.NextToken !== undefined && input.NextToken !== null) {
2989
+ if (input.NextToken != null) {
3173
2990
  entries["NextToken"] = input.NextToken;
3174
2991
  }
3175
2992
  return entries;
3176
2993
  };
3177
2994
  const serializeAws_queryDescribePlatformVersionRequest = (input, context) => {
3178
2995
  const entries = {};
3179
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
2996
+ if (input.PlatformArn != null) {
3180
2997
  entries["PlatformArn"] = input.PlatformArn;
3181
2998
  }
3182
2999
  return entries;
3183
3000
  };
3184
3001
  const serializeAws_queryDisassociateEnvironmentOperationsRoleMessage = (input, context) => {
3185
3002
  const entries = {};
3186
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3003
+ if (input.EnvironmentName != null) {
3187
3004
  entries["EnvironmentName"] = input.EnvironmentName;
3188
3005
  }
3189
3006
  return entries;
@@ -3226,13 +3043,13 @@ const serializeAws_queryEnvironmentNamesList = (input, context) => {
3226
3043
  };
3227
3044
  const serializeAws_queryEnvironmentTier = (input, context) => {
3228
3045
  const entries = {};
3229
- if (input.Name !== undefined && input.Name !== null) {
3046
+ if (input.Name != null) {
3230
3047
  entries["Name"] = input.Name;
3231
3048
  }
3232
- if (input.Type !== undefined && input.Type !== null) {
3049
+ if (input.Type != null) {
3233
3050
  entries["Type"] = input.Type;
3234
3051
  }
3235
- if (input.Version !== undefined && input.Version !== null) {
3052
+ if (input.Version != null) {
3236
3053
  entries["Version"] = input.Version;
3237
3054
  }
3238
3055
  return entries;
@@ -3251,80 +3068,80 @@ const serializeAws_queryInstancesHealthAttributes = (input, context) => {
3251
3068
  };
3252
3069
  const serializeAws_queryListPlatformBranchesRequest = (input, context) => {
3253
3070
  const entries = {};
3254
- if (input.Filters !== undefined && input.Filters !== null) {
3071
+ if (input.Filters != null) {
3255
3072
  const memberEntries = serializeAws_querySearchFilters(input.Filters, context);
3256
3073
  Object.entries(memberEntries).forEach(([key, value]) => {
3257
3074
  const loc = `Filters.${key}`;
3258
3075
  entries[loc] = value;
3259
3076
  });
3260
3077
  }
3261
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
3078
+ if (input.MaxRecords != null) {
3262
3079
  entries["MaxRecords"] = input.MaxRecords;
3263
3080
  }
3264
- if (input.NextToken !== undefined && input.NextToken !== null) {
3081
+ if (input.NextToken != null) {
3265
3082
  entries["NextToken"] = input.NextToken;
3266
3083
  }
3267
3084
  return entries;
3268
3085
  };
3269
3086
  const serializeAws_queryListPlatformVersionsRequest = (input, context) => {
3270
3087
  const entries = {};
3271
- if (input.Filters !== undefined && input.Filters !== null) {
3088
+ if (input.Filters != null) {
3272
3089
  const memberEntries = serializeAws_queryPlatformFilters(input.Filters, context);
3273
3090
  Object.entries(memberEntries).forEach(([key, value]) => {
3274
3091
  const loc = `Filters.${key}`;
3275
3092
  entries[loc] = value;
3276
3093
  });
3277
3094
  }
3278
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
3095
+ if (input.MaxRecords != null) {
3279
3096
  entries["MaxRecords"] = input.MaxRecords;
3280
3097
  }
3281
- if (input.NextToken !== undefined && input.NextToken !== null) {
3098
+ if (input.NextToken != null) {
3282
3099
  entries["NextToken"] = input.NextToken;
3283
3100
  }
3284
3101
  return entries;
3285
3102
  };
3286
3103
  const serializeAws_queryListTagsForResourceMessage = (input, context) => {
3287
3104
  const entries = {};
3288
- if (input.ResourceArn !== undefined && input.ResourceArn !== null) {
3105
+ if (input.ResourceArn != null) {
3289
3106
  entries["ResourceArn"] = input.ResourceArn;
3290
3107
  }
3291
3108
  return entries;
3292
3109
  };
3293
3110
  const serializeAws_queryMaxAgeRule = (input, context) => {
3294
3111
  const entries = {};
3295
- if (input.Enabled !== undefined && input.Enabled !== null) {
3112
+ if (input.Enabled != null) {
3296
3113
  entries["Enabled"] = input.Enabled;
3297
3114
  }
3298
- if (input.MaxAgeInDays !== undefined && input.MaxAgeInDays !== null) {
3115
+ if (input.MaxAgeInDays != null) {
3299
3116
  entries["MaxAgeInDays"] = input.MaxAgeInDays;
3300
3117
  }
3301
- if (input.DeleteSourceFromS3 !== undefined && input.DeleteSourceFromS3 !== null) {
3118
+ if (input.DeleteSourceFromS3 != null) {
3302
3119
  entries["DeleteSourceFromS3"] = input.DeleteSourceFromS3;
3303
3120
  }
3304
3121
  return entries;
3305
3122
  };
3306
3123
  const serializeAws_queryMaxCountRule = (input, context) => {
3307
3124
  const entries = {};
3308
- if (input.Enabled !== undefined && input.Enabled !== null) {
3125
+ if (input.Enabled != null) {
3309
3126
  entries["Enabled"] = input.Enabled;
3310
3127
  }
3311
- if (input.MaxCount !== undefined && input.MaxCount !== null) {
3128
+ if (input.MaxCount != null) {
3312
3129
  entries["MaxCount"] = input.MaxCount;
3313
3130
  }
3314
- if (input.DeleteSourceFromS3 !== undefined && input.DeleteSourceFromS3 !== null) {
3131
+ if (input.DeleteSourceFromS3 != null) {
3315
3132
  entries["DeleteSourceFromS3"] = input.DeleteSourceFromS3;
3316
3133
  }
3317
3134
  return entries;
3318
3135
  };
3319
3136
  const serializeAws_queryOptionSpecification = (input, context) => {
3320
3137
  const entries = {};
3321
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
3138
+ if (input.ResourceName != null) {
3322
3139
  entries["ResourceName"] = input.ResourceName;
3323
3140
  }
3324
- if (input.Namespace !== undefined && input.Namespace !== null) {
3141
+ if (input.Namespace != null) {
3325
3142
  entries["Namespace"] = input.Namespace;
3326
3143
  }
3327
- if (input.OptionName !== undefined && input.OptionName !== null) {
3144
+ if (input.OptionName != null) {
3328
3145
  entries["OptionName"] = input.OptionName;
3329
3146
  }
3330
3147
  return entries;
@@ -3346,13 +3163,13 @@ const serializeAws_queryOptionsSpecifierList = (input, context) => {
3346
3163
  };
3347
3164
  const serializeAws_queryPlatformFilter = (input, context) => {
3348
3165
  const entries = {};
3349
- if (input.Type !== undefined && input.Type !== null) {
3166
+ if (input.Type != null) {
3350
3167
  entries["Type"] = input.Type;
3351
3168
  }
3352
- if (input.Operator !== undefined && input.Operator !== null) {
3169
+ if (input.Operator != null) {
3353
3170
  entries["Operator"] = input.Operator;
3354
3171
  }
3355
- if (input.Values !== undefined && input.Values !== null) {
3172
+ if (input.Values != null) {
3356
3173
  const memberEntries = serializeAws_queryPlatformFilterValueList(input.Values, context);
3357
3174
  Object.entries(memberEntries).forEach(([key, value]) => {
3358
3175
  const loc = `Values.${key}`;
@@ -3390,69 +3207,69 @@ const serializeAws_queryPlatformFilterValueList = (input, context) => {
3390
3207
  };
3391
3208
  const serializeAws_queryRebuildEnvironmentMessage = (input, context) => {
3392
3209
  const entries = {};
3393
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3210
+ if (input.EnvironmentId != null) {
3394
3211
  entries["EnvironmentId"] = input.EnvironmentId;
3395
3212
  }
3396
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3213
+ if (input.EnvironmentName != null) {
3397
3214
  entries["EnvironmentName"] = input.EnvironmentName;
3398
3215
  }
3399
3216
  return entries;
3400
3217
  };
3401
3218
  const serializeAws_queryRequestEnvironmentInfoMessage = (input, context) => {
3402
3219
  const entries = {};
3403
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3220
+ if (input.EnvironmentId != null) {
3404
3221
  entries["EnvironmentId"] = input.EnvironmentId;
3405
3222
  }
3406
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3223
+ if (input.EnvironmentName != null) {
3407
3224
  entries["EnvironmentName"] = input.EnvironmentName;
3408
3225
  }
3409
- if (input.InfoType !== undefined && input.InfoType !== null) {
3226
+ if (input.InfoType != null) {
3410
3227
  entries["InfoType"] = input.InfoType;
3411
3228
  }
3412
3229
  return entries;
3413
3230
  };
3414
3231
  const serializeAws_queryRestartAppServerMessage = (input, context) => {
3415
3232
  const entries = {};
3416
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3233
+ if (input.EnvironmentId != null) {
3417
3234
  entries["EnvironmentId"] = input.EnvironmentId;
3418
3235
  }
3419
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3236
+ if (input.EnvironmentName != null) {
3420
3237
  entries["EnvironmentName"] = input.EnvironmentName;
3421
3238
  }
3422
3239
  return entries;
3423
3240
  };
3424
3241
  const serializeAws_queryRetrieveEnvironmentInfoMessage = (input, context) => {
3425
3242
  const entries = {};
3426
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3243
+ if (input.EnvironmentId != null) {
3427
3244
  entries["EnvironmentId"] = input.EnvironmentId;
3428
3245
  }
3429
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3246
+ if (input.EnvironmentName != null) {
3430
3247
  entries["EnvironmentName"] = input.EnvironmentName;
3431
3248
  }
3432
- if (input.InfoType !== undefined && input.InfoType !== null) {
3249
+ if (input.InfoType != null) {
3433
3250
  entries["InfoType"] = input.InfoType;
3434
3251
  }
3435
3252
  return entries;
3436
3253
  };
3437
3254
  const serializeAws_queryS3Location = (input, context) => {
3438
3255
  const entries = {};
3439
- if (input.S3Bucket !== undefined && input.S3Bucket !== null) {
3256
+ if (input.S3Bucket != null) {
3440
3257
  entries["S3Bucket"] = input.S3Bucket;
3441
3258
  }
3442
- if (input.S3Key !== undefined && input.S3Key !== null) {
3259
+ if (input.S3Key != null) {
3443
3260
  entries["S3Key"] = input.S3Key;
3444
3261
  }
3445
3262
  return entries;
3446
3263
  };
3447
3264
  const serializeAws_querySearchFilter = (input, context) => {
3448
3265
  const entries = {};
3449
- if (input.Attribute !== undefined && input.Attribute !== null) {
3266
+ if (input.Attribute != null) {
3450
3267
  entries["Attribute"] = input.Attribute;
3451
3268
  }
3452
- if (input.Operator !== undefined && input.Operator !== null) {
3269
+ if (input.Operator != null) {
3453
3270
  entries["Operator"] = input.Operator;
3454
3271
  }
3455
- if (input.Values !== undefined && input.Values !== null) {
3272
+ if (input.Values != null) {
3456
3273
  const memberEntries = serializeAws_querySearchFilterValues(input.Values, context);
3457
3274
  Object.entries(memberEntries).forEach(([key, value]) => {
3458
3275
  const loc = `Values.${key}`;
@@ -3490,49 +3307,49 @@ const serializeAws_querySearchFilterValues = (input, context) => {
3490
3307
  };
3491
3308
  const serializeAws_querySourceBuildInformation = (input, context) => {
3492
3309
  const entries = {};
3493
- if (input.SourceType !== undefined && input.SourceType !== null) {
3310
+ if (input.SourceType != null) {
3494
3311
  entries["SourceType"] = input.SourceType;
3495
3312
  }
3496
- if (input.SourceRepository !== undefined && input.SourceRepository !== null) {
3313
+ if (input.SourceRepository != null) {
3497
3314
  entries["SourceRepository"] = input.SourceRepository;
3498
3315
  }
3499
- if (input.SourceLocation !== undefined && input.SourceLocation !== null) {
3316
+ if (input.SourceLocation != null) {
3500
3317
  entries["SourceLocation"] = input.SourceLocation;
3501
3318
  }
3502
3319
  return entries;
3503
3320
  };
3504
3321
  const serializeAws_querySourceConfiguration = (input, context) => {
3505
3322
  const entries = {};
3506
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3323
+ if (input.ApplicationName != null) {
3507
3324
  entries["ApplicationName"] = input.ApplicationName;
3508
3325
  }
3509
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3326
+ if (input.TemplateName != null) {
3510
3327
  entries["TemplateName"] = input.TemplateName;
3511
3328
  }
3512
3329
  return entries;
3513
3330
  };
3514
3331
  const serializeAws_querySwapEnvironmentCNAMEsMessage = (input, context) => {
3515
3332
  const entries = {};
3516
- if (input.SourceEnvironmentId !== undefined && input.SourceEnvironmentId !== null) {
3333
+ if (input.SourceEnvironmentId != null) {
3517
3334
  entries["SourceEnvironmentId"] = input.SourceEnvironmentId;
3518
3335
  }
3519
- if (input.SourceEnvironmentName !== undefined && input.SourceEnvironmentName !== null) {
3336
+ if (input.SourceEnvironmentName != null) {
3520
3337
  entries["SourceEnvironmentName"] = input.SourceEnvironmentName;
3521
3338
  }
3522
- if (input.DestinationEnvironmentId !== undefined && input.DestinationEnvironmentId !== null) {
3339
+ if (input.DestinationEnvironmentId != null) {
3523
3340
  entries["DestinationEnvironmentId"] = input.DestinationEnvironmentId;
3524
3341
  }
3525
- if (input.DestinationEnvironmentName !== undefined && input.DestinationEnvironmentName !== null) {
3342
+ if (input.DestinationEnvironmentName != null) {
3526
3343
  entries["DestinationEnvironmentName"] = input.DestinationEnvironmentName;
3527
3344
  }
3528
3345
  return entries;
3529
3346
  };
3530
3347
  const serializeAws_queryTag = (input, context) => {
3531
3348
  const entries = {};
3532
- if (input.Key !== undefined && input.Key !== null) {
3349
+ if (input.Key != null) {
3533
3350
  entries["Key"] = input.Key;
3534
3351
  }
3535
- if (input.Value !== undefined && input.Value !== null) {
3352
+ if (input.Value != null) {
3536
3353
  entries["Value"] = input.Value;
3537
3354
  }
3538
3355
  return entries;
@@ -3581,36 +3398,36 @@ const serializeAws_queryTags = (input, context) => {
3581
3398
  };
3582
3399
  const serializeAws_queryTerminateEnvironmentMessage = (input, context) => {
3583
3400
  const entries = {};
3584
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3401
+ if (input.EnvironmentId != null) {
3585
3402
  entries["EnvironmentId"] = input.EnvironmentId;
3586
3403
  }
3587
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3404
+ if (input.EnvironmentName != null) {
3588
3405
  entries["EnvironmentName"] = input.EnvironmentName;
3589
3406
  }
3590
- if (input.TerminateResources !== undefined && input.TerminateResources !== null) {
3407
+ if (input.TerminateResources != null) {
3591
3408
  entries["TerminateResources"] = input.TerminateResources;
3592
3409
  }
3593
- if (input.ForceTerminate !== undefined && input.ForceTerminate !== null) {
3410
+ if (input.ForceTerminate != null) {
3594
3411
  entries["ForceTerminate"] = input.ForceTerminate;
3595
3412
  }
3596
3413
  return entries;
3597
3414
  };
3598
3415
  const serializeAws_queryUpdateApplicationMessage = (input, context) => {
3599
3416
  const entries = {};
3600
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3417
+ if (input.ApplicationName != null) {
3601
3418
  entries["ApplicationName"] = input.ApplicationName;
3602
3419
  }
3603
- if (input.Description !== undefined && input.Description !== null) {
3420
+ if (input.Description != null) {
3604
3421
  entries["Description"] = input.Description;
3605
3422
  }
3606
3423
  return entries;
3607
3424
  };
3608
3425
  const serializeAws_queryUpdateApplicationResourceLifecycleMessage = (input, context) => {
3609
3426
  const entries = {};
3610
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3427
+ if (input.ApplicationName != null) {
3611
3428
  entries["ApplicationName"] = input.ApplicationName;
3612
3429
  }
3613
- if (input.ResourceLifecycleConfig !== undefined && input.ResourceLifecycleConfig !== null) {
3430
+ if (input.ResourceLifecycleConfig != null) {
3614
3431
  const memberEntries = serializeAws_queryApplicationResourceLifecycleConfig(input.ResourceLifecycleConfig, context);
3615
3432
  Object.entries(memberEntries).forEach(([key, value]) => {
3616
3433
  const loc = `ResourceLifecycleConfig.${key}`;
@@ -3621,36 +3438,36 @@ const serializeAws_queryUpdateApplicationResourceLifecycleMessage = (input, cont
3621
3438
  };
3622
3439
  const serializeAws_queryUpdateApplicationVersionMessage = (input, context) => {
3623
3440
  const entries = {};
3624
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3441
+ if (input.ApplicationName != null) {
3625
3442
  entries["ApplicationName"] = input.ApplicationName;
3626
3443
  }
3627
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
3444
+ if (input.VersionLabel != null) {
3628
3445
  entries["VersionLabel"] = input.VersionLabel;
3629
3446
  }
3630
- if (input.Description !== undefined && input.Description !== null) {
3447
+ if (input.Description != null) {
3631
3448
  entries["Description"] = input.Description;
3632
3449
  }
3633
3450
  return entries;
3634
3451
  };
3635
3452
  const serializeAws_queryUpdateConfigurationTemplateMessage = (input, context) => {
3636
3453
  const entries = {};
3637
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3454
+ if (input.ApplicationName != null) {
3638
3455
  entries["ApplicationName"] = input.ApplicationName;
3639
3456
  }
3640
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3457
+ if (input.TemplateName != null) {
3641
3458
  entries["TemplateName"] = input.TemplateName;
3642
3459
  }
3643
- if (input.Description !== undefined && input.Description !== null) {
3460
+ if (input.Description != null) {
3644
3461
  entries["Description"] = input.Description;
3645
3462
  }
3646
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
3463
+ if (input.OptionSettings != null) {
3647
3464
  const memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
3648
3465
  Object.entries(memberEntries).forEach(([key, value]) => {
3649
3466
  const loc = `OptionSettings.${key}`;
3650
3467
  entries[loc] = value;
3651
3468
  });
3652
3469
  }
3653
- if (input.OptionsToRemove !== undefined && input.OptionsToRemove !== null) {
3470
+ if (input.OptionsToRemove != null) {
3654
3471
  const memberEntries = serializeAws_queryOptionsSpecifierList(input.OptionsToRemove, context);
3655
3472
  Object.entries(memberEntries).forEach(([key, value]) => {
3656
3473
  const loc = `OptionsToRemove.${key}`;
@@ -3661,48 +3478,48 @@ const serializeAws_queryUpdateConfigurationTemplateMessage = (input, context) =>
3661
3478
  };
3662
3479
  const serializeAws_queryUpdateEnvironmentMessage = (input, context) => {
3663
3480
  const entries = {};
3664
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3481
+ if (input.ApplicationName != null) {
3665
3482
  entries["ApplicationName"] = input.ApplicationName;
3666
3483
  }
3667
- if (input.EnvironmentId !== undefined && input.EnvironmentId !== null) {
3484
+ if (input.EnvironmentId != null) {
3668
3485
  entries["EnvironmentId"] = input.EnvironmentId;
3669
3486
  }
3670
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3487
+ if (input.EnvironmentName != null) {
3671
3488
  entries["EnvironmentName"] = input.EnvironmentName;
3672
3489
  }
3673
- if (input.GroupName !== undefined && input.GroupName !== null) {
3490
+ if (input.GroupName != null) {
3674
3491
  entries["GroupName"] = input.GroupName;
3675
3492
  }
3676
- if (input.Description !== undefined && input.Description !== null) {
3493
+ if (input.Description != null) {
3677
3494
  entries["Description"] = input.Description;
3678
3495
  }
3679
- if (input.Tier !== undefined && input.Tier !== null) {
3496
+ if (input.Tier != null) {
3680
3497
  const memberEntries = serializeAws_queryEnvironmentTier(input.Tier, context);
3681
3498
  Object.entries(memberEntries).forEach(([key, value]) => {
3682
3499
  const loc = `Tier.${key}`;
3683
3500
  entries[loc] = value;
3684
3501
  });
3685
3502
  }
3686
- if (input.VersionLabel !== undefined && input.VersionLabel !== null) {
3503
+ if (input.VersionLabel != null) {
3687
3504
  entries["VersionLabel"] = input.VersionLabel;
3688
3505
  }
3689
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3506
+ if (input.TemplateName != null) {
3690
3507
  entries["TemplateName"] = input.TemplateName;
3691
3508
  }
3692
- if (input.SolutionStackName !== undefined && input.SolutionStackName !== null) {
3509
+ if (input.SolutionStackName != null) {
3693
3510
  entries["SolutionStackName"] = input.SolutionStackName;
3694
3511
  }
3695
- if (input.PlatformArn !== undefined && input.PlatformArn !== null) {
3512
+ if (input.PlatformArn != null) {
3696
3513
  entries["PlatformArn"] = input.PlatformArn;
3697
3514
  }
3698
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
3515
+ if (input.OptionSettings != null) {
3699
3516
  const memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
3700
3517
  Object.entries(memberEntries).forEach(([key, value]) => {
3701
3518
  const loc = `OptionSettings.${key}`;
3702
3519
  entries[loc] = value;
3703
3520
  });
3704
3521
  }
3705
- if (input.OptionsToRemove !== undefined && input.OptionsToRemove !== null) {
3522
+ if (input.OptionsToRemove != null) {
3706
3523
  const memberEntries = serializeAws_queryOptionsSpecifierList(input.OptionsToRemove, context);
3707
3524
  Object.entries(memberEntries).forEach(([key, value]) => {
3708
3525
  const loc = `OptionsToRemove.${key}`;
@@ -3713,17 +3530,17 @@ const serializeAws_queryUpdateEnvironmentMessage = (input, context) => {
3713
3530
  };
3714
3531
  const serializeAws_queryUpdateTagsForResourceMessage = (input, context) => {
3715
3532
  const entries = {};
3716
- if (input.ResourceArn !== undefined && input.ResourceArn !== null) {
3533
+ if (input.ResourceArn != null) {
3717
3534
  entries["ResourceArn"] = input.ResourceArn;
3718
3535
  }
3719
- if (input.TagsToAdd !== undefined && input.TagsToAdd !== null) {
3536
+ if (input.TagsToAdd != null) {
3720
3537
  const memberEntries = serializeAws_queryTagList(input.TagsToAdd, context);
3721
3538
  Object.entries(memberEntries).forEach(([key, value]) => {
3722
3539
  const loc = `TagsToAdd.${key}`;
3723
3540
  entries[loc] = value;
3724
3541
  });
3725
3542
  }
3726
- if (input.TagsToRemove !== undefined && input.TagsToRemove !== null) {
3543
+ if (input.TagsToRemove != null) {
3727
3544
  const memberEntries = serializeAws_queryTagKeyList(input.TagsToRemove, context);
3728
3545
  Object.entries(memberEntries).forEach(([key, value]) => {
3729
3546
  const loc = `TagsToRemove.${key}`;
@@ -3734,16 +3551,16 @@ const serializeAws_queryUpdateTagsForResourceMessage = (input, context) => {
3734
3551
  };
3735
3552
  const serializeAws_queryValidateConfigurationSettingsMessage = (input, context) => {
3736
3553
  const entries = {};
3737
- if (input.ApplicationName !== undefined && input.ApplicationName !== null) {
3554
+ if (input.ApplicationName != null) {
3738
3555
  entries["ApplicationName"] = input.ApplicationName;
3739
3556
  }
3740
- if (input.TemplateName !== undefined && input.TemplateName !== null) {
3557
+ if (input.TemplateName != null) {
3741
3558
  entries["TemplateName"] = input.TemplateName;
3742
3559
  }
3743
- if (input.EnvironmentName !== undefined && input.EnvironmentName !== null) {
3560
+ if (input.EnvironmentName != null) {
3744
3561
  entries["EnvironmentName"] = input.EnvironmentName;
3745
3562
  }
3746
- if (input.OptionSettings !== undefined && input.OptionSettings !== null) {
3563
+ if (input.OptionSettings != null) {
3747
3564
  const memberEntries = serializeAws_queryConfigurationOptionSettingsList(input.OptionSettings, context);
3748
3565
  Object.entries(memberEntries).forEach(([key, value]) => {
3749
3566
  const loc = `OptionSettings.${key}`;
@@ -3824,9 +3641,6 @@ const deserializeAws_queryApplicationDescriptionList = (output, context) => {
3824
3641
  return (output || [])
3825
3642
  .filter((e) => e != null)
3826
3643
  .map((entry) => {
3827
- if (entry === null) {
3828
- return null;
3829
- }
3830
3644
  return deserializeAws_queryApplicationDescription(entry, context);
3831
3645
  });
3832
3646
  };
@@ -3947,9 +3761,6 @@ const deserializeAws_queryApplicationVersionDescriptionList = (output, context)
3947
3761
  return (output || [])
3948
3762
  .filter((e) => e != null)
3949
3763
  .map((entry) => {
3950
- if (entry === null) {
3951
- return null;
3952
- }
3953
3764
  return deserializeAws_queryApplicationVersionDescription(entry, context);
3954
3765
  });
3955
3766
  };
@@ -4025,9 +3836,6 @@ const deserializeAws_queryAutoScalingGroupList = (output, context) => {
4025
3836
  return (output || [])
4026
3837
  .filter((e) => e != null)
4027
3838
  .map((entry) => {
4028
- if (entry === null) {
4029
- return null;
4030
- }
4031
3839
  return deserializeAws_queryAutoScalingGroup(entry, context);
4032
3840
  });
4033
3841
  };
@@ -4035,9 +3843,6 @@ const deserializeAws_queryAvailableSolutionStackDetailsList = (output, context)
4035
3843
  return (output || [])
4036
3844
  .filter((e) => e != null)
4037
3845
  .map((entry) => {
4038
- if (entry === null) {
4039
- return null;
4040
- }
4041
3846
  return deserializeAws_querySolutionStackDescription(entry, context);
4042
3847
  });
4043
3848
  };
@@ -4045,9 +3850,6 @@ const deserializeAws_queryAvailableSolutionStackNamesList = (output, context) =>
4045
3850
  return (output || [])
4046
3851
  .filter((e) => e != null)
4047
3852
  .map((entry) => {
4048
- if (entry === null) {
4049
- return null;
4050
- }
4051
3853
  return (0, smithy_client_1.expectString)(entry);
4052
3854
  });
4053
3855
  };
@@ -4064,9 +3866,6 @@ const deserializeAws_queryCauses = (output, context) => {
4064
3866
  return (output || [])
4065
3867
  .filter((e) => e != null)
4066
3868
  .map((entry) => {
4067
- if (entry === null) {
4068
- return null;
4069
- }
4070
3869
  return (0, smithy_client_1.expectString)(entry);
4071
3870
  });
4072
3871
  };
@@ -4148,9 +3947,6 @@ const deserializeAws_queryConfigurationOptionDescriptionsList = (output, context
4148
3947
  return (output || [])
4149
3948
  .filter((e) => e != null)
4150
3949
  .map((entry) => {
4151
- if (entry === null) {
4152
- return null;
4153
- }
4154
3950
  return deserializeAws_queryConfigurationOptionDescription(entry, context);
4155
3951
  });
4156
3952
  };
@@ -4158,9 +3954,6 @@ const deserializeAws_queryConfigurationOptionPossibleValues = (output, context)
4158
3954
  return (output || [])
4159
3955
  .filter((e) => e != null)
4160
3956
  .map((entry) => {
4161
- if (entry === null) {
4162
- return null;
4163
- }
4164
3957
  return (0, smithy_client_1.expectString)(entry);
4165
3958
  });
4166
3959
  };
@@ -4209,9 +4002,6 @@ const deserializeAws_queryConfigurationOptionSettingsList = (output, context) =>
4209
4002
  return (output || [])
4210
4003
  .filter((e) => e != null)
4211
4004
  .map((entry) => {
4212
- if (entry === null) {
4213
- return null;
4214
- }
4215
4005
  return deserializeAws_queryConfigurationOptionSetting(entry, context);
4216
4006
  });
4217
4007
  };
@@ -4267,9 +4057,6 @@ const deserializeAws_queryConfigurationSettingsDescriptionList = (output, contex
4267
4057
  return (output || [])
4268
4058
  .filter((e) => e != null)
4269
4059
  .map((entry) => {
4270
- if (entry === null) {
4271
- return null;
4272
- }
4273
4060
  return deserializeAws_queryConfigurationSettingsDescription(entry, context);
4274
4061
  });
4275
4062
  };
@@ -4301,9 +4088,6 @@ const deserializeAws_queryConfigurationTemplateNamesList = (output, context) =>
4301
4088
  return (output || [])
4302
4089
  .filter((e) => e != null)
4303
4090
  .map((entry) => {
4304
- if (entry === null) {
4305
- return null;
4306
- }
4307
4091
  return (0, smithy_client_1.expectString)(entry);
4308
4092
  });
4309
4093
  };
@@ -4383,9 +4167,6 @@ const deserializeAws_queryCustomAmiList = (output, context) => {
4383
4167
  return (output || [])
4384
4168
  .filter((e) => e != null)
4385
4169
  .map((entry) => {
4386
- if (entry === null) {
4387
- return null;
4388
- }
4389
4170
  return deserializeAws_queryCustomAmi(entry, context);
4390
4171
  });
4391
4172
  };
@@ -4631,9 +4412,6 @@ const deserializeAws_queryEnvironmentDescriptionsList = (output, context) => {
4631
4412
  return (output || [])
4632
4413
  .filter((e) => e != null)
4633
4414
  .map((entry) => {
4634
- if (entry === null) {
4635
- return null;
4636
- }
4637
4415
  return deserializeAws_queryEnvironmentDescription(entry, context);
4638
4416
  });
4639
4417
  };
@@ -4678,9 +4456,6 @@ const deserializeAws_queryEnvironmentInfoDescriptionList = (output, context) =>
4678
4456
  return (output || [])
4679
4457
  .filter((e) => e != null)
4680
4458
  .map((entry) => {
4681
- if (entry === null) {
4682
- return null;
4683
- }
4684
4459
  return deserializeAws_queryEnvironmentInfoDescription(entry, context);
4685
4460
  });
4686
4461
  };
@@ -4701,9 +4476,6 @@ const deserializeAws_queryEnvironmentLinks = (output, context) => {
4701
4476
  return (output || [])
4702
4477
  .filter((e) => e != null)
4703
4478
  .map((entry) => {
4704
- if (entry === null) {
4705
- return null;
4706
- }
4707
4479
  return deserializeAws_queryEnvironmentLink(entry, context);
4708
4480
  });
4709
4481
  };
@@ -4845,9 +4617,6 @@ const deserializeAws_queryEventDescriptionList = (output, context) => {
4845
4617
  return (output || [])
4846
4618
  .filter((e) => e != null)
4847
4619
  .map((entry) => {
4848
- if (entry === null) {
4849
- return null;
4850
- }
4851
4620
  return deserializeAws_queryEventDescription(entry, context);
4852
4621
  });
4853
4622
  };
@@ -4880,9 +4649,6 @@ const deserializeAws_queryInstanceHealthList = (output, context) => {
4880
4649
  return (output || [])
4881
4650
  .filter((e) => e != null)
4882
4651
  .map((entry) => {
4883
- if (entry === null) {
4884
- return null;
4885
- }
4886
4652
  return deserializeAws_querySingleInstanceHealth(entry, context);
4887
4653
  });
4888
4654
  };
@@ -4927,9 +4693,6 @@ const deserializeAws_queryInstanceList = (output, context) => {
4927
4693
  return (output || [])
4928
4694
  .filter((e) => e != null)
4929
4695
  .map((entry) => {
4930
- if (entry === null) {
4931
- return null;
4932
- }
4933
4696
  return deserializeAws_queryInstance(entry, context);
4934
4697
  });
4935
4698
  };
@@ -5001,9 +4764,6 @@ const deserializeAws_queryLaunchConfigurationList = (output, context) => {
5001
4764
  return (output || [])
5002
4765
  .filter((e) => e != null)
5003
4766
  .map((entry) => {
5004
- if (entry === null) {
5005
- return null;
5006
- }
5007
4767
  return deserializeAws_queryLaunchConfiguration(entry, context);
5008
4768
  });
5009
4769
  };
@@ -5020,9 +4780,6 @@ const deserializeAws_queryLaunchTemplateList = (output, context) => {
5020
4780
  return (output || [])
5021
4781
  .filter((e) => e != null)
5022
4782
  .map((entry) => {
5023
- if (entry === null) {
5024
- return null;
5025
- }
5026
4783
  return deserializeAws_queryLaunchTemplate(entry, context);
5027
4784
  });
5028
4785
  };
@@ -5095,9 +4852,6 @@ const deserializeAws_queryLoadAverage = (output, context) => {
5095
4852
  return (output || [])
5096
4853
  .filter((e) => e != null)
5097
4854
  .map((entry) => {
5098
- if (entry === null) {
5099
- return null;
5100
- }
5101
4855
  return (0, smithy_client_1.strictParseFloat)(entry);
5102
4856
  });
5103
4857
  };
@@ -5134,9 +4888,6 @@ const deserializeAws_queryLoadBalancerList = (output, context) => {
5134
4888
  return (output || [])
5135
4889
  .filter((e) => e != null)
5136
4890
  .map((entry) => {
5137
- if (entry === null) {
5138
- return null;
5139
- }
5140
4891
  return deserializeAws_queryLoadBalancer(entry, context);
5141
4892
  });
5142
4893
  };
@@ -5144,9 +4895,6 @@ const deserializeAws_queryLoadBalancerListenersDescription = (output, context) =
5144
4895
  return (output || [])
5145
4896
  .filter((e) => e != null)
5146
4897
  .map((entry) => {
5147
- if (entry === null) {
5148
- return null;
5149
- }
5150
4898
  return deserializeAws_queryListener(entry, context);
5151
4899
  });
5152
4900
  };
@@ -5216,9 +4964,6 @@ const deserializeAws_queryManagedActionHistoryItems = (output, context) => {
5216
4964
  return (output || [])
5217
4965
  .filter((e) => e != null)
5218
4966
  .map((entry) => {
5219
- if (entry === null) {
5220
- return null;
5221
- }
5222
4967
  return deserializeAws_queryManagedActionHistoryItem(entry, context);
5223
4968
  });
5224
4969
  };
@@ -5235,9 +4980,6 @@ const deserializeAws_queryManagedActions = (output, context) => {
5235
4980
  return (output || [])
5236
4981
  .filter((e) => e != null)
5237
4982
  .map((entry) => {
5238
- if (entry === null) {
5239
- return null;
5240
- }
5241
4983
  return deserializeAws_queryManagedAction(entry, context);
5242
4984
  });
5243
4985
  };
@@ -5329,9 +5071,6 @@ const deserializeAws_queryPlatformBranchSummaryList = (output, context) => {
5329
5071
  return (output || [])
5330
5072
  .filter((e) => e != null)
5331
5073
  .map((entry) => {
5332
- if (entry === null) {
5333
- return null;
5334
- }
5335
5074
  return deserializeAws_queryPlatformBranchSummary(entry, context);
5336
5075
  });
5337
5076
  };
@@ -5456,9 +5195,6 @@ const deserializeAws_queryPlatformFrameworks = (output, context) => {
5456
5195
  return (output || [])
5457
5196
  .filter((e) => e != null)
5458
5197
  .map((entry) => {
5459
- if (entry === null) {
5460
- return null;
5461
- }
5462
5198
  return deserializeAws_queryPlatformFramework(entry, context);
5463
5199
  });
5464
5200
  };
@@ -5479,9 +5215,6 @@ const deserializeAws_queryPlatformProgrammingLanguages = (output, context) => {
5479
5215
  return (output || [])
5480
5216
  .filter((e) => e != null)
5481
5217
  .map((entry) => {
5482
- if (entry === null) {
5483
- return null;
5484
- }
5485
5218
  return deserializeAws_queryPlatformProgrammingLanguage(entry, context);
5486
5219
  });
5487
5220
  };
@@ -5548,9 +5281,6 @@ const deserializeAws_queryPlatformSummaryList = (output, context) => {
5548
5281
  return (output || [])
5549
5282
  .filter((e) => e != null)
5550
5283
  .map((entry) => {
5551
- if (entry === null) {
5552
- return null;
5553
- }
5554
5284
  return deserializeAws_queryPlatformSummary(entry, context);
5555
5285
  });
5556
5286
  };
@@ -5580,9 +5310,6 @@ const deserializeAws_queryQueueList = (output, context) => {
5580
5310
  return (output || [])
5581
5311
  .filter((e) => e != null)
5582
5312
  .map((entry) => {
5583
- if (entry === null) {
5584
- return null;
5585
- }
5586
5313
  return deserializeAws_queryQueue(entry, context);
5587
5314
  });
5588
5315
  };
@@ -5765,9 +5492,6 @@ const deserializeAws_querySolutionStackFileTypeList = (output, context) => {
5765
5492
  return (output || [])
5766
5493
  .filter((e) => e != null)
5767
5494
  .map((entry) => {
5768
- if (entry === null) {
5769
- return null;
5770
- }
5771
5495
  return (0, smithy_client_1.expectString)(entry);
5772
5496
  });
5773
5497
  };
@@ -5822,9 +5546,6 @@ const deserializeAws_querySupportedAddonList = (output, context) => {
5822
5546
  return (output || [])
5823
5547
  .filter((e) => e != null)
5824
5548
  .map((entry) => {
5825
- if (entry === null) {
5826
- return null;
5827
- }
5828
5549
  return (0, smithy_client_1.expectString)(entry);
5829
5550
  });
5830
5551
  };
@@ -5832,9 +5553,6 @@ const deserializeAws_querySupportedTierList = (output, context) => {
5832
5553
  return (output || [])
5833
5554
  .filter((e) => e != null)
5834
5555
  .map((entry) => {
5835
- if (entry === null) {
5836
- return null;
5837
- }
5838
5556
  return (0, smithy_client_1.expectString)(entry);
5839
5557
  });
5840
5558
  };
@@ -5871,9 +5589,6 @@ const deserializeAws_queryTagList = (output, context) => {
5871
5589
  return (output || [])
5872
5590
  .filter((e) => e != null)
5873
5591
  .map((entry) => {
5874
- if (entry === null) {
5875
- return null;
5876
- }
5877
5592
  return deserializeAws_queryTag(entry, context);
5878
5593
  });
5879
5594
  };
@@ -5953,9 +5668,6 @@ const deserializeAws_queryTriggerList = (output, context) => {
5953
5668
  return (output || [])
5954
5669
  .filter((e) => e != null)
5955
5670
  .map((entry) => {
5956
- if (entry === null) {
5957
- return null;
5958
- }
5959
5671
  return deserializeAws_queryTrigger(entry, context);
5960
5672
  });
5961
5673
  };
@@ -5984,9 +5696,6 @@ const deserializeAws_queryValidationMessagesList = (output, context) => {
5984
5696
  return (output || [])
5985
5697
  .filter((e) => e != null)
5986
5698
  .map((entry) => {
5987
- if (entry === null) {
5988
- return null;
5989
- }
5990
5699
  return deserializeAws_queryValidationMessage(entry, context);
5991
5700
  });
5992
5701
  };
@@ -5994,9 +5703,6 @@ const deserializeAws_queryVersionLabelsList = (output, context) => {
5994
5703
  return (output || [])
5995
5704
  .filter((e) => e != null)
5996
5705
  .map((entry) => {
5997
- if (entry === null) {
5998
- return null;
5999
- }
6000
5706
  return (0, smithy_client_1.expectString)(entry);
6001
5707
  });
6002
5708
  };