@aws-sdk/client-auto-scaling 3.136.1 → 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 (131) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/AttachInstancesCommand.js +1 -1
  4. package/dist-cjs/commands/AttachLoadBalancerTargetGroupsCommand.js +2 -2
  5. package/dist-cjs/commands/AttachLoadBalancersCommand.js +2 -2
  6. package/dist-cjs/commands/BatchDeleteScheduledActionCommand.js +2 -2
  7. package/dist-cjs/commands/BatchPutScheduledUpdateGroupActionCommand.js +2 -2
  8. package/dist-cjs/commands/CancelInstanceRefreshCommand.js +2 -2
  9. package/dist-cjs/commands/CompleteLifecycleActionCommand.js +2 -2
  10. package/dist-cjs/commands/CreateAutoScalingGroupCommand.js +1 -1
  11. package/dist-cjs/commands/CreateLaunchConfigurationCommand.js +1 -1
  12. package/dist-cjs/commands/CreateOrUpdateTagsCommand.js +1 -1
  13. package/dist-cjs/commands/DeleteAutoScalingGroupCommand.js +1 -1
  14. package/dist-cjs/commands/DeleteLaunchConfigurationCommand.js +1 -1
  15. package/dist-cjs/commands/DeleteLifecycleHookCommand.js +2 -2
  16. package/dist-cjs/commands/DeleteNotificationConfigurationCommand.js +1 -1
  17. package/dist-cjs/commands/DeletePolicyCommand.js +1 -1
  18. package/dist-cjs/commands/DeleteScheduledActionCommand.js +1 -1
  19. package/dist-cjs/commands/DeleteTagsCommand.js +1 -1
  20. package/dist-cjs/commands/DeleteWarmPoolCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeAccountLimitsCommand.js +1 -1
  22. package/dist-cjs/commands/DescribeAdjustmentTypesCommand.js +1 -1
  23. package/dist-cjs/commands/DescribeAutoScalingGroupsCommand.js +2 -2
  24. package/dist-cjs/commands/DescribeAutoScalingInstancesCommand.js +2 -2
  25. package/dist-cjs/commands/DescribeAutoScalingNotificationTypesCommand.js +1 -1
  26. package/dist-cjs/commands/DescribeInstanceRefreshesCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeLaunchConfigurationsCommand.js +2 -2
  28. package/dist-cjs/commands/DescribeLifecycleHookTypesCommand.js +1 -1
  29. package/dist-cjs/commands/DescribeLifecycleHooksCommand.js +2 -2
  30. package/dist-cjs/commands/DescribeLoadBalancerTargetGroupsCommand.js +2 -2
  31. package/dist-cjs/commands/DescribeLoadBalancersCommand.js +2 -2
  32. package/dist-cjs/commands/DescribeMetricCollectionTypesCommand.js +1 -1
  33. package/dist-cjs/commands/DescribeNotificationConfigurationsCommand.js +2 -2
  34. package/dist-cjs/commands/DescribePoliciesCommand.js +2 -2
  35. package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +2 -2
  36. package/dist-cjs/commands/DescribeScalingProcessTypesCommand.js +1 -1
  37. package/dist-cjs/commands/DescribeScheduledActionsCommand.js +2 -2
  38. package/dist-cjs/commands/DescribeTagsCommand.js +2 -2
  39. package/dist-cjs/commands/DescribeTerminationPolicyTypesCommand.js +1 -1
  40. package/dist-cjs/commands/DescribeWarmPoolCommand.js +2 -2
  41. package/dist-cjs/commands/DetachInstancesCommand.js +2 -2
  42. package/dist-cjs/commands/DetachLoadBalancerTargetGroupsCommand.js +2 -2
  43. package/dist-cjs/commands/DetachLoadBalancersCommand.js +2 -2
  44. package/dist-cjs/commands/DisableMetricsCollectionCommand.js +1 -1
  45. package/dist-cjs/commands/EnableMetricsCollectionCommand.js +1 -1
  46. package/dist-cjs/commands/EnterStandbyCommand.js +2 -2
  47. package/dist-cjs/commands/ExecutePolicyCommand.js +1 -1
  48. package/dist-cjs/commands/ExitStandbyCommand.js +2 -2
  49. package/dist-cjs/commands/GetPredictiveScalingForecastCommand.js +2 -2
  50. package/dist-cjs/commands/PutLifecycleHookCommand.js +2 -2
  51. package/dist-cjs/commands/PutNotificationConfigurationCommand.js +1 -1
  52. package/dist-cjs/commands/PutScalingPolicyCommand.js +2 -2
  53. package/dist-cjs/commands/PutScheduledUpdateGroupActionCommand.js +1 -1
  54. package/dist-cjs/commands/PutWarmPoolCommand.js +2 -2
  55. package/dist-cjs/commands/RecordLifecycleActionHeartbeatCommand.js +2 -2
  56. package/dist-cjs/commands/ResumeProcessesCommand.js +1 -1
  57. package/dist-cjs/commands/SetDesiredCapacityCommand.js +1 -1
  58. package/dist-cjs/commands/SetInstanceHealthCommand.js +1 -1
  59. package/dist-cjs/commands/SetInstanceProtectionCommand.js +2 -2
  60. package/dist-cjs/commands/StartInstanceRefreshCommand.js +2 -2
  61. package/dist-cjs/commands/SuspendProcessesCommand.js +1 -1
  62. package/dist-cjs/commands/TerminateInstanceInAutoScalingGroupCommand.js +2 -2
  63. package/dist-cjs/commands/UpdateAutoScalingGroupCommand.js +1 -1
  64. package/dist-cjs/models/models_0.js +652 -976
  65. package/dist-cjs/protocols/Aws_query.js +683 -1004
  66. package/dist-es/commands/AttachInstancesCommand.js +2 -2
  67. package/dist-es/commands/AttachLoadBalancerTargetGroupsCommand.js +3 -3
  68. package/dist-es/commands/AttachLoadBalancersCommand.js +3 -3
  69. package/dist-es/commands/BatchDeleteScheduledActionCommand.js +3 -3
  70. package/dist-es/commands/BatchPutScheduledUpdateGroupActionCommand.js +3 -3
  71. package/dist-es/commands/CancelInstanceRefreshCommand.js +3 -3
  72. package/dist-es/commands/CompleteLifecycleActionCommand.js +3 -3
  73. package/dist-es/commands/CreateAutoScalingGroupCommand.js +2 -2
  74. package/dist-es/commands/CreateLaunchConfigurationCommand.js +2 -2
  75. package/dist-es/commands/CreateOrUpdateTagsCommand.js +2 -2
  76. package/dist-es/commands/DeleteAutoScalingGroupCommand.js +2 -2
  77. package/dist-es/commands/DeleteLaunchConfigurationCommand.js +2 -2
  78. package/dist-es/commands/DeleteLifecycleHookCommand.js +3 -3
  79. package/dist-es/commands/DeleteNotificationConfigurationCommand.js +2 -2
  80. package/dist-es/commands/DeletePolicyCommand.js +2 -2
  81. package/dist-es/commands/DeleteScheduledActionCommand.js +2 -2
  82. package/dist-es/commands/DeleteTagsCommand.js +2 -2
  83. package/dist-es/commands/DeleteWarmPoolCommand.js +3 -3
  84. package/dist-es/commands/DescribeAccountLimitsCommand.js +2 -2
  85. package/dist-es/commands/DescribeAdjustmentTypesCommand.js +2 -2
  86. package/dist-es/commands/DescribeAutoScalingGroupsCommand.js +3 -3
  87. package/dist-es/commands/DescribeAutoScalingInstancesCommand.js +3 -3
  88. package/dist-es/commands/DescribeAutoScalingNotificationTypesCommand.js +2 -2
  89. package/dist-es/commands/DescribeInstanceRefreshesCommand.js +3 -3
  90. package/dist-es/commands/DescribeLaunchConfigurationsCommand.js +3 -3
  91. package/dist-es/commands/DescribeLifecycleHookTypesCommand.js +2 -2
  92. package/dist-es/commands/DescribeLifecycleHooksCommand.js +3 -3
  93. package/dist-es/commands/DescribeLoadBalancerTargetGroupsCommand.js +3 -3
  94. package/dist-es/commands/DescribeLoadBalancersCommand.js +3 -3
  95. package/dist-es/commands/DescribeMetricCollectionTypesCommand.js +2 -2
  96. package/dist-es/commands/DescribeNotificationConfigurationsCommand.js +3 -3
  97. package/dist-es/commands/DescribePoliciesCommand.js +3 -3
  98. package/dist-es/commands/DescribeScalingActivitiesCommand.js +3 -3
  99. package/dist-es/commands/DescribeScalingProcessTypesCommand.js +2 -2
  100. package/dist-es/commands/DescribeScheduledActionsCommand.js +3 -3
  101. package/dist-es/commands/DescribeTagsCommand.js +3 -3
  102. package/dist-es/commands/DescribeTerminationPolicyTypesCommand.js +2 -2
  103. package/dist-es/commands/DescribeWarmPoolCommand.js +3 -3
  104. package/dist-es/commands/DetachInstancesCommand.js +3 -3
  105. package/dist-es/commands/DetachLoadBalancerTargetGroupsCommand.js +3 -3
  106. package/dist-es/commands/DetachLoadBalancersCommand.js +3 -3
  107. package/dist-es/commands/DisableMetricsCollectionCommand.js +2 -2
  108. package/dist-es/commands/EnableMetricsCollectionCommand.js +2 -2
  109. package/dist-es/commands/EnterStandbyCommand.js +3 -3
  110. package/dist-es/commands/ExecutePolicyCommand.js +2 -2
  111. package/dist-es/commands/ExitStandbyCommand.js +3 -3
  112. package/dist-es/commands/GetPredictiveScalingForecastCommand.js +3 -3
  113. package/dist-es/commands/PutLifecycleHookCommand.js +3 -3
  114. package/dist-es/commands/PutNotificationConfigurationCommand.js +2 -2
  115. package/dist-es/commands/PutScalingPolicyCommand.js +3 -3
  116. package/dist-es/commands/PutScheduledUpdateGroupActionCommand.js +2 -2
  117. package/dist-es/commands/PutWarmPoolCommand.js +3 -3
  118. package/dist-es/commands/RecordLifecycleActionHeartbeatCommand.js +3 -3
  119. package/dist-es/commands/ResumeProcessesCommand.js +2 -2
  120. package/dist-es/commands/SetDesiredCapacityCommand.js +2 -2
  121. package/dist-es/commands/SetInstanceHealthCommand.js +2 -2
  122. package/dist-es/commands/SetInstanceProtectionCommand.js +3 -3
  123. package/dist-es/commands/StartInstanceRefreshCommand.js +3 -3
  124. package/dist-es/commands/SuspendProcessesCommand.js +2 -2
  125. package/dist-es/commands/TerminateInstanceInAutoScalingGroupCommand.js +3 -3
  126. package/dist-es/commands/UpdateAutoScalingGroupCommand.js +2 -2
  127. package/dist-es/models/models_0.js +162 -648
  128. package/dist-es/protocols/Aws_query.js +867 -1005
  129. package/dist-types/models/models_0.d.ts +648 -972
  130. package/dist-types/ts3.4/models/models_0.d.ts +324 -648
  131. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read, __values } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { AutoScalingServiceException as __BaseException } from "../models/AutoScalingServiceException";
@@ -655,7 +655,7 @@ export var deserializeAws_queryAttachInstancesCommand = function (output, contex
655
655
  });
656
656
  }); };
657
657
  var deserializeAws_queryAttachInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
658
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
658
+ var parsedOutput, _a, errorCode, _b, parsedBody;
659
659
  var _c;
660
660
  return __generator(this, function (_d) {
661
661
  switch (_d.label) {
@@ -680,14 +680,14 @@ var deserializeAws_queryAttachInstancesCommandError = function (output, context)
680
680
  case 5: throw _d.sent();
681
681
  case 6:
682
682
  parsedBody = parsedOutput.body;
683
- $metadata = deserializeMetadata(output);
684
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
685
- response = new __BaseException({
686
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
687
- $fault: "client",
688
- $metadata: $metadata,
683
+ throwDefaultError({
684
+ output: output,
685
+ parsedBody: parsedBody.Error,
686
+ exceptionCtor: __BaseException,
687
+ errorCode: errorCode,
689
688
  });
690
- throw __decorateServiceException(response, parsedBody.Error);
689
+ _d.label = 7;
690
+ case 7: return [2];
691
691
  }
692
692
  });
693
693
  }); };
@@ -710,7 +710,7 @@ export var deserializeAws_queryAttachLoadBalancersCommand = function (output, co
710
710
  });
711
711
  }); };
712
712
  var deserializeAws_queryAttachLoadBalancersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
713
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
713
+ var parsedOutput, _a, errorCode, _b, parsedBody;
714
714
  var _c;
715
715
  return __generator(this, function (_d) {
716
716
  switch (_d.label) {
@@ -735,14 +735,14 @@ var deserializeAws_queryAttachLoadBalancersCommandError = function (output, cont
735
735
  case 5: throw _d.sent();
736
736
  case 6:
737
737
  parsedBody = parsedOutput.body;
738
- $metadata = deserializeMetadata(output);
739
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
740
- response = new __BaseException({
741
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
742
- $fault: "client",
743
- $metadata: $metadata,
738
+ throwDefaultError({
739
+ output: output,
740
+ parsedBody: parsedBody.Error,
741
+ exceptionCtor: __BaseException,
742
+ errorCode: errorCode,
744
743
  });
745
- throw __decorateServiceException(response, parsedBody.Error);
744
+ _d.label = 7;
745
+ case 7: return [2];
746
746
  }
747
747
  });
748
748
  }); };
@@ -765,7 +765,7 @@ export var deserializeAws_queryAttachLoadBalancerTargetGroupsCommand = function
765
765
  });
766
766
  }); };
767
767
  var deserializeAws_queryAttachLoadBalancerTargetGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
768
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
768
+ var parsedOutput, _a, errorCode, _b, parsedBody;
769
769
  var _c;
770
770
  return __generator(this, function (_d) {
771
771
  switch (_d.label) {
@@ -790,14 +790,14 @@ var deserializeAws_queryAttachLoadBalancerTargetGroupsCommandError = function (o
790
790
  case 5: throw _d.sent();
791
791
  case 6:
792
792
  parsedBody = parsedOutput.body;
793
- $metadata = deserializeMetadata(output);
794
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
795
- response = new __BaseException({
796
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
797
- $fault: "client",
798
- $metadata: $metadata,
793
+ throwDefaultError({
794
+ output: output,
795
+ parsedBody: parsedBody.Error,
796
+ exceptionCtor: __BaseException,
797
+ errorCode: errorCode,
799
798
  });
800
- throw __decorateServiceException(response, parsedBody.Error);
799
+ _d.label = 7;
800
+ case 7: return [2];
801
801
  }
802
802
  });
803
803
  }); };
@@ -820,7 +820,7 @@ export var deserializeAws_queryBatchDeleteScheduledActionCommand = function (out
820
820
  });
821
821
  }); };
822
822
  var deserializeAws_queryBatchDeleteScheduledActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
823
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
823
+ var parsedOutput, _a, errorCode, _b, parsedBody;
824
824
  var _c;
825
825
  return __generator(this, function (_d) {
826
826
  switch (_d.label) {
@@ -841,14 +841,14 @@ var deserializeAws_queryBatchDeleteScheduledActionCommandError = function (outpu
841
841
  case 3: throw _d.sent();
842
842
  case 4:
843
843
  parsedBody = parsedOutput.body;
844
- $metadata = deserializeMetadata(output);
845
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
846
- response = new __BaseException({
847
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
848
- $fault: "client",
849
- $metadata: $metadata,
844
+ throwDefaultError({
845
+ output: output,
846
+ parsedBody: parsedBody.Error,
847
+ exceptionCtor: __BaseException,
848
+ errorCode: errorCode,
850
849
  });
851
- throw __decorateServiceException(response, parsedBody.Error);
850
+ _d.label = 5;
851
+ case 5: return [2];
852
852
  }
853
853
  });
854
854
  }); };
@@ -871,7 +871,7 @@ export var deserializeAws_queryBatchPutScheduledUpdateGroupActionCommand = funct
871
871
  });
872
872
  }); };
873
873
  var deserializeAws_queryBatchPutScheduledUpdateGroupActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
874
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
874
+ var parsedOutput, _a, errorCode, _b, parsedBody;
875
875
  var _c;
876
876
  return __generator(this, function (_d) {
877
877
  switch (_d.label) {
@@ -900,14 +900,14 @@ var deserializeAws_queryBatchPutScheduledUpdateGroupActionCommandError = functio
900
900
  case 7: throw _d.sent();
901
901
  case 8:
902
902
  parsedBody = parsedOutput.body;
903
- $metadata = deserializeMetadata(output);
904
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
905
- response = new __BaseException({
906
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
907
- $fault: "client",
908
- $metadata: $metadata,
903
+ throwDefaultError({
904
+ output: output,
905
+ parsedBody: parsedBody.Error,
906
+ exceptionCtor: __BaseException,
907
+ errorCode: errorCode,
909
908
  });
910
- throw __decorateServiceException(response, parsedBody.Error);
909
+ _d.label = 9;
910
+ case 9: return [2];
911
911
  }
912
912
  });
913
913
  }); };
@@ -930,7 +930,7 @@ export var deserializeAws_queryCancelInstanceRefreshCommand = function (output,
930
930
  });
931
931
  }); };
932
932
  var deserializeAws_queryCancelInstanceRefreshCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
933
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
933
+ var parsedOutput, _a, errorCode, _b, parsedBody;
934
934
  var _c;
935
935
  return __generator(this, function (_d) {
936
936
  switch (_d.label) {
@@ -959,14 +959,14 @@ var deserializeAws_queryCancelInstanceRefreshCommandError = function (output, co
959
959
  case 7: throw _d.sent();
960
960
  case 8:
961
961
  parsedBody = parsedOutput.body;
962
- $metadata = deserializeMetadata(output);
963
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
964
- response = new __BaseException({
965
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
966
- $fault: "client",
967
- $metadata: $metadata,
962
+ throwDefaultError({
963
+ output: output,
964
+ parsedBody: parsedBody.Error,
965
+ exceptionCtor: __BaseException,
966
+ errorCode: errorCode,
968
967
  });
969
- throw __decorateServiceException(response, parsedBody.Error);
968
+ _d.label = 9;
969
+ case 9: return [2];
970
970
  }
971
971
  });
972
972
  }); };
@@ -989,7 +989,7 @@ export var deserializeAws_queryCompleteLifecycleActionCommand = function (output
989
989
  });
990
990
  }); };
991
991
  var deserializeAws_queryCompleteLifecycleActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
992
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
992
+ var parsedOutput, _a, errorCode, _b, parsedBody;
993
993
  var _c;
994
994
  return __generator(this, function (_d) {
995
995
  switch (_d.label) {
@@ -1010,14 +1010,14 @@ var deserializeAws_queryCompleteLifecycleActionCommandError = function (output,
1010
1010
  case 3: throw _d.sent();
1011
1011
  case 4:
1012
1012
  parsedBody = parsedOutput.body;
1013
- $metadata = deserializeMetadata(output);
1014
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1015
- response = new __BaseException({
1016
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1017
- $fault: "client",
1018
- $metadata: $metadata,
1013
+ throwDefaultError({
1014
+ output: output,
1015
+ parsedBody: parsedBody.Error,
1016
+ exceptionCtor: __BaseException,
1017
+ errorCode: errorCode,
1019
1018
  });
1020
- throw __decorateServiceException(response, parsedBody.Error);
1019
+ _d.label = 5;
1020
+ case 5: return [2];
1021
1021
  }
1022
1022
  });
1023
1023
  }); };
@@ -1040,7 +1040,7 @@ export var deserializeAws_queryCreateAutoScalingGroupCommand = function (output,
1040
1040
  });
1041
1041
  }); };
1042
1042
  var deserializeAws_queryCreateAutoScalingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1043
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1043
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1044
1044
  var _c;
1045
1045
  return __generator(this, function (_d) {
1046
1046
  switch (_d.label) {
@@ -1073,14 +1073,14 @@ var deserializeAws_queryCreateAutoScalingGroupCommandError = function (output, c
1073
1073
  case 9: throw _d.sent();
1074
1074
  case 10:
1075
1075
  parsedBody = parsedOutput.body;
1076
- $metadata = deserializeMetadata(output);
1077
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1078
- response = new __BaseException({
1079
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1080
- $fault: "client",
1081
- $metadata: $metadata,
1076
+ throwDefaultError({
1077
+ output: output,
1078
+ parsedBody: parsedBody.Error,
1079
+ exceptionCtor: __BaseException,
1080
+ errorCode: errorCode,
1082
1081
  });
1083
- throw __decorateServiceException(response, parsedBody.Error);
1082
+ _d.label = 11;
1083
+ case 11: return [2];
1084
1084
  }
1085
1085
  });
1086
1086
  }); };
@@ -1103,7 +1103,7 @@ export var deserializeAws_queryCreateLaunchConfigurationCommand = function (outp
1103
1103
  });
1104
1104
  }); };
1105
1105
  var deserializeAws_queryCreateLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1106
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1106
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1107
1107
  var _c;
1108
1108
  return __generator(this, function (_d) {
1109
1109
  switch (_d.label) {
@@ -1132,14 +1132,14 @@ var deserializeAws_queryCreateLaunchConfigurationCommandError = function (output
1132
1132
  case 7: throw _d.sent();
1133
1133
  case 8:
1134
1134
  parsedBody = parsedOutput.body;
1135
- $metadata = deserializeMetadata(output);
1136
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1137
- response = new __BaseException({
1138
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1139
- $fault: "client",
1140
- $metadata: $metadata,
1135
+ throwDefaultError({
1136
+ output: output,
1137
+ parsedBody: parsedBody.Error,
1138
+ exceptionCtor: __BaseException,
1139
+ errorCode: errorCode,
1141
1140
  });
1142
- throw __decorateServiceException(response, parsedBody.Error);
1141
+ _d.label = 9;
1142
+ case 9: return [2];
1143
1143
  }
1144
1144
  });
1145
1145
  }); };
@@ -1162,7 +1162,7 @@ export var deserializeAws_queryCreateOrUpdateTagsCommand = function (output, con
1162
1162
  });
1163
1163
  }); };
1164
1164
  var deserializeAws_queryCreateOrUpdateTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1165
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1165
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1166
1166
  var _c;
1167
1167
  return __generator(this, function (_d) {
1168
1168
  switch (_d.label) {
@@ -1195,14 +1195,14 @@ var deserializeAws_queryCreateOrUpdateTagsCommandError = function (output, conte
1195
1195
  case 9: throw _d.sent();
1196
1196
  case 10:
1197
1197
  parsedBody = parsedOutput.body;
1198
- $metadata = deserializeMetadata(output);
1199
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1200
- response = new __BaseException({
1201
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1202
- $fault: "client",
1203
- $metadata: $metadata,
1198
+ throwDefaultError({
1199
+ output: output,
1200
+ parsedBody: parsedBody.Error,
1201
+ exceptionCtor: __BaseException,
1202
+ errorCode: errorCode,
1204
1203
  });
1205
- throw __decorateServiceException(response, parsedBody.Error);
1204
+ _d.label = 11;
1205
+ case 11: return [2];
1206
1206
  }
1207
1207
  });
1208
1208
  }); };
@@ -1225,7 +1225,7 @@ export var deserializeAws_queryDeleteAutoScalingGroupCommand = function (output,
1225
1225
  });
1226
1226
  }); };
1227
1227
  var deserializeAws_queryDeleteAutoScalingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1228
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1228
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1229
1229
  var _c;
1230
1230
  return __generator(this, function (_d) {
1231
1231
  switch (_d.label) {
@@ -1254,14 +1254,14 @@ var deserializeAws_queryDeleteAutoScalingGroupCommandError = function (output, c
1254
1254
  case 7: throw _d.sent();
1255
1255
  case 8:
1256
1256
  parsedBody = parsedOutput.body;
1257
- $metadata = deserializeMetadata(output);
1258
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1259
- response = new __BaseException({
1260
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1261
- $fault: "client",
1262
- $metadata: $metadata,
1257
+ throwDefaultError({
1258
+ output: output,
1259
+ parsedBody: parsedBody.Error,
1260
+ exceptionCtor: __BaseException,
1261
+ errorCode: errorCode,
1263
1262
  });
1264
- throw __decorateServiceException(response, parsedBody.Error);
1263
+ _d.label = 9;
1264
+ case 9: return [2];
1265
1265
  }
1266
1266
  });
1267
1267
  }); };
@@ -1284,7 +1284,7 @@ export var deserializeAws_queryDeleteLaunchConfigurationCommand = function (outp
1284
1284
  });
1285
1285
  }); };
1286
1286
  var deserializeAws_queryDeleteLaunchConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1287
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1287
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1288
1288
  var _c;
1289
1289
  return __generator(this, function (_d) {
1290
1290
  switch (_d.label) {
@@ -1309,14 +1309,14 @@ var deserializeAws_queryDeleteLaunchConfigurationCommandError = function (output
1309
1309
  case 5: throw _d.sent();
1310
1310
  case 6:
1311
1311
  parsedBody = parsedOutput.body;
1312
- $metadata = deserializeMetadata(output);
1313
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1314
- response = new __BaseException({
1315
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1316
- $fault: "client",
1317
- $metadata: $metadata,
1312
+ throwDefaultError({
1313
+ output: output,
1314
+ parsedBody: parsedBody.Error,
1315
+ exceptionCtor: __BaseException,
1316
+ errorCode: errorCode,
1318
1317
  });
1319
- throw __decorateServiceException(response, parsedBody.Error);
1318
+ _d.label = 7;
1319
+ case 7: return [2];
1320
1320
  }
1321
1321
  });
1322
1322
  }); };
@@ -1339,7 +1339,7 @@ export var deserializeAws_queryDeleteLifecycleHookCommand = function (output, co
1339
1339
  });
1340
1340
  }); };
1341
1341
  var deserializeAws_queryDeleteLifecycleHookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1342
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1342
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1343
1343
  var _c;
1344
1344
  return __generator(this, function (_d) {
1345
1345
  switch (_d.label) {
@@ -1360,14 +1360,14 @@ var deserializeAws_queryDeleteLifecycleHookCommandError = function (output, cont
1360
1360
  case 3: throw _d.sent();
1361
1361
  case 4:
1362
1362
  parsedBody = parsedOutput.body;
1363
- $metadata = deserializeMetadata(output);
1364
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1365
- response = new __BaseException({
1366
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1367
- $fault: "client",
1368
- $metadata: $metadata,
1363
+ throwDefaultError({
1364
+ output: output,
1365
+ parsedBody: parsedBody.Error,
1366
+ exceptionCtor: __BaseException,
1367
+ errorCode: errorCode,
1369
1368
  });
1370
- throw __decorateServiceException(response, parsedBody.Error);
1369
+ _d.label = 5;
1370
+ case 5: return [2];
1371
1371
  }
1372
1372
  });
1373
1373
  }); };
@@ -1390,7 +1390,7 @@ export var deserializeAws_queryDeleteNotificationConfigurationCommand = function
1390
1390
  });
1391
1391
  }); };
1392
1392
  var deserializeAws_queryDeleteNotificationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1393
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1393
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1394
1394
  var _c;
1395
1395
  return __generator(this, function (_d) {
1396
1396
  switch (_d.label) {
@@ -1411,14 +1411,14 @@ var deserializeAws_queryDeleteNotificationConfigurationCommandError = function (
1411
1411
  case 3: throw _d.sent();
1412
1412
  case 4:
1413
1413
  parsedBody = parsedOutput.body;
1414
- $metadata = deserializeMetadata(output);
1415
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1416
- response = new __BaseException({
1417
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1418
- $fault: "client",
1419
- $metadata: $metadata,
1414
+ throwDefaultError({
1415
+ output: output,
1416
+ parsedBody: parsedBody.Error,
1417
+ exceptionCtor: __BaseException,
1418
+ errorCode: errorCode,
1420
1419
  });
1421
- throw __decorateServiceException(response, parsedBody.Error);
1420
+ _d.label = 5;
1421
+ case 5: return [2];
1422
1422
  }
1423
1423
  });
1424
1424
  }); };
@@ -1441,7 +1441,7 @@ export var deserializeAws_queryDeletePolicyCommand = function (output, context)
1441
1441
  });
1442
1442
  }); };
1443
1443
  var deserializeAws_queryDeletePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1444
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1444
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1445
1445
  var _c;
1446
1446
  return __generator(this, function (_d) {
1447
1447
  switch (_d.label) {
@@ -1466,14 +1466,14 @@ var deserializeAws_queryDeletePolicyCommandError = function (output, context) {
1466
1466
  case 5: throw _d.sent();
1467
1467
  case 6:
1468
1468
  parsedBody = parsedOutput.body;
1469
- $metadata = deserializeMetadata(output);
1470
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1471
- response = new __BaseException({
1472
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1473
- $fault: "client",
1474
- $metadata: $metadata,
1469
+ throwDefaultError({
1470
+ output: output,
1471
+ parsedBody: parsedBody.Error,
1472
+ exceptionCtor: __BaseException,
1473
+ errorCode: errorCode,
1475
1474
  });
1476
- throw __decorateServiceException(response, parsedBody.Error);
1475
+ _d.label = 7;
1476
+ case 7: return [2];
1477
1477
  }
1478
1478
  });
1479
1479
  }); };
@@ -1496,7 +1496,7 @@ export var deserializeAws_queryDeleteScheduledActionCommand = function (output,
1496
1496
  });
1497
1497
  }); };
1498
1498
  var deserializeAws_queryDeleteScheduledActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1499
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1499
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1500
1500
  var _c;
1501
1501
  return __generator(this, function (_d) {
1502
1502
  switch (_d.label) {
@@ -1517,14 +1517,14 @@ var deserializeAws_queryDeleteScheduledActionCommandError = function (output, co
1517
1517
  case 3: throw _d.sent();
1518
1518
  case 4:
1519
1519
  parsedBody = parsedOutput.body;
1520
- $metadata = deserializeMetadata(output);
1521
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1522
- response = new __BaseException({
1523
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1524
- $fault: "client",
1525
- $metadata: $metadata,
1520
+ throwDefaultError({
1521
+ output: output,
1522
+ parsedBody: parsedBody.Error,
1523
+ exceptionCtor: __BaseException,
1524
+ errorCode: errorCode,
1526
1525
  });
1527
- throw __decorateServiceException(response, parsedBody.Error);
1526
+ _d.label = 5;
1527
+ case 5: return [2];
1528
1528
  }
1529
1529
  });
1530
1530
  }); };
@@ -1547,7 +1547,7 @@ export var deserializeAws_queryDeleteTagsCommand = function (output, context) {
1547
1547
  });
1548
1548
  }); };
1549
1549
  var deserializeAws_queryDeleteTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1550
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1550
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1551
1551
  var _c;
1552
1552
  return __generator(this, function (_d) {
1553
1553
  switch (_d.label) {
@@ -1572,14 +1572,14 @@ var deserializeAws_queryDeleteTagsCommandError = function (output, context) { re
1572
1572
  case 5: throw _d.sent();
1573
1573
  case 6:
1574
1574
  parsedBody = parsedOutput.body;
1575
- $metadata = deserializeMetadata(output);
1576
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1577
- response = new __BaseException({
1578
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1579
- $fault: "client",
1580
- $metadata: $metadata,
1575
+ throwDefaultError({
1576
+ output: output,
1577
+ parsedBody: parsedBody.Error,
1578
+ exceptionCtor: __BaseException,
1579
+ errorCode: errorCode,
1581
1580
  });
1582
- throw __decorateServiceException(response, parsedBody.Error);
1581
+ _d.label = 7;
1582
+ case 7: return [2];
1583
1583
  }
1584
1584
  });
1585
1585
  }); };
@@ -1602,7 +1602,7 @@ export var deserializeAws_queryDeleteWarmPoolCommand = function (output, context
1602
1602
  });
1603
1603
  }); };
1604
1604
  var deserializeAws_queryDeleteWarmPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1605
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1605
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1606
1606
  var _c;
1607
1607
  return __generator(this, function (_d) {
1608
1608
  switch (_d.label) {
@@ -1635,14 +1635,14 @@ var deserializeAws_queryDeleteWarmPoolCommandError = function (output, context)
1635
1635
  case 9: throw _d.sent();
1636
1636
  case 10:
1637
1637
  parsedBody = parsedOutput.body;
1638
- $metadata = deserializeMetadata(output);
1639
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1640
- response = new __BaseException({
1641
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1642
- $fault: "client",
1643
- $metadata: $metadata,
1638
+ throwDefaultError({
1639
+ output: output,
1640
+ parsedBody: parsedBody.Error,
1641
+ exceptionCtor: __BaseException,
1642
+ errorCode: errorCode,
1644
1643
  });
1645
- throw __decorateServiceException(response, parsedBody.Error);
1644
+ _d.label = 11;
1645
+ case 11: return [2];
1646
1646
  }
1647
1647
  });
1648
1648
  }); };
@@ -1665,7 +1665,7 @@ export var deserializeAws_queryDescribeAccountLimitsCommand = function (output,
1665
1665
  });
1666
1666
  }); };
1667
1667
  var deserializeAws_queryDescribeAccountLimitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1668
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1668
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1669
1669
  var _c;
1670
1670
  return __generator(this, function (_d) {
1671
1671
  switch (_d.label) {
@@ -1686,14 +1686,14 @@ var deserializeAws_queryDescribeAccountLimitsCommandError = function (output, co
1686
1686
  case 3: throw _d.sent();
1687
1687
  case 4:
1688
1688
  parsedBody = parsedOutput.body;
1689
- $metadata = deserializeMetadata(output);
1690
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1691
- response = new __BaseException({
1692
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1693
- $fault: "client",
1694
- $metadata: $metadata,
1689
+ throwDefaultError({
1690
+ output: output,
1691
+ parsedBody: parsedBody.Error,
1692
+ exceptionCtor: __BaseException,
1693
+ errorCode: errorCode,
1695
1694
  });
1696
- throw __decorateServiceException(response, parsedBody.Error);
1695
+ _d.label = 5;
1696
+ case 5: return [2];
1697
1697
  }
1698
1698
  });
1699
1699
  }); };
@@ -1716,7 +1716,7 @@ export var deserializeAws_queryDescribeAdjustmentTypesCommand = function (output
1716
1716
  });
1717
1717
  }); };
1718
1718
  var deserializeAws_queryDescribeAdjustmentTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1719
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1719
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1720
1720
  var _c;
1721
1721
  return __generator(this, function (_d) {
1722
1722
  switch (_d.label) {
@@ -1737,14 +1737,14 @@ var deserializeAws_queryDescribeAdjustmentTypesCommandError = function (output,
1737
1737
  case 3: throw _d.sent();
1738
1738
  case 4:
1739
1739
  parsedBody = parsedOutput.body;
1740
- $metadata = deserializeMetadata(output);
1741
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1742
- response = new __BaseException({
1743
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1744
- $fault: "client",
1745
- $metadata: $metadata,
1740
+ throwDefaultError({
1741
+ output: output,
1742
+ parsedBody: parsedBody.Error,
1743
+ exceptionCtor: __BaseException,
1744
+ errorCode: errorCode,
1746
1745
  });
1747
- throw __decorateServiceException(response, parsedBody.Error);
1746
+ _d.label = 5;
1747
+ case 5: return [2];
1748
1748
  }
1749
1749
  });
1750
1750
  }); };
@@ -1767,7 +1767,7 @@ export var deserializeAws_queryDescribeAutoScalingGroupsCommand = function (outp
1767
1767
  });
1768
1768
  }); };
1769
1769
  var deserializeAws_queryDescribeAutoScalingGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1770
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1770
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1771
1771
  var _c;
1772
1772
  return __generator(this, function (_d) {
1773
1773
  switch (_d.label) {
@@ -1792,14 +1792,14 @@ var deserializeAws_queryDescribeAutoScalingGroupsCommandError = function (output
1792
1792
  case 5: throw _d.sent();
1793
1793
  case 6:
1794
1794
  parsedBody = parsedOutput.body;
1795
- $metadata = deserializeMetadata(output);
1796
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1797
- response = new __BaseException({
1798
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1799
- $fault: "client",
1800
- $metadata: $metadata,
1795
+ throwDefaultError({
1796
+ output: output,
1797
+ parsedBody: parsedBody.Error,
1798
+ exceptionCtor: __BaseException,
1799
+ errorCode: errorCode,
1801
1800
  });
1802
- throw __decorateServiceException(response, parsedBody.Error);
1801
+ _d.label = 7;
1802
+ case 7: return [2];
1803
1803
  }
1804
1804
  });
1805
1805
  }); };
@@ -1822,7 +1822,7 @@ export var deserializeAws_queryDescribeAutoScalingInstancesCommand = function (o
1822
1822
  });
1823
1823
  }); };
1824
1824
  var deserializeAws_queryDescribeAutoScalingInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1825
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1825
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1826
1826
  var _c;
1827
1827
  return __generator(this, function (_d) {
1828
1828
  switch (_d.label) {
@@ -1847,14 +1847,14 @@ var deserializeAws_queryDescribeAutoScalingInstancesCommandError = function (out
1847
1847
  case 5: throw _d.sent();
1848
1848
  case 6:
1849
1849
  parsedBody = parsedOutput.body;
1850
- $metadata = deserializeMetadata(output);
1851
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1852
- response = new __BaseException({
1853
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1854
- $fault: "client",
1855
- $metadata: $metadata,
1850
+ throwDefaultError({
1851
+ output: output,
1852
+ parsedBody: parsedBody.Error,
1853
+ exceptionCtor: __BaseException,
1854
+ errorCode: errorCode,
1856
1855
  });
1857
- throw __decorateServiceException(response, parsedBody.Error);
1856
+ _d.label = 7;
1857
+ case 7: return [2];
1858
1858
  }
1859
1859
  });
1860
1860
  }); };
@@ -1877,7 +1877,7 @@ export var deserializeAws_queryDescribeAutoScalingNotificationTypesCommand = fun
1877
1877
  });
1878
1878
  }); };
1879
1879
  var deserializeAws_queryDescribeAutoScalingNotificationTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1880
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1880
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1881
1881
  var _c;
1882
1882
  return __generator(this, function (_d) {
1883
1883
  switch (_d.label) {
@@ -1898,14 +1898,14 @@ var deserializeAws_queryDescribeAutoScalingNotificationTypesCommandError = funct
1898
1898
  case 3: throw _d.sent();
1899
1899
  case 4:
1900
1900
  parsedBody = parsedOutput.body;
1901
- $metadata = deserializeMetadata(output);
1902
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1903
- response = new __BaseException({
1904
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1905
- $fault: "client",
1906
- $metadata: $metadata,
1901
+ throwDefaultError({
1902
+ output: output,
1903
+ parsedBody: parsedBody.Error,
1904
+ exceptionCtor: __BaseException,
1905
+ errorCode: errorCode,
1907
1906
  });
1908
- throw __decorateServiceException(response, parsedBody.Error);
1907
+ _d.label = 5;
1908
+ case 5: return [2];
1909
1909
  }
1910
1910
  });
1911
1911
  }); };
@@ -1928,7 +1928,7 @@ export var deserializeAws_queryDescribeInstanceRefreshesCommand = function (outp
1928
1928
  });
1929
1929
  }); };
1930
1930
  var deserializeAws_queryDescribeInstanceRefreshesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1931
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1931
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1932
1932
  var _c;
1933
1933
  return __generator(this, function (_d) {
1934
1934
  switch (_d.label) {
@@ -1953,14 +1953,14 @@ var deserializeAws_queryDescribeInstanceRefreshesCommandError = function (output
1953
1953
  case 5: throw _d.sent();
1954
1954
  case 6:
1955
1955
  parsedBody = parsedOutput.body;
1956
- $metadata = deserializeMetadata(output);
1957
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1958
- response = new __BaseException({
1959
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1960
- $fault: "client",
1961
- $metadata: $metadata,
1956
+ throwDefaultError({
1957
+ output: output,
1958
+ parsedBody: parsedBody.Error,
1959
+ exceptionCtor: __BaseException,
1960
+ errorCode: errorCode,
1962
1961
  });
1963
- throw __decorateServiceException(response, parsedBody.Error);
1962
+ _d.label = 7;
1963
+ case 7: return [2];
1964
1964
  }
1965
1965
  });
1966
1966
  }); };
@@ -1983,7 +1983,7 @@ export var deserializeAws_queryDescribeLaunchConfigurationsCommand = function (o
1983
1983
  });
1984
1984
  }); };
1985
1985
  var deserializeAws_queryDescribeLaunchConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1986
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1986
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1987
1987
  var _c;
1988
1988
  return __generator(this, function (_d) {
1989
1989
  switch (_d.label) {
@@ -2008,14 +2008,14 @@ var deserializeAws_queryDescribeLaunchConfigurationsCommandError = function (out
2008
2008
  case 5: throw _d.sent();
2009
2009
  case 6:
2010
2010
  parsedBody = parsedOutput.body;
2011
- $metadata = deserializeMetadata(output);
2012
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2013
- response = new __BaseException({
2014
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2015
- $fault: "client",
2016
- $metadata: $metadata,
2011
+ throwDefaultError({
2012
+ output: output,
2013
+ parsedBody: parsedBody.Error,
2014
+ exceptionCtor: __BaseException,
2015
+ errorCode: errorCode,
2017
2016
  });
2018
- throw __decorateServiceException(response, parsedBody.Error);
2017
+ _d.label = 7;
2018
+ case 7: return [2];
2019
2019
  }
2020
2020
  });
2021
2021
  }); };
@@ -2038,7 +2038,7 @@ export var deserializeAws_queryDescribeLifecycleHooksCommand = function (output,
2038
2038
  });
2039
2039
  }); };
2040
2040
  var deserializeAws_queryDescribeLifecycleHooksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2041
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2041
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2042
2042
  var _c;
2043
2043
  return __generator(this, function (_d) {
2044
2044
  switch (_d.label) {
@@ -2059,14 +2059,14 @@ var deserializeAws_queryDescribeLifecycleHooksCommandError = function (output, c
2059
2059
  case 3: throw _d.sent();
2060
2060
  case 4:
2061
2061
  parsedBody = parsedOutput.body;
2062
- $metadata = deserializeMetadata(output);
2063
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2064
- response = new __BaseException({
2065
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2066
- $fault: "client",
2067
- $metadata: $metadata,
2062
+ throwDefaultError({
2063
+ output: output,
2064
+ parsedBody: parsedBody.Error,
2065
+ exceptionCtor: __BaseException,
2066
+ errorCode: errorCode,
2068
2067
  });
2069
- throw __decorateServiceException(response, parsedBody.Error);
2068
+ _d.label = 5;
2069
+ case 5: return [2];
2070
2070
  }
2071
2071
  });
2072
2072
  }); };
@@ -2089,7 +2089,7 @@ export var deserializeAws_queryDescribeLifecycleHookTypesCommand = function (out
2089
2089
  });
2090
2090
  }); };
2091
2091
  var deserializeAws_queryDescribeLifecycleHookTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2092
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2092
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2093
2093
  var _c;
2094
2094
  return __generator(this, function (_d) {
2095
2095
  switch (_d.label) {
@@ -2110,14 +2110,14 @@ var deserializeAws_queryDescribeLifecycleHookTypesCommandError = function (outpu
2110
2110
  case 3: throw _d.sent();
2111
2111
  case 4:
2112
2112
  parsedBody = parsedOutput.body;
2113
- $metadata = deserializeMetadata(output);
2114
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2115
- response = new __BaseException({
2116
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2117
- $fault: "client",
2118
- $metadata: $metadata,
2113
+ throwDefaultError({
2114
+ output: output,
2115
+ parsedBody: parsedBody.Error,
2116
+ exceptionCtor: __BaseException,
2117
+ errorCode: errorCode,
2119
2118
  });
2120
- throw __decorateServiceException(response, parsedBody.Error);
2119
+ _d.label = 5;
2120
+ case 5: return [2];
2121
2121
  }
2122
2122
  });
2123
2123
  }); };
@@ -2140,7 +2140,7 @@ export var deserializeAws_queryDescribeLoadBalancersCommand = function (output,
2140
2140
  });
2141
2141
  }); };
2142
2142
  var deserializeAws_queryDescribeLoadBalancersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2143
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2143
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2144
2144
  var _c;
2145
2145
  return __generator(this, function (_d) {
2146
2146
  switch (_d.label) {
@@ -2165,14 +2165,14 @@ var deserializeAws_queryDescribeLoadBalancersCommandError = function (output, co
2165
2165
  case 5: throw _d.sent();
2166
2166
  case 6:
2167
2167
  parsedBody = parsedOutput.body;
2168
- $metadata = deserializeMetadata(output);
2169
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2170
- response = new __BaseException({
2171
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2172
- $fault: "client",
2173
- $metadata: $metadata,
2168
+ throwDefaultError({
2169
+ output: output,
2170
+ parsedBody: parsedBody.Error,
2171
+ exceptionCtor: __BaseException,
2172
+ errorCode: errorCode,
2174
2173
  });
2175
- throw __decorateServiceException(response, parsedBody.Error);
2174
+ _d.label = 7;
2175
+ case 7: return [2];
2176
2176
  }
2177
2177
  });
2178
2178
  }); };
@@ -2195,7 +2195,7 @@ export var deserializeAws_queryDescribeLoadBalancerTargetGroupsCommand = functio
2195
2195
  });
2196
2196
  }); };
2197
2197
  var deserializeAws_queryDescribeLoadBalancerTargetGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2198
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2198
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2199
2199
  var _c;
2200
2200
  return __generator(this, function (_d) {
2201
2201
  switch (_d.label) {
@@ -2220,14 +2220,14 @@ var deserializeAws_queryDescribeLoadBalancerTargetGroupsCommandError = function
2220
2220
  case 5: throw _d.sent();
2221
2221
  case 6:
2222
2222
  parsedBody = parsedOutput.body;
2223
- $metadata = deserializeMetadata(output);
2224
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2225
- response = new __BaseException({
2226
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2227
- $fault: "client",
2228
- $metadata: $metadata,
2223
+ throwDefaultError({
2224
+ output: output,
2225
+ parsedBody: parsedBody.Error,
2226
+ exceptionCtor: __BaseException,
2227
+ errorCode: errorCode,
2229
2228
  });
2230
- throw __decorateServiceException(response, parsedBody.Error);
2229
+ _d.label = 7;
2230
+ case 7: return [2];
2231
2231
  }
2232
2232
  });
2233
2233
  }); };
@@ -2250,7 +2250,7 @@ export var deserializeAws_queryDescribeMetricCollectionTypesCommand = function (
2250
2250
  });
2251
2251
  }); };
2252
2252
  var deserializeAws_queryDescribeMetricCollectionTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2253
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2253
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2254
2254
  var _c;
2255
2255
  return __generator(this, function (_d) {
2256
2256
  switch (_d.label) {
@@ -2271,14 +2271,14 @@ var deserializeAws_queryDescribeMetricCollectionTypesCommandError = function (ou
2271
2271
  case 3: throw _d.sent();
2272
2272
  case 4:
2273
2273
  parsedBody = parsedOutput.body;
2274
- $metadata = deserializeMetadata(output);
2275
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2276
- response = new __BaseException({
2277
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2278
- $fault: "client",
2279
- $metadata: $metadata,
2274
+ throwDefaultError({
2275
+ output: output,
2276
+ parsedBody: parsedBody.Error,
2277
+ exceptionCtor: __BaseException,
2278
+ errorCode: errorCode,
2280
2279
  });
2281
- throw __decorateServiceException(response, parsedBody.Error);
2280
+ _d.label = 5;
2281
+ case 5: return [2];
2282
2282
  }
2283
2283
  });
2284
2284
  }); };
@@ -2301,7 +2301,7 @@ export var deserializeAws_queryDescribeNotificationConfigurationsCommand = funct
2301
2301
  });
2302
2302
  }); };
2303
2303
  var deserializeAws_queryDescribeNotificationConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2304
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2304
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2305
2305
  var _c;
2306
2306
  return __generator(this, function (_d) {
2307
2307
  switch (_d.label) {
@@ -2326,14 +2326,14 @@ var deserializeAws_queryDescribeNotificationConfigurationsCommandError = functio
2326
2326
  case 5: throw _d.sent();
2327
2327
  case 6:
2328
2328
  parsedBody = parsedOutput.body;
2329
- $metadata = deserializeMetadata(output);
2330
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2331
- response = new __BaseException({
2332
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2333
- $fault: "client",
2334
- $metadata: $metadata,
2329
+ throwDefaultError({
2330
+ output: output,
2331
+ parsedBody: parsedBody.Error,
2332
+ exceptionCtor: __BaseException,
2333
+ errorCode: errorCode,
2335
2334
  });
2336
- throw __decorateServiceException(response, parsedBody.Error);
2335
+ _d.label = 7;
2336
+ case 7: return [2];
2337
2337
  }
2338
2338
  });
2339
2339
  }); };
@@ -2356,7 +2356,7 @@ export var deserializeAws_queryDescribePoliciesCommand = function (output, conte
2356
2356
  });
2357
2357
  }); };
2358
2358
  var deserializeAws_queryDescribePoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2359
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2359
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2360
2360
  var _c;
2361
2361
  return __generator(this, function (_d) {
2362
2362
  switch (_d.label) {
@@ -2385,14 +2385,14 @@ var deserializeAws_queryDescribePoliciesCommandError = function (output, context
2385
2385
  case 7: throw _d.sent();
2386
2386
  case 8:
2387
2387
  parsedBody = parsedOutput.body;
2388
- $metadata = deserializeMetadata(output);
2389
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2390
- response = new __BaseException({
2391
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2392
- $fault: "client",
2393
- $metadata: $metadata,
2388
+ throwDefaultError({
2389
+ output: output,
2390
+ parsedBody: parsedBody.Error,
2391
+ exceptionCtor: __BaseException,
2392
+ errorCode: errorCode,
2394
2393
  });
2395
- throw __decorateServiceException(response, parsedBody.Error);
2394
+ _d.label = 9;
2395
+ case 9: return [2];
2396
2396
  }
2397
2397
  });
2398
2398
  }); };
@@ -2415,7 +2415,7 @@ export var deserializeAws_queryDescribeScalingActivitiesCommand = function (outp
2415
2415
  });
2416
2416
  }); };
2417
2417
  var deserializeAws_queryDescribeScalingActivitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2418
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2418
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2419
2419
  var _c;
2420
2420
  return __generator(this, function (_d) {
2421
2421
  switch (_d.label) {
@@ -2440,14 +2440,14 @@ var deserializeAws_queryDescribeScalingActivitiesCommandError = function (output
2440
2440
  case 5: throw _d.sent();
2441
2441
  case 6:
2442
2442
  parsedBody = parsedOutput.body;
2443
- $metadata = deserializeMetadata(output);
2444
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2445
- response = new __BaseException({
2446
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2447
- $fault: "client",
2448
- $metadata: $metadata,
2443
+ throwDefaultError({
2444
+ output: output,
2445
+ parsedBody: parsedBody.Error,
2446
+ exceptionCtor: __BaseException,
2447
+ errorCode: errorCode,
2449
2448
  });
2450
- throw __decorateServiceException(response, parsedBody.Error);
2449
+ _d.label = 7;
2450
+ case 7: return [2];
2451
2451
  }
2452
2452
  });
2453
2453
  }); };
@@ -2470,7 +2470,7 @@ export var deserializeAws_queryDescribeScalingProcessTypesCommand = function (ou
2470
2470
  });
2471
2471
  }); };
2472
2472
  var deserializeAws_queryDescribeScalingProcessTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2473
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2473
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2474
2474
  var _c;
2475
2475
  return __generator(this, function (_d) {
2476
2476
  switch (_d.label) {
@@ -2491,14 +2491,14 @@ var deserializeAws_queryDescribeScalingProcessTypesCommandError = function (outp
2491
2491
  case 3: throw _d.sent();
2492
2492
  case 4:
2493
2493
  parsedBody = parsedOutput.body;
2494
- $metadata = deserializeMetadata(output);
2495
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2496
- response = new __BaseException({
2497
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2498
- $fault: "client",
2499
- $metadata: $metadata,
2494
+ throwDefaultError({
2495
+ output: output,
2496
+ parsedBody: parsedBody.Error,
2497
+ exceptionCtor: __BaseException,
2498
+ errorCode: errorCode,
2500
2499
  });
2501
- throw __decorateServiceException(response, parsedBody.Error);
2500
+ _d.label = 5;
2501
+ case 5: return [2];
2502
2502
  }
2503
2503
  });
2504
2504
  }); };
@@ -2521,7 +2521,7 @@ export var deserializeAws_queryDescribeScheduledActionsCommand = function (outpu
2521
2521
  });
2522
2522
  }); };
2523
2523
  var deserializeAws_queryDescribeScheduledActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2524
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2524
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2525
2525
  var _c;
2526
2526
  return __generator(this, function (_d) {
2527
2527
  switch (_d.label) {
@@ -2546,14 +2546,14 @@ var deserializeAws_queryDescribeScheduledActionsCommandError = function (output,
2546
2546
  case 5: throw _d.sent();
2547
2547
  case 6:
2548
2548
  parsedBody = parsedOutput.body;
2549
- $metadata = deserializeMetadata(output);
2550
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2551
- response = new __BaseException({
2552
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2553
- $fault: "client",
2554
- $metadata: $metadata,
2549
+ throwDefaultError({
2550
+ output: output,
2551
+ parsedBody: parsedBody.Error,
2552
+ exceptionCtor: __BaseException,
2553
+ errorCode: errorCode,
2555
2554
  });
2556
- throw __decorateServiceException(response, parsedBody.Error);
2555
+ _d.label = 7;
2556
+ case 7: return [2];
2557
2557
  }
2558
2558
  });
2559
2559
  }); };
@@ -2576,7 +2576,7 @@ export var deserializeAws_queryDescribeTagsCommand = function (output, context)
2576
2576
  });
2577
2577
  }); };
2578
2578
  var deserializeAws_queryDescribeTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2579
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2579
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2580
2580
  var _c;
2581
2581
  return __generator(this, function (_d) {
2582
2582
  switch (_d.label) {
@@ -2601,14 +2601,14 @@ var deserializeAws_queryDescribeTagsCommandError = function (output, context) {
2601
2601
  case 5: throw _d.sent();
2602
2602
  case 6:
2603
2603
  parsedBody = parsedOutput.body;
2604
- $metadata = deserializeMetadata(output);
2605
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2606
- response = new __BaseException({
2607
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2608
- $fault: "client",
2609
- $metadata: $metadata,
2604
+ throwDefaultError({
2605
+ output: output,
2606
+ parsedBody: parsedBody.Error,
2607
+ exceptionCtor: __BaseException,
2608
+ errorCode: errorCode,
2610
2609
  });
2611
- throw __decorateServiceException(response, parsedBody.Error);
2610
+ _d.label = 7;
2611
+ case 7: return [2];
2612
2612
  }
2613
2613
  });
2614
2614
  }); };
@@ -2631,7 +2631,7 @@ export var deserializeAws_queryDescribeTerminationPolicyTypesCommand = function
2631
2631
  });
2632
2632
  }); };
2633
2633
  var deserializeAws_queryDescribeTerminationPolicyTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2634
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2634
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2635
2635
  var _c;
2636
2636
  return __generator(this, function (_d) {
2637
2637
  switch (_d.label) {
@@ -2652,14 +2652,14 @@ var deserializeAws_queryDescribeTerminationPolicyTypesCommandError = function (o
2652
2652
  case 3: throw _d.sent();
2653
2653
  case 4:
2654
2654
  parsedBody = parsedOutput.body;
2655
- $metadata = deserializeMetadata(output);
2656
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2657
- response = new __BaseException({
2658
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2659
- $fault: "client",
2660
- $metadata: $metadata,
2655
+ throwDefaultError({
2656
+ output: output,
2657
+ parsedBody: parsedBody.Error,
2658
+ exceptionCtor: __BaseException,
2659
+ errorCode: errorCode,
2661
2660
  });
2662
- throw __decorateServiceException(response, parsedBody.Error);
2661
+ _d.label = 5;
2662
+ case 5: return [2];
2663
2663
  }
2664
2664
  });
2665
2665
  }); };
@@ -2682,7 +2682,7 @@ export var deserializeAws_queryDescribeWarmPoolCommand = function (output, conte
2682
2682
  });
2683
2683
  }); };
2684
2684
  var deserializeAws_queryDescribeWarmPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2685
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2685
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2686
2686
  var _c;
2687
2687
  return __generator(this, function (_d) {
2688
2688
  switch (_d.label) {
@@ -2711,14 +2711,14 @@ var deserializeAws_queryDescribeWarmPoolCommandError = function (output, context
2711
2711
  case 7: throw _d.sent();
2712
2712
  case 8:
2713
2713
  parsedBody = parsedOutput.body;
2714
- $metadata = deserializeMetadata(output);
2715
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2716
- response = new __BaseException({
2717
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2718
- $fault: "client",
2719
- $metadata: $metadata,
2714
+ throwDefaultError({
2715
+ output: output,
2716
+ parsedBody: parsedBody.Error,
2717
+ exceptionCtor: __BaseException,
2718
+ errorCode: errorCode,
2720
2719
  });
2721
- throw __decorateServiceException(response, parsedBody.Error);
2720
+ _d.label = 9;
2721
+ case 9: return [2];
2722
2722
  }
2723
2723
  });
2724
2724
  }); };
@@ -2741,7 +2741,7 @@ export var deserializeAws_queryDetachInstancesCommand = function (output, contex
2741
2741
  });
2742
2742
  }); };
2743
2743
  var deserializeAws_queryDetachInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2744
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2744
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2745
2745
  var _c;
2746
2746
  return __generator(this, function (_d) {
2747
2747
  switch (_d.label) {
@@ -2762,14 +2762,14 @@ var deserializeAws_queryDetachInstancesCommandError = function (output, context)
2762
2762
  case 3: throw _d.sent();
2763
2763
  case 4:
2764
2764
  parsedBody = parsedOutput.body;
2765
- $metadata = deserializeMetadata(output);
2766
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2767
- response = new __BaseException({
2768
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2769
- $fault: "client",
2770
- $metadata: $metadata,
2765
+ throwDefaultError({
2766
+ output: output,
2767
+ parsedBody: parsedBody.Error,
2768
+ exceptionCtor: __BaseException,
2769
+ errorCode: errorCode,
2771
2770
  });
2772
- throw __decorateServiceException(response, parsedBody.Error);
2771
+ _d.label = 5;
2772
+ case 5: return [2];
2773
2773
  }
2774
2774
  });
2775
2775
  }); };
@@ -2792,7 +2792,7 @@ export var deserializeAws_queryDetachLoadBalancersCommand = function (output, co
2792
2792
  });
2793
2793
  }); };
2794
2794
  var deserializeAws_queryDetachLoadBalancersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2795
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2795
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2796
2796
  var _c;
2797
2797
  return __generator(this, function (_d) {
2798
2798
  switch (_d.label) {
@@ -2813,14 +2813,14 @@ var deserializeAws_queryDetachLoadBalancersCommandError = function (output, cont
2813
2813
  case 3: throw _d.sent();
2814
2814
  case 4:
2815
2815
  parsedBody = parsedOutput.body;
2816
- $metadata = deserializeMetadata(output);
2817
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2818
- response = new __BaseException({
2819
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2820
- $fault: "client",
2821
- $metadata: $metadata,
2816
+ throwDefaultError({
2817
+ output: output,
2818
+ parsedBody: parsedBody.Error,
2819
+ exceptionCtor: __BaseException,
2820
+ errorCode: errorCode,
2822
2821
  });
2823
- throw __decorateServiceException(response, parsedBody.Error);
2822
+ _d.label = 5;
2823
+ case 5: return [2];
2824
2824
  }
2825
2825
  });
2826
2826
  }); };
@@ -2843,7 +2843,7 @@ export var deserializeAws_queryDetachLoadBalancerTargetGroupsCommand = function
2843
2843
  });
2844
2844
  }); };
2845
2845
  var deserializeAws_queryDetachLoadBalancerTargetGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2846
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2846
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2847
2847
  var _c;
2848
2848
  return __generator(this, function (_d) {
2849
2849
  switch (_d.label) {
@@ -2864,14 +2864,14 @@ var deserializeAws_queryDetachLoadBalancerTargetGroupsCommandError = function (o
2864
2864
  case 3: throw _d.sent();
2865
2865
  case 4:
2866
2866
  parsedBody = parsedOutput.body;
2867
- $metadata = deserializeMetadata(output);
2868
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2869
- response = new __BaseException({
2870
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2871
- $fault: "client",
2872
- $metadata: $metadata,
2867
+ throwDefaultError({
2868
+ output: output,
2869
+ parsedBody: parsedBody.Error,
2870
+ exceptionCtor: __BaseException,
2871
+ errorCode: errorCode,
2873
2872
  });
2874
- throw __decorateServiceException(response, parsedBody.Error);
2873
+ _d.label = 5;
2874
+ case 5: return [2];
2875
2875
  }
2876
2876
  });
2877
2877
  }); };
@@ -2894,7 +2894,7 @@ export var deserializeAws_queryDisableMetricsCollectionCommand = function (outpu
2894
2894
  });
2895
2895
  }); };
2896
2896
  var deserializeAws_queryDisableMetricsCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2897
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2897
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2898
2898
  var _c;
2899
2899
  return __generator(this, function (_d) {
2900
2900
  switch (_d.label) {
@@ -2915,14 +2915,14 @@ var deserializeAws_queryDisableMetricsCollectionCommandError = function (output,
2915
2915
  case 3: throw _d.sent();
2916
2916
  case 4:
2917
2917
  parsedBody = parsedOutput.body;
2918
- $metadata = deserializeMetadata(output);
2919
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2920
- response = new __BaseException({
2921
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2922
- $fault: "client",
2923
- $metadata: $metadata,
2918
+ throwDefaultError({
2919
+ output: output,
2920
+ parsedBody: parsedBody.Error,
2921
+ exceptionCtor: __BaseException,
2922
+ errorCode: errorCode,
2924
2923
  });
2925
- throw __decorateServiceException(response, parsedBody.Error);
2924
+ _d.label = 5;
2925
+ case 5: return [2];
2926
2926
  }
2927
2927
  });
2928
2928
  }); };
@@ -2945,7 +2945,7 @@ export var deserializeAws_queryEnableMetricsCollectionCommand = function (output
2945
2945
  });
2946
2946
  }); };
2947
2947
  var deserializeAws_queryEnableMetricsCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2948
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2948
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2949
2949
  var _c;
2950
2950
  return __generator(this, function (_d) {
2951
2951
  switch (_d.label) {
@@ -2966,14 +2966,14 @@ var deserializeAws_queryEnableMetricsCollectionCommandError = function (output,
2966
2966
  case 3: throw _d.sent();
2967
2967
  case 4:
2968
2968
  parsedBody = parsedOutput.body;
2969
- $metadata = deserializeMetadata(output);
2970
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2971
- response = new __BaseException({
2972
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2973
- $fault: "client",
2974
- $metadata: $metadata,
2969
+ throwDefaultError({
2970
+ output: output,
2971
+ parsedBody: parsedBody.Error,
2972
+ exceptionCtor: __BaseException,
2973
+ errorCode: errorCode,
2975
2974
  });
2976
- throw __decorateServiceException(response, parsedBody.Error);
2975
+ _d.label = 5;
2976
+ case 5: return [2];
2977
2977
  }
2978
2978
  });
2979
2979
  }); };
@@ -2996,7 +2996,7 @@ export var deserializeAws_queryEnterStandbyCommand = function (output, context)
2996
2996
  });
2997
2997
  }); };
2998
2998
  var deserializeAws_queryEnterStandbyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2999
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2999
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3000
3000
  var _c;
3001
3001
  return __generator(this, function (_d) {
3002
3002
  switch (_d.label) {
@@ -3017,14 +3017,14 @@ var deserializeAws_queryEnterStandbyCommandError = function (output, context) {
3017
3017
  case 3: throw _d.sent();
3018
3018
  case 4:
3019
3019
  parsedBody = parsedOutput.body;
3020
- $metadata = deserializeMetadata(output);
3021
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3022
- response = new __BaseException({
3023
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3024
- $fault: "client",
3025
- $metadata: $metadata,
3020
+ throwDefaultError({
3021
+ output: output,
3022
+ parsedBody: parsedBody.Error,
3023
+ exceptionCtor: __BaseException,
3024
+ errorCode: errorCode,
3026
3025
  });
3027
- throw __decorateServiceException(response, parsedBody.Error);
3026
+ _d.label = 5;
3027
+ case 5: return [2];
3028
3028
  }
3029
3029
  });
3030
3030
  }); };
@@ -3047,7 +3047,7 @@ export var deserializeAws_queryExecutePolicyCommand = function (output, context)
3047
3047
  });
3048
3048
  }); };
3049
3049
  var deserializeAws_queryExecutePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3050
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3050
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3051
3051
  var _c;
3052
3052
  return __generator(this, function (_d) {
3053
3053
  switch (_d.label) {
@@ -3072,14 +3072,14 @@ var deserializeAws_queryExecutePolicyCommandError = function (output, context) {
3072
3072
  case 5: throw _d.sent();
3073
3073
  case 6:
3074
3074
  parsedBody = parsedOutput.body;
3075
- $metadata = deserializeMetadata(output);
3076
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3077
- response = new __BaseException({
3078
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3079
- $fault: "client",
3080
- $metadata: $metadata,
3075
+ throwDefaultError({
3076
+ output: output,
3077
+ parsedBody: parsedBody.Error,
3078
+ exceptionCtor: __BaseException,
3079
+ errorCode: errorCode,
3081
3080
  });
3082
- throw __decorateServiceException(response, parsedBody.Error);
3081
+ _d.label = 7;
3082
+ case 7: return [2];
3083
3083
  }
3084
3084
  });
3085
3085
  }); };
@@ -3102,7 +3102,7 @@ export var deserializeAws_queryExitStandbyCommand = function (output, context) {
3102
3102
  });
3103
3103
  }); };
3104
3104
  var deserializeAws_queryExitStandbyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3105
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3105
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3106
3106
  var _c;
3107
3107
  return __generator(this, function (_d) {
3108
3108
  switch (_d.label) {
@@ -3123,14 +3123,14 @@ var deserializeAws_queryExitStandbyCommandError = function (output, context) { r
3123
3123
  case 3: throw _d.sent();
3124
3124
  case 4:
3125
3125
  parsedBody = parsedOutput.body;
3126
- $metadata = deserializeMetadata(output);
3127
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3128
- response = new __BaseException({
3129
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3130
- $fault: "client",
3131
- $metadata: $metadata,
3126
+ throwDefaultError({
3127
+ output: output,
3128
+ parsedBody: parsedBody.Error,
3129
+ exceptionCtor: __BaseException,
3130
+ errorCode: errorCode,
3132
3131
  });
3133
- throw __decorateServiceException(response, parsedBody.Error);
3132
+ _d.label = 5;
3133
+ case 5: return [2];
3134
3134
  }
3135
3135
  });
3136
3136
  }); };
@@ -3153,7 +3153,7 @@ export var deserializeAws_queryGetPredictiveScalingForecastCommand = function (o
3153
3153
  });
3154
3154
  }); };
3155
3155
  var deserializeAws_queryGetPredictiveScalingForecastCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3156
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3156
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3157
3157
  var _c;
3158
3158
  return __generator(this, function (_d) {
3159
3159
  switch (_d.label) {
@@ -3174,14 +3174,14 @@ var deserializeAws_queryGetPredictiveScalingForecastCommandError = function (out
3174
3174
  case 3: throw _d.sent();
3175
3175
  case 4:
3176
3176
  parsedBody = parsedOutput.body;
3177
- $metadata = deserializeMetadata(output);
3178
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3179
- response = new __BaseException({
3180
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3181
- $fault: "client",
3182
- $metadata: $metadata,
3177
+ throwDefaultError({
3178
+ output: output,
3179
+ parsedBody: parsedBody.Error,
3180
+ exceptionCtor: __BaseException,
3181
+ errorCode: errorCode,
3183
3182
  });
3184
- throw __decorateServiceException(response, parsedBody.Error);
3183
+ _d.label = 5;
3184
+ case 5: return [2];
3185
3185
  }
3186
3186
  });
3187
3187
  }); };
@@ -3204,7 +3204,7 @@ export var deserializeAws_queryPutLifecycleHookCommand = function (output, conte
3204
3204
  });
3205
3205
  }); };
3206
3206
  var deserializeAws_queryPutLifecycleHookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3207
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3207
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3208
3208
  var _c;
3209
3209
  return __generator(this, function (_d) {
3210
3210
  switch (_d.label) {
@@ -3229,14 +3229,14 @@ var deserializeAws_queryPutLifecycleHookCommandError = function (output, context
3229
3229
  case 5: throw _d.sent();
3230
3230
  case 6:
3231
3231
  parsedBody = parsedOutput.body;
3232
- $metadata = deserializeMetadata(output);
3233
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3234
- response = new __BaseException({
3235
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3236
- $fault: "client",
3237
- $metadata: $metadata,
3232
+ throwDefaultError({
3233
+ output: output,
3234
+ parsedBody: parsedBody.Error,
3235
+ exceptionCtor: __BaseException,
3236
+ errorCode: errorCode,
3238
3237
  });
3239
- throw __decorateServiceException(response, parsedBody.Error);
3238
+ _d.label = 7;
3239
+ case 7: return [2];
3240
3240
  }
3241
3241
  });
3242
3242
  }); };
@@ -3259,7 +3259,7 @@ export var deserializeAws_queryPutNotificationConfigurationCommand = function (o
3259
3259
  });
3260
3260
  }); };
3261
3261
  var deserializeAws_queryPutNotificationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3262
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3262
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3263
3263
  var _c;
3264
3264
  return __generator(this, function (_d) {
3265
3265
  switch (_d.label) {
@@ -3288,14 +3288,14 @@ var deserializeAws_queryPutNotificationConfigurationCommandError = function (out
3288
3288
  case 7: throw _d.sent();
3289
3289
  case 8:
3290
3290
  parsedBody = parsedOutput.body;
3291
- $metadata = deserializeMetadata(output);
3292
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3293
- response = new __BaseException({
3294
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3295
- $fault: "client",
3296
- $metadata: $metadata,
3291
+ throwDefaultError({
3292
+ output: output,
3293
+ parsedBody: parsedBody.Error,
3294
+ exceptionCtor: __BaseException,
3295
+ errorCode: errorCode,
3297
3296
  });
3298
- throw __decorateServiceException(response, parsedBody.Error);
3297
+ _d.label = 9;
3298
+ case 9: return [2];
3299
3299
  }
3300
3300
  });
3301
3301
  }); };
@@ -3318,7 +3318,7 @@ export var deserializeAws_queryPutScalingPolicyCommand = function (output, conte
3318
3318
  });
3319
3319
  }); };
3320
3320
  var deserializeAws_queryPutScalingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3321
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3321
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3322
3322
  var _c;
3323
3323
  return __generator(this, function (_d) {
3324
3324
  switch (_d.label) {
@@ -3347,14 +3347,14 @@ var deserializeAws_queryPutScalingPolicyCommandError = function (output, context
3347
3347
  case 7: throw _d.sent();
3348
3348
  case 8:
3349
3349
  parsedBody = parsedOutput.body;
3350
- $metadata = deserializeMetadata(output);
3351
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3352
- response = new __BaseException({
3353
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3354
- $fault: "client",
3355
- $metadata: $metadata,
3350
+ throwDefaultError({
3351
+ output: output,
3352
+ parsedBody: parsedBody.Error,
3353
+ exceptionCtor: __BaseException,
3354
+ errorCode: errorCode,
3356
3355
  });
3357
- throw __decorateServiceException(response, parsedBody.Error);
3356
+ _d.label = 9;
3357
+ case 9: return [2];
3358
3358
  }
3359
3359
  });
3360
3360
  }); };
@@ -3377,7 +3377,7 @@ export var deserializeAws_queryPutScheduledUpdateGroupActionCommand = function (
3377
3377
  });
3378
3378
  }); };
3379
3379
  var deserializeAws_queryPutScheduledUpdateGroupActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3380
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3380
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3381
3381
  var _c;
3382
3382
  return __generator(this, function (_d) {
3383
3383
  switch (_d.label) {
@@ -3406,14 +3406,14 @@ var deserializeAws_queryPutScheduledUpdateGroupActionCommandError = function (ou
3406
3406
  case 7: throw _d.sent();
3407
3407
  case 8:
3408
3408
  parsedBody = parsedOutput.body;
3409
- $metadata = deserializeMetadata(output);
3410
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3411
- response = new __BaseException({
3412
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3413
- $fault: "client",
3414
- $metadata: $metadata,
3409
+ throwDefaultError({
3410
+ output: output,
3411
+ parsedBody: parsedBody.Error,
3412
+ exceptionCtor: __BaseException,
3413
+ errorCode: errorCode,
3415
3414
  });
3416
- throw __decorateServiceException(response, parsedBody.Error);
3415
+ _d.label = 9;
3416
+ case 9: return [2];
3417
3417
  }
3418
3418
  });
3419
3419
  }); };
@@ -3436,7 +3436,7 @@ export var deserializeAws_queryPutWarmPoolCommand = function (output, context) {
3436
3436
  });
3437
3437
  }); };
3438
3438
  var deserializeAws_queryPutWarmPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3439
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3439
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3440
3440
  var _c;
3441
3441
  return __generator(this, function (_d) {
3442
3442
  switch (_d.label) {
@@ -3461,14 +3461,14 @@ var deserializeAws_queryPutWarmPoolCommandError = function (output, context) { r
3461
3461
  case 5: throw _d.sent();
3462
3462
  case 6:
3463
3463
  parsedBody = parsedOutput.body;
3464
- $metadata = deserializeMetadata(output);
3465
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3466
- response = new __BaseException({
3467
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3468
- $fault: "client",
3469
- $metadata: $metadata,
3464
+ throwDefaultError({
3465
+ output: output,
3466
+ parsedBody: parsedBody.Error,
3467
+ exceptionCtor: __BaseException,
3468
+ errorCode: errorCode,
3470
3469
  });
3471
- throw __decorateServiceException(response, parsedBody.Error);
3470
+ _d.label = 7;
3471
+ case 7: return [2];
3472
3472
  }
3473
3473
  });
3474
3474
  }); };
@@ -3491,7 +3491,7 @@ export var deserializeAws_queryRecordLifecycleActionHeartbeatCommand = function
3491
3491
  });
3492
3492
  }); };
3493
3493
  var deserializeAws_queryRecordLifecycleActionHeartbeatCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3494
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3494
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3495
3495
  var _c;
3496
3496
  return __generator(this, function (_d) {
3497
3497
  switch (_d.label) {
@@ -3512,14 +3512,14 @@ var deserializeAws_queryRecordLifecycleActionHeartbeatCommandError = function (o
3512
3512
  case 3: throw _d.sent();
3513
3513
  case 4:
3514
3514
  parsedBody = parsedOutput.body;
3515
- $metadata = deserializeMetadata(output);
3516
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3517
- response = new __BaseException({
3518
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3519
- $fault: "client",
3520
- $metadata: $metadata,
3515
+ throwDefaultError({
3516
+ output: output,
3517
+ parsedBody: parsedBody.Error,
3518
+ exceptionCtor: __BaseException,
3519
+ errorCode: errorCode,
3521
3520
  });
3522
- throw __decorateServiceException(response, parsedBody.Error);
3521
+ _d.label = 5;
3522
+ case 5: return [2];
3523
3523
  }
3524
3524
  });
3525
3525
  }); };
@@ -3542,7 +3542,7 @@ export var deserializeAws_queryResumeProcessesCommand = function (output, contex
3542
3542
  });
3543
3543
  }); };
3544
3544
  var deserializeAws_queryResumeProcessesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3545
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3545
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3546
3546
  var _c;
3547
3547
  return __generator(this, function (_d) {
3548
3548
  switch (_d.label) {
@@ -3567,14 +3567,14 @@ var deserializeAws_queryResumeProcessesCommandError = function (output, context)
3567
3567
  case 5: throw _d.sent();
3568
3568
  case 6:
3569
3569
  parsedBody = parsedOutput.body;
3570
- $metadata = deserializeMetadata(output);
3571
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3572
- response = new __BaseException({
3573
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3574
- $fault: "client",
3575
- $metadata: $metadata,
3570
+ throwDefaultError({
3571
+ output: output,
3572
+ parsedBody: parsedBody.Error,
3573
+ exceptionCtor: __BaseException,
3574
+ errorCode: errorCode,
3576
3575
  });
3577
- throw __decorateServiceException(response, parsedBody.Error);
3576
+ _d.label = 7;
3577
+ case 7: return [2];
3578
3578
  }
3579
3579
  });
3580
3580
  }); };
@@ -3597,7 +3597,7 @@ export var deserializeAws_querySetDesiredCapacityCommand = function (output, con
3597
3597
  });
3598
3598
  }); };
3599
3599
  var deserializeAws_querySetDesiredCapacityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3600
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3600
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3601
3601
  var _c;
3602
3602
  return __generator(this, function (_d) {
3603
3603
  switch (_d.label) {
@@ -3622,14 +3622,14 @@ var deserializeAws_querySetDesiredCapacityCommandError = function (output, conte
3622
3622
  case 5: throw _d.sent();
3623
3623
  case 6:
3624
3624
  parsedBody = parsedOutput.body;
3625
- $metadata = deserializeMetadata(output);
3626
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3627
- response = new __BaseException({
3628
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3629
- $fault: "client",
3630
- $metadata: $metadata,
3625
+ throwDefaultError({
3626
+ output: output,
3627
+ parsedBody: parsedBody.Error,
3628
+ exceptionCtor: __BaseException,
3629
+ errorCode: errorCode,
3631
3630
  });
3632
- throw __decorateServiceException(response, parsedBody.Error);
3631
+ _d.label = 7;
3632
+ case 7: return [2];
3633
3633
  }
3634
3634
  });
3635
3635
  }); };
@@ -3652,7 +3652,7 @@ export var deserializeAws_querySetInstanceHealthCommand = function (output, cont
3652
3652
  });
3653
3653
  }); };
3654
3654
  var deserializeAws_querySetInstanceHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3655
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3655
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3656
3656
  var _c;
3657
3657
  return __generator(this, function (_d) {
3658
3658
  switch (_d.label) {
@@ -3673,14 +3673,14 @@ var deserializeAws_querySetInstanceHealthCommandError = function (output, contex
3673
3673
  case 3: throw _d.sent();
3674
3674
  case 4:
3675
3675
  parsedBody = parsedOutput.body;
3676
- $metadata = deserializeMetadata(output);
3677
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3678
- response = new __BaseException({
3679
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3680
- $fault: "client",
3681
- $metadata: $metadata,
3676
+ throwDefaultError({
3677
+ output: output,
3678
+ parsedBody: parsedBody.Error,
3679
+ exceptionCtor: __BaseException,
3680
+ errorCode: errorCode,
3682
3681
  });
3683
- throw __decorateServiceException(response, parsedBody.Error);
3682
+ _d.label = 5;
3683
+ case 5: return [2];
3684
3684
  }
3685
3685
  });
3686
3686
  }); };
@@ -3703,7 +3703,7 @@ export var deserializeAws_querySetInstanceProtectionCommand = function (output,
3703
3703
  });
3704
3704
  }); };
3705
3705
  var deserializeAws_querySetInstanceProtectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3706
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3706
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3707
3707
  var _c;
3708
3708
  return __generator(this, function (_d) {
3709
3709
  switch (_d.label) {
@@ -3728,14 +3728,14 @@ var deserializeAws_querySetInstanceProtectionCommandError = function (output, co
3728
3728
  case 5: throw _d.sent();
3729
3729
  case 6:
3730
3730
  parsedBody = parsedOutput.body;
3731
- $metadata = deserializeMetadata(output);
3732
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3733
- response = new __BaseException({
3734
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3735
- $fault: "client",
3736
- $metadata: $metadata,
3731
+ throwDefaultError({
3732
+ output: output,
3733
+ parsedBody: parsedBody.Error,
3734
+ exceptionCtor: __BaseException,
3735
+ errorCode: errorCode,
3737
3736
  });
3738
- throw __decorateServiceException(response, parsedBody.Error);
3737
+ _d.label = 7;
3738
+ case 7: return [2];
3739
3739
  }
3740
3740
  });
3741
3741
  }); };
@@ -3758,7 +3758,7 @@ export var deserializeAws_queryStartInstanceRefreshCommand = function (output, c
3758
3758
  });
3759
3759
  }); };
3760
3760
  var deserializeAws_queryStartInstanceRefreshCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3761
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3761
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3762
3762
  var _c;
3763
3763
  return __generator(this, function (_d) {
3764
3764
  switch (_d.label) {
@@ -3787,14 +3787,14 @@ var deserializeAws_queryStartInstanceRefreshCommandError = function (output, con
3787
3787
  case 7: throw _d.sent();
3788
3788
  case 8:
3789
3789
  parsedBody = parsedOutput.body;
3790
- $metadata = deserializeMetadata(output);
3791
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3792
- response = new __BaseException({
3793
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3794
- $fault: "client",
3795
- $metadata: $metadata,
3790
+ throwDefaultError({
3791
+ output: output,
3792
+ parsedBody: parsedBody.Error,
3793
+ exceptionCtor: __BaseException,
3794
+ errorCode: errorCode,
3796
3795
  });
3797
- throw __decorateServiceException(response, parsedBody.Error);
3796
+ _d.label = 9;
3797
+ case 9: return [2];
3798
3798
  }
3799
3799
  });
3800
3800
  }); };
@@ -3817,7 +3817,7 @@ export var deserializeAws_querySuspendProcessesCommand = function (output, conte
3817
3817
  });
3818
3818
  }); };
3819
3819
  var deserializeAws_querySuspendProcessesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3820
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3820
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3821
3821
  var _c;
3822
3822
  return __generator(this, function (_d) {
3823
3823
  switch (_d.label) {
@@ -3842,14 +3842,14 @@ var deserializeAws_querySuspendProcessesCommandError = function (output, context
3842
3842
  case 5: throw _d.sent();
3843
3843
  case 6:
3844
3844
  parsedBody = parsedOutput.body;
3845
- $metadata = deserializeMetadata(output);
3846
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3847
- response = new __BaseException({
3848
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3849
- $fault: "client",
3850
- $metadata: $metadata,
3845
+ throwDefaultError({
3846
+ output: output,
3847
+ parsedBody: parsedBody.Error,
3848
+ exceptionCtor: __BaseException,
3849
+ errorCode: errorCode,
3851
3850
  });
3852
- throw __decorateServiceException(response, parsedBody.Error);
3851
+ _d.label = 7;
3852
+ case 7: return [2];
3853
3853
  }
3854
3854
  });
3855
3855
  }); };
@@ -3872,7 +3872,7 @@ export var deserializeAws_queryTerminateInstanceInAutoScalingGroupCommand = func
3872
3872
  });
3873
3873
  }); };
3874
3874
  var deserializeAws_queryTerminateInstanceInAutoScalingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3875
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3875
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3876
3876
  var _c;
3877
3877
  return __generator(this, function (_d) {
3878
3878
  switch (_d.label) {
@@ -3897,14 +3897,14 @@ var deserializeAws_queryTerminateInstanceInAutoScalingGroupCommandError = functi
3897
3897
  case 5: throw _d.sent();
3898
3898
  case 6:
3899
3899
  parsedBody = parsedOutput.body;
3900
- $metadata = deserializeMetadata(output);
3901
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3902
- response = new __BaseException({
3903
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3904
- $fault: "client",
3905
- $metadata: $metadata,
3900
+ throwDefaultError({
3901
+ output: output,
3902
+ parsedBody: parsedBody.Error,
3903
+ exceptionCtor: __BaseException,
3904
+ errorCode: errorCode,
3906
3905
  });
3907
- throw __decorateServiceException(response, parsedBody.Error);
3906
+ _d.label = 7;
3907
+ case 7: return [2];
3908
3908
  }
3909
3909
  });
3910
3910
  }); };
@@ -3927,7 +3927,7 @@ export var deserializeAws_queryUpdateAutoScalingGroupCommand = function (output,
3927
3927
  });
3928
3928
  }); };
3929
3929
  var deserializeAws_queryUpdateAutoScalingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3930
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3930
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3931
3931
  var _c;
3932
3932
  return __generator(this, function (_d) {
3933
3933
  switch (_d.label) {
@@ -3956,14 +3956,14 @@ var deserializeAws_queryUpdateAutoScalingGroupCommandError = function (output, c
3956
3956
  case 7: throw _d.sent();
3957
3957
  case 8:
3958
3958
  parsedBody = parsedOutput.body;
3959
- $metadata = deserializeMetadata(output);
3960
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3961
- response = new __BaseException({
3962
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3963
- $fault: "client",
3964
- $metadata: $metadata,
3959
+ throwDefaultError({
3960
+ output: output,
3961
+ parsedBody: parsedBody.Error,
3962
+ exceptionCtor: __BaseException,
3963
+ errorCode: errorCode,
3965
3964
  });
3966
- throw __decorateServiceException(response, parsedBody.Error);
3965
+ _d.label = 9;
3966
+ case 9: return [2];
3967
3967
  }
3968
3968
  });
3969
3969
  }); };
@@ -4050,10 +4050,10 @@ var deserializeAws_queryServiceLinkedRoleFailureResponse = function (parsedOutpu
4050
4050
  }); };
4051
4051
  var serializeAws_queryAcceleratorCountRequest = function (input, context) {
4052
4052
  var entries = {};
4053
- if (input.Min !== undefined && input.Min !== null) {
4053
+ if (input.Min != null) {
4054
4054
  entries["Min"] = input.Min;
4055
4055
  }
4056
- if (input.Max !== undefined && input.Max !== null) {
4056
+ if (input.Max != null) {
4057
4057
  entries["Max"] = input.Max;
4058
4058
  }
4059
4059
  return entries;
@@ -4106,10 +4106,10 @@ var serializeAws_queryAcceleratorNames = function (input, context) {
4106
4106
  };
4107
4107
  var serializeAws_queryAcceleratorTotalMemoryMiBRequest = function (input, context) {
4108
4108
  var entries = {};
4109
- if (input.Min !== undefined && input.Min !== null) {
4109
+ if (input.Min != null) {
4110
4110
  entries["Min"] = input.Min;
4111
4111
  }
4112
- if (input.Max !== undefined && input.Max !== null) {
4112
+ if (input.Max != null) {
4113
4113
  entries["Max"] = input.Max;
4114
4114
  }
4115
4115
  return entries;
@@ -4162,7 +4162,7 @@ var serializeAws_queryActivityIds = function (input, context) {
4162
4162
  };
4163
4163
  var serializeAws_queryAttachInstancesQuery = function (input, context) {
4164
4164
  var entries = {};
4165
- if (input.InstanceIds !== undefined && input.InstanceIds !== null) {
4165
+ if (input.InstanceIds != null) {
4166
4166
  var memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
4167
4167
  Object.entries(memberEntries).forEach(function (_a) {
4168
4168
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4170,17 +4170,17 @@ var serializeAws_queryAttachInstancesQuery = function (input, context) {
4170
4170
  entries[loc] = value;
4171
4171
  });
4172
4172
  }
4173
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4173
+ if (input.AutoScalingGroupName != null) {
4174
4174
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4175
4175
  }
4176
4176
  return entries;
4177
4177
  };
4178
4178
  var serializeAws_queryAttachLoadBalancersType = function (input, context) {
4179
4179
  var entries = {};
4180
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4180
+ if (input.AutoScalingGroupName != null) {
4181
4181
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4182
4182
  }
4183
- if (input.LoadBalancerNames !== undefined && input.LoadBalancerNames !== null) {
4183
+ if (input.LoadBalancerNames != null) {
4184
4184
  var memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
4185
4185
  Object.entries(memberEntries).forEach(function (_a) {
4186
4186
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4192,10 +4192,10 @@ var serializeAws_queryAttachLoadBalancersType = function (input, context) {
4192
4192
  };
4193
4193
  var serializeAws_queryAttachLoadBalancerTargetGroupsType = function (input, context) {
4194
4194
  var entries = {};
4195
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4195
+ if (input.AutoScalingGroupName != null) {
4196
4196
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4197
4197
  }
4198
- if (input.TargetGroupARNs !== undefined && input.TargetGroupARNs !== null) {
4198
+ if (input.TargetGroupARNs != null) {
4199
4199
  var memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
4200
4200
  Object.entries(memberEntries).forEach(function (_a) {
4201
4201
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4230,7 +4230,7 @@ var serializeAws_queryAutoScalingGroupNames = function (input, context) {
4230
4230
  };
4231
4231
  var serializeAws_queryAutoScalingGroupNamesType = function (input, context) {
4232
4232
  var entries = {};
4233
- if (input.AutoScalingGroupNames !== undefined && input.AutoScalingGroupNames !== null) {
4233
+ if (input.AutoScalingGroupNames != null) {
4234
4234
  var memberEntries = serializeAws_queryAutoScalingGroupNames(input.AutoScalingGroupNames, context);
4235
4235
  Object.entries(memberEntries).forEach(function (_a) {
4236
4236
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4238,13 +4238,13 @@ var serializeAws_queryAutoScalingGroupNamesType = function (input, context) {
4238
4238
  entries[loc] = value;
4239
4239
  });
4240
4240
  }
4241
- if (input.NextToken !== undefined && input.NextToken !== null) {
4241
+ if (input.NextToken != null) {
4242
4242
  entries["NextToken"] = input.NextToken;
4243
4243
  }
4244
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4244
+ if (input.MaxRecords != null) {
4245
4245
  entries["MaxRecords"] = input.MaxRecords;
4246
4246
  }
4247
- if (input.Filters !== undefined && input.Filters !== null) {
4247
+ if (input.Filters != null) {
4248
4248
  var memberEntries = serializeAws_queryFilters(input.Filters, context);
4249
4249
  Object.entries(memberEntries).forEach(function (_a) {
4250
4250
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4302,20 +4302,20 @@ var serializeAws_queryAvailabilityZones = function (input, context) {
4302
4302
  };
4303
4303
  var serializeAws_queryBaselineEbsBandwidthMbpsRequest = function (input, context) {
4304
4304
  var entries = {};
4305
- if (input.Min !== undefined && input.Min !== null) {
4305
+ if (input.Min != null) {
4306
4306
  entries["Min"] = input.Min;
4307
4307
  }
4308
- if (input.Max !== undefined && input.Max !== null) {
4308
+ if (input.Max != null) {
4309
4309
  entries["Max"] = input.Max;
4310
4310
  }
4311
4311
  return entries;
4312
4312
  };
4313
4313
  var serializeAws_queryBatchDeleteScheduledActionType = function (input, context) {
4314
4314
  var entries = {};
4315
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4315
+ if (input.AutoScalingGroupName != null) {
4316
4316
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4317
4317
  }
4318
- if (input.ScheduledActionNames !== undefined && input.ScheduledActionNames !== null) {
4318
+ if (input.ScheduledActionNames != null) {
4319
4319
  var memberEntries = serializeAws_queryScheduledActionNames(input.ScheduledActionNames, context);
4320
4320
  Object.entries(memberEntries).forEach(function (_a) {
4321
4321
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4327,10 +4327,10 @@ var serializeAws_queryBatchDeleteScheduledActionType = function (input, context)
4327
4327
  };
4328
4328
  var serializeAws_queryBatchPutScheduledUpdateGroupActionType = function (input, context) {
4329
4329
  var entries = {};
4330
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4330
+ if (input.AutoScalingGroupName != null) {
4331
4331
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4332
4332
  }
4333
- if (input.ScheduledUpdateGroupActions !== undefined && input.ScheduledUpdateGroupActions !== null) {
4333
+ if (input.ScheduledUpdateGroupActions != null) {
4334
4334
  var memberEntries = serializeAws_queryScheduledUpdateGroupActionRequests(input.ScheduledUpdateGroupActions, context);
4335
4335
  Object.entries(memberEntries).forEach(function (_a) {
4336
4336
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4342,13 +4342,13 @@ var serializeAws_queryBatchPutScheduledUpdateGroupActionType = function (input,
4342
4342
  };
4343
4343
  var serializeAws_queryBlockDeviceMapping = function (input, context) {
4344
4344
  var entries = {};
4345
- if (input.VirtualName !== undefined && input.VirtualName !== null) {
4345
+ if (input.VirtualName != null) {
4346
4346
  entries["VirtualName"] = input.VirtualName;
4347
4347
  }
4348
- if (input.DeviceName !== undefined && input.DeviceName !== null) {
4348
+ if (input.DeviceName != null) {
4349
4349
  entries["DeviceName"] = input.DeviceName;
4350
4350
  }
4351
- if (input.Ebs !== undefined && input.Ebs !== null) {
4351
+ if (input.Ebs != null) {
4352
4352
  var memberEntries = serializeAws_queryEbs(input.Ebs, context);
4353
4353
  Object.entries(memberEntries).forEach(function (_a) {
4354
4354
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4356,7 +4356,7 @@ var serializeAws_queryBlockDeviceMapping = function (input, context) {
4356
4356
  entries[loc] = value;
4357
4357
  });
4358
4358
  }
4359
- if (input.NoDevice !== undefined && input.NoDevice !== null) {
4359
+ if (input.NoDevice != null) {
4360
4360
  entries["NoDevice"] = input.NoDevice;
4361
4361
  }
4362
4362
  return entries;
@@ -4390,7 +4390,7 @@ var serializeAws_queryBlockDeviceMappings = function (input, context) {
4390
4390
  };
4391
4391
  var serializeAws_queryCancelInstanceRefreshType = function (input, context) {
4392
4392
  var entries = {};
4393
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4393
+ if (input.AutoScalingGroupName != null) {
4394
4394
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4395
4395
  }
4396
4396
  return entries;
@@ -4443,19 +4443,19 @@ var serializeAws_queryClassicLinkVPCSecurityGroups = function (input, context) {
4443
4443
  };
4444
4444
  var serializeAws_queryCompleteLifecycleActionType = function (input, context) {
4445
4445
  var entries = {};
4446
- if (input.LifecycleHookName !== undefined && input.LifecycleHookName !== null) {
4446
+ if (input.LifecycleHookName != null) {
4447
4447
  entries["LifecycleHookName"] = input.LifecycleHookName;
4448
4448
  }
4449
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4449
+ if (input.AutoScalingGroupName != null) {
4450
4450
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4451
4451
  }
4452
- if (input.LifecycleActionToken !== undefined && input.LifecycleActionToken !== null) {
4452
+ if (input.LifecycleActionToken != null) {
4453
4453
  entries["LifecycleActionToken"] = input.LifecycleActionToken;
4454
4454
  }
4455
- if (input.LifecycleActionResult !== undefined && input.LifecycleActionResult !== null) {
4455
+ if (input.LifecycleActionResult != null) {
4456
4456
  entries["LifecycleActionResult"] = input.LifecycleActionResult;
4457
4457
  }
4458
- if (input.InstanceId !== undefined && input.InstanceId !== null) {
4458
+ if (input.InstanceId != null) {
4459
4459
  entries["InstanceId"] = input.InstanceId;
4460
4460
  }
4461
4461
  return entries;
@@ -4485,13 +4485,13 @@ var serializeAws_queryCpuManufacturers = function (input, context) {
4485
4485
  };
4486
4486
  var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4487
4487
  var entries = {};
4488
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4488
+ if (input.AutoScalingGroupName != null) {
4489
4489
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4490
4490
  }
4491
- if (input.LaunchConfigurationName !== undefined && input.LaunchConfigurationName !== null) {
4491
+ if (input.LaunchConfigurationName != null) {
4492
4492
  entries["LaunchConfigurationName"] = input.LaunchConfigurationName;
4493
4493
  }
4494
- if (input.LaunchTemplate !== undefined && input.LaunchTemplate !== null) {
4494
+ if (input.LaunchTemplate != null) {
4495
4495
  var memberEntries = serializeAws_queryLaunchTemplateSpecification(input.LaunchTemplate, context);
4496
4496
  Object.entries(memberEntries).forEach(function (_a) {
4497
4497
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4499,7 +4499,7 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4499
4499
  entries[loc] = value;
4500
4500
  });
4501
4501
  }
4502
- if (input.MixedInstancesPolicy !== undefined && input.MixedInstancesPolicy !== null) {
4502
+ if (input.MixedInstancesPolicy != null) {
4503
4503
  var memberEntries = serializeAws_queryMixedInstancesPolicy(input.MixedInstancesPolicy, context);
4504
4504
  Object.entries(memberEntries).forEach(function (_a) {
4505
4505
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4507,22 +4507,22 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4507
4507
  entries[loc] = value;
4508
4508
  });
4509
4509
  }
4510
- if (input.InstanceId !== undefined && input.InstanceId !== null) {
4510
+ if (input.InstanceId != null) {
4511
4511
  entries["InstanceId"] = input.InstanceId;
4512
4512
  }
4513
- if (input.MinSize !== undefined && input.MinSize !== null) {
4513
+ if (input.MinSize != null) {
4514
4514
  entries["MinSize"] = input.MinSize;
4515
4515
  }
4516
- if (input.MaxSize !== undefined && input.MaxSize !== null) {
4516
+ if (input.MaxSize != null) {
4517
4517
  entries["MaxSize"] = input.MaxSize;
4518
4518
  }
4519
- if (input.DesiredCapacity !== undefined && input.DesiredCapacity !== null) {
4519
+ if (input.DesiredCapacity != null) {
4520
4520
  entries["DesiredCapacity"] = input.DesiredCapacity;
4521
4521
  }
4522
- if (input.DefaultCooldown !== undefined && input.DefaultCooldown !== null) {
4522
+ if (input.DefaultCooldown != null) {
4523
4523
  entries["DefaultCooldown"] = input.DefaultCooldown;
4524
4524
  }
4525
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
4525
+ if (input.AvailabilityZones != null) {
4526
4526
  var memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
4527
4527
  Object.entries(memberEntries).forEach(function (_a) {
4528
4528
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4530,7 +4530,7 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4530
4530
  entries[loc] = value;
4531
4531
  });
4532
4532
  }
4533
- if (input.LoadBalancerNames !== undefined && input.LoadBalancerNames !== null) {
4533
+ if (input.LoadBalancerNames != null) {
4534
4534
  var memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
4535
4535
  Object.entries(memberEntries).forEach(function (_a) {
4536
4536
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4538,7 +4538,7 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4538
4538
  entries[loc] = value;
4539
4539
  });
4540
4540
  }
4541
- if (input.TargetGroupARNs !== undefined && input.TargetGroupARNs !== null) {
4541
+ if (input.TargetGroupARNs != null) {
4542
4542
  var memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
4543
4543
  Object.entries(memberEntries).forEach(function (_a) {
4544
4544
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4546,19 +4546,19 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4546
4546
  entries[loc] = value;
4547
4547
  });
4548
4548
  }
4549
- if (input.HealthCheckType !== undefined && input.HealthCheckType !== null) {
4549
+ if (input.HealthCheckType != null) {
4550
4550
  entries["HealthCheckType"] = input.HealthCheckType;
4551
4551
  }
4552
- if (input.HealthCheckGracePeriod !== undefined && input.HealthCheckGracePeriod !== null) {
4552
+ if (input.HealthCheckGracePeriod != null) {
4553
4553
  entries["HealthCheckGracePeriod"] = input.HealthCheckGracePeriod;
4554
4554
  }
4555
- if (input.PlacementGroup !== undefined && input.PlacementGroup !== null) {
4555
+ if (input.PlacementGroup != null) {
4556
4556
  entries["PlacementGroup"] = input.PlacementGroup;
4557
4557
  }
4558
- if (input.VPCZoneIdentifier !== undefined && input.VPCZoneIdentifier !== null) {
4558
+ if (input.VPCZoneIdentifier != null) {
4559
4559
  entries["VPCZoneIdentifier"] = input.VPCZoneIdentifier;
4560
4560
  }
4561
- if (input.TerminationPolicies !== undefined && input.TerminationPolicies !== null) {
4561
+ if (input.TerminationPolicies != null) {
4562
4562
  var memberEntries = serializeAws_queryTerminationPolicies(input.TerminationPolicies, context);
4563
4563
  Object.entries(memberEntries).forEach(function (_a) {
4564
4564
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4566,13 +4566,13 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4566
4566
  entries[loc] = value;
4567
4567
  });
4568
4568
  }
4569
- if (input.NewInstancesProtectedFromScaleIn !== undefined && input.NewInstancesProtectedFromScaleIn !== null) {
4569
+ if (input.NewInstancesProtectedFromScaleIn != null) {
4570
4570
  entries["NewInstancesProtectedFromScaleIn"] = input.NewInstancesProtectedFromScaleIn;
4571
4571
  }
4572
- if (input.CapacityRebalance !== undefined && input.CapacityRebalance !== null) {
4572
+ if (input.CapacityRebalance != null) {
4573
4573
  entries["CapacityRebalance"] = input.CapacityRebalance;
4574
4574
  }
4575
- if (input.LifecycleHookSpecificationList !== undefined && input.LifecycleHookSpecificationList !== null) {
4575
+ if (input.LifecycleHookSpecificationList != null) {
4576
4576
  var memberEntries = serializeAws_queryLifecycleHookSpecifications(input.LifecycleHookSpecificationList, context);
4577
4577
  Object.entries(memberEntries).forEach(function (_a) {
4578
4578
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4580,7 +4580,7 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4580
4580
  entries[loc] = value;
4581
4581
  });
4582
4582
  }
4583
- if (input.Tags !== undefined && input.Tags !== null) {
4583
+ if (input.Tags != null) {
4584
4584
  var memberEntries = serializeAws_queryTags(input.Tags, context);
4585
4585
  Object.entries(memberEntries).forEach(function (_a) {
4586
4586
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4588,35 +4588,35 @@ var serializeAws_queryCreateAutoScalingGroupType = function (input, context) {
4588
4588
  entries[loc] = value;
4589
4589
  });
4590
4590
  }
4591
- if (input.ServiceLinkedRoleARN !== undefined && input.ServiceLinkedRoleARN !== null) {
4591
+ if (input.ServiceLinkedRoleARN != null) {
4592
4592
  entries["ServiceLinkedRoleARN"] = input.ServiceLinkedRoleARN;
4593
4593
  }
4594
- if (input.MaxInstanceLifetime !== undefined && input.MaxInstanceLifetime !== null) {
4594
+ if (input.MaxInstanceLifetime != null) {
4595
4595
  entries["MaxInstanceLifetime"] = input.MaxInstanceLifetime;
4596
4596
  }
4597
- if (input.Context !== undefined && input.Context !== null) {
4597
+ if (input.Context != null) {
4598
4598
  entries["Context"] = input.Context;
4599
4599
  }
4600
- if (input.DesiredCapacityType !== undefined && input.DesiredCapacityType !== null) {
4600
+ if (input.DesiredCapacityType != null) {
4601
4601
  entries["DesiredCapacityType"] = input.DesiredCapacityType;
4602
4602
  }
4603
- if (input.DefaultInstanceWarmup !== undefined && input.DefaultInstanceWarmup !== null) {
4603
+ if (input.DefaultInstanceWarmup != null) {
4604
4604
  entries["DefaultInstanceWarmup"] = input.DefaultInstanceWarmup;
4605
4605
  }
4606
4606
  return entries;
4607
4607
  };
4608
4608
  var serializeAws_queryCreateLaunchConfigurationType = function (input, context) {
4609
4609
  var entries = {};
4610
- if (input.LaunchConfigurationName !== undefined && input.LaunchConfigurationName !== null) {
4610
+ if (input.LaunchConfigurationName != null) {
4611
4611
  entries["LaunchConfigurationName"] = input.LaunchConfigurationName;
4612
4612
  }
4613
- if (input.ImageId !== undefined && input.ImageId !== null) {
4613
+ if (input.ImageId != null) {
4614
4614
  entries["ImageId"] = input.ImageId;
4615
4615
  }
4616
- if (input.KeyName !== undefined && input.KeyName !== null) {
4616
+ if (input.KeyName != null) {
4617
4617
  entries["KeyName"] = input.KeyName;
4618
4618
  }
4619
- if (input.SecurityGroups !== undefined && input.SecurityGroups !== null) {
4619
+ if (input.SecurityGroups != null) {
4620
4620
  var memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
4621
4621
  Object.entries(memberEntries).forEach(function (_a) {
4622
4622
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4624,10 +4624,10 @@ var serializeAws_queryCreateLaunchConfigurationType = function (input, context)
4624
4624
  entries[loc] = value;
4625
4625
  });
4626
4626
  }
4627
- if (input.ClassicLinkVPCId !== undefined && input.ClassicLinkVPCId !== null) {
4627
+ if (input.ClassicLinkVPCId != null) {
4628
4628
  entries["ClassicLinkVPCId"] = input.ClassicLinkVPCId;
4629
4629
  }
4630
- if (input.ClassicLinkVPCSecurityGroups !== undefined && input.ClassicLinkVPCSecurityGroups !== null) {
4630
+ if (input.ClassicLinkVPCSecurityGroups != null) {
4631
4631
  var memberEntries = serializeAws_queryClassicLinkVPCSecurityGroups(input.ClassicLinkVPCSecurityGroups, context);
4632
4632
  Object.entries(memberEntries).forEach(function (_a) {
4633
4633
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4635,22 +4635,22 @@ var serializeAws_queryCreateLaunchConfigurationType = function (input, context)
4635
4635
  entries[loc] = value;
4636
4636
  });
4637
4637
  }
4638
- if (input.UserData !== undefined && input.UserData !== null) {
4638
+ if (input.UserData != null) {
4639
4639
  entries["UserData"] = input.UserData;
4640
4640
  }
4641
- if (input.InstanceId !== undefined && input.InstanceId !== null) {
4641
+ if (input.InstanceId != null) {
4642
4642
  entries["InstanceId"] = input.InstanceId;
4643
4643
  }
4644
- if (input.InstanceType !== undefined && input.InstanceType !== null) {
4644
+ if (input.InstanceType != null) {
4645
4645
  entries["InstanceType"] = input.InstanceType;
4646
4646
  }
4647
- if (input.KernelId !== undefined && input.KernelId !== null) {
4647
+ if (input.KernelId != null) {
4648
4648
  entries["KernelId"] = input.KernelId;
4649
4649
  }
4650
- if (input.RamdiskId !== undefined && input.RamdiskId !== null) {
4650
+ if (input.RamdiskId != null) {
4651
4651
  entries["RamdiskId"] = input.RamdiskId;
4652
4652
  }
4653
- if (input.BlockDeviceMappings !== undefined && input.BlockDeviceMappings !== null) {
4653
+ if (input.BlockDeviceMappings != null) {
4654
4654
  var memberEntries = serializeAws_queryBlockDeviceMappings(input.BlockDeviceMappings, context);
4655
4655
  Object.entries(memberEntries).forEach(function (_a) {
4656
4656
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4658,7 +4658,7 @@ var serializeAws_queryCreateLaunchConfigurationType = function (input, context)
4658
4658
  entries[loc] = value;
4659
4659
  });
4660
4660
  }
4661
- if (input.InstanceMonitoring !== undefined && input.InstanceMonitoring !== null) {
4661
+ if (input.InstanceMonitoring != null) {
4662
4662
  var memberEntries = serializeAws_queryInstanceMonitoring(input.InstanceMonitoring, context);
4663
4663
  Object.entries(memberEntries).forEach(function (_a) {
4664
4664
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4666,22 +4666,22 @@ var serializeAws_queryCreateLaunchConfigurationType = function (input, context)
4666
4666
  entries[loc] = value;
4667
4667
  });
4668
4668
  }
4669
- if (input.SpotPrice !== undefined && input.SpotPrice !== null) {
4669
+ if (input.SpotPrice != null) {
4670
4670
  entries["SpotPrice"] = input.SpotPrice;
4671
4671
  }
4672
- if (input.IamInstanceProfile !== undefined && input.IamInstanceProfile !== null) {
4672
+ if (input.IamInstanceProfile != null) {
4673
4673
  entries["IamInstanceProfile"] = input.IamInstanceProfile;
4674
4674
  }
4675
- if (input.EbsOptimized !== undefined && input.EbsOptimized !== null) {
4675
+ if (input.EbsOptimized != null) {
4676
4676
  entries["EbsOptimized"] = input.EbsOptimized;
4677
4677
  }
4678
- if (input.AssociatePublicIpAddress !== undefined && input.AssociatePublicIpAddress !== null) {
4678
+ if (input.AssociatePublicIpAddress != null) {
4679
4679
  entries["AssociatePublicIpAddress"] = input.AssociatePublicIpAddress;
4680
4680
  }
4681
- if (input.PlacementTenancy !== undefined && input.PlacementTenancy !== null) {
4681
+ if (input.PlacementTenancy != null) {
4682
4682
  entries["PlacementTenancy"] = input.PlacementTenancy;
4683
4683
  }
4684
- if (input.MetadataOptions !== undefined && input.MetadataOptions !== null) {
4684
+ if (input.MetadataOptions != null) {
4685
4685
  var memberEntries = serializeAws_queryInstanceMetadataOptions(input.MetadataOptions, context);
4686
4686
  Object.entries(memberEntries).forEach(function (_a) {
4687
4687
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4693,7 +4693,7 @@ var serializeAws_queryCreateLaunchConfigurationType = function (input, context)
4693
4693
  };
4694
4694
  var serializeAws_queryCreateOrUpdateTagsType = function (input, context) {
4695
4695
  var entries = {};
4696
- if (input.Tags !== undefined && input.Tags !== null) {
4696
+ if (input.Tags != null) {
4697
4697
  var memberEntries = serializeAws_queryTags(input.Tags, context);
4698
4698
  Object.entries(memberEntries).forEach(function (_a) {
4699
4699
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4705,13 +4705,13 @@ var serializeAws_queryCreateOrUpdateTagsType = function (input, context) {
4705
4705
  };
4706
4706
  var serializeAws_queryCustomizedMetricSpecification = function (input, context) {
4707
4707
  var entries = {};
4708
- if (input.MetricName !== undefined && input.MetricName !== null) {
4708
+ if (input.MetricName != null) {
4709
4709
  entries["MetricName"] = input.MetricName;
4710
4710
  }
4711
- if (input.Namespace !== undefined && input.Namespace !== null) {
4711
+ if (input.Namespace != null) {
4712
4712
  entries["Namespace"] = input.Namespace;
4713
4713
  }
4714
- if (input.Dimensions !== undefined && input.Dimensions !== null) {
4714
+ if (input.Dimensions != null) {
4715
4715
  var memberEntries = serializeAws_queryMetricDimensions(input.Dimensions, context);
4716
4716
  Object.entries(memberEntries).forEach(function (_a) {
4717
4717
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4719,67 +4719,67 @@ var serializeAws_queryCustomizedMetricSpecification = function (input, context)
4719
4719
  entries[loc] = value;
4720
4720
  });
4721
4721
  }
4722
- if (input.Statistic !== undefined && input.Statistic !== null) {
4722
+ if (input.Statistic != null) {
4723
4723
  entries["Statistic"] = input.Statistic;
4724
4724
  }
4725
- if (input.Unit !== undefined && input.Unit !== null) {
4725
+ if (input.Unit != null) {
4726
4726
  entries["Unit"] = input.Unit;
4727
4727
  }
4728
4728
  return entries;
4729
4729
  };
4730
4730
  var serializeAws_queryDeleteAutoScalingGroupType = function (input, context) {
4731
4731
  var entries = {};
4732
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4732
+ if (input.AutoScalingGroupName != null) {
4733
4733
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4734
4734
  }
4735
- if (input.ForceDelete !== undefined && input.ForceDelete !== null) {
4735
+ if (input.ForceDelete != null) {
4736
4736
  entries["ForceDelete"] = input.ForceDelete;
4737
4737
  }
4738
4738
  return entries;
4739
4739
  };
4740
4740
  var serializeAws_queryDeleteLifecycleHookType = function (input, context) {
4741
4741
  var entries = {};
4742
- if (input.LifecycleHookName !== undefined && input.LifecycleHookName !== null) {
4742
+ if (input.LifecycleHookName != null) {
4743
4743
  entries["LifecycleHookName"] = input.LifecycleHookName;
4744
4744
  }
4745
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4745
+ if (input.AutoScalingGroupName != null) {
4746
4746
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4747
4747
  }
4748
4748
  return entries;
4749
4749
  };
4750
4750
  var serializeAws_queryDeleteNotificationConfigurationType = function (input, context) {
4751
4751
  var entries = {};
4752
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4752
+ if (input.AutoScalingGroupName != null) {
4753
4753
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4754
4754
  }
4755
- if (input.TopicARN !== undefined && input.TopicARN !== null) {
4755
+ if (input.TopicARN != null) {
4756
4756
  entries["TopicARN"] = input.TopicARN;
4757
4757
  }
4758
4758
  return entries;
4759
4759
  };
4760
4760
  var serializeAws_queryDeletePolicyType = function (input, context) {
4761
4761
  var entries = {};
4762
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4762
+ if (input.AutoScalingGroupName != null) {
4763
4763
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4764
4764
  }
4765
- if (input.PolicyName !== undefined && input.PolicyName !== null) {
4765
+ if (input.PolicyName != null) {
4766
4766
  entries["PolicyName"] = input.PolicyName;
4767
4767
  }
4768
4768
  return entries;
4769
4769
  };
4770
4770
  var serializeAws_queryDeleteScheduledActionType = function (input, context) {
4771
4771
  var entries = {};
4772
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4772
+ if (input.AutoScalingGroupName != null) {
4773
4773
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4774
4774
  }
4775
- if (input.ScheduledActionName !== undefined && input.ScheduledActionName !== null) {
4775
+ if (input.ScheduledActionName != null) {
4776
4776
  entries["ScheduledActionName"] = input.ScheduledActionName;
4777
4777
  }
4778
4778
  return entries;
4779
4779
  };
4780
4780
  var serializeAws_queryDeleteTagsType = function (input, context) {
4781
4781
  var entries = {};
4782
- if (input.Tags !== undefined && input.Tags !== null) {
4782
+ if (input.Tags != null) {
4783
4783
  var memberEntries = serializeAws_queryTags(input.Tags, context);
4784
4784
  Object.entries(memberEntries).forEach(function (_a) {
4785
4785
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4791,17 +4791,17 @@ var serializeAws_queryDeleteTagsType = function (input, context) {
4791
4791
  };
4792
4792
  var serializeAws_queryDeleteWarmPoolType = function (input, context) {
4793
4793
  var entries = {};
4794
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4794
+ if (input.AutoScalingGroupName != null) {
4795
4795
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4796
4796
  }
4797
- if (input.ForceDelete !== undefined && input.ForceDelete !== null) {
4797
+ if (input.ForceDelete != null) {
4798
4798
  entries["ForceDelete"] = input.ForceDelete;
4799
4799
  }
4800
4800
  return entries;
4801
4801
  };
4802
4802
  var serializeAws_queryDescribeAutoScalingInstancesType = function (input, context) {
4803
4803
  var entries = {};
4804
- if (input.InstanceIds !== undefined && input.InstanceIds !== null) {
4804
+ if (input.InstanceIds != null) {
4805
4805
  var memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
4806
4806
  Object.entries(memberEntries).forEach(function (_a) {
4807
4807
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4809,20 +4809,20 @@ var serializeAws_queryDescribeAutoScalingInstancesType = function (input, contex
4809
4809
  entries[loc] = value;
4810
4810
  });
4811
4811
  }
4812
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4812
+ if (input.MaxRecords != null) {
4813
4813
  entries["MaxRecords"] = input.MaxRecords;
4814
4814
  }
4815
- if (input.NextToken !== undefined && input.NextToken !== null) {
4815
+ if (input.NextToken != null) {
4816
4816
  entries["NextToken"] = input.NextToken;
4817
4817
  }
4818
4818
  return entries;
4819
4819
  };
4820
4820
  var serializeAws_queryDescribeInstanceRefreshesType = function (input, context) {
4821
4821
  var entries = {};
4822
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4822
+ if (input.AutoScalingGroupName != null) {
4823
4823
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4824
4824
  }
4825
- if (input.InstanceRefreshIds !== undefined && input.InstanceRefreshIds !== null) {
4825
+ if (input.InstanceRefreshIds != null) {
4826
4826
  var memberEntries = serializeAws_queryInstanceRefreshIds(input.InstanceRefreshIds, context);
4827
4827
  Object.entries(memberEntries).forEach(function (_a) {
4828
4828
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4830,20 +4830,20 @@ var serializeAws_queryDescribeInstanceRefreshesType = function (input, context)
4830
4830
  entries[loc] = value;
4831
4831
  });
4832
4832
  }
4833
- if (input.NextToken !== undefined && input.NextToken !== null) {
4833
+ if (input.NextToken != null) {
4834
4834
  entries["NextToken"] = input.NextToken;
4835
4835
  }
4836
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4836
+ if (input.MaxRecords != null) {
4837
4837
  entries["MaxRecords"] = input.MaxRecords;
4838
4838
  }
4839
4839
  return entries;
4840
4840
  };
4841
4841
  var serializeAws_queryDescribeLifecycleHooksType = function (input, context) {
4842
4842
  var entries = {};
4843
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4843
+ if (input.AutoScalingGroupName != null) {
4844
4844
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4845
4845
  }
4846
- if (input.LifecycleHookNames !== undefined && input.LifecycleHookNames !== null) {
4846
+ if (input.LifecycleHookNames != null) {
4847
4847
  var memberEntries = serializeAws_queryLifecycleHookNames(input.LifecycleHookNames, context);
4848
4848
  Object.entries(memberEntries).forEach(function (_a) {
4849
4849
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4855,33 +4855,33 @@ var serializeAws_queryDescribeLifecycleHooksType = function (input, context) {
4855
4855
  };
4856
4856
  var serializeAws_queryDescribeLoadBalancersRequest = function (input, context) {
4857
4857
  var entries = {};
4858
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4858
+ if (input.AutoScalingGroupName != null) {
4859
4859
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4860
4860
  }
4861
- if (input.NextToken !== undefined && input.NextToken !== null) {
4861
+ if (input.NextToken != null) {
4862
4862
  entries["NextToken"] = input.NextToken;
4863
4863
  }
4864
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4864
+ if (input.MaxRecords != null) {
4865
4865
  entries["MaxRecords"] = input.MaxRecords;
4866
4866
  }
4867
4867
  return entries;
4868
4868
  };
4869
4869
  var serializeAws_queryDescribeLoadBalancerTargetGroupsRequest = function (input, context) {
4870
4870
  var entries = {};
4871
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4871
+ if (input.AutoScalingGroupName != null) {
4872
4872
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4873
4873
  }
4874
- if (input.NextToken !== undefined && input.NextToken !== null) {
4874
+ if (input.NextToken != null) {
4875
4875
  entries["NextToken"] = input.NextToken;
4876
4876
  }
4877
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4877
+ if (input.MaxRecords != null) {
4878
4878
  entries["MaxRecords"] = input.MaxRecords;
4879
4879
  }
4880
4880
  return entries;
4881
4881
  };
4882
4882
  var serializeAws_queryDescribeNotificationConfigurationsType = function (input, context) {
4883
4883
  var entries = {};
4884
- if (input.AutoScalingGroupNames !== undefined && input.AutoScalingGroupNames !== null) {
4884
+ if (input.AutoScalingGroupNames != null) {
4885
4885
  var memberEntries = serializeAws_queryAutoScalingGroupNames(input.AutoScalingGroupNames, context);
4886
4886
  Object.entries(memberEntries).forEach(function (_a) {
4887
4887
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4889,20 +4889,20 @@ var serializeAws_queryDescribeNotificationConfigurationsType = function (input,
4889
4889
  entries[loc] = value;
4890
4890
  });
4891
4891
  }
4892
- if (input.NextToken !== undefined && input.NextToken !== null) {
4892
+ if (input.NextToken != null) {
4893
4893
  entries["NextToken"] = input.NextToken;
4894
4894
  }
4895
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4895
+ if (input.MaxRecords != null) {
4896
4896
  entries["MaxRecords"] = input.MaxRecords;
4897
4897
  }
4898
4898
  return entries;
4899
4899
  };
4900
4900
  var serializeAws_queryDescribePoliciesType = function (input, context) {
4901
4901
  var entries = {};
4902
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4902
+ if (input.AutoScalingGroupName != null) {
4903
4903
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4904
4904
  }
4905
- if (input.PolicyNames !== undefined && input.PolicyNames !== null) {
4905
+ if (input.PolicyNames != null) {
4906
4906
  var memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
4907
4907
  Object.entries(memberEntries).forEach(function (_a) {
4908
4908
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4910,7 +4910,7 @@ var serializeAws_queryDescribePoliciesType = function (input, context) {
4910
4910
  entries[loc] = value;
4911
4911
  });
4912
4912
  }
4913
- if (input.PolicyTypes !== undefined && input.PolicyTypes !== null) {
4913
+ if (input.PolicyTypes != null) {
4914
4914
  var memberEntries = serializeAws_queryPolicyTypes(input.PolicyTypes, context);
4915
4915
  Object.entries(memberEntries).forEach(function (_a) {
4916
4916
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4918,17 +4918,17 @@ var serializeAws_queryDescribePoliciesType = function (input, context) {
4918
4918
  entries[loc] = value;
4919
4919
  });
4920
4920
  }
4921
- if (input.NextToken !== undefined && input.NextToken !== null) {
4921
+ if (input.NextToken != null) {
4922
4922
  entries["NextToken"] = input.NextToken;
4923
4923
  }
4924
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4924
+ if (input.MaxRecords != null) {
4925
4925
  entries["MaxRecords"] = input.MaxRecords;
4926
4926
  }
4927
4927
  return entries;
4928
4928
  };
4929
4929
  var serializeAws_queryDescribeScalingActivitiesType = function (input, context) {
4930
4930
  var entries = {};
4931
- if (input.ActivityIds !== undefined && input.ActivityIds !== null) {
4931
+ if (input.ActivityIds != null) {
4932
4932
  var memberEntries = serializeAws_queryActivityIds(input.ActivityIds, context);
4933
4933
  Object.entries(memberEntries).forEach(function (_a) {
4934
4934
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4936,26 +4936,26 @@ var serializeAws_queryDescribeScalingActivitiesType = function (input, context)
4936
4936
  entries[loc] = value;
4937
4937
  });
4938
4938
  }
4939
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4939
+ if (input.AutoScalingGroupName != null) {
4940
4940
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4941
4941
  }
4942
- if (input.IncludeDeletedGroups !== undefined && input.IncludeDeletedGroups !== null) {
4942
+ if (input.IncludeDeletedGroups != null) {
4943
4943
  entries["IncludeDeletedGroups"] = input.IncludeDeletedGroups;
4944
4944
  }
4945
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4945
+ if (input.MaxRecords != null) {
4946
4946
  entries["MaxRecords"] = input.MaxRecords;
4947
4947
  }
4948
- if (input.NextToken !== undefined && input.NextToken !== null) {
4948
+ if (input.NextToken != null) {
4949
4949
  entries["NextToken"] = input.NextToken;
4950
4950
  }
4951
4951
  return entries;
4952
4952
  };
4953
4953
  var serializeAws_queryDescribeScheduledActionsType = function (input, context) {
4954
4954
  var entries = {};
4955
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
4955
+ if (input.AutoScalingGroupName != null) {
4956
4956
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
4957
4957
  }
4958
- if (input.ScheduledActionNames !== undefined && input.ScheduledActionNames !== null) {
4958
+ if (input.ScheduledActionNames != null) {
4959
4959
  var memberEntries = serializeAws_queryScheduledActionNames(input.ScheduledActionNames, context);
4960
4960
  Object.entries(memberEntries).forEach(function (_a) {
4961
4961
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4963,23 +4963,23 @@ var serializeAws_queryDescribeScheduledActionsType = function (input, context) {
4963
4963
  entries[loc] = value;
4964
4964
  });
4965
4965
  }
4966
- if (input.StartTime !== undefined && input.StartTime !== null) {
4966
+ if (input.StartTime != null) {
4967
4967
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
4968
4968
  }
4969
- if (input.EndTime !== undefined && input.EndTime !== null) {
4969
+ if (input.EndTime != null) {
4970
4970
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
4971
4971
  }
4972
- if (input.NextToken !== undefined && input.NextToken !== null) {
4972
+ if (input.NextToken != null) {
4973
4973
  entries["NextToken"] = input.NextToken;
4974
4974
  }
4975
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4975
+ if (input.MaxRecords != null) {
4976
4976
  entries["MaxRecords"] = input.MaxRecords;
4977
4977
  }
4978
4978
  return entries;
4979
4979
  };
4980
4980
  var serializeAws_queryDescribeTagsType = function (input, context) {
4981
4981
  var entries = {};
4982
- if (input.Filters !== undefined && input.Filters !== null) {
4982
+ if (input.Filters != null) {
4983
4983
  var memberEntries = serializeAws_queryFilters(input.Filters, context);
4984
4984
  Object.entries(memberEntries).forEach(function (_a) {
4985
4985
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4987,30 +4987,30 @@ var serializeAws_queryDescribeTagsType = function (input, context) {
4987
4987
  entries[loc] = value;
4988
4988
  });
4989
4989
  }
4990
- if (input.NextToken !== undefined && input.NextToken !== null) {
4990
+ if (input.NextToken != null) {
4991
4991
  entries["NextToken"] = input.NextToken;
4992
4992
  }
4993
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4993
+ if (input.MaxRecords != null) {
4994
4994
  entries["MaxRecords"] = input.MaxRecords;
4995
4995
  }
4996
4996
  return entries;
4997
4997
  };
4998
4998
  var serializeAws_queryDescribeWarmPoolType = function (input, context) {
4999
4999
  var entries = {};
5000
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5000
+ if (input.AutoScalingGroupName != null) {
5001
5001
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5002
5002
  }
5003
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5003
+ if (input.MaxRecords != null) {
5004
5004
  entries["MaxRecords"] = input.MaxRecords;
5005
5005
  }
5006
- if (input.NextToken !== undefined && input.NextToken !== null) {
5006
+ if (input.NextToken != null) {
5007
5007
  entries["NextToken"] = input.NextToken;
5008
5008
  }
5009
5009
  return entries;
5010
5010
  };
5011
5011
  var serializeAws_queryDesiredConfiguration = function (input, context) {
5012
5012
  var entries = {};
5013
- if (input.LaunchTemplate !== undefined && input.LaunchTemplate !== null) {
5013
+ if (input.LaunchTemplate != null) {
5014
5014
  var memberEntries = serializeAws_queryLaunchTemplateSpecification(input.LaunchTemplate, context);
5015
5015
  Object.entries(memberEntries).forEach(function (_a) {
5016
5016
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5018,7 +5018,7 @@ var serializeAws_queryDesiredConfiguration = function (input, context) {
5018
5018
  entries[loc] = value;
5019
5019
  });
5020
5020
  }
5021
- if (input.MixedInstancesPolicy !== undefined && input.MixedInstancesPolicy !== null) {
5021
+ if (input.MixedInstancesPolicy != null) {
5022
5022
  var memberEntries = serializeAws_queryMixedInstancesPolicy(input.MixedInstancesPolicy, context);
5023
5023
  Object.entries(memberEntries).forEach(function (_a) {
5024
5024
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5030,7 +5030,7 @@ var serializeAws_queryDesiredConfiguration = function (input, context) {
5030
5030
  };
5031
5031
  var serializeAws_queryDetachInstancesQuery = function (input, context) {
5032
5032
  var entries = {};
5033
- if (input.InstanceIds !== undefined && input.InstanceIds !== null) {
5033
+ if (input.InstanceIds != null) {
5034
5034
  var memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
5035
5035
  Object.entries(memberEntries).forEach(function (_a) {
5036
5036
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5038,20 +5038,20 @@ var serializeAws_queryDetachInstancesQuery = function (input, context) {
5038
5038
  entries[loc] = value;
5039
5039
  });
5040
5040
  }
5041
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5041
+ if (input.AutoScalingGroupName != null) {
5042
5042
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5043
5043
  }
5044
- if (input.ShouldDecrementDesiredCapacity !== undefined && input.ShouldDecrementDesiredCapacity !== null) {
5044
+ if (input.ShouldDecrementDesiredCapacity != null) {
5045
5045
  entries["ShouldDecrementDesiredCapacity"] = input.ShouldDecrementDesiredCapacity;
5046
5046
  }
5047
5047
  return entries;
5048
5048
  };
5049
5049
  var serializeAws_queryDetachLoadBalancersType = function (input, context) {
5050
5050
  var entries = {};
5051
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5051
+ if (input.AutoScalingGroupName != null) {
5052
5052
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5053
5053
  }
5054
- if (input.LoadBalancerNames !== undefined && input.LoadBalancerNames !== null) {
5054
+ if (input.LoadBalancerNames != null) {
5055
5055
  var memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
5056
5056
  Object.entries(memberEntries).forEach(function (_a) {
5057
5057
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5063,10 +5063,10 @@ var serializeAws_queryDetachLoadBalancersType = function (input, context) {
5063
5063
  };
5064
5064
  var serializeAws_queryDetachLoadBalancerTargetGroupsType = function (input, context) {
5065
5065
  var entries = {};
5066
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5066
+ if (input.AutoScalingGroupName != null) {
5067
5067
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5068
5068
  }
5069
- if (input.TargetGroupARNs !== undefined && input.TargetGroupARNs !== null) {
5069
+ if (input.TargetGroupARNs != null) {
5070
5070
  var memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
5071
5071
  Object.entries(memberEntries).forEach(function (_a) {
5072
5072
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5078,10 +5078,10 @@ var serializeAws_queryDetachLoadBalancerTargetGroupsType = function (input, cont
5078
5078
  };
5079
5079
  var serializeAws_queryDisableMetricsCollectionQuery = function (input, context) {
5080
5080
  var entries = {};
5081
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5081
+ if (input.AutoScalingGroupName != null) {
5082
5082
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5083
5083
  }
5084
- if (input.Metrics !== undefined && input.Metrics !== null) {
5084
+ if (input.Metrics != null) {
5085
5085
  var memberEntries = serializeAws_queryMetrics(input.Metrics, context);
5086
5086
  Object.entries(memberEntries).forEach(function (_a) {
5087
5087
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5093,35 +5093,35 @@ var serializeAws_queryDisableMetricsCollectionQuery = function (input, context)
5093
5093
  };
5094
5094
  var serializeAws_queryEbs = function (input, context) {
5095
5095
  var entries = {};
5096
- if (input.SnapshotId !== undefined && input.SnapshotId !== null) {
5096
+ if (input.SnapshotId != null) {
5097
5097
  entries["SnapshotId"] = input.SnapshotId;
5098
5098
  }
5099
- if (input.VolumeSize !== undefined && input.VolumeSize !== null) {
5099
+ if (input.VolumeSize != null) {
5100
5100
  entries["VolumeSize"] = input.VolumeSize;
5101
5101
  }
5102
- if (input.VolumeType !== undefined && input.VolumeType !== null) {
5102
+ if (input.VolumeType != null) {
5103
5103
  entries["VolumeType"] = input.VolumeType;
5104
5104
  }
5105
- if (input.DeleteOnTermination !== undefined && input.DeleteOnTermination !== null) {
5105
+ if (input.DeleteOnTermination != null) {
5106
5106
  entries["DeleteOnTermination"] = input.DeleteOnTermination;
5107
5107
  }
5108
- if (input.Iops !== undefined && input.Iops !== null) {
5108
+ if (input.Iops != null) {
5109
5109
  entries["Iops"] = input.Iops;
5110
5110
  }
5111
- if (input.Encrypted !== undefined && input.Encrypted !== null) {
5111
+ if (input.Encrypted != null) {
5112
5112
  entries["Encrypted"] = input.Encrypted;
5113
5113
  }
5114
- if (input.Throughput !== undefined && input.Throughput !== null) {
5114
+ if (input.Throughput != null) {
5115
5115
  entries["Throughput"] = input.Throughput;
5116
5116
  }
5117
5117
  return entries;
5118
5118
  };
5119
5119
  var serializeAws_queryEnableMetricsCollectionQuery = function (input, context) {
5120
5120
  var entries = {};
5121
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5121
+ if (input.AutoScalingGroupName != null) {
5122
5122
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5123
5123
  }
5124
- if (input.Metrics !== undefined && input.Metrics !== null) {
5124
+ if (input.Metrics != null) {
5125
5125
  var memberEntries = serializeAws_queryMetrics(input.Metrics, context);
5126
5126
  Object.entries(memberEntries).forEach(function (_a) {
5127
5127
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5129,14 +5129,14 @@ var serializeAws_queryEnableMetricsCollectionQuery = function (input, context) {
5129
5129
  entries[loc] = value;
5130
5130
  });
5131
5131
  }
5132
- if (input.Granularity !== undefined && input.Granularity !== null) {
5132
+ if (input.Granularity != null) {
5133
5133
  entries["Granularity"] = input.Granularity;
5134
5134
  }
5135
5135
  return entries;
5136
5136
  };
5137
5137
  var serializeAws_queryEnterStandbyQuery = function (input, context) {
5138
5138
  var entries = {};
5139
- if (input.InstanceIds !== undefined && input.InstanceIds !== null) {
5139
+ if (input.InstanceIds != null) {
5140
5140
  var memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
5141
5141
  Object.entries(memberEntries).forEach(function (_a) {
5142
5142
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5144,10 +5144,10 @@ var serializeAws_queryEnterStandbyQuery = function (input, context) {
5144
5144
  entries[loc] = value;
5145
5145
  });
5146
5146
  }
5147
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5147
+ if (input.AutoScalingGroupName != null) {
5148
5148
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5149
5149
  }
5150
- if (input.ShouldDecrementDesiredCapacity !== undefined && input.ShouldDecrementDesiredCapacity !== null) {
5150
+ if (input.ShouldDecrementDesiredCapacity != null) {
5151
5151
  entries["ShouldDecrementDesiredCapacity"] = input.ShouldDecrementDesiredCapacity;
5152
5152
  }
5153
5153
  return entries;
@@ -5177,26 +5177,26 @@ var serializeAws_queryExcludedInstanceTypes = function (input, context) {
5177
5177
  };
5178
5178
  var serializeAws_queryExecutePolicyType = function (input, context) {
5179
5179
  var entries = {};
5180
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5180
+ if (input.AutoScalingGroupName != null) {
5181
5181
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5182
5182
  }
5183
- if (input.PolicyName !== undefined && input.PolicyName !== null) {
5183
+ if (input.PolicyName != null) {
5184
5184
  entries["PolicyName"] = input.PolicyName;
5185
5185
  }
5186
- if (input.HonorCooldown !== undefined && input.HonorCooldown !== null) {
5186
+ if (input.HonorCooldown != null) {
5187
5187
  entries["HonorCooldown"] = input.HonorCooldown;
5188
5188
  }
5189
- if (input.MetricValue !== undefined && input.MetricValue !== null) {
5189
+ if (input.MetricValue != null) {
5190
5190
  entries["MetricValue"] = __serializeFloat(input.MetricValue);
5191
5191
  }
5192
- if (input.BreachThreshold !== undefined && input.BreachThreshold !== null) {
5192
+ if (input.BreachThreshold != null) {
5193
5193
  entries["BreachThreshold"] = __serializeFloat(input.BreachThreshold);
5194
5194
  }
5195
5195
  return entries;
5196
5196
  };
5197
5197
  var serializeAws_queryExitStandbyQuery = function (input, context) {
5198
5198
  var entries = {};
5199
- if (input.InstanceIds !== undefined && input.InstanceIds !== null) {
5199
+ if (input.InstanceIds != null) {
5200
5200
  var memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
5201
5201
  Object.entries(memberEntries).forEach(function (_a) {
5202
5202
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5204,17 +5204,17 @@ var serializeAws_queryExitStandbyQuery = function (input, context) {
5204
5204
  entries[loc] = value;
5205
5205
  });
5206
5206
  }
5207
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5207
+ if (input.AutoScalingGroupName != null) {
5208
5208
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5209
5209
  }
5210
5210
  return entries;
5211
5211
  };
5212
5212
  var serializeAws_queryFilter = function (input, context) {
5213
5213
  var entries = {};
5214
- if (input.Name !== undefined && input.Name !== null) {
5214
+ if (input.Name != null) {
5215
5215
  entries["Name"] = input.Name;
5216
5216
  }
5217
- if (input.Values !== undefined && input.Values !== null) {
5217
+ if (input.Values != null) {
5218
5218
  var memberEntries = serializeAws_queryValues(input.Values, context);
5219
5219
  Object.entries(memberEntries).forEach(function (_a) {
5220
5220
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5253,16 +5253,16 @@ var serializeAws_queryFilters = function (input, context) {
5253
5253
  };
5254
5254
  var serializeAws_queryGetPredictiveScalingForecastType = function (input, context) {
5255
5255
  var entries = {};
5256
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
5256
+ if (input.AutoScalingGroupName != null) {
5257
5257
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
5258
5258
  }
5259
- if (input.PolicyName !== undefined && input.PolicyName !== null) {
5259
+ if (input.PolicyName != null) {
5260
5260
  entries["PolicyName"] = input.PolicyName;
5261
5261
  }
5262
- if (input.StartTime !== undefined && input.StartTime !== null) {
5262
+ if (input.StartTime != null) {
5263
5263
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
5264
5264
  }
5265
- if (input.EndTime !== undefined && input.EndTime !== null) {
5265
+ if (input.EndTime != null) {
5266
5266
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
5267
5267
  }
5268
5268
  return entries;
@@ -5315,20 +5315,20 @@ var serializeAws_queryInstanceIds = function (input, context) {
5315
5315
  };
5316
5316
  var serializeAws_queryInstanceMetadataOptions = function (input, context) {
5317
5317
  var entries = {};
5318
- if (input.HttpTokens !== undefined && input.HttpTokens !== null) {
5318
+ if (input.HttpTokens != null) {
5319
5319
  entries["HttpTokens"] = input.HttpTokens;
5320
5320
  }
5321
- if (input.HttpPutResponseHopLimit !== undefined && input.HttpPutResponseHopLimit !== null) {
5321
+ if (input.HttpPutResponseHopLimit != null) {
5322
5322
  entries["HttpPutResponseHopLimit"] = input.HttpPutResponseHopLimit;
5323
5323
  }
5324
- if (input.HttpEndpoint !== undefined && input.HttpEndpoint !== null) {
5324
+ if (input.HttpEndpoint != null) {
5325
5325
  entries["HttpEndpoint"] = input.HttpEndpoint;
5326
5326
  }
5327
5327
  return entries;
5328
5328
  };
5329
5329
  var serializeAws_queryInstanceMonitoring = function (input, context) {
5330
5330
  var entries = {};
5331
- if (input.Enabled !== undefined && input.Enabled !== null) {
5331
+ if (input.Enabled != null) {
5332
5332
  entries["Enabled"] = input.Enabled;
5333
5333
  }
5334
5334
  return entries;
@@ -5358,7 +5358,7 @@ var serializeAws_queryInstanceRefreshIds = function (input, context) {
5358
5358
  };
5359
5359
  var serializeAws_queryInstanceRequirements = function (input, context) {
5360
5360
  var entries = {};
5361
- if (input.VCpuCount !== undefined && input.VCpuCount !== null) {
5361
+ if (input.VCpuCount != null) {
5362
5362
  var memberEntries = serializeAws_queryVCpuCountRequest(input.VCpuCount, context);
5363
5363
  Object.entries(memberEntries).forEach(function (_a) {
5364
5364
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5366,7 +5366,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5366
5366
  entries[loc] = value;
5367
5367
  });
5368
5368
  }
5369
- if (input.MemoryMiB !== undefined && input.MemoryMiB !== null) {
5369
+ if (input.MemoryMiB != null) {
5370
5370
  var memberEntries = serializeAws_queryMemoryMiBRequest(input.MemoryMiB, context);
5371
5371
  Object.entries(memberEntries).forEach(function (_a) {
5372
5372
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5374,7 +5374,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5374
5374
  entries[loc] = value;
5375
5375
  });
5376
5376
  }
5377
- if (input.CpuManufacturers !== undefined && input.CpuManufacturers !== null) {
5377
+ if (input.CpuManufacturers != null) {
5378
5378
  var memberEntries = serializeAws_queryCpuManufacturers(input.CpuManufacturers, context);
5379
5379
  Object.entries(memberEntries).forEach(function (_a) {
5380
5380
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5382,7 +5382,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5382
5382
  entries[loc] = value;
5383
5383
  });
5384
5384
  }
5385
- if (input.MemoryGiBPerVCpu !== undefined && input.MemoryGiBPerVCpu !== null) {
5385
+ if (input.MemoryGiBPerVCpu != null) {
5386
5386
  var memberEntries = serializeAws_queryMemoryGiBPerVCpuRequest(input.MemoryGiBPerVCpu, context);
5387
5387
  Object.entries(memberEntries).forEach(function (_a) {
5388
5388
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5390,7 +5390,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5390
5390
  entries[loc] = value;
5391
5391
  });
5392
5392
  }
5393
- if (input.ExcludedInstanceTypes !== undefined && input.ExcludedInstanceTypes !== null) {
5393
+ if (input.ExcludedInstanceTypes != null) {
5394
5394
  var memberEntries = serializeAws_queryExcludedInstanceTypes(input.ExcludedInstanceTypes, context);
5395
5395
  Object.entries(memberEntries).forEach(function (_a) {
5396
5396
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5398,7 +5398,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5398
5398
  entries[loc] = value;
5399
5399
  });
5400
5400
  }
5401
- if (input.InstanceGenerations !== undefined && input.InstanceGenerations !== null) {
5401
+ if (input.InstanceGenerations != null) {
5402
5402
  var memberEntries = serializeAws_queryInstanceGenerations(input.InstanceGenerations, context);
5403
5403
  Object.entries(memberEntries).forEach(function (_a) {
5404
5404
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5406,24 +5406,22 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5406
5406
  entries[loc] = value;
5407
5407
  });
5408
5408
  }
5409
- if (input.SpotMaxPricePercentageOverLowestPrice !== undefined &&
5410
- input.SpotMaxPricePercentageOverLowestPrice !== null) {
5409
+ if (input.SpotMaxPricePercentageOverLowestPrice != null) {
5411
5410
  entries["SpotMaxPricePercentageOverLowestPrice"] = input.SpotMaxPricePercentageOverLowestPrice;
5412
5411
  }
5413
- if (input.OnDemandMaxPricePercentageOverLowestPrice !== undefined &&
5414
- input.OnDemandMaxPricePercentageOverLowestPrice !== null) {
5412
+ if (input.OnDemandMaxPricePercentageOverLowestPrice != null) {
5415
5413
  entries["OnDemandMaxPricePercentageOverLowestPrice"] = input.OnDemandMaxPricePercentageOverLowestPrice;
5416
5414
  }
5417
- if (input.BareMetal !== undefined && input.BareMetal !== null) {
5415
+ if (input.BareMetal != null) {
5418
5416
  entries["BareMetal"] = input.BareMetal;
5419
5417
  }
5420
- if (input.BurstablePerformance !== undefined && input.BurstablePerformance !== null) {
5418
+ if (input.BurstablePerformance != null) {
5421
5419
  entries["BurstablePerformance"] = input.BurstablePerformance;
5422
5420
  }
5423
- if (input.RequireHibernateSupport !== undefined && input.RequireHibernateSupport !== null) {
5421
+ if (input.RequireHibernateSupport != null) {
5424
5422
  entries["RequireHibernateSupport"] = input.RequireHibernateSupport;
5425
5423
  }
5426
- if (input.NetworkInterfaceCount !== undefined && input.NetworkInterfaceCount !== null) {
5424
+ if (input.NetworkInterfaceCount != null) {
5427
5425
  var memberEntries = serializeAws_queryNetworkInterfaceCountRequest(input.NetworkInterfaceCount, context);
5428
5426
  Object.entries(memberEntries).forEach(function (_a) {
5429
5427
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5431,10 +5429,10 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5431
5429
  entries[loc] = value;
5432
5430
  });
5433
5431
  }
5434
- if (input.LocalStorage !== undefined && input.LocalStorage !== null) {
5432
+ if (input.LocalStorage != null) {
5435
5433
  entries["LocalStorage"] = input.LocalStorage;
5436
5434
  }
5437
- if (input.LocalStorageTypes !== undefined && input.LocalStorageTypes !== null) {
5435
+ if (input.LocalStorageTypes != null) {
5438
5436
  var memberEntries = serializeAws_queryLocalStorageTypes(input.LocalStorageTypes, context);
5439
5437
  Object.entries(memberEntries).forEach(function (_a) {
5440
5438
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5442,7 +5440,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5442
5440
  entries[loc] = value;
5443
5441
  });
5444
5442
  }
5445
- if (input.TotalLocalStorageGB !== undefined && input.TotalLocalStorageGB !== null) {
5443
+ if (input.TotalLocalStorageGB != null) {
5446
5444
  var memberEntries = serializeAws_queryTotalLocalStorageGBRequest(input.TotalLocalStorageGB, context);
5447
5445
  Object.entries(memberEntries).forEach(function (_a) {
5448
5446
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5450,7 +5448,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5450
5448
  entries[loc] = value;
5451
5449
  });
5452
5450
  }
5453
- if (input.BaselineEbsBandwidthMbps !== undefined && input.BaselineEbsBandwidthMbps !== null) {
5451
+ if (input.BaselineEbsBandwidthMbps != null) {
5454
5452
  var memberEntries = serializeAws_queryBaselineEbsBandwidthMbpsRequest(input.BaselineEbsBandwidthMbps, context);
5455
5453
  Object.entries(memberEntries).forEach(function (_a) {
5456
5454
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5458,7 +5456,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5458
5456
  entries[loc] = value;
5459
5457
  });
5460
5458
  }
5461
- if (input.AcceleratorTypes !== undefined && input.AcceleratorTypes !== null) {
5459
+ if (input.AcceleratorTypes != null) {
5462
5460
  var memberEntries = serializeAws_queryAcceleratorTypes(input.AcceleratorTypes, context);
5463
5461
  Object.entries(memberEntries).forEach(function (_a) {
5464
5462
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5466,7 +5464,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5466
5464
  entries[loc] = value;
5467
5465
  });
5468
5466
  }
5469
- if (input.AcceleratorCount !== undefined && input.AcceleratorCount !== null) {
5467
+ if (input.AcceleratorCount != null) {
5470
5468
  var memberEntries = serializeAws_queryAcceleratorCountRequest(input.AcceleratorCount, context);
5471
5469
  Object.entries(memberEntries).forEach(function (_a) {
5472
5470
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5474,7 +5472,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5474
5472
  entries[loc] = value;
5475
5473
  });
5476
5474
  }
5477
- if (input.AcceleratorManufacturers !== undefined && input.AcceleratorManufacturers !== null) {
5475
+ if (input.AcceleratorManufacturers != null) {
5478
5476
  var memberEntries = serializeAws_queryAcceleratorManufacturers(input.AcceleratorManufacturers, context);
5479
5477
  Object.entries(memberEntries).forEach(function (_a) {
5480
5478
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5482,7 +5480,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5482
5480
  entries[loc] = value;
5483
5481
  });
5484
5482
  }
5485
- if (input.AcceleratorNames !== undefined && input.AcceleratorNames !== null) {
5483
+ if (input.AcceleratorNames != null) {
5486
5484
  var memberEntries = serializeAws_queryAcceleratorNames(input.AcceleratorNames, context);
5487
5485
  Object.entries(memberEntries).forEach(function (_a) {
5488
5486
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5490,7 +5488,7 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5490
5488
  entries[loc] = value;
5491
5489
  });
5492
5490
  }
5493
- if (input.AcceleratorTotalMemoryMiB !== undefined && input.AcceleratorTotalMemoryMiB !== null) {
5491
+ if (input.AcceleratorTotalMemoryMiB != null) {
5494
5492
  var memberEntries = serializeAws_queryAcceleratorTotalMemoryMiBRequest(input.AcceleratorTotalMemoryMiB, context);
5495
5493
  Object.entries(memberEntries).forEach(function (_a) {
5496
5494
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5502,29 +5500,29 @@ var serializeAws_queryInstanceRequirements = function (input, context) {
5502
5500
  };
5503
5501
  var serializeAws_queryInstanceReusePolicy = function (input, context) {
5504
5502
  var entries = {};
5505
- if (input.ReuseOnScaleIn !== undefined && input.ReuseOnScaleIn !== null) {
5503
+ if (input.ReuseOnScaleIn != null) {
5506
5504
  entries["ReuseOnScaleIn"] = input.ReuseOnScaleIn;
5507
5505
  }
5508
5506
  return entries;
5509
5507
  };
5510
5508
  var serializeAws_queryInstancesDistribution = function (input, context) {
5511
5509
  var entries = {};
5512
- if (input.OnDemandAllocationStrategy !== undefined && input.OnDemandAllocationStrategy !== null) {
5510
+ if (input.OnDemandAllocationStrategy != null) {
5513
5511
  entries["OnDemandAllocationStrategy"] = input.OnDemandAllocationStrategy;
5514
5512
  }
5515
- if (input.OnDemandBaseCapacity !== undefined && input.OnDemandBaseCapacity !== null) {
5513
+ if (input.OnDemandBaseCapacity != null) {
5516
5514
  entries["OnDemandBaseCapacity"] = input.OnDemandBaseCapacity;
5517
5515
  }
5518
- if (input.OnDemandPercentageAboveBaseCapacity !== undefined && input.OnDemandPercentageAboveBaseCapacity !== null) {
5516
+ if (input.OnDemandPercentageAboveBaseCapacity != null) {
5519
5517
  entries["OnDemandPercentageAboveBaseCapacity"] = input.OnDemandPercentageAboveBaseCapacity;
5520
5518
  }
5521
- if (input.SpotAllocationStrategy !== undefined && input.SpotAllocationStrategy !== null) {
5519
+ if (input.SpotAllocationStrategy != null) {
5522
5520
  entries["SpotAllocationStrategy"] = input.SpotAllocationStrategy;
5523
5521
  }
5524
- if (input.SpotInstancePools !== undefined && input.SpotInstancePools !== null) {
5522
+ if (input.SpotInstancePools != null) {
5525
5523
  entries["SpotInstancePools"] = input.SpotInstancePools;
5526
5524
  }
5527
- if (input.SpotMaxPrice !== undefined && input.SpotMaxPrice !== null) {
5525
+ if (input.SpotMaxPrice != null) {
5528
5526
  entries["SpotMaxPrice"] = input.SpotMaxPrice;
5529
5527
  }
5530
5528
  return entries;
@@ -5554,7 +5552,7 @@ var serializeAws_queryLaunchConfigurationNames = function (input, context) {
5554
5552
  };
5555
5553
  var serializeAws_queryLaunchConfigurationNamesType = function (input, context) {
5556
5554
  var entries = {};
5557
- if (input.LaunchConfigurationNames !== undefined && input.LaunchConfigurationNames !== null) {
5555
+ if (input.LaunchConfigurationNames != null) {
5558
5556
  var memberEntries = serializeAws_queryLaunchConfigurationNames(input.LaunchConfigurationNames, context);
5559
5557
  Object.entries(memberEntries).forEach(function (_a) {
5560
5558
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5562,24 +5560,24 @@ var serializeAws_queryLaunchConfigurationNamesType = function (input, context) {
5562
5560
  entries[loc] = value;
5563
5561
  });
5564
5562
  }
5565
- if (input.NextToken !== undefined && input.NextToken !== null) {
5563
+ if (input.NextToken != null) {
5566
5564
  entries["NextToken"] = input.NextToken;
5567
5565
  }
5568
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5566
+ if (input.MaxRecords != null) {
5569
5567
  entries["MaxRecords"] = input.MaxRecords;
5570
5568
  }
5571
5569
  return entries;
5572
5570
  };
5573
5571
  var serializeAws_queryLaunchConfigurationNameType = function (input, context) {
5574
5572
  var entries = {};
5575
- if (input.LaunchConfigurationName !== undefined && input.LaunchConfigurationName !== null) {
5573
+ if (input.LaunchConfigurationName != null) {
5576
5574
  entries["LaunchConfigurationName"] = input.LaunchConfigurationName;
5577
5575
  }
5578
5576
  return entries;
5579
5577
  };
5580
5578
  var serializeAws_queryLaunchTemplate = function (input, context) {
5581
5579
  var entries = {};
5582
- if (input.LaunchTemplateSpecification !== undefined && input.LaunchTemplateSpecification !== null) {
5580
+ if (input.LaunchTemplateSpecification != null) {
5583
5581
  var memberEntries = serializeAws_queryLaunchTemplateSpecification(input.LaunchTemplateSpecification, context);
5584
5582
  Object.entries(memberEntries).forEach(function (_a) {
5585
5583
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5587,7 +5585,7 @@ var serializeAws_queryLaunchTemplate = function (input, context) {
5587
5585
  entries[loc] = value;
5588
5586
  });
5589
5587
  }
5590
- if (input.Overrides !== undefined && input.Overrides !== null) {
5588
+ if (input.Overrides != null) {
5591
5589
  var memberEntries = serializeAws_queryOverrides(input.Overrides, context);
5592
5590
  Object.entries(memberEntries).forEach(function (_a) {
5593
5591
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5599,13 +5597,13 @@ var serializeAws_queryLaunchTemplate = function (input, context) {
5599
5597
  };
5600
5598
  var serializeAws_queryLaunchTemplateOverrides = function (input, context) {
5601
5599
  var entries = {};
5602
- if (input.InstanceType !== undefined && input.InstanceType !== null) {
5600
+ if (input.InstanceType != null) {
5603
5601
  entries["InstanceType"] = input.InstanceType;
5604
5602
  }
5605
- if (input.WeightedCapacity !== undefined && input.WeightedCapacity !== null) {
5603
+ if (input.WeightedCapacity != null) {
5606
5604
  entries["WeightedCapacity"] = input.WeightedCapacity;
5607
5605
  }
5608
- if (input.LaunchTemplateSpecification !== undefined && input.LaunchTemplateSpecification !== null) {
5606
+ if (input.LaunchTemplateSpecification != null) {
5609
5607
  var memberEntries = serializeAws_queryLaunchTemplateSpecification(input.LaunchTemplateSpecification, context);
5610
5608
  Object.entries(memberEntries).forEach(function (_a) {
5611
5609
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5613,7 +5611,7 @@ var serializeAws_queryLaunchTemplateOverrides = function (input, context) {
5613
5611
  entries[loc] = value;
5614
5612
  });
5615
5613
  }
5616
- if (input.InstanceRequirements !== undefined && input.InstanceRequirements !== null) {
5614
+ if (input.InstanceRequirements != null) {
5617
5615
  var memberEntries = serializeAws_queryInstanceRequirements(input.InstanceRequirements, context);
5618
5616
  Object.entries(memberEntries).forEach(function (_a) {
5619
5617
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5625,13 +5623,13 @@ var serializeAws_queryLaunchTemplateOverrides = function (input, context) {
5625
5623
  };
5626
5624
  var serializeAws_queryLaunchTemplateSpecification = function (input, context) {
5627
5625
  var entries = {};
5628
- if (input.LaunchTemplateId !== undefined && input.LaunchTemplateId !== null) {
5626
+ if (input.LaunchTemplateId != null) {
5629
5627
  entries["LaunchTemplateId"] = input.LaunchTemplateId;
5630
5628
  }
5631
- if (input.LaunchTemplateName !== undefined && input.LaunchTemplateName !== null) {
5629
+ if (input.LaunchTemplateName != null) {
5632
5630
  entries["LaunchTemplateName"] = input.LaunchTemplateName;
5633
5631
  }
5634
- if (input.Version !== undefined && input.Version !== null) {
5632
+ if (input.Version != null) {
5635
5633
  entries["Version"] = input.Version;
5636
5634
  }
5637
5635
  return entries;
@@ -5661,25 +5659,25 @@ var serializeAws_queryLifecycleHookNames = function (input, context) {
5661
5659
  };
5662
5660
  var serializeAws_queryLifecycleHookSpecification = function (input, context) {
5663
5661
  var entries = {};
5664
- if (input.LifecycleHookName !== undefined && input.LifecycleHookName !== null) {
5662
+ if (input.LifecycleHookName != null) {
5665
5663
  entries["LifecycleHookName"] = input.LifecycleHookName;
5666
5664
  }
5667
- if (input.LifecycleTransition !== undefined && input.LifecycleTransition !== null) {
5665
+ if (input.LifecycleTransition != null) {
5668
5666
  entries["LifecycleTransition"] = input.LifecycleTransition;
5669
5667
  }
5670
- if (input.NotificationMetadata !== undefined && input.NotificationMetadata !== null) {
5668
+ if (input.NotificationMetadata != null) {
5671
5669
  entries["NotificationMetadata"] = input.NotificationMetadata;
5672
5670
  }
5673
- if (input.HeartbeatTimeout !== undefined && input.HeartbeatTimeout !== null) {
5671
+ if (input.HeartbeatTimeout != null) {
5674
5672
  entries["HeartbeatTimeout"] = input.HeartbeatTimeout;
5675
5673
  }
5676
- if (input.DefaultResult !== undefined && input.DefaultResult !== null) {
5674
+ if (input.DefaultResult != null) {
5677
5675
  entries["DefaultResult"] = input.DefaultResult;
5678
5676
  }
5679
- if (input.NotificationTargetARN !== undefined && input.NotificationTargetARN !== null) {
5677
+ if (input.NotificationTargetARN != null) {
5680
5678
  entries["NotificationTargetARN"] = input.NotificationTargetARN;
5681
5679
  }
5682
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
5680
+ if (input.RoleARN != null) {
5683
5681
  entries["RoleARN"] = input.RoleARN;
5684
5682
  }
5685
5683
  return entries;
@@ -5759,33 +5757,33 @@ var serializeAws_queryLocalStorageTypes = function (input, context) {
5759
5757
  };
5760
5758
  var serializeAws_queryMemoryGiBPerVCpuRequest = function (input, context) {
5761
5759
  var entries = {};
5762
- if (input.Min !== undefined && input.Min !== null) {
5760
+ if (input.Min != null) {
5763
5761
  entries["Min"] = __serializeFloat(input.Min);
5764
5762
  }
5765
- if (input.Max !== undefined && input.Max !== null) {
5763
+ if (input.Max != null) {
5766
5764
  entries["Max"] = __serializeFloat(input.Max);
5767
5765
  }
5768
5766
  return entries;
5769
5767
  };
5770
5768
  var serializeAws_queryMemoryMiBRequest = function (input, context) {
5771
5769
  var entries = {};
5772
- if (input.Min !== undefined && input.Min !== null) {
5770
+ if (input.Min != null) {
5773
5771
  entries["Min"] = input.Min;
5774
5772
  }
5775
- if (input.Max !== undefined && input.Max !== null) {
5773
+ if (input.Max != null) {
5776
5774
  entries["Max"] = input.Max;
5777
5775
  }
5778
5776
  return entries;
5779
5777
  };
5780
5778
  var serializeAws_queryMetric = function (input, context) {
5781
5779
  var entries = {};
5782
- if (input.Namespace !== undefined && input.Namespace !== null) {
5780
+ if (input.Namespace != null) {
5783
5781
  entries["Namespace"] = input.Namespace;
5784
5782
  }
5785
- if (input.MetricName !== undefined && input.MetricName !== null) {
5783
+ if (input.MetricName != null) {
5786
5784
  entries["MetricName"] = input.MetricName;
5787
5785
  }
5788
- if (input.Dimensions !== undefined && input.Dimensions !== null) {
5786
+ if (input.Dimensions != null) {
5789
5787
  var memberEntries = serializeAws_queryMetricDimensions(input.Dimensions, context);
5790
5788
  Object.entries(memberEntries).forEach(function (_a) {
5791
5789
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5824,13 +5822,13 @@ var serializeAws_queryMetricDataQueries = function (input, context) {
5824
5822
  };
5825
5823
  var serializeAws_queryMetricDataQuery = function (input, context) {
5826
5824
  var entries = {};
5827
- if (input.Id !== undefined && input.Id !== null) {
5825
+ if (input.Id != null) {
5828
5826
  entries["Id"] = input.Id;
5829
5827
  }
5830
- if (input.Expression !== undefined && input.Expression !== null) {
5828
+ if (input.Expression != null) {
5831
5829
  entries["Expression"] = input.Expression;
5832
5830
  }
5833
- if (input.MetricStat !== undefined && input.MetricStat !== null) {
5831
+ if (input.MetricStat != null) {
5834
5832
  var memberEntries = serializeAws_queryMetricStat(input.MetricStat, context);
5835
5833
  Object.entries(memberEntries).forEach(function (_a) {
5836
5834
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5838,20 +5836,20 @@ var serializeAws_queryMetricDataQuery = function (input, context) {
5838
5836
  entries[loc] = value;
5839
5837
  });
5840
5838
  }
5841
- if (input.Label !== undefined && input.Label !== null) {
5839
+ if (input.Label != null) {
5842
5840
  entries["Label"] = input.Label;
5843
5841
  }
5844
- if (input.ReturnData !== undefined && input.ReturnData !== null) {
5842
+ if (input.ReturnData != null) {
5845
5843
  entries["ReturnData"] = input.ReturnData;
5846
5844
  }
5847
5845
  return entries;
5848
5846
  };
5849
5847
  var serializeAws_queryMetricDimension = function (input, context) {
5850
5848
  var entries = {};
5851
- if (input.Name !== undefined && input.Name !== null) {
5849
+ if (input.Name != null) {
5852
5850
  entries["Name"] = input.Name;
5853
5851
  }
5854
- if (input.Value !== undefined && input.Value !== null) {
5852
+ if (input.Value != null) {
5855
5853
  entries["Value"] = input.Value;
5856
5854
  }
5857
5855
  return entries;
@@ -5908,7 +5906,7 @@ var serializeAws_queryMetrics = function (input, context) {
5908
5906
  };
5909
5907
  var serializeAws_queryMetricStat = function (input, context) {
5910
5908
  var entries = {};
5911
- if (input.Metric !== undefined && input.Metric !== null) {
5909
+ if (input.Metric != null) {
5912
5910
  var memberEntries = serializeAws_queryMetric(input.Metric, context);
5913
5911
  Object.entries(memberEntries).forEach(function (_a) {
5914
5912
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5916,17 +5914,17 @@ var serializeAws_queryMetricStat = function (input, context) {
5916
5914
  entries[loc] = value;
5917
5915
  });
5918
5916
  }
5919
- if (input.Stat !== undefined && input.Stat !== null) {
5917
+ if (input.Stat != null) {
5920
5918
  entries["Stat"] = input.Stat;
5921
5919
  }
5922
- if (input.Unit !== undefined && input.Unit !== null) {
5920
+ if (input.Unit != null) {
5923
5921
  entries["Unit"] = input.Unit;
5924
5922
  }
5925
5923
  return entries;
5926
5924
  };
5927
5925
  var serializeAws_queryMixedInstancesPolicy = function (input, context) {
5928
5926
  var entries = {};
5929
- if (input.LaunchTemplate !== undefined && input.LaunchTemplate !== null) {
5927
+ if (input.LaunchTemplate != null) {
5930
5928
  var memberEntries = serializeAws_queryLaunchTemplate(input.LaunchTemplate, context);
5931
5929
  Object.entries(memberEntries).forEach(function (_a) {
5932
5930
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5934,7 +5932,7 @@ var serializeAws_queryMixedInstancesPolicy = function (input, context) {
5934
5932
  entries[loc] = value;
5935
5933
  });
5936
5934
  }
5937
- if (input.InstancesDistribution !== undefined && input.InstancesDistribution !== null) {
5935
+ if (input.InstancesDistribution != null) {
5938
5936
  var memberEntries = serializeAws_queryInstancesDistribution(input.InstancesDistribution, context);
5939
5937
  Object.entries(memberEntries).forEach(function (_a) {
5940
5938
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5946,10 +5944,10 @@ var serializeAws_queryMixedInstancesPolicy = function (input, context) {
5946
5944
  };
5947
5945
  var serializeAws_queryNetworkInterfaceCountRequest = function (input, context) {
5948
5946
  var entries = {};
5949
- if (input.Min !== undefined && input.Min !== null) {
5947
+ if (input.Min != null) {
5950
5948
  entries["Min"] = input.Min;
5951
5949
  }
5952
- if (input.Max !== undefined && input.Max !== null) {
5950
+ if (input.Max != null) {
5953
5951
  entries["Max"] = input.Max;
5954
5952
  }
5955
5953
  return entries;
@@ -6029,17 +6027,17 @@ var serializeAws_queryPolicyTypes = function (input, context) {
6029
6027
  };
6030
6028
  var serializeAws_queryPredefinedMetricSpecification = function (input, context) {
6031
6029
  var entries = {};
6032
- if (input.PredefinedMetricType !== undefined && input.PredefinedMetricType !== null) {
6030
+ if (input.PredefinedMetricType != null) {
6033
6031
  entries["PredefinedMetricType"] = input.PredefinedMetricType;
6034
6032
  }
6035
- if (input.ResourceLabel !== undefined && input.ResourceLabel !== null) {
6033
+ if (input.ResourceLabel != null) {
6036
6034
  entries["ResourceLabel"] = input.ResourceLabel;
6037
6035
  }
6038
6036
  return entries;
6039
6037
  };
6040
6038
  var serializeAws_queryPredictiveScalingConfiguration = function (input, context) {
6041
6039
  var entries = {};
6042
- if (input.MetricSpecifications !== undefined && input.MetricSpecifications !== null) {
6040
+ if (input.MetricSpecifications != null) {
6043
6041
  var memberEntries = serializeAws_queryPredictiveScalingMetricSpecifications(input.MetricSpecifications, context);
6044
6042
  Object.entries(memberEntries).forEach(function (_a) {
6045
6043
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6047,23 +6045,23 @@ var serializeAws_queryPredictiveScalingConfiguration = function (input, context)
6047
6045
  entries[loc] = value;
6048
6046
  });
6049
6047
  }
6050
- if (input.Mode !== undefined && input.Mode !== null) {
6048
+ if (input.Mode != null) {
6051
6049
  entries["Mode"] = input.Mode;
6052
6050
  }
6053
- if (input.SchedulingBufferTime !== undefined && input.SchedulingBufferTime !== null) {
6051
+ if (input.SchedulingBufferTime != null) {
6054
6052
  entries["SchedulingBufferTime"] = input.SchedulingBufferTime;
6055
6053
  }
6056
- if (input.MaxCapacityBreachBehavior !== undefined && input.MaxCapacityBreachBehavior !== null) {
6054
+ if (input.MaxCapacityBreachBehavior != null) {
6057
6055
  entries["MaxCapacityBreachBehavior"] = input.MaxCapacityBreachBehavior;
6058
6056
  }
6059
- if (input.MaxCapacityBuffer !== undefined && input.MaxCapacityBuffer !== null) {
6057
+ if (input.MaxCapacityBuffer != null) {
6060
6058
  entries["MaxCapacityBuffer"] = input.MaxCapacityBuffer;
6061
6059
  }
6062
6060
  return entries;
6063
6061
  };
6064
6062
  var serializeAws_queryPredictiveScalingCustomizedCapacityMetric = function (input, context) {
6065
6063
  var entries = {};
6066
- if (input.MetricDataQueries !== undefined && input.MetricDataQueries !== null) {
6064
+ if (input.MetricDataQueries != null) {
6067
6065
  var memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
6068
6066
  Object.entries(memberEntries).forEach(function (_a) {
6069
6067
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6075,7 +6073,7 @@ var serializeAws_queryPredictiveScalingCustomizedCapacityMetric = function (inpu
6075
6073
  };
6076
6074
  var serializeAws_queryPredictiveScalingCustomizedLoadMetric = function (input, context) {
6077
6075
  var entries = {};
6078
- if (input.MetricDataQueries !== undefined && input.MetricDataQueries !== null) {
6076
+ if (input.MetricDataQueries != null) {
6079
6077
  var memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
6080
6078
  Object.entries(memberEntries).forEach(function (_a) {
6081
6079
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6087,7 +6085,7 @@ var serializeAws_queryPredictiveScalingCustomizedLoadMetric = function (input, c
6087
6085
  };
6088
6086
  var serializeAws_queryPredictiveScalingCustomizedScalingMetric = function (input, context) {
6089
6087
  var entries = {};
6090
- if (input.MetricDataQueries !== undefined && input.MetricDataQueries !== null) {
6088
+ if (input.MetricDataQueries != null) {
6091
6089
  var memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
6092
6090
  Object.entries(memberEntries).forEach(function (_a) {
6093
6091
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6099,10 +6097,10 @@ var serializeAws_queryPredictiveScalingCustomizedScalingMetric = function (input
6099
6097
  };
6100
6098
  var serializeAws_queryPredictiveScalingMetricSpecification = function (input, context) {
6101
6099
  var entries = {};
6102
- if (input.TargetValue !== undefined && input.TargetValue !== null) {
6100
+ if (input.TargetValue != null) {
6103
6101
  entries["TargetValue"] = __serializeFloat(input.TargetValue);
6104
6102
  }
6105
- if (input.PredefinedMetricPairSpecification !== undefined && input.PredefinedMetricPairSpecification !== null) {
6103
+ if (input.PredefinedMetricPairSpecification != null) {
6106
6104
  var memberEntries = serializeAws_queryPredictiveScalingPredefinedMetricPair(input.PredefinedMetricPairSpecification, context);
6107
6105
  Object.entries(memberEntries).forEach(function (_a) {
6108
6106
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6110,7 +6108,7 @@ var serializeAws_queryPredictiveScalingMetricSpecification = function (input, co
6110
6108
  entries[loc] = value;
6111
6109
  });
6112
6110
  }
6113
- if (input.PredefinedScalingMetricSpecification !== undefined && input.PredefinedScalingMetricSpecification !== null) {
6111
+ if (input.PredefinedScalingMetricSpecification != null) {
6114
6112
  var memberEntries = serializeAws_queryPredictiveScalingPredefinedScalingMetric(input.PredefinedScalingMetricSpecification, context);
6115
6113
  Object.entries(memberEntries).forEach(function (_a) {
6116
6114
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6118,7 +6116,7 @@ var serializeAws_queryPredictiveScalingMetricSpecification = function (input, co
6118
6116
  entries[loc] = value;
6119
6117
  });
6120
6118
  }
6121
- if (input.PredefinedLoadMetricSpecification !== undefined && input.PredefinedLoadMetricSpecification !== null) {
6119
+ if (input.PredefinedLoadMetricSpecification != null) {
6122
6120
  var memberEntries = serializeAws_queryPredictiveScalingPredefinedLoadMetric(input.PredefinedLoadMetricSpecification, context);
6123
6121
  Object.entries(memberEntries).forEach(function (_a) {
6124
6122
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6126,7 +6124,7 @@ var serializeAws_queryPredictiveScalingMetricSpecification = function (input, co
6126
6124
  entries[loc] = value;
6127
6125
  });
6128
6126
  }
6129
- if (input.CustomizedScalingMetricSpecification !== undefined && input.CustomizedScalingMetricSpecification !== null) {
6127
+ if (input.CustomizedScalingMetricSpecification != null) {
6130
6128
  var memberEntries = serializeAws_queryPredictiveScalingCustomizedScalingMetric(input.CustomizedScalingMetricSpecification, context);
6131
6129
  Object.entries(memberEntries).forEach(function (_a) {
6132
6130
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6134,7 +6132,7 @@ var serializeAws_queryPredictiveScalingMetricSpecification = function (input, co
6134
6132
  entries[loc] = value;
6135
6133
  });
6136
6134
  }
6137
- if (input.CustomizedLoadMetricSpecification !== undefined && input.CustomizedLoadMetricSpecification !== null) {
6135
+ if (input.CustomizedLoadMetricSpecification != null) {
6138
6136
  var memberEntries = serializeAws_queryPredictiveScalingCustomizedLoadMetric(input.CustomizedLoadMetricSpecification, context);
6139
6137
  Object.entries(memberEntries).forEach(function (_a) {
6140
6138
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6142,8 +6140,7 @@ var serializeAws_queryPredictiveScalingMetricSpecification = function (input, co
6142
6140
  entries[loc] = value;
6143
6141
  });
6144
6142
  }
6145
- if (input.CustomizedCapacityMetricSpecification !== undefined &&
6146
- input.CustomizedCapacityMetricSpecification !== null) {
6143
+ if (input.CustomizedCapacityMetricSpecification != null) {
6147
6144
  var memberEntries = serializeAws_queryPredictiveScalingCustomizedCapacityMetric(input.CustomizedCapacityMetricSpecification, context);
6148
6145
  Object.entries(memberEntries).forEach(function (_a) {
6149
6146
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6182,30 +6179,30 @@ var serializeAws_queryPredictiveScalingMetricSpecifications = function (input, c
6182
6179
  };
6183
6180
  var serializeAws_queryPredictiveScalingPredefinedLoadMetric = function (input, context) {
6184
6181
  var entries = {};
6185
- if (input.PredefinedMetricType !== undefined && input.PredefinedMetricType !== null) {
6182
+ if (input.PredefinedMetricType != null) {
6186
6183
  entries["PredefinedMetricType"] = input.PredefinedMetricType;
6187
6184
  }
6188
- if (input.ResourceLabel !== undefined && input.ResourceLabel !== null) {
6185
+ if (input.ResourceLabel != null) {
6189
6186
  entries["ResourceLabel"] = input.ResourceLabel;
6190
6187
  }
6191
6188
  return entries;
6192
6189
  };
6193
6190
  var serializeAws_queryPredictiveScalingPredefinedMetricPair = function (input, context) {
6194
6191
  var entries = {};
6195
- if (input.PredefinedMetricType !== undefined && input.PredefinedMetricType !== null) {
6192
+ if (input.PredefinedMetricType != null) {
6196
6193
  entries["PredefinedMetricType"] = input.PredefinedMetricType;
6197
6194
  }
6198
- if (input.ResourceLabel !== undefined && input.ResourceLabel !== null) {
6195
+ if (input.ResourceLabel != null) {
6199
6196
  entries["ResourceLabel"] = input.ResourceLabel;
6200
6197
  }
6201
6198
  return entries;
6202
6199
  };
6203
6200
  var serializeAws_queryPredictiveScalingPredefinedScalingMetric = function (input, context) {
6204
6201
  var entries = {};
6205
- if (input.PredefinedMetricType !== undefined && input.PredefinedMetricType !== null) {
6202
+ if (input.PredefinedMetricType != null) {
6206
6203
  entries["PredefinedMetricType"] = input.PredefinedMetricType;
6207
6204
  }
6208
- if (input.ResourceLabel !== undefined && input.ResourceLabel !== null) {
6205
+ if (input.ResourceLabel != null) {
6209
6206
  entries["ResourceLabel"] = input.ResourceLabel;
6210
6207
  }
6211
6208
  return entries;
@@ -6235,41 +6232,41 @@ var serializeAws_queryProcessNames = function (input, context) {
6235
6232
  };
6236
6233
  var serializeAws_queryPutLifecycleHookType = function (input, context) {
6237
6234
  var entries = {};
6238
- if (input.LifecycleHookName !== undefined && input.LifecycleHookName !== null) {
6235
+ if (input.LifecycleHookName != null) {
6239
6236
  entries["LifecycleHookName"] = input.LifecycleHookName;
6240
6237
  }
6241
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6238
+ if (input.AutoScalingGroupName != null) {
6242
6239
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6243
6240
  }
6244
- if (input.LifecycleTransition !== undefined && input.LifecycleTransition !== null) {
6241
+ if (input.LifecycleTransition != null) {
6245
6242
  entries["LifecycleTransition"] = input.LifecycleTransition;
6246
6243
  }
6247
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
6244
+ if (input.RoleARN != null) {
6248
6245
  entries["RoleARN"] = input.RoleARN;
6249
6246
  }
6250
- if (input.NotificationTargetARN !== undefined && input.NotificationTargetARN !== null) {
6247
+ if (input.NotificationTargetARN != null) {
6251
6248
  entries["NotificationTargetARN"] = input.NotificationTargetARN;
6252
6249
  }
6253
- if (input.NotificationMetadata !== undefined && input.NotificationMetadata !== null) {
6250
+ if (input.NotificationMetadata != null) {
6254
6251
  entries["NotificationMetadata"] = input.NotificationMetadata;
6255
6252
  }
6256
- if (input.HeartbeatTimeout !== undefined && input.HeartbeatTimeout !== null) {
6253
+ if (input.HeartbeatTimeout != null) {
6257
6254
  entries["HeartbeatTimeout"] = input.HeartbeatTimeout;
6258
6255
  }
6259
- if (input.DefaultResult !== undefined && input.DefaultResult !== null) {
6256
+ if (input.DefaultResult != null) {
6260
6257
  entries["DefaultResult"] = input.DefaultResult;
6261
6258
  }
6262
6259
  return entries;
6263
6260
  };
6264
6261
  var serializeAws_queryPutNotificationConfigurationType = function (input, context) {
6265
6262
  var entries = {};
6266
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6263
+ if (input.AutoScalingGroupName != null) {
6267
6264
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6268
6265
  }
6269
- if (input.TopicARN !== undefined && input.TopicARN !== null) {
6266
+ if (input.TopicARN != null) {
6270
6267
  entries["TopicARN"] = input.TopicARN;
6271
6268
  }
6272
- if (input.NotificationTypes !== undefined && input.NotificationTypes !== null) {
6269
+ if (input.NotificationTypes != null) {
6273
6270
  var memberEntries = serializeAws_queryAutoScalingNotificationTypes(input.NotificationTypes, context);
6274
6271
  Object.entries(memberEntries).forEach(function (_a) {
6275
6272
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6281,34 +6278,34 @@ var serializeAws_queryPutNotificationConfigurationType = function (input, contex
6281
6278
  };
6282
6279
  var serializeAws_queryPutScalingPolicyType = function (input, context) {
6283
6280
  var entries = {};
6284
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6281
+ if (input.AutoScalingGroupName != null) {
6285
6282
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6286
6283
  }
6287
- if (input.PolicyName !== undefined && input.PolicyName !== null) {
6284
+ if (input.PolicyName != null) {
6288
6285
  entries["PolicyName"] = input.PolicyName;
6289
6286
  }
6290
- if (input.PolicyType !== undefined && input.PolicyType !== null) {
6287
+ if (input.PolicyType != null) {
6291
6288
  entries["PolicyType"] = input.PolicyType;
6292
6289
  }
6293
- if (input.AdjustmentType !== undefined && input.AdjustmentType !== null) {
6290
+ if (input.AdjustmentType != null) {
6294
6291
  entries["AdjustmentType"] = input.AdjustmentType;
6295
6292
  }
6296
- if (input.MinAdjustmentStep !== undefined && input.MinAdjustmentStep !== null) {
6293
+ if (input.MinAdjustmentStep != null) {
6297
6294
  entries["MinAdjustmentStep"] = input.MinAdjustmentStep;
6298
6295
  }
6299
- if (input.MinAdjustmentMagnitude !== undefined && input.MinAdjustmentMagnitude !== null) {
6296
+ if (input.MinAdjustmentMagnitude != null) {
6300
6297
  entries["MinAdjustmentMagnitude"] = input.MinAdjustmentMagnitude;
6301
6298
  }
6302
- if (input.ScalingAdjustment !== undefined && input.ScalingAdjustment !== null) {
6299
+ if (input.ScalingAdjustment != null) {
6303
6300
  entries["ScalingAdjustment"] = input.ScalingAdjustment;
6304
6301
  }
6305
- if (input.Cooldown !== undefined && input.Cooldown !== null) {
6302
+ if (input.Cooldown != null) {
6306
6303
  entries["Cooldown"] = input.Cooldown;
6307
6304
  }
6308
- if (input.MetricAggregationType !== undefined && input.MetricAggregationType !== null) {
6305
+ if (input.MetricAggregationType != null) {
6309
6306
  entries["MetricAggregationType"] = input.MetricAggregationType;
6310
6307
  }
6311
- if (input.StepAdjustments !== undefined && input.StepAdjustments !== null) {
6308
+ if (input.StepAdjustments != null) {
6312
6309
  var memberEntries = serializeAws_queryStepAdjustments(input.StepAdjustments, context);
6313
6310
  Object.entries(memberEntries).forEach(function (_a) {
6314
6311
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6316,10 +6313,10 @@ var serializeAws_queryPutScalingPolicyType = function (input, context) {
6316
6313
  entries[loc] = value;
6317
6314
  });
6318
6315
  }
6319
- if (input.EstimatedInstanceWarmup !== undefined && input.EstimatedInstanceWarmup !== null) {
6316
+ if (input.EstimatedInstanceWarmup != null) {
6320
6317
  entries["EstimatedInstanceWarmup"] = input.EstimatedInstanceWarmup;
6321
6318
  }
6322
- if (input.TargetTrackingConfiguration !== undefined && input.TargetTrackingConfiguration !== null) {
6319
+ if (input.TargetTrackingConfiguration != null) {
6323
6320
  var memberEntries = serializeAws_queryTargetTrackingConfiguration(input.TargetTrackingConfiguration, context);
6324
6321
  Object.entries(memberEntries).forEach(function (_a) {
6325
6322
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6327,10 +6324,10 @@ var serializeAws_queryPutScalingPolicyType = function (input, context) {
6327
6324
  entries[loc] = value;
6328
6325
  });
6329
6326
  }
6330
- if (input.Enabled !== undefined && input.Enabled !== null) {
6327
+ if (input.Enabled != null) {
6331
6328
  entries["Enabled"] = input.Enabled;
6332
6329
  }
6333
- if (input.PredictiveScalingConfiguration !== undefined && input.PredictiveScalingConfiguration !== null) {
6330
+ if (input.PredictiveScalingConfiguration != null) {
6334
6331
  var memberEntries = serializeAws_queryPredictiveScalingConfiguration(input.PredictiveScalingConfiguration, context);
6335
6332
  Object.entries(memberEntries).forEach(function (_a) {
6336
6333
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6342,53 +6339,53 @@ var serializeAws_queryPutScalingPolicyType = function (input, context) {
6342
6339
  };
6343
6340
  var serializeAws_queryPutScheduledUpdateGroupActionType = function (input, context) {
6344
6341
  var entries = {};
6345
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6342
+ if (input.AutoScalingGroupName != null) {
6346
6343
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6347
6344
  }
6348
- if (input.ScheduledActionName !== undefined && input.ScheduledActionName !== null) {
6345
+ if (input.ScheduledActionName != null) {
6349
6346
  entries["ScheduledActionName"] = input.ScheduledActionName;
6350
6347
  }
6351
- if (input.Time !== undefined && input.Time !== null) {
6348
+ if (input.Time != null) {
6352
6349
  entries["Time"] = input.Time.toISOString().split(".")[0] + "Z";
6353
6350
  }
6354
- if (input.StartTime !== undefined && input.StartTime !== null) {
6351
+ if (input.StartTime != null) {
6355
6352
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
6356
6353
  }
6357
- if (input.EndTime !== undefined && input.EndTime !== null) {
6354
+ if (input.EndTime != null) {
6358
6355
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
6359
6356
  }
6360
- if (input.Recurrence !== undefined && input.Recurrence !== null) {
6357
+ if (input.Recurrence != null) {
6361
6358
  entries["Recurrence"] = input.Recurrence;
6362
6359
  }
6363
- if (input.MinSize !== undefined && input.MinSize !== null) {
6360
+ if (input.MinSize != null) {
6364
6361
  entries["MinSize"] = input.MinSize;
6365
6362
  }
6366
- if (input.MaxSize !== undefined && input.MaxSize !== null) {
6363
+ if (input.MaxSize != null) {
6367
6364
  entries["MaxSize"] = input.MaxSize;
6368
6365
  }
6369
- if (input.DesiredCapacity !== undefined && input.DesiredCapacity !== null) {
6366
+ if (input.DesiredCapacity != null) {
6370
6367
  entries["DesiredCapacity"] = input.DesiredCapacity;
6371
6368
  }
6372
- if (input.TimeZone !== undefined && input.TimeZone !== null) {
6369
+ if (input.TimeZone != null) {
6373
6370
  entries["TimeZone"] = input.TimeZone;
6374
6371
  }
6375
6372
  return entries;
6376
6373
  };
6377
6374
  var serializeAws_queryPutWarmPoolType = function (input, context) {
6378
6375
  var entries = {};
6379
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6376
+ if (input.AutoScalingGroupName != null) {
6380
6377
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6381
6378
  }
6382
- if (input.MaxGroupPreparedCapacity !== undefined && input.MaxGroupPreparedCapacity !== null) {
6379
+ if (input.MaxGroupPreparedCapacity != null) {
6383
6380
  entries["MaxGroupPreparedCapacity"] = input.MaxGroupPreparedCapacity;
6384
6381
  }
6385
- if (input.MinSize !== undefined && input.MinSize !== null) {
6382
+ if (input.MinSize != null) {
6386
6383
  entries["MinSize"] = input.MinSize;
6387
6384
  }
6388
- if (input.PoolState !== undefined && input.PoolState !== null) {
6385
+ if (input.PoolState != null) {
6389
6386
  entries["PoolState"] = input.PoolState;
6390
6387
  }
6391
- if (input.InstanceReusePolicy !== undefined && input.InstanceReusePolicy !== null) {
6388
+ if (input.InstanceReusePolicy != null) {
6392
6389
  var memberEntries = serializeAws_queryInstanceReusePolicy(input.InstanceReusePolicy, context);
6393
6390
  Object.entries(memberEntries).forEach(function (_a) {
6394
6391
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6400,29 +6397,29 @@ var serializeAws_queryPutWarmPoolType = function (input, context) {
6400
6397
  };
6401
6398
  var serializeAws_queryRecordLifecycleActionHeartbeatType = function (input, context) {
6402
6399
  var entries = {};
6403
- if (input.LifecycleHookName !== undefined && input.LifecycleHookName !== null) {
6400
+ if (input.LifecycleHookName != null) {
6404
6401
  entries["LifecycleHookName"] = input.LifecycleHookName;
6405
6402
  }
6406
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6403
+ if (input.AutoScalingGroupName != null) {
6407
6404
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6408
6405
  }
6409
- if (input.LifecycleActionToken !== undefined && input.LifecycleActionToken !== null) {
6406
+ if (input.LifecycleActionToken != null) {
6410
6407
  entries["LifecycleActionToken"] = input.LifecycleActionToken;
6411
6408
  }
6412
- if (input.InstanceId !== undefined && input.InstanceId !== null) {
6409
+ if (input.InstanceId != null) {
6413
6410
  entries["InstanceId"] = input.InstanceId;
6414
6411
  }
6415
6412
  return entries;
6416
6413
  };
6417
6414
  var serializeAws_queryRefreshPreferences = function (input, context) {
6418
6415
  var entries = {};
6419
- if (input.MinHealthyPercentage !== undefined && input.MinHealthyPercentage !== null) {
6416
+ if (input.MinHealthyPercentage != null) {
6420
6417
  entries["MinHealthyPercentage"] = input.MinHealthyPercentage;
6421
6418
  }
6422
- if (input.InstanceWarmup !== undefined && input.InstanceWarmup !== null) {
6419
+ if (input.InstanceWarmup != null) {
6423
6420
  entries["InstanceWarmup"] = input.InstanceWarmup;
6424
6421
  }
6425
- if (input.CheckpointPercentages !== undefined && input.CheckpointPercentages !== null) {
6422
+ if (input.CheckpointPercentages != null) {
6426
6423
  var memberEntries = serializeAws_queryCheckpointPercentages(input.CheckpointPercentages, context);
6427
6424
  Object.entries(memberEntries).forEach(function (_a) {
6428
6425
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6430,20 +6427,20 @@ var serializeAws_queryRefreshPreferences = function (input, context) {
6430
6427
  entries[loc] = value;
6431
6428
  });
6432
6429
  }
6433
- if (input.CheckpointDelay !== undefined && input.CheckpointDelay !== null) {
6430
+ if (input.CheckpointDelay != null) {
6434
6431
  entries["CheckpointDelay"] = input.CheckpointDelay;
6435
6432
  }
6436
- if (input.SkipMatching !== undefined && input.SkipMatching !== null) {
6433
+ if (input.SkipMatching != null) {
6437
6434
  entries["SkipMatching"] = input.SkipMatching;
6438
6435
  }
6439
6436
  return entries;
6440
6437
  };
6441
6438
  var serializeAws_queryScalingProcessQuery = function (input, context) {
6442
6439
  var entries = {};
6443
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6440
+ if (input.AutoScalingGroupName != null) {
6444
6441
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6445
6442
  }
6446
- if (input.ScalingProcesses !== undefined && input.ScalingProcesses !== null) {
6443
+ if (input.ScalingProcesses != null) {
6447
6444
  var memberEntries = serializeAws_queryProcessNames(input.ScalingProcesses, context);
6448
6445
  Object.entries(memberEntries).forEach(function (_a) {
6449
6446
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6478,28 +6475,28 @@ var serializeAws_queryScheduledActionNames = function (input, context) {
6478
6475
  };
6479
6476
  var serializeAws_queryScheduledUpdateGroupActionRequest = function (input, context) {
6480
6477
  var entries = {};
6481
- if (input.ScheduledActionName !== undefined && input.ScheduledActionName !== null) {
6478
+ if (input.ScheduledActionName != null) {
6482
6479
  entries["ScheduledActionName"] = input.ScheduledActionName;
6483
6480
  }
6484
- if (input.StartTime !== undefined && input.StartTime !== null) {
6481
+ if (input.StartTime != null) {
6485
6482
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
6486
6483
  }
6487
- if (input.EndTime !== undefined && input.EndTime !== null) {
6484
+ if (input.EndTime != null) {
6488
6485
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
6489
6486
  }
6490
- if (input.Recurrence !== undefined && input.Recurrence !== null) {
6487
+ if (input.Recurrence != null) {
6491
6488
  entries["Recurrence"] = input.Recurrence;
6492
6489
  }
6493
- if (input.MinSize !== undefined && input.MinSize !== null) {
6490
+ if (input.MinSize != null) {
6494
6491
  entries["MinSize"] = input.MinSize;
6495
6492
  }
6496
- if (input.MaxSize !== undefined && input.MaxSize !== null) {
6493
+ if (input.MaxSize != null) {
6497
6494
  entries["MaxSize"] = input.MaxSize;
6498
6495
  }
6499
- if (input.DesiredCapacity !== undefined && input.DesiredCapacity !== null) {
6496
+ if (input.DesiredCapacity != null) {
6500
6497
  entries["DesiredCapacity"] = input.DesiredCapacity;
6501
6498
  }
6502
- if (input.TimeZone !== undefined && input.TimeZone !== null) {
6499
+ if (input.TimeZone != null) {
6503
6500
  entries["TimeZone"] = input.TimeZone;
6504
6501
  }
6505
6502
  return entries;
@@ -6556,33 +6553,33 @@ var serializeAws_querySecurityGroups = function (input, context) {
6556
6553
  };
6557
6554
  var serializeAws_querySetDesiredCapacityType = function (input, context) {
6558
6555
  var entries = {};
6559
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6556
+ if (input.AutoScalingGroupName != null) {
6560
6557
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6561
6558
  }
6562
- if (input.DesiredCapacity !== undefined && input.DesiredCapacity !== null) {
6559
+ if (input.DesiredCapacity != null) {
6563
6560
  entries["DesiredCapacity"] = input.DesiredCapacity;
6564
6561
  }
6565
- if (input.HonorCooldown !== undefined && input.HonorCooldown !== null) {
6562
+ if (input.HonorCooldown != null) {
6566
6563
  entries["HonorCooldown"] = input.HonorCooldown;
6567
6564
  }
6568
6565
  return entries;
6569
6566
  };
6570
6567
  var serializeAws_querySetInstanceHealthQuery = function (input, context) {
6571
6568
  var entries = {};
6572
- if (input.InstanceId !== undefined && input.InstanceId !== null) {
6569
+ if (input.InstanceId != null) {
6573
6570
  entries["InstanceId"] = input.InstanceId;
6574
6571
  }
6575
- if (input.HealthStatus !== undefined && input.HealthStatus !== null) {
6572
+ if (input.HealthStatus != null) {
6576
6573
  entries["HealthStatus"] = input.HealthStatus;
6577
6574
  }
6578
- if (input.ShouldRespectGracePeriod !== undefined && input.ShouldRespectGracePeriod !== null) {
6575
+ if (input.ShouldRespectGracePeriod != null) {
6579
6576
  entries["ShouldRespectGracePeriod"] = input.ShouldRespectGracePeriod;
6580
6577
  }
6581
6578
  return entries;
6582
6579
  };
6583
6580
  var serializeAws_querySetInstanceProtectionQuery = function (input, context) {
6584
6581
  var entries = {};
6585
- if (input.InstanceIds !== undefined && input.InstanceIds !== null) {
6582
+ if (input.InstanceIds != null) {
6586
6583
  var memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
6587
6584
  Object.entries(memberEntries).forEach(function (_a) {
6588
6585
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6590,23 +6587,23 @@ var serializeAws_querySetInstanceProtectionQuery = function (input, context) {
6590
6587
  entries[loc] = value;
6591
6588
  });
6592
6589
  }
6593
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6590
+ if (input.AutoScalingGroupName != null) {
6594
6591
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6595
6592
  }
6596
- if (input.ProtectedFromScaleIn !== undefined && input.ProtectedFromScaleIn !== null) {
6593
+ if (input.ProtectedFromScaleIn != null) {
6597
6594
  entries["ProtectedFromScaleIn"] = input.ProtectedFromScaleIn;
6598
6595
  }
6599
6596
  return entries;
6600
6597
  };
6601
6598
  var serializeAws_queryStartInstanceRefreshType = function (input, context) {
6602
6599
  var entries = {};
6603
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6600
+ if (input.AutoScalingGroupName != null) {
6604
6601
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6605
6602
  }
6606
- if (input.Strategy !== undefined && input.Strategy !== null) {
6603
+ if (input.Strategy != null) {
6607
6604
  entries["Strategy"] = input.Strategy;
6608
6605
  }
6609
- if (input.DesiredConfiguration !== undefined && input.DesiredConfiguration !== null) {
6606
+ if (input.DesiredConfiguration != null) {
6610
6607
  var memberEntries = serializeAws_queryDesiredConfiguration(input.DesiredConfiguration, context);
6611
6608
  Object.entries(memberEntries).forEach(function (_a) {
6612
6609
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6614,7 +6611,7 @@ var serializeAws_queryStartInstanceRefreshType = function (input, context) {
6614
6611
  entries[loc] = value;
6615
6612
  });
6616
6613
  }
6617
- if (input.Preferences !== undefined && input.Preferences !== null) {
6614
+ if (input.Preferences != null) {
6618
6615
  var memberEntries = serializeAws_queryRefreshPreferences(input.Preferences, context);
6619
6616
  Object.entries(memberEntries).forEach(function (_a) {
6620
6617
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6626,13 +6623,13 @@ var serializeAws_queryStartInstanceRefreshType = function (input, context) {
6626
6623
  };
6627
6624
  var serializeAws_queryStepAdjustment = function (input, context) {
6628
6625
  var entries = {};
6629
- if (input.MetricIntervalLowerBound !== undefined && input.MetricIntervalLowerBound !== null) {
6626
+ if (input.MetricIntervalLowerBound != null) {
6630
6627
  entries["MetricIntervalLowerBound"] = __serializeFloat(input.MetricIntervalLowerBound);
6631
6628
  }
6632
- if (input.MetricIntervalUpperBound !== undefined && input.MetricIntervalUpperBound !== null) {
6629
+ if (input.MetricIntervalUpperBound != null) {
6633
6630
  entries["MetricIntervalUpperBound"] = __serializeFloat(input.MetricIntervalUpperBound);
6634
6631
  }
6635
- if (input.ScalingAdjustment !== undefined && input.ScalingAdjustment !== null) {
6632
+ if (input.ScalingAdjustment != null) {
6636
6633
  entries["ScalingAdjustment"] = input.ScalingAdjustment;
6637
6634
  }
6638
6635
  return entries;
@@ -6666,19 +6663,19 @@ var serializeAws_queryStepAdjustments = function (input, context) {
6666
6663
  };
6667
6664
  var serializeAws_queryTag = function (input, context) {
6668
6665
  var entries = {};
6669
- if (input.ResourceId !== undefined && input.ResourceId !== null) {
6666
+ if (input.ResourceId != null) {
6670
6667
  entries["ResourceId"] = input.ResourceId;
6671
6668
  }
6672
- if (input.ResourceType !== undefined && input.ResourceType !== null) {
6669
+ if (input.ResourceType != null) {
6673
6670
  entries["ResourceType"] = input.ResourceType;
6674
6671
  }
6675
- if (input.Key !== undefined && input.Key !== null) {
6672
+ if (input.Key != null) {
6676
6673
  entries["Key"] = input.Key;
6677
6674
  }
6678
- if (input.Value !== undefined && input.Value !== null) {
6675
+ if (input.Value != null) {
6679
6676
  entries["Value"] = input.Value;
6680
6677
  }
6681
- if (input.PropagateAtLaunch !== undefined && input.PropagateAtLaunch !== null) {
6678
+ if (input.PropagateAtLaunch != null) {
6682
6679
  entries["PropagateAtLaunch"] = input.PropagateAtLaunch;
6683
6680
  }
6684
6681
  return entries;
@@ -6735,7 +6732,7 @@ var serializeAws_queryTargetGroupARNs = function (input, context) {
6735
6732
  };
6736
6733
  var serializeAws_queryTargetTrackingConfiguration = function (input, context) {
6737
6734
  var entries = {};
6738
- if (input.PredefinedMetricSpecification !== undefined && input.PredefinedMetricSpecification !== null) {
6735
+ if (input.PredefinedMetricSpecification != null) {
6739
6736
  var memberEntries = serializeAws_queryPredefinedMetricSpecification(input.PredefinedMetricSpecification, context);
6740
6737
  Object.entries(memberEntries).forEach(function (_a) {
6741
6738
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6743,7 +6740,7 @@ var serializeAws_queryTargetTrackingConfiguration = function (input, context) {
6743
6740
  entries[loc] = value;
6744
6741
  });
6745
6742
  }
6746
- if (input.CustomizedMetricSpecification !== undefined && input.CustomizedMetricSpecification !== null) {
6743
+ if (input.CustomizedMetricSpecification != null) {
6747
6744
  var memberEntries = serializeAws_queryCustomizedMetricSpecification(input.CustomizedMetricSpecification, context);
6748
6745
  Object.entries(memberEntries).forEach(function (_a) {
6749
6746
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6751,20 +6748,20 @@ var serializeAws_queryTargetTrackingConfiguration = function (input, context) {
6751
6748
  entries[loc] = value;
6752
6749
  });
6753
6750
  }
6754
- if (input.TargetValue !== undefined && input.TargetValue !== null) {
6751
+ if (input.TargetValue != null) {
6755
6752
  entries["TargetValue"] = __serializeFloat(input.TargetValue);
6756
6753
  }
6757
- if (input.DisableScaleIn !== undefined && input.DisableScaleIn !== null) {
6754
+ if (input.DisableScaleIn != null) {
6758
6755
  entries["DisableScaleIn"] = input.DisableScaleIn;
6759
6756
  }
6760
6757
  return entries;
6761
6758
  };
6762
6759
  var serializeAws_queryTerminateInstanceInAutoScalingGroupType = function (input, context) {
6763
6760
  var entries = {};
6764
- if (input.InstanceId !== undefined && input.InstanceId !== null) {
6761
+ if (input.InstanceId != null) {
6765
6762
  entries["InstanceId"] = input.InstanceId;
6766
6763
  }
6767
- if (input.ShouldDecrementDesiredCapacity !== undefined && input.ShouldDecrementDesiredCapacity !== null) {
6764
+ if (input.ShouldDecrementDesiredCapacity != null) {
6768
6765
  entries["ShouldDecrementDesiredCapacity"] = input.ShouldDecrementDesiredCapacity;
6769
6766
  }
6770
6767
  return entries;
@@ -6794,23 +6791,23 @@ var serializeAws_queryTerminationPolicies = function (input, context) {
6794
6791
  };
6795
6792
  var serializeAws_queryTotalLocalStorageGBRequest = function (input, context) {
6796
6793
  var entries = {};
6797
- if (input.Min !== undefined && input.Min !== null) {
6794
+ if (input.Min != null) {
6798
6795
  entries["Min"] = __serializeFloat(input.Min);
6799
6796
  }
6800
- if (input.Max !== undefined && input.Max !== null) {
6797
+ if (input.Max != null) {
6801
6798
  entries["Max"] = __serializeFloat(input.Max);
6802
6799
  }
6803
6800
  return entries;
6804
6801
  };
6805
6802
  var serializeAws_queryUpdateAutoScalingGroupType = function (input, context) {
6806
6803
  var entries = {};
6807
- if (input.AutoScalingGroupName !== undefined && input.AutoScalingGroupName !== null) {
6804
+ if (input.AutoScalingGroupName != null) {
6808
6805
  entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
6809
6806
  }
6810
- if (input.LaunchConfigurationName !== undefined && input.LaunchConfigurationName !== null) {
6807
+ if (input.LaunchConfigurationName != null) {
6811
6808
  entries["LaunchConfigurationName"] = input.LaunchConfigurationName;
6812
6809
  }
6813
- if (input.LaunchTemplate !== undefined && input.LaunchTemplate !== null) {
6810
+ if (input.LaunchTemplate != null) {
6814
6811
  var memberEntries = serializeAws_queryLaunchTemplateSpecification(input.LaunchTemplate, context);
6815
6812
  Object.entries(memberEntries).forEach(function (_a) {
6816
6813
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6818,7 +6815,7 @@ var serializeAws_queryUpdateAutoScalingGroupType = function (input, context) {
6818
6815
  entries[loc] = value;
6819
6816
  });
6820
6817
  }
6821
- if (input.MixedInstancesPolicy !== undefined && input.MixedInstancesPolicy !== null) {
6818
+ if (input.MixedInstancesPolicy != null) {
6822
6819
  var memberEntries = serializeAws_queryMixedInstancesPolicy(input.MixedInstancesPolicy, context);
6823
6820
  Object.entries(memberEntries).forEach(function (_a) {
6824
6821
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6826,19 +6823,19 @@ var serializeAws_queryUpdateAutoScalingGroupType = function (input, context) {
6826
6823
  entries[loc] = value;
6827
6824
  });
6828
6825
  }
6829
- if (input.MinSize !== undefined && input.MinSize !== null) {
6826
+ if (input.MinSize != null) {
6830
6827
  entries["MinSize"] = input.MinSize;
6831
6828
  }
6832
- if (input.MaxSize !== undefined && input.MaxSize !== null) {
6829
+ if (input.MaxSize != null) {
6833
6830
  entries["MaxSize"] = input.MaxSize;
6834
6831
  }
6835
- if (input.DesiredCapacity !== undefined && input.DesiredCapacity !== null) {
6832
+ if (input.DesiredCapacity != null) {
6836
6833
  entries["DesiredCapacity"] = input.DesiredCapacity;
6837
6834
  }
6838
- if (input.DefaultCooldown !== undefined && input.DefaultCooldown !== null) {
6835
+ if (input.DefaultCooldown != null) {
6839
6836
  entries["DefaultCooldown"] = input.DefaultCooldown;
6840
6837
  }
6841
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
6838
+ if (input.AvailabilityZones != null) {
6842
6839
  var memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
6843
6840
  Object.entries(memberEntries).forEach(function (_a) {
6844
6841
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6846,19 +6843,19 @@ var serializeAws_queryUpdateAutoScalingGroupType = function (input, context) {
6846
6843
  entries[loc] = value;
6847
6844
  });
6848
6845
  }
6849
- if (input.HealthCheckType !== undefined && input.HealthCheckType !== null) {
6846
+ if (input.HealthCheckType != null) {
6850
6847
  entries["HealthCheckType"] = input.HealthCheckType;
6851
6848
  }
6852
- if (input.HealthCheckGracePeriod !== undefined && input.HealthCheckGracePeriod !== null) {
6849
+ if (input.HealthCheckGracePeriod != null) {
6853
6850
  entries["HealthCheckGracePeriod"] = input.HealthCheckGracePeriod;
6854
6851
  }
6855
- if (input.PlacementGroup !== undefined && input.PlacementGroup !== null) {
6852
+ if (input.PlacementGroup != null) {
6856
6853
  entries["PlacementGroup"] = input.PlacementGroup;
6857
6854
  }
6858
- if (input.VPCZoneIdentifier !== undefined && input.VPCZoneIdentifier !== null) {
6855
+ if (input.VPCZoneIdentifier != null) {
6859
6856
  entries["VPCZoneIdentifier"] = input.VPCZoneIdentifier;
6860
6857
  }
6861
- if (input.TerminationPolicies !== undefined && input.TerminationPolicies !== null) {
6858
+ if (input.TerminationPolicies != null) {
6862
6859
  var memberEntries = serializeAws_queryTerminationPolicies(input.TerminationPolicies, context);
6863
6860
  Object.entries(memberEntries).forEach(function (_a) {
6864
6861
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6866,25 +6863,25 @@ var serializeAws_queryUpdateAutoScalingGroupType = function (input, context) {
6866
6863
  entries[loc] = value;
6867
6864
  });
6868
6865
  }
6869
- if (input.NewInstancesProtectedFromScaleIn !== undefined && input.NewInstancesProtectedFromScaleIn !== null) {
6866
+ if (input.NewInstancesProtectedFromScaleIn != null) {
6870
6867
  entries["NewInstancesProtectedFromScaleIn"] = input.NewInstancesProtectedFromScaleIn;
6871
6868
  }
6872
- if (input.ServiceLinkedRoleARN !== undefined && input.ServiceLinkedRoleARN !== null) {
6869
+ if (input.ServiceLinkedRoleARN != null) {
6873
6870
  entries["ServiceLinkedRoleARN"] = input.ServiceLinkedRoleARN;
6874
6871
  }
6875
- if (input.MaxInstanceLifetime !== undefined && input.MaxInstanceLifetime !== null) {
6872
+ if (input.MaxInstanceLifetime != null) {
6876
6873
  entries["MaxInstanceLifetime"] = input.MaxInstanceLifetime;
6877
6874
  }
6878
- if (input.CapacityRebalance !== undefined && input.CapacityRebalance !== null) {
6875
+ if (input.CapacityRebalance != null) {
6879
6876
  entries["CapacityRebalance"] = input.CapacityRebalance;
6880
6877
  }
6881
- if (input.Context !== undefined && input.Context !== null) {
6878
+ if (input.Context != null) {
6882
6879
  entries["Context"] = input.Context;
6883
6880
  }
6884
- if (input.DesiredCapacityType !== undefined && input.DesiredCapacityType !== null) {
6881
+ if (input.DesiredCapacityType != null) {
6885
6882
  entries["DesiredCapacityType"] = input.DesiredCapacityType;
6886
6883
  }
6887
- if (input.DefaultInstanceWarmup !== undefined && input.DefaultInstanceWarmup !== null) {
6884
+ if (input.DefaultInstanceWarmup != null) {
6888
6885
  entries["DefaultInstanceWarmup"] = input.DefaultInstanceWarmup;
6889
6886
  }
6890
6887
  return entries;
@@ -6914,10 +6911,10 @@ var serializeAws_queryValues = function (input, context) {
6914
6911
  };
6915
6912
  var serializeAws_queryVCpuCountRequest = function (input, context) {
6916
6913
  var entries = {};
6917
- if (input.Min !== undefined && input.Min !== null) {
6914
+ if (input.Min != null) {
6918
6915
  entries["Min"] = input.Min;
6919
6916
  }
6920
- if (input.Max !== undefined && input.Max !== null) {
6917
+ if (input.Max != null) {
6921
6918
  entries["Max"] = input.Max;
6922
6919
  }
6923
6920
  return entries;
@@ -6939,9 +6936,6 @@ var deserializeAws_queryAcceleratorManufacturers = function (output, context) {
6939
6936
  return (output || [])
6940
6937
  .filter(function (e) { return e != null; })
6941
6938
  .map(function (entry) {
6942
- if (entry === null) {
6943
- return null;
6944
- }
6945
6939
  return __expectString(entry);
6946
6940
  });
6947
6941
  };
@@ -6949,9 +6943,6 @@ var deserializeAws_queryAcceleratorNames = function (output, context) {
6949
6943
  return (output || [])
6950
6944
  .filter(function (e) { return e != null; })
6951
6945
  .map(function (entry) {
6952
- if (entry === null) {
6953
- return null;
6954
- }
6955
6946
  return __expectString(entry);
6956
6947
  });
6957
6948
  };
@@ -6972,9 +6963,6 @@ var deserializeAws_queryAcceleratorTypes = function (output, context) {
6972
6963
  return (output || [])
6973
6964
  .filter(function (e) { return e != null; })
6974
6965
  .map(function (entry) {
6975
- if (entry === null) {
6976
- return null;
6977
- }
6978
6966
  return __expectString(entry);
6979
6967
  });
6980
6968
  };
@@ -6991,9 +6979,6 @@ var deserializeAws_queryActivities = function (output, context) {
6991
6979
  return (output || [])
6992
6980
  .filter(function (e) { return e != null; })
6993
6981
  .map(function (entry) {
6994
- if (entry === null) {
6995
- return null;
6996
- }
6997
6982
  return deserializeAws_queryActivity(entry, context);
6998
6983
  });
6999
6984
  };
@@ -7088,9 +7073,6 @@ var deserializeAws_queryAdjustmentTypes = function (output, context) {
7088
7073
  return (output || [])
7089
7074
  .filter(function (e) { return e != null; })
7090
7075
  .map(function (entry) {
7091
- if (entry === null) {
7092
- return null;
7093
- }
7094
7076
  return deserializeAws_queryAdjustmentType(entry, context);
7095
7077
  });
7096
7078
  };
@@ -7111,9 +7093,6 @@ var deserializeAws_queryAlarms = function (output, context) {
7111
7093
  return (output || [])
7112
7094
  .filter(function (e) { return e != null; })
7113
7095
  .map(function (entry) {
7114
- if (entry === null) {
7115
- return null;
7116
- }
7117
7096
  return deserializeAws_queryAlarm(entry, context);
7118
7097
  });
7119
7098
  };
@@ -7299,9 +7278,6 @@ var deserializeAws_queryAutoScalingGroups = function (output, context) {
7299
7278
  return (output || [])
7300
7279
  .filter(function (e) { return e != null; })
7301
7280
  .map(function (entry) {
7302
- if (entry === null) {
7303
- return null;
7304
- }
7305
7281
  return deserializeAws_queryAutoScalingGroup(entry, context);
7306
7282
  });
7307
7283
  };
@@ -7370,9 +7346,6 @@ var deserializeAws_queryAutoScalingInstances = function (output, context) {
7370
7346
  return (output || [])
7371
7347
  .filter(function (e) { return e != null; })
7372
7348
  .map(function (entry) {
7373
- if (entry === null) {
7374
- return null;
7375
- }
7376
7349
  return deserializeAws_queryAutoScalingInstanceDetails(entry, context);
7377
7350
  });
7378
7351
  };
@@ -7396,9 +7369,6 @@ var deserializeAws_queryAutoScalingNotificationTypes = function (output, context
7396
7369
  return (output || [])
7397
7370
  .filter(function (e) { return e != null; })
7398
7371
  .map(function (entry) {
7399
- if (entry === null) {
7400
- return null;
7401
- }
7402
7372
  return __expectString(entry);
7403
7373
  });
7404
7374
  };
@@ -7406,9 +7376,6 @@ var deserializeAws_queryAvailabilityZones = function (output, context) {
7406
7376
  return (output || [])
7407
7377
  .filter(function (e) { return e != null; })
7408
7378
  .map(function (entry) {
7409
- if (entry === null) {
7410
- return null;
7411
- }
7412
7379
  return __expectString(entry);
7413
7380
  });
7414
7381
  };
@@ -7476,9 +7443,6 @@ var deserializeAws_queryBlockDeviceMappings = function (output, context) {
7476
7443
  return (output || [])
7477
7444
  .filter(function (e) { return e != null; })
7478
7445
  .map(function (entry) {
7479
- if (entry === null) {
7480
- return null;
7481
- }
7482
7446
  return deserializeAws_queryBlockDeviceMapping(entry, context);
7483
7447
  });
7484
7448
  };
@@ -7514,9 +7478,6 @@ var deserializeAws_queryCheckpointPercentages = function (output, context) {
7514
7478
  return (output || [])
7515
7479
  .filter(function (e) { return e != null; })
7516
7480
  .map(function (entry) {
7517
- if (entry === null) {
7518
- return null;
7519
- }
7520
7481
  return __strictParseInt32(entry);
7521
7482
  });
7522
7483
  };
@@ -7524,9 +7485,6 @@ var deserializeAws_queryClassicLinkVPCSecurityGroups = function (output, context
7524
7485
  return (output || [])
7525
7486
  .filter(function (e) { return e != null; })
7526
7487
  .map(function (entry) {
7527
- if (entry === null) {
7528
- return null;
7529
- }
7530
7488
  return __expectString(entry);
7531
7489
  });
7532
7490
  };
@@ -7538,9 +7496,6 @@ var deserializeAws_queryCpuManufacturers = function (output, context) {
7538
7496
  return (output || [])
7539
7497
  .filter(function (e) { return e != null; })
7540
7498
  .map(function (entry) {
7541
- if (entry === null) {
7542
- return null;
7543
- }
7544
7499
  return __expectString(entry);
7545
7500
  });
7546
7501
  };
@@ -7851,9 +7806,6 @@ var deserializeAws_queryEnabledMetrics = function (output, context) {
7851
7806
  return (output || [])
7852
7807
  .filter(function (e) { return e != null; })
7853
7808
  .map(function (entry) {
7854
- if (entry === null) {
7855
- return null;
7856
- }
7857
7809
  return deserializeAws_queryEnabledMetric(entry, context);
7858
7810
  });
7859
7811
  };
@@ -7873,9 +7825,6 @@ var deserializeAws_queryExcludedInstanceTypes = function (output, context) {
7873
7825
  return (output || [])
7874
7826
  .filter(function (e) { return e != null; })
7875
7827
  .map(function (entry) {
7876
- if (entry === null) {
7877
- return null;
7878
- }
7879
7828
  return __expectString(entry);
7880
7829
  });
7881
7830
  };
@@ -7912,9 +7861,6 @@ var deserializeAws_queryFailedScheduledUpdateGroupActionRequests = function (out
7912
7861
  return (output || [])
7913
7862
  .filter(function (e) { return e != null; })
7914
7863
  .map(function (entry) {
7915
- if (entry === null) {
7916
- return null;
7917
- }
7918
7864
  return deserializeAws_queryFailedScheduledUpdateGroupActionRequest(entry, context);
7919
7865
  });
7920
7866
  };
@@ -7983,9 +7929,6 @@ var deserializeAws_queryInstanceGenerations = function (output, context) {
7983
7929
  return (output || [])
7984
7930
  .filter(function (e) { return e != null; })
7985
7931
  .map(function (entry) {
7986
- if (entry === null) {
7987
- return null;
7988
- }
7989
7932
  return __expectString(entry);
7990
7933
  });
7991
7934
  };
@@ -8068,9 +8011,6 @@ var deserializeAws_queryInstanceRefreshes = function (output, context) {
8068
8011
  return (output || [])
8069
8012
  .filter(function (e) { return e != null; })
8070
8013
  .map(function (entry) {
8071
- if (entry === null) {
8072
- return null;
8073
- }
8074
8014
  return deserializeAws_queryInstanceRefresh(entry, context);
8075
8015
  });
8076
8016
  };
@@ -8246,9 +8186,6 @@ var deserializeAws_queryInstances = function (output, context) {
8246
8186
  return (output || [])
8247
8187
  .filter(function (e) { return e != null; })
8248
8188
  .map(function (entry) {
8249
- if (entry === null) {
8250
- return null;
8251
- }
8252
8189
  return deserializeAws_queryInstance(entry, context);
8253
8190
  });
8254
8191
  };
@@ -8389,9 +8326,6 @@ var deserializeAws_queryLaunchConfigurations = function (output, context) {
8389
8326
  return (output || [])
8390
8327
  .filter(function (e) { return e != null; })
8391
8328
  .map(function (entry) {
8392
- if (entry === null) {
8393
- return null;
8394
- }
8395
8329
  return deserializeAws_queryLaunchConfiguration(entry, context);
8396
8330
  });
8397
8331
  };
@@ -8510,9 +8444,6 @@ var deserializeAws_queryLifecycleHooks = function (output, context) {
8510
8444
  return (output || [])
8511
8445
  .filter(function (e) { return e != null; })
8512
8446
  .map(function (entry) {
8513
- if (entry === null) {
8514
- return null;
8515
- }
8516
8447
  return deserializeAws_queryLifecycleHook(entry, context);
8517
8448
  });
8518
8449
  };
@@ -8529,9 +8460,6 @@ var deserializeAws_queryLoadBalancerNames = function (output, context) {
8529
8460
  return (output || [])
8530
8461
  .filter(function (e) { return e != null; })
8531
8462
  .map(function (entry) {
8532
- if (entry === null) {
8533
- return null;
8534
- }
8535
8463
  return __expectString(entry);
8536
8464
  });
8537
8465
  };
@@ -8552,9 +8480,6 @@ var deserializeAws_queryLoadBalancerStates = function (output, context) {
8552
8480
  return (output || [])
8553
8481
  .filter(function (e) { return e != null; })
8554
8482
  .map(function (entry) {
8555
- if (entry === null) {
8556
- return null;
8557
- }
8558
8483
  return deserializeAws_queryLoadBalancerState(entry, context);
8559
8484
  });
8560
8485
  };
@@ -8575,9 +8500,6 @@ var deserializeAws_queryLoadBalancerTargetGroupStates = function (output, contex
8575
8500
  return (output || [])
8576
8501
  .filter(function (e) { return e != null; })
8577
8502
  .map(function (entry) {
8578
- if (entry === null) {
8579
- return null;
8580
- }
8581
8503
  return deserializeAws_queryLoadBalancerTargetGroupState(entry, context);
8582
8504
  });
8583
8505
  };
@@ -8608,9 +8530,6 @@ var deserializeAws_queryLoadForecasts = function (output, context) {
8608
8530
  return (output || [])
8609
8531
  .filter(function (e) { return e != null; })
8610
8532
  .map(function (entry) {
8611
- if (entry === null) {
8612
- return null;
8613
- }
8614
8533
  return deserializeAws_queryLoadForecast(entry, context);
8615
8534
  });
8616
8535
  };
@@ -8618,9 +8537,6 @@ var deserializeAws_queryLocalStorageTypes = function (output, context) {
8618
8537
  return (output || [])
8619
8538
  .filter(function (e) { return e != null; })
8620
8539
  .map(function (entry) {
8621
- if (entry === null) {
8622
- return null;
8623
- }
8624
8540
  return __expectString(entry);
8625
8541
  });
8626
8542
  };
@@ -8683,9 +8599,6 @@ var deserializeAws_queryMetricCollectionTypes = function (output, context) {
8683
8599
  return (output || [])
8684
8600
  .filter(function (e) { return e != null; })
8685
8601
  .map(function (entry) {
8686
- if (entry === null) {
8687
- return null;
8688
- }
8689
8602
  return deserializeAws_queryMetricCollectionType(entry, context);
8690
8603
  });
8691
8604
  };
@@ -8693,9 +8606,6 @@ var deserializeAws_queryMetricDataQueries = function (output, context) {
8693
8606
  return (output || [])
8694
8607
  .filter(function (e) { return e != null; })
8695
8608
  .map(function (entry) {
8696
- if (entry === null) {
8697
- return null;
8698
- }
8699
8609
  return deserializeAws_queryMetricDataQuery(entry, context);
8700
8610
  });
8701
8611
  };
@@ -8741,9 +8651,6 @@ var deserializeAws_queryMetricDimensions = function (output, context) {
8741
8651
  return (output || [])
8742
8652
  .filter(function (e) { return e != null; })
8743
8653
  .map(function (entry) {
8744
- if (entry === null) {
8745
- return null;
8746
- }
8747
8654
  return deserializeAws_queryMetricDimension(entry, context);
8748
8655
  });
8749
8656
  };
@@ -8760,9 +8667,6 @@ var deserializeAws_queryMetricGranularityTypes = function (output, context) {
8760
8667
  return (output || [])
8761
8668
  .filter(function (e) { return e != null; })
8762
8669
  .map(function (entry) {
8763
- if (entry === null) {
8764
- return null;
8765
- }
8766
8670
  return deserializeAws_queryMetricGranularityType(entry, context);
8767
8671
  });
8768
8672
  };
@@ -8830,9 +8734,6 @@ var deserializeAws_queryNotificationConfigurations = function (output, context)
8830
8734
  return (output || [])
8831
8735
  .filter(function (e) { return e != null; })
8832
8736
  .map(function (entry) {
8833
- if (entry === null) {
8834
- return null;
8835
- }
8836
8737
  return deserializeAws_queryNotificationConfiguration(entry, context);
8837
8738
  });
8838
8739
  };
@@ -8840,9 +8741,6 @@ var deserializeAws_queryOverrides = function (output, context) {
8840
8741
  return (output || [])
8841
8742
  .filter(function (e) { return e != null; })
8842
8743
  .map(function (entry) {
8843
- if (entry === null) {
8844
- return null;
8845
- }
8846
8744
  return deserializeAws_queryLaunchTemplateOverrides(entry, context);
8847
8745
  });
8848
8746
  };
@@ -8959,9 +8857,6 @@ var deserializeAws_queryPredictiveScalingForecastTimestamps = function (output,
8959
8857
  return (output || [])
8960
8858
  .filter(function (e) { return e != null; })
8961
8859
  .map(function (entry) {
8962
- if (entry === null) {
8963
- return null;
8964
- }
8965
8860
  return __expectNonNull(__parseRfc3339DateTime(entry));
8966
8861
  });
8967
8862
  };
@@ -8969,9 +8864,6 @@ var deserializeAws_queryPredictiveScalingForecastValues = function (output, cont
8969
8864
  return (output || [])
8970
8865
  .filter(function (e) { return e != null; })
8971
8866
  .map(function (entry) {
8972
- if (entry === null) {
8973
- return null;
8974
- }
8975
8867
  return __strictParseFloat(entry);
8976
8868
  });
8977
8869
  };
@@ -9012,9 +8904,6 @@ var deserializeAws_queryPredictiveScalingMetricSpecifications = function (output
9012
8904
  return (output || [])
9013
8905
  .filter(function (e) { return e != null; })
9014
8906
  .map(function (entry) {
9015
- if (entry === null) {
9016
- return null;
9017
- }
9018
8907
  return deserializeAws_queryPredictiveScalingMetricSpecification(entry, context);
9019
8908
  });
9020
8909
  };
@@ -9061,9 +8950,6 @@ var deserializeAws_queryProcesses = function (output, context) {
9061
8950
  return (output || [])
9062
8951
  .filter(function (e) { return e != null; })
9063
8952
  .map(function (entry) {
9064
- if (entry === null) {
9065
- return null;
9066
- }
9067
8953
  return deserializeAws_queryProcessType(entry, context);
9068
8954
  });
9069
8955
  };
@@ -9159,9 +9045,6 @@ var deserializeAws_queryScalingPolicies = function (output, context) {
9159
9045
  return (output || [])
9160
9046
  .filter(function (e) { return e != null; })
9161
9047
  .map(function (entry) {
9162
- if (entry === null) {
9163
- return null;
9164
- }
9165
9048
  return deserializeAws_queryScalingPolicy(entry, context);
9166
9049
  });
9167
9050
  };
@@ -9310,9 +9193,6 @@ var deserializeAws_queryScheduledUpdateGroupActions = function (output, context)
9310
9193
  return (output || [])
9311
9194
  .filter(function (e) { return e != null; })
9312
9195
  .map(function (entry) {
9313
- if (entry === null) {
9314
- return null;
9315
- }
9316
9196
  return deserializeAws_queryScheduledUpdateGroupAction(entry, context);
9317
9197
  });
9318
9198
  };
@@ -9320,9 +9200,6 @@ var deserializeAws_querySecurityGroups = function (output, context) {
9320
9200
  return (output || [])
9321
9201
  .filter(function (e) { return e != null; })
9322
9202
  .map(function (entry) {
9323
- if (entry === null) {
9324
- return null;
9325
- }
9326
9203
  return __expectString(entry);
9327
9204
  });
9328
9205
  };
@@ -9369,9 +9246,6 @@ var deserializeAws_queryStepAdjustments = function (output, context) {
9369
9246
  return (output || [])
9370
9247
  .filter(function (e) { return e != null; })
9371
9248
  .map(function (entry) {
9372
- if (entry === null) {
9373
- return null;
9374
- }
9375
9249
  return deserializeAws_queryStepAdjustment(entry, context);
9376
9250
  });
9377
9251
  };
@@ -9392,9 +9266,6 @@ var deserializeAws_querySuspendedProcesses = function (output, context) {
9392
9266
  return (output || [])
9393
9267
  .filter(function (e) { return e != null; })
9394
9268
  .map(function (entry) {
9395
- if (entry === null) {
9396
- return null;
9397
- }
9398
9269
  return deserializeAws_querySuspendedProcess(entry, context);
9399
9270
  });
9400
9271
  };
@@ -9427,9 +9298,6 @@ var deserializeAws_queryTagDescriptionList = function (output, context) {
9427
9298
  return (output || [])
9428
9299
  .filter(function (e) { return e != null; })
9429
9300
  .map(function (entry) {
9430
- if (entry === null) {
9431
- return null;
9432
- }
9433
9301
  return deserializeAws_queryTagDescription(entry, context);
9434
9302
  });
9435
9303
  };
@@ -9453,9 +9321,6 @@ var deserializeAws_queryTargetGroupARNs = function (output, context) {
9453
9321
  return (output || [])
9454
9322
  .filter(function (e) { return e != null; })
9455
9323
  .map(function (entry) {
9456
- if (entry === null) {
9457
- return null;
9458
- }
9459
9324
  return __expectString(entry);
9460
9325
  });
9461
9326
  };
@@ -9484,9 +9349,6 @@ var deserializeAws_queryTerminationPolicies = function (output, context) {
9484
9349
  return (output || [])
9485
9350
  .filter(function (e) { return e != null; })
9486
9351
  .map(function (entry) {
9487
- if (entry === null) {
9488
- return null;
9489
- }
9490
9352
  return __expectString(entry);
9491
9353
  });
9492
9354
  };