@aws-sdk/client-cloudsearch 3.131.0 → 3.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/BuildSuggestersCommand.js +2 -2
  4. package/dist-cjs/commands/CreateDomainCommand.js +2 -2
  5. package/dist-cjs/commands/DefineAnalysisSchemeCommand.js +2 -2
  6. package/dist-cjs/commands/DefineExpressionCommand.js +2 -2
  7. package/dist-cjs/commands/DefineIndexFieldCommand.js +2 -2
  8. package/dist-cjs/commands/DefineSuggesterCommand.js +2 -2
  9. package/dist-cjs/commands/DeleteAnalysisSchemeCommand.js +2 -2
  10. package/dist-cjs/commands/DeleteDomainCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteExpressionCommand.js +2 -2
  12. package/dist-cjs/commands/DeleteIndexFieldCommand.js +2 -2
  13. package/dist-cjs/commands/DeleteSuggesterCommand.js +2 -2
  14. package/dist-cjs/commands/DescribeAnalysisSchemesCommand.js +2 -2
  15. package/dist-cjs/commands/DescribeAvailabilityOptionsCommand.js +2 -2
  16. package/dist-cjs/commands/DescribeDomainEndpointOptionsCommand.js +2 -2
  17. package/dist-cjs/commands/DescribeDomainsCommand.js +2 -2
  18. package/dist-cjs/commands/DescribeExpressionsCommand.js +2 -2
  19. package/dist-cjs/commands/DescribeIndexFieldsCommand.js +2 -2
  20. package/dist-cjs/commands/DescribeScalingParametersCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeServiceAccessPoliciesCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeSuggestersCommand.js +2 -2
  23. package/dist-cjs/commands/IndexDocumentsCommand.js +2 -2
  24. package/dist-cjs/commands/ListDomainNamesCommand.js +1 -1
  25. package/dist-cjs/commands/UpdateAvailabilityOptionsCommand.js +2 -2
  26. package/dist-cjs/commands/UpdateDomainEndpointOptionsCommand.js +2 -2
  27. package/dist-cjs/commands/UpdateScalingParametersCommand.js +2 -2
  28. package/dist-cjs/commands/UpdateServiceAccessPoliciesCommand.js +2 -2
  29. package/dist-cjs/models/models_0.js +330 -494
  30. package/dist-cjs/protocols/Aws_query.js +272 -368
  31. package/dist-es/commands/BuildSuggestersCommand.js +3 -3
  32. package/dist-es/commands/CreateDomainCommand.js +3 -3
  33. package/dist-es/commands/DefineAnalysisSchemeCommand.js +3 -3
  34. package/dist-es/commands/DefineExpressionCommand.js +3 -3
  35. package/dist-es/commands/DefineIndexFieldCommand.js +3 -3
  36. package/dist-es/commands/DefineSuggesterCommand.js +3 -3
  37. package/dist-es/commands/DeleteAnalysisSchemeCommand.js +3 -3
  38. package/dist-es/commands/DeleteDomainCommand.js +3 -3
  39. package/dist-es/commands/DeleteExpressionCommand.js +3 -3
  40. package/dist-es/commands/DeleteIndexFieldCommand.js +3 -3
  41. package/dist-es/commands/DeleteSuggesterCommand.js +3 -3
  42. package/dist-es/commands/DescribeAnalysisSchemesCommand.js +3 -3
  43. package/dist-es/commands/DescribeAvailabilityOptionsCommand.js +3 -3
  44. package/dist-es/commands/DescribeDomainEndpointOptionsCommand.js +3 -3
  45. package/dist-es/commands/DescribeDomainsCommand.js +3 -3
  46. package/dist-es/commands/DescribeExpressionsCommand.js +3 -3
  47. package/dist-es/commands/DescribeIndexFieldsCommand.js +3 -3
  48. package/dist-es/commands/DescribeScalingParametersCommand.js +3 -3
  49. package/dist-es/commands/DescribeServiceAccessPoliciesCommand.js +3 -3
  50. package/dist-es/commands/DescribeSuggestersCommand.js +3 -3
  51. package/dist-es/commands/IndexDocumentsCommand.js +3 -3
  52. package/dist-es/commands/ListDomainNamesCommand.js +2 -2
  53. package/dist-es/commands/UpdateAvailabilityOptionsCommand.js +3 -3
  54. package/dist-es/commands/UpdateDomainEndpointOptionsCommand.js +3 -3
  55. package/dist-es/commands/UpdateScalingParametersCommand.js +3 -3
  56. package/dist-es/commands/UpdateServiceAccessPoliciesCommand.js +3 -3
  57. package/dist-es/models/models_0.js +82 -328
  58. package/dist-es/protocols/Aws_query.js +351 -369
  59. package/dist-types/models/models_0.d.ts +328 -492
  60. package/dist-types/ts3.4/models/models_0.d.ts +164 -328
  61. 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, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { CloudSearchServiceException as __BaseException } from "../models/CloudSearchServiceException";
@@ -287,7 +287,7 @@ export var deserializeAws_queryBuildSuggestersCommand = function (output, contex
287
287
  });
288
288
  }); };
289
289
  var deserializeAws_queryBuildSuggestersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
290
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
290
+ var parsedOutput, _a, errorCode, _b, parsedBody;
291
291
  var _c;
292
292
  return __generator(this, function (_d) {
293
293
  switch (_d.label) {
@@ -320,14 +320,14 @@ var deserializeAws_queryBuildSuggestersCommandError = function (output, context)
320
320
  case 9: throw _d.sent();
321
321
  case 10:
322
322
  parsedBody = parsedOutput.body;
323
- $metadata = deserializeMetadata(output);
324
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
325
- response = new __BaseException({
326
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
327
- $fault: "client",
328
- $metadata: $metadata,
323
+ throwDefaultError({
324
+ output: output,
325
+ parsedBody: parsedBody.Error,
326
+ exceptionCtor: __BaseException,
327
+ errorCode: errorCode,
329
328
  });
330
- throw __decorateServiceException(response, parsedBody.Error);
329
+ _d.label = 11;
330
+ case 11: return [2];
331
331
  }
332
332
  });
333
333
  }); };
@@ -350,7 +350,7 @@ export var deserializeAws_queryCreateDomainCommand = function (output, context)
350
350
  });
351
351
  }); };
352
352
  var deserializeAws_queryCreateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
353
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
353
+ var parsedOutput, _a, errorCode, _b, parsedBody;
354
354
  var _c;
355
355
  return __generator(this, function (_d) {
356
356
  switch (_d.label) {
@@ -387,14 +387,14 @@ var deserializeAws_queryCreateDomainCommandError = function (output, context) {
387
387
  case 11: throw _d.sent();
388
388
  case 12:
389
389
  parsedBody = parsedOutput.body;
390
- $metadata = deserializeMetadata(output);
391
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
392
- response = new __BaseException({
393
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
394
- $fault: "client",
395
- $metadata: $metadata,
390
+ throwDefaultError({
391
+ output: output,
392
+ parsedBody: parsedBody.Error,
393
+ exceptionCtor: __BaseException,
394
+ errorCode: errorCode,
396
395
  });
397
- throw __decorateServiceException(response, parsedBody.Error);
396
+ _d.label = 13;
397
+ case 13: return [2];
398
398
  }
399
399
  });
400
400
  }); };
@@ -417,7 +417,7 @@ export var deserializeAws_queryDefineAnalysisSchemeCommand = function (output, c
417
417
  });
418
418
  }); };
419
419
  var deserializeAws_queryDefineAnalysisSchemeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
420
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
420
+ var parsedOutput, _a, errorCode, _b, parsedBody;
421
421
  var _c;
422
422
  return __generator(this, function (_d) {
423
423
  switch (_d.label) {
@@ -458,14 +458,14 @@ var deserializeAws_queryDefineAnalysisSchemeCommandError = function (output, con
458
458
  case 13: throw _d.sent();
459
459
  case 14:
460
460
  parsedBody = parsedOutput.body;
461
- $metadata = deserializeMetadata(output);
462
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
463
- response = new __BaseException({
464
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
465
- $fault: "client",
466
- $metadata: $metadata,
461
+ throwDefaultError({
462
+ output: output,
463
+ parsedBody: parsedBody.Error,
464
+ exceptionCtor: __BaseException,
465
+ errorCode: errorCode,
467
466
  });
468
- throw __decorateServiceException(response, parsedBody.Error);
467
+ _d.label = 15;
468
+ case 15: return [2];
469
469
  }
470
470
  });
471
471
  }); };
@@ -488,7 +488,7 @@ export var deserializeAws_queryDefineExpressionCommand = function (output, conte
488
488
  });
489
489
  }); };
490
490
  var deserializeAws_queryDefineExpressionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
491
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
491
+ var parsedOutput, _a, errorCode, _b, parsedBody;
492
492
  var _c;
493
493
  return __generator(this, function (_d) {
494
494
  switch (_d.label) {
@@ -529,14 +529,14 @@ var deserializeAws_queryDefineExpressionCommandError = function (output, context
529
529
  case 13: throw _d.sent();
530
530
  case 14:
531
531
  parsedBody = parsedOutput.body;
532
- $metadata = deserializeMetadata(output);
533
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
534
- response = new __BaseException({
535
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
536
- $fault: "client",
537
- $metadata: $metadata,
532
+ throwDefaultError({
533
+ output: output,
534
+ parsedBody: parsedBody.Error,
535
+ exceptionCtor: __BaseException,
536
+ errorCode: errorCode,
538
537
  });
539
- throw __decorateServiceException(response, parsedBody.Error);
538
+ _d.label = 15;
539
+ case 15: return [2];
540
540
  }
541
541
  });
542
542
  }); };
@@ -559,7 +559,7 @@ export var deserializeAws_queryDefineIndexFieldCommand = function (output, conte
559
559
  });
560
560
  }); };
561
561
  var deserializeAws_queryDefineIndexFieldCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
562
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
562
+ var parsedOutput, _a, errorCode, _b, parsedBody;
563
563
  var _c;
564
564
  return __generator(this, function (_d) {
565
565
  switch (_d.label) {
@@ -600,14 +600,14 @@ var deserializeAws_queryDefineIndexFieldCommandError = function (output, context
600
600
  case 13: throw _d.sent();
601
601
  case 14:
602
602
  parsedBody = parsedOutput.body;
603
- $metadata = deserializeMetadata(output);
604
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
605
- response = new __BaseException({
606
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
607
- $fault: "client",
608
- $metadata: $metadata,
603
+ throwDefaultError({
604
+ output: output,
605
+ parsedBody: parsedBody.Error,
606
+ exceptionCtor: __BaseException,
607
+ errorCode: errorCode,
609
608
  });
610
- throw __decorateServiceException(response, parsedBody.Error);
609
+ _d.label = 15;
610
+ case 15: return [2];
611
611
  }
612
612
  });
613
613
  }); };
@@ -630,7 +630,7 @@ export var deserializeAws_queryDefineSuggesterCommand = function (output, contex
630
630
  });
631
631
  }); };
632
632
  var deserializeAws_queryDefineSuggesterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
633
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
633
+ var parsedOutput, _a, errorCode, _b, parsedBody;
634
634
  var _c;
635
635
  return __generator(this, function (_d) {
636
636
  switch (_d.label) {
@@ -671,14 +671,14 @@ var deserializeAws_queryDefineSuggesterCommandError = function (output, context)
671
671
  case 13: throw _d.sent();
672
672
  case 14:
673
673
  parsedBody = parsedOutput.body;
674
- $metadata = deserializeMetadata(output);
675
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
676
- response = new __BaseException({
677
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
678
- $fault: "client",
679
- $metadata: $metadata,
674
+ throwDefaultError({
675
+ output: output,
676
+ parsedBody: parsedBody.Error,
677
+ exceptionCtor: __BaseException,
678
+ errorCode: errorCode,
680
679
  });
681
- throw __decorateServiceException(response, parsedBody.Error);
680
+ _d.label = 15;
681
+ case 15: return [2];
682
682
  }
683
683
  });
684
684
  }); };
@@ -701,7 +701,7 @@ export var deserializeAws_queryDeleteAnalysisSchemeCommand = function (output, c
701
701
  });
702
702
  }); };
703
703
  var deserializeAws_queryDeleteAnalysisSchemeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
704
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
704
+ var parsedOutput, _a, errorCode, _b, parsedBody;
705
705
  var _c;
706
706
  return __generator(this, function (_d) {
707
707
  switch (_d.label) {
@@ -738,14 +738,14 @@ var deserializeAws_queryDeleteAnalysisSchemeCommandError = function (output, con
738
738
  case 11: throw _d.sent();
739
739
  case 12:
740
740
  parsedBody = parsedOutput.body;
741
- $metadata = deserializeMetadata(output);
742
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
743
- response = new __BaseException({
744
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
745
- $fault: "client",
746
- $metadata: $metadata,
741
+ throwDefaultError({
742
+ output: output,
743
+ parsedBody: parsedBody.Error,
744
+ exceptionCtor: __BaseException,
745
+ errorCode: errorCode,
747
746
  });
748
- throw __decorateServiceException(response, parsedBody.Error);
747
+ _d.label = 13;
748
+ case 13: return [2];
749
749
  }
750
750
  });
751
751
  }); };
@@ -768,7 +768,7 @@ export var deserializeAws_queryDeleteDomainCommand = function (output, context)
768
768
  });
769
769
  }); };
770
770
  var deserializeAws_queryDeleteDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
771
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
771
+ var parsedOutput, _a, errorCode, _b, parsedBody;
772
772
  var _c;
773
773
  return __generator(this, function (_d) {
774
774
  switch (_d.label) {
@@ -793,14 +793,14 @@ var deserializeAws_queryDeleteDomainCommandError = function (output, context) {
793
793
  case 5: throw _d.sent();
794
794
  case 6:
795
795
  parsedBody = parsedOutput.body;
796
- $metadata = deserializeMetadata(output);
797
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
798
- response = new __BaseException({
799
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
800
- $fault: "client",
801
- $metadata: $metadata,
796
+ throwDefaultError({
797
+ output: output,
798
+ parsedBody: parsedBody.Error,
799
+ exceptionCtor: __BaseException,
800
+ errorCode: errorCode,
802
801
  });
803
- throw __decorateServiceException(response, parsedBody.Error);
802
+ _d.label = 7;
803
+ case 7: return [2];
804
804
  }
805
805
  });
806
806
  }); };
@@ -823,7 +823,7 @@ export var deserializeAws_queryDeleteExpressionCommand = function (output, conte
823
823
  });
824
824
  }); };
825
825
  var deserializeAws_queryDeleteExpressionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
826
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
826
+ var parsedOutput, _a, errorCode, _b, parsedBody;
827
827
  var _c;
828
828
  return __generator(this, function (_d) {
829
829
  switch (_d.label) {
@@ -860,14 +860,14 @@ var deserializeAws_queryDeleteExpressionCommandError = function (output, context
860
860
  case 11: throw _d.sent();
861
861
  case 12:
862
862
  parsedBody = parsedOutput.body;
863
- $metadata = deserializeMetadata(output);
864
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
865
- response = new __BaseException({
866
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
867
- $fault: "client",
868
- $metadata: $metadata,
863
+ throwDefaultError({
864
+ output: output,
865
+ parsedBody: parsedBody.Error,
866
+ exceptionCtor: __BaseException,
867
+ errorCode: errorCode,
869
868
  });
870
- throw __decorateServiceException(response, parsedBody.Error);
869
+ _d.label = 13;
870
+ case 13: return [2];
871
871
  }
872
872
  });
873
873
  }); };
@@ -890,7 +890,7 @@ export var deserializeAws_queryDeleteIndexFieldCommand = function (output, conte
890
890
  });
891
891
  }); };
892
892
  var deserializeAws_queryDeleteIndexFieldCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
893
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
893
+ var parsedOutput, _a, errorCode, _b, parsedBody;
894
894
  var _c;
895
895
  return __generator(this, function (_d) {
896
896
  switch (_d.label) {
@@ -927,14 +927,14 @@ var deserializeAws_queryDeleteIndexFieldCommandError = function (output, context
927
927
  case 11: throw _d.sent();
928
928
  case 12:
929
929
  parsedBody = parsedOutput.body;
930
- $metadata = deserializeMetadata(output);
931
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
932
- response = new __BaseException({
933
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
934
- $fault: "client",
935
- $metadata: $metadata,
930
+ throwDefaultError({
931
+ output: output,
932
+ parsedBody: parsedBody.Error,
933
+ exceptionCtor: __BaseException,
934
+ errorCode: errorCode,
936
935
  });
937
- throw __decorateServiceException(response, parsedBody.Error);
936
+ _d.label = 13;
937
+ case 13: return [2];
938
938
  }
939
939
  });
940
940
  }); };
@@ -957,7 +957,7 @@ export var deserializeAws_queryDeleteSuggesterCommand = function (output, contex
957
957
  });
958
958
  }); };
959
959
  var deserializeAws_queryDeleteSuggesterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
960
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
960
+ var parsedOutput, _a, errorCode, _b, parsedBody;
961
961
  var _c;
962
962
  return __generator(this, function (_d) {
963
963
  switch (_d.label) {
@@ -994,14 +994,14 @@ var deserializeAws_queryDeleteSuggesterCommandError = function (output, context)
994
994
  case 11: throw _d.sent();
995
995
  case 12:
996
996
  parsedBody = parsedOutput.body;
997
- $metadata = deserializeMetadata(output);
998
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
999
- response = new __BaseException({
1000
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1001
- $fault: "client",
1002
- $metadata: $metadata,
997
+ throwDefaultError({
998
+ output: output,
999
+ parsedBody: parsedBody.Error,
1000
+ exceptionCtor: __BaseException,
1001
+ errorCode: errorCode,
1003
1002
  });
1004
- throw __decorateServiceException(response, parsedBody.Error);
1003
+ _d.label = 13;
1004
+ case 13: return [2];
1005
1005
  }
1006
1006
  });
1007
1007
  }); };
@@ -1024,7 +1024,7 @@ export var deserializeAws_queryDescribeAnalysisSchemesCommand = function (output
1024
1024
  });
1025
1025
  }); };
1026
1026
  var deserializeAws_queryDescribeAnalysisSchemesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1027
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1027
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1028
1028
  var _c;
1029
1029
  return __generator(this, function (_d) {
1030
1030
  switch (_d.label) {
@@ -1053,14 +1053,14 @@ var deserializeAws_queryDescribeAnalysisSchemesCommandError = function (output,
1053
1053
  case 7: throw _d.sent();
1054
1054
  case 8:
1055
1055
  parsedBody = parsedOutput.body;
1056
- $metadata = deserializeMetadata(output);
1057
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1058
- response = new __BaseException({
1059
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1060
- $fault: "client",
1061
- $metadata: $metadata,
1056
+ throwDefaultError({
1057
+ output: output,
1058
+ parsedBody: parsedBody.Error,
1059
+ exceptionCtor: __BaseException,
1060
+ errorCode: errorCode,
1062
1061
  });
1063
- throw __decorateServiceException(response, parsedBody.Error);
1062
+ _d.label = 9;
1063
+ case 9: return [2];
1064
1064
  }
1065
1065
  });
1066
1066
  }); };
@@ -1083,7 +1083,7 @@ export var deserializeAws_queryDescribeAvailabilityOptionsCommand = function (ou
1083
1083
  });
1084
1084
  }); };
1085
1085
  var deserializeAws_queryDescribeAvailabilityOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1086
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1086
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1087
1087
  var _c;
1088
1088
  return __generator(this, function (_d) {
1089
1089
  switch (_d.label) {
@@ -1124,14 +1124,14 @@ var deserializeAws_queryDescribeAvailabilityOptionsCommandError = function (outp
1124
1124
  case 13: throw _d.sent();
1125
1125
  case 14:
1126
1126
  parsedBody = parsedOutput.body;
1127
- $metadata = deserializeMetadata(output);
1128
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1129
- response = new __BaseException({
1130
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1131
- $fault: "client",
1132
- $metadata: $metadata,
1127
+ throwDefaultError({
1128
+ output: output,
1129
+ parsedBody: parsedBody.Error,
1130
+ exceptionCtor: __BaseException,
1131
+ errorCode: errorCode,
1133
1132
  });
1134
- throw __decorateServiceException(response, parsedBody.Error);
1133
+ _d.label = 15;
1134
+ case 15: return [2];
1135
1135
  }
1136
1136
  });
1137
1137
  }); };
@@ -1154,7 +1154,7 @@ export var deserializeAws_queryDescribeDomainEndpointOptionsCommand = function (
1154
1154
  });
1155
1155
  }); };
1156
1156
  var deserializeAws_queryDescribeDomainEndpointOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1157
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1157
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1158
1158
  var _c;
1159
1159
  return __generator(this, function (_d) {
1160
1160
  switch (_d.label) {
@@ -1191,14 +1191,14 @@ var deserializeAws_queryDescribeDomainEndpointOptionsCommandError = function (ou
1191
1191
  case 11: throw _d.sent();
1192
1192
  case 12:
1193
1193
  parsedBody = parsedOutput.body;
1194
- $metadata = deserializeMetadata(output);
1195
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1196
- response = new __BaseException({
1197
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1198
- $fault: "client",
1199
- $metadata: $metadata,
1194
+ throwDefaultError({
1195
+ output: output,
1196
+ parsedBody: parsedBody.Error,
1197
+ exceptionCtor: __BaseException,
1198
+ errorCode: errorCode,
1200
1199
  });
1201
- throw __decorateServiceException(response, parsedBody.Error);
1200
+ _d.label = 13;
1201
+ case 13: return [2];
1202
1202
  }
1203
1203
  });
1204
1204
  }); };
@@ -1221,7 +1221,7 @@ export var deserializeAws_queryDescribeDomainsCommand = function (output, contex
1221
1221
  });
1222
1222
  }); };
1223
1223
  var deserializeAws_queryDescribeDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1224
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1224
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1225
1225
  var _c;
1226
1226
  return __generator(this, function (_d) {
1227
1227
  switch (_d.label) {
@@ -1246,14 +1246,14 @@ var deserializeAws_queryDescribeDomainsCommandError = function (output, context)
1246
1246
  case 5: throw _d.sent();
1247
1247
  case 6:
1248
1248
  parsedBody = parsedOutput.body;
1249
- $metadata = deserializeMetadata(output);
1250
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1251
- response = new __BaseException({
1252
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1253
- $fault: "client",
1254
- $metadata: $metadata,
1249
+ throwDefaultError({
1250
+ output: output,
1251
+ parsedBody: parsedBody.Error,
1252
+ exceptionCtor: __BaseException,
1253
+ errorCode: errorCode,
1255
1254
  });
1256
- throw __decorateServiceException(response, parsedBody.Error);
1255
+ _d.label = 7;
1256
+ case 7: return [2];
1257
1257
  }
1258
1258
  });
1259
1259
  }); };
@@ -1276,7 +1276,7 @@ export var deserializeAws_queryDescribeExpressionsCommand = function (output, co
1276
1276
  });
1277
1277
  }); };
1278
1278
  var deserializeAws_queryDescribeExpressionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1279
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1279
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1280
1280
  var _c;
1281
1281
  return __generator(this, function (_d) {
1282
1282
  switch (_d.label) {
@@ -1305,14 +1305,14 @@ var deserializeAws_queryDescribeExpressionsCommandError = function (output, cont
1305
1305
  case 7: throw _d.sent();
1306
1306
  case 8:
1307
1307
  parsedBody = parsedOutput.body;
1308
- $metadata = deserializeMetadata(output);
1309
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1310
- response = new __BaseException({
1311
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1312
- $fault: "client",
1313
- $metadata: $metadata,
1308
+ throwDefaultError({
1309
+ output: output,
1310
+ parsedBody: parsedBody.Error,
1311
+ exceptionCtor: __BaseException,
1312
+ errorCode: errorCode,
1314
1313
  });
1315
- throw __decorateServiceException(response, parsedBody.Error);
1314
+ _d.label = 9;
1315
+ case 9: return [2];
1316
1316
  }
1317
1317
  });
1318
1318
  }); };
@@ -1335,7 +1335,7 @@ export var deserializeAws_queryDescribeIndexFieldsCommand = function (output, co
1335
1335
  });
1336
1336
  }); };
1337
1337
  var deserializeAws_queryDescribeIndexFieldsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1338
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1338
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1339
1339
  var _c;
1340
1340
  return __generator(this, function (_d) {
1341
1341
  switch (_d.label) {
@@ -1364,14 +1364,14 @@ var deserializeAws_queryDescribeIndexFieldsCommandError = function (output, cont
1364
1364
  case 7: throw _d.sent();
1365
1365
  case 8:
1366
1366
  parsedBody = parsedOutput.body;
1367
- $metadata = deserializeMetadata(output);
1368
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1369
- response = new __BaseException({
1370
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1371
- $fault: "client",
1372
- $metadata: $metadata,
1367
+ throwDefaultError({
1368
+ output: output,
1369
+ parsedBody: parsedBody.Error,
1370
+ exceptionCtor: __BaseException,
1371
+ errorCode: errorCode,
1373
1372
  });
1374
- throw __decorateServiceException(response, parsedBody.Error);
1373
+ _d.label = 9;
1374
+ case 9: return [2];
1375
1375
  }
1376
1376
  });
1377
1377
  }); };
@@ -1394,7 +1394,7 @@ export var deserializeAws_queryDescribeScalingParametersCommand = function (outp
1394
1394
  });
1395
1395
  }); };
1396
1396
  var deserializeAws_queryDescribeScalingParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1397
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1397
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1398
1398
  var _c;
1399
1399
  return __generator(this, function (_d) {
1400
1400
  switch (_d.label) {
@@ -1423,14 +1423,14 @@ var deserializeAws_queryDescribeScalingParametersCommandError = function (output
1423
1423
  case 7: throw _d.sent();
1424
1424
  case 8:
1425
1425
  parsedBody = parsedOutput.body;
1426
- $metadata = deserializeMetadata(output);
1427
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1428
- response = new __BaseException({
1429
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1430
- $fault: "client",
1431
- $metadata: $metadata,
1426
+ throwDefaultError({
1427
+ output: output,
1428
+ parsedBody: parsedBody.Error,
1429
+ exceptionCtor: __BaseException,
1430
+ errorCode: errorCode,
1432
1431
  });
1433
- throw __decorateServiceException(response, parsedBody.Error);
1432
+ _d.label = 9;
1433
+ case 9: return [2];
1434
1434
  }
1435
1435
  });
1436
1436
  }); };
@@ -1453,7 +1453,7 @@ export var deserializeAws_queryDescribeServiceAccessPoliciesCommand = function (
1453
1453
  });
1454
1454
  }); };
1455
1455
  var deserializeAws_queryDescribeServiceAccessPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1456
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1456
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1457
1457
  var _c;
1458
1458
  return __generator(this, function (_d) {
1459
1459
  switch (_d.label) {
@@ -1482,14 +1482,14 @@ var deserializeAws_queryDescribeServiceAccessPoliciesCommandError = function (ou
1482
1482
  case 7: throw _d.sent();
1483
1483
  case 8:
1484
1484
  parsedBody = parsedOutput.body;
1485
- $metadata = deserializeMetadata(output);
1486
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1487
- response = new __BaseException({
1488
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1489
- $fault: "client",
1490
- $metadata: $metadata,
1485
+ throwDefaultError({
1486
+ output: output,
1487
+ parsedBody: parsedBody.Error,
1488
+ exceptionCtor: __BaseException,
1489
+ errorCode: errorCode,
1491
1490
  });
1492
- throw __decorateServiceException(response, parsedBody.Error);
1491
+ _d.label = 9;
1492
+ case 9: return [2];
1493
1493
  }
1494
1494
  });
1495
1495
  }); };
@@ -1512,7 +1512,7 @@ export var deserializeAws_queryDescribeSuggestersCommand = function (output, con
1512
1512
  });
1513
1513
  }); };
1514
1514
  var deserializeAws_queryDescribeSuggestersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1515
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1515
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1516
1516
  var _c;
1517
1517
  return __generator(this, function (_d) {
1518
1518
  switch (_d.label) {
@@ -1541,14 +1541,14 @@ var deserializeAws_queryDescribeSuggestersCommandError = function (output, conte
1541
1541
  case 7: throw _d.sent();
1542
1542
  case 8:
1543
1543
  parsedBody = parsedOutput.body;
1544
- $metadata = deserializeMetadata(output);
1545
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1546
- response = new __BaseException({
1547
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1548
- $fault: "client",
1549
- $metadata: $metadata,
1544
+ throwDefaultError({
1545
+ output: output,
1546
+ parsedBody: parsedBody.Error,
1547
+ exceptionCtor: __BaseException,
1548
+ errorCode: errorCode,
1550
1549
  });
1551
- throw __decorateServiceException(response, parsedBody.Error);
1550
+ _d.label = 9;
1551
+ case 9: return [2];
1552
1552
  }
1553
1553
  });
1554
1554
  }); };
@@ -1571,7 +1571,7 @@ export var deserializeAws_queryIndexDocumentsCommand = function (output, context
1571
1571
  });
1572
1572
  }); };
1573
1573
  var deserializeAws_queryIndexDocumentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1574
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1574
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1575
1575
  var _c;
1576
1576
  return __generator(this, function (_d) {
1577
1577
  switch (_d.label) {
@@ -1604,14 +1604,14 @@ var deserializeAws_queryIndexDocumentsCommandError = function (output, context)
1604
1604
  case 9: throw _d.sent();
1605
1605
  case 10:
1606
1606
  parsedBody = parsedOutput.body;
1607
- $metadata = deserializeMetadata(output);
1608
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1609
- response = new __BaseException({
1610
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1611
- $fault: "client",
1612
- $metadata: $metadata,
1607
+ throwDefaultError({
1608
+ output: output,
1609
+ parsedBody: parsedBody.Error,
1610
+ exceptionCtor: __BaseException,
1611
+ errorCode: errorCode,
1613
1612
  });
1614
- throw __decorateServiceException(response, parsedBody.Error);
1613
+ _d.label = 11;
1614
+ case 11: return [2];
1615
1615
  }
1616
1616
  });
1617
1617
  }); };
@@ -1634,7 +1634,7 @@ export var deserializeAws_queryListDomainNamesCommand = function (output, contex
1634
1634
  });
1635
1635
  }); };
1636
1636
  var deserializeAws_queryListDomainNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1637
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1637
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1638
1638
  var _c;
1639
1639
  return __generator(this, function (_d) {
1640
1640
  switch (_d.label) {
@@ -1655,14 +1655,14 @@ var deserializeAws_queryListDomainNamesCommandError = function (output, context)
1655
1655
  case 3: throw _d.sent();
1656
1656
  case 4:
1657
1657
  parsedBody = parsedOutput.body;
1658
- $metadata = deserializeMetadata(output);
1659
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1660
- response = new __BaseException({
1661
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1662
- $fault: "client",
1663
- $metadata: $metadata,
1658
+ throwDefaultError({
1659
+ output: output,
1660
+ parsedBody: parsedBody.Error,
1661
+ exceptionCtor: __BaseException,
1662
+ errorCode: errorCode,
1664
1663
  });
1665
- throw __decorateServiceException(response, parsedBody.Error);
1664
+ _d.label = 5;
1665
+ case 5: return [2];
1666
1666
  }
1667
1667
  });
1668
1668
  }); };
@@ -1685,7 +1685,7 @@ export var deserializeAws_queryUpdateAvailabilityOptionsCommand = function (outp
1685
1685
  });
1686
1686
  }); };
1687
1687
  var deserializeAws_queryUpdateAvailabilityOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1688
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1688
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1689
1689
  var _c;
1690
1690
  return __generator(this, function (_d) {
1691
1691
  switch (_d.label) {
@@ -1730,14 +1730,14 @@ var deserializeAws_queryUpdateAvailabilityOptionsCommandError = function (output
1730
1730
  case 15: throw _d.sent();
1731
1731
  case 16:
1732
1732
  parsedBody = parsedOutput.body;
1733
- $metadata = deserializeMetadata(output);
1734
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1735
- response = new __BaseException({
1736
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1737
- $fault: "client",
1738
- $metadata: $metadata,
1733
+ throwDefaultError({
1734
+ output: output,
1735
+ parsedBody: parsedBody.Error,
1736
+ exceptionCtor: __BaseException,
1737
+ errorCode: errorCode,
1739
1738
  });
1740
- throw __decorateServiceException(response, parsedBody.Error);
1739
+ _d.label = 17;
1740
+ case 17: return [2];
1741
1741
  }
1742
1742
  });
1743
1743
  }); };
@@ -1760,7 +1760,7 @@ export var deserializeAws_queryUpdateDomainEndpointOptionsCommand = function (ou
1760
1760
  });
1761
1761
  }); };
1762
1762
  var deserializeAws_queryUpdateDomainEndpointOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1763
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1763
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1764
1764
  var _c;
1765
1765
  return __generator(this, function (_d) {
1766
1766
  switch (_d.label) {
@@ -1805,14 +1805,14 @@ var deserializeAws_queryUpdateDomainEndpointOptionsCommandError = function (outp
1805
1805
  case 15: throw _d.sent();
1806
1806
  case 16:
1807
1807
  parsedBody = parsedOutput.body;
1808
- $metadata = deserializeMetadata(output);
1809
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1810
- response = new __BaseException({
1811
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1812
- $fault: "client",
1813
- $metadata: $metadata,
1808
+ throwDefaultError({
1809
+ output: output,
1810
+ parsedBody: parsedBody.Error,
1811
+ exceptionCtor: __BaseException,
1812
+ errorCode: errorCode,
1814
1813
  });
1815
- throw __decorateServiceException(response, parsedBody.Error);
1814
+ _d.label = 17;
1815
+ case 17: return [2];
1816
1816
  }
1817
1817
  });
1818
1818
  }); };
@@ -1835,7 +1835,7 @@ export var deserializeAws_queryUpdateScalingParametersCommand = function (output
1835
1835
  });
1836
1836
  }); };
1837
1837
  var deserializeAws_queryUpdateScalingParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1838
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1838
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1839
1839
  var _c;
1840
1840
  return __generator(this, function (_d) {
1841
1841
  switch (_d.label) {
@@ -1876,14 +1876,14 @@ var deserializeAws_queryUpdateScalingParametersCommandError = function (output,
1876
1876
  case 13: throw _d.sent();
1877
1877
  case 14:
1878
1878
  parsedBody = parsedOutput.body;
1879
- $metadata = deserializeMetadata(output);
1880
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1881
- response = new __BaseException({
1882
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1883
- $fault: "client",
1884
- $metadata: $metadata,
1879
+ throwDefaultError({
1880
+ output: output,
1881
+ parsedBody: parsedBody.Error,
1882
+ exceptionCtor: __BaseException,
1883
+ errorCode: errorCode,
1885
1884
  });
1886
- throw __decorateServiceException(response, parsedBody.Error);
1885
+ _d.label = 15;
1886
+ case 15: return [2];
1887
1887
  }
1888
1888
  });
1889
1889
  }); };
@@ -1906,7 +1906,7 @@ export var deserializeAws_queryUpdateServiceAccessPoliciesCommand = function (ou
1906
1906
  });
1907
1907
  }); };
1908
1908
  var deserializeAws_queryUpdateServiceAccessPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1909
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1909
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1910
1910
  var _c;
1911
1911
  return __generator(this, function (_d) {
1912
1912
  switch (_d.label) {
@@ -1947,14 +1947,14 @@ var deserializeAws_queryUpdateServiceAccessPoliciesCommandError = function (outp
1947
1947
  case 13: throw _d.sent();
1948
1948
  case 14:
1949
1949
  parsedBody = parsedOutput.body;
1950
- $metadata = deserializeMetadata(output);
1951
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1952
- response = new __BaseException({
1953
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1954
- $fault: "client",
1955
- $metadata: $metadata,
1950
+ throwDefaultError({
1951
+ output: output,
1952
+ parsedBody: parsedBody.Error,
1953
+ exceptionCtor: __BaseException,
1954
+ errorCode: errorCode,
1956
1955
  });
1957
- throw __decorateServiceException(response, parsedBody.Error);
1956
+ _d.label = 15;
1957
+ case 15: return [2];
1958
1958
  }
1959
1959
  });
1960
1960
  }); };
@@ -2032,32 +2032,32 @@ var deserializeAws_queryValidationExceptionResponse = function (parsedOutput, co
2032
2032
  }); };
2033
2033
  var serializeAws_queryAnalysisOptions = function (input, context) {
2034
2034
  var entries = {};
2035
- if (input.Synonyms !== undefined && input.Synonyms !== null) {
2035
+ if (input.Synonyms != null) {
2036
2036
  entries["Synonyms"] = input.Synonyms;
2037
2037
  }
2038
- if (input.Stopwords !== undefined && input.Stopwords !== null) {
2038
+ if (input.Stopwords != null) {
2039
2039
  entries["Stopwords"] = input.Stopwords;
2040
2040
  }
2041
- if (input.StemmingDictionary !== undefined && input.StemmingDictionary !== null) {
2041
+ if (input.StemmingDictionary != null) {
2042
2042
  entries["StemmingDictionary"] = input.StemmingDictionary;
2043
2043
  }
2044
- if (input.JapaneseTokenizationDictionary !== undefined && input.JapaneseTokenizationDictionary !== null) {
2044
+ if (input.JapaneseTokenizationDictionary != null) {
2045
2045
  entries["JapaneseTokenizationDictionary"] = input.JapaneseTokenizationDictionary;
2046
2046
  }
2047
- if (input.AlgorithmicStemming !== undefined && input.AlgorithmicStemming !== null) {
2047
+ if (input.AlgorithmicStemming != null) {
2048
2048
  entries["AlgorithmicStemming"] = input.AlgorithmicStemming;
2049
2049
  }
2050
2050
  return entries;
2051
2051
  };
2052
2052
  var serializeAws_queryAnalysisScheme = function (input, context) {
2053
2053
  var entries = {};
2054
- if (input.AnalysisSchemeName !== undefined && input.AnalysisSchemeName !== null) {
2054
+ if (input.AnalysisSchemeName != null) {
2055
2055
  entries["AnalysisSchemeName"] = input.AnalysisSchemeName;
2056
2056
  }
2057
- if (input.AnalysisSchemeLanguage !== undefined && input.AnalysisSchemeLanguage !== null) {
2057
+ if (input.AnalysisSchemeLanguage != null) {
2058
2058
  entries["AnalysisSchemeLanguage"] = input.AnalysisSchemeLanguage;
2059
2059
  }
2060
- if (input.AnalysisOptions !== undefined && input.AnalysisOptions !== null) {
2060
+ if (input.AnalysisOptions != null) {
2061
2061
  var memberEntries = serializeAws_queryAnalysisOptions(input.AnalysisOptions, context);
2062
2062
  Object.entries(memberEntries).forEach(function (_a) {
2063
2063
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2069,65 +2069,65 @@ var serializeAws_queryAnalysisScheme = function (input, context) {
2069
2069
  };
2070
2070
  var serializeAws_queryBuildSuggestersRequest = function (input, context) {
2071
2071
  var entries = {};
2072
- if (input.DomainName !== undefined && input.DomainName !== null) {
2072
+ if (input.DomainName != null) {
2073
2073
  entries["DomainName"] = input.DomainName;
2074
2074
  }
2075
2075
  return entries;
2076
2076
  };
2077
2077
  var serializeAws_queryCreateDomainRequest = function (input, context) {
2078
2078
  var entries = {};
2079
- if (input.DomainName !== undefined && input.DomainName !== null) {
2079
+ if (input.DomainName != null) {
2080
2080
  entries["DomainName"] = input.DomainName;
2081
2081
  }
2082
2082
  return entries;
2083
2083
  };
2084
2084
  var serializeAws_queryDateArrayOptions = function (input, context) {
2085
2085
  var entries = {};
2086
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2086
+ if (input.DefaultValue != null) {
2087
2087
  entries["DefaultValue"] = input.DefaultValue;
2088
2088
  }
2089
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2089
+ if (input.SourceFields != null) {
2090
2090
  entries["SourceFields"] = input.SourceFields;
2091
2091
  }
2092
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2092
+ if (input.FacetEnabled != null) {
2093
2093
  entries["FacetEnabled"] = input.FacetEnabled;
2094
2094
  }
2095
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2095
+ if (input.SearchEnabled != null) {
2096
2096
  entries["SearchEnabled"] = input.SearchEnabled;
2097
2097
  }
2098
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2098
+ if (input.ReturnEnabled != null) {
2099
2099
  entries["ReturnEnabled"] = input.ReturnEnabled;
2100
2100
  }
2101
2101
  return entries;
2102
2102
  };
2103
2103
  var serializeAws_queryDateOptions = function (input, context) {
2104
2104
  var entries = {};
2105
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2105
+ if (input.DefaultValue != null) {
2106
2106
  entries["DefaultValue"] = input.DefaultValue;
2107
2107
  }
2108
- if (input.SourceField !== undefined && input.SourceField !== null) {
2108
+ if (input.SourceField != null) {
2109
2109
  entries["SourceField"] = input.SourceField;
2110
2110
  }
2111
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2111
+ if (input.FacetEnabled != null) {
2112
2112
  entries["FacetEnabled"] = input.FacetEnabled;
2113
2113
  }
2114
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2114
+ if (input.SearchEnabled != null) {
2115
2115
  entries["SearchEnabled"] = input.SearchEnabled;
2116
2116
  }
2117
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2117
+ if (input.ReturnEnabled != null) {
2118
2118
  entries["ReturnEnabled"] = input.ReturnEnabled;
2119
2119
  }
2120
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2120
+ if (input.SortEnabled != null) {
2121
2121
  entries["SortEnabled"] = input.SortEnabled;
2122
2122
  }
2123
2123
  return entries;
2124
2124
  };
2125
2125
  var serializeAws_queryDefineAnalysisSchemeRequest = function (input, context) {
2126
2126
  var entries = {};
2127
- if (input.DomainName !== undefined && input.DomainName !== null) {
2127
+ if (input.DomainName != null) {
2128
2128
  entries["DomainName"] = input.DomainName;
2129
2129
  }
2130
- if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
2130
+ if (input.AnalysisScheme != null) {
2131
2131
  var memberEntries = serializeAws_queryAnalysisScheme(input.AnalysisScheme, context);
2132
2132
  Object.entries(memberEntries).forEach(function (_a) {
2133
2133
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2139,10 +2139,10 @@ var serializeAws_queryDefineAnalysisSchemeRequest = function (input, context) {
2139
2139
  };
2140
2140
  var serializeAws_queryDefineExpressionRequest = function (input, context) {
2141
2141
  var entries = {};
2142
- if (input.DomainName !== undefined && input.DomainName !== null) {
2142
+ if (input.DomainName != null) {
2143
2143
  entries["DomainName"] = input.DomainName;
2144
2144
  }
2145
- if (input.Expression !== undefined && input.Expression !== null) {
2145
+ if (input.Expression != null) {
2146
2146
  var memberEntries = serializeAws_queryExpression(input.Expression, context);
2147
2147
  Object.entries(memberEntries).forEach(function (_a) {
2148
2148
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2154,10 +2154,10 @@ var serializeAws_queryDefineExpressionRequest = function (input, context) {
2154
2154
  };
2155
2155
  var serializeAws_queryDefineIndexFieldRequest = function (input, context) {
2156
2156
  var entries = {};
2157
- if (input.DomainName !== undefined && input.DomainName !== null) {
2157
+ if (input.DomainName != null) {
2158
2158
  entries["DomainName"] = input.DomainName;
2159
2159
  }
2160
- if (input.IndexField !== undefined && input.IndexField !== null) {
2160
+ if (input.IndexField != null) {
2161
2161
  var memberEntries = serializeAws_queryIndexField(input.IndexField, context);
2162
2162
  Object.entries(memberEntries).forEach(function (_a) {
2163
2163
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2169,10 +2169,10 @@ var serializeAws_queryDefineIndexFieldRequest = function (input, context) {
2169
2169
  };
2170
2170
  var serializeAws_queryDefineSuggesterRequest = function (input, context) {
2171
2171
  var entries = {};
2172
- if (input.DomainName !== undefined && input.DomainName !== null) {
2172
+ if (input.DomainName != null) {
2173
2173
  entries["DomainName"] = input.DomainName;
2174
2174
  }
2175
- if (input.Suggester !== undefined && input.Suggester !== null) {
2175
+ if (input.Suggester != null) {
2176
2176
  var memberEntries = serializeAws_querySuggester(input.Suggester, context);
2177
2177
  Object.entries(memberEntries).forEach(function (_a) {
2178
2178
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2184,57 +2184,57 @@ var serializeAws_queryDefineSuggesterRequest = function (input, context) {
2184
2184
  };
2185
2185
  var serializeAws_queryDeleteAnalysisSchemeRequest = function (input, context) {
2186
2186
  var entries = {};
2187
- if (input.DomainName !== undefined && input.DomainName !== null) {
2187
+ if (input.DomainName != null) {
2188
2188
  entries["DomainName"] = input.DomainName;
2189
2189
  }
2190
- if (input.AnalysisSchemeName !== undefined && input.AnalysisSchemeName !== null) {
2190
+ if (input.AnalysisSchemeName != null) {
2191
2191
  entries["AnalysisSchemeName"] = input.AnalysisSchemeName;
2192
2192
  }
2193
2193
  return entries;
2194
2194
  };
2195
2195
  var serializeAws_queryDeleteDomainRequest = function (input, context) {
2196
2196
  var entries = {};
2197
- if (input.DomainName !== undefined && input.DomainName !== null) {
2197
+ if (input.DomainName != null) {
2198
2198
  entries["DomainName"] = input.DomainName;
2199
2199
  }
2200
2200
  return entries;
2201
2201
  };
2202
2202
  var serializeAws_queryDeleteExpressionRequest = function (input, context) {
2203
2203
  var entries = {};
2204
- if (input.DomainName !== undefined && input.DomainName !== null) {
2204
+ if (input.DomainName != null) {
2205
2205
  entries["DomainName"] = input.DomainName;
2206
2206
  }
2207
- if (input.ExpressionName !== undefined && input.ExpressionName !== null) {
2207
+ if (input.ExpressionName != null) {
2208
2208
  entries["ExpressionName"] = input.ExpressionName;
2209
2209
  }
2210
2210
  return entries;
2211
2211
  };
2212
2212
  var serializeAws_queryDeleteIndexFieldRequest = function (input, context) {
2213
2213
  var entries = {};
2214
- if (input.DomainName !== undefined && input.DomainName !== null) {
2214
+ if (input.DomainName != null) {
2215
2215
  entries["DomainName"] = input.DomainName;
2216
2216
  }
2217
- if (input.IndexFieldName !== undefined && input.IndexFieldName !== null) {
2217
+ if (input.IndexFieldName != null) {
2218
2218
  entries["IndexFieldName"] = input.IndexFieldName;
2219
2219
  }
2220
2220
  return entries;
2221
2221
  };
2222
2222
  var serializeAws_queryDeleteSuggesterRequest = function (input, context) {
2223
2223
  var entries = {};
2224
- if (input.DomainName !== undefined && input.DomainName !== null) {
2224
+ if (input.DomainName != null) {
2225
2225
  entries["DomainName"] = input.DomainName;
2226
2226
  }
2227
- if (input.SuggesterName !== undefined && input.SuggesterName !== null) {
2227
+ if (input.SuggesterName != null) {
2228
2228
  entries["SuggesterName"] = input.SuggesterName;
2229
2229
  }
2230
2230
  return entries;
2231
2231
  };
2232
2232
  var serializeAws_queryDescribeAnalysisSchemesRequest = function (input, context) {
2233
2233
  var entries = {};
2234
- if (input.DomainName !== undefined && input.DomainName !== null) {
2234
+ if (input.DomainName != null) {
2235
2235
  entries["DomainName"] = input.DomainName;
2236
2236
  }
2237
- if (input.AnalysisSchemeNames !== undefined && input.AnalysisSchemeNames !== null) {
2237
+ if (input.AnalysisSchemeNames != null) {
2238
2238
  var memberEntries = serializeAws_queryStandardNameList(input.AnalysisSchemeNames, context);
2239
2239
  Object.entries(memberEntries).forEach(function (_a) {
2240
2240
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2242,34 +2242,34 @@ var serializeAws_queryDescribeAnalysisSchemesRequest = function (input, context)
2242
2242
  entries[loc] = value;
2243
2243
  });
2244
2244
  }
2245
- if (input.Deployed !== undefined && input.Deployed !== null) {
2245
+ if (input.Deployed != null) {
2246
2246
  entries["Deployed"] = input.Deployed;
2247
2247
  }
2248
2248
  return entries;
2249
2249
  };
2250
2250
  var serializeAws_queryDescribeAvailabilityOptionsRequest = function (input, context) {
2251
2251
  var entries = {};
2252
- if (input.DomainName !== undefined && input.DomainName !== null) {
2252
+ if (input.DomainName != null) {
2253
2253
  entries["DomainName"] = input.DomainName;
2254
2254
  }
2255
- if (input.Deployed !== undefined && input.Deployed !== null) {
2255
+ if (input.Deployed != null) {
2256
2256
  entries["Deployed"] = input.Deployed;
2257
2257
  }
2258
2258
  return entries;
2259
2259
  };
2260
2260
  var serializeAws_queryDescribeDomainEndpointOptionsRequest = function (input, context) {
2261
2261
  var entries = {};
2262
- if (input.DomainName !== undefined && input.DomainName !== null) {
2262
+ if (input.DomainName != null) {
2263
2263
  entries["DomainName"] = input.DomainName;
2264
2264
  }
2265
- if (input.Deployed !== undefined && input.Deployed !== null) {
2265
+ if (input.Deployed != null) {
2266
2266
  entries["Deployed"] = input.Deployed;
2267
2267
  }
2268
2268
  return entries;
2269
2269
  };
2270
2270
  var serializeAws_queryDescribeDomainsRequest = function (input, context) {
2271
2271
  var entries = {};
2272
- if (input.DomainNames !== undefined && input.DomainNames !== null) {
2272
+ if (input.DomainNames != null) {
2273
2273
  var memberEntries = serializeAws_queryDomainNameList(input.DomainNames, context);
2274
2274
  Object.entries(memberEntries).forEach(function (_a) {
2275
2275
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2281,10 +2281,10 @@ var serializeAws_queryDescribeDomainsRequest = function (input, context) {
2281
2281
  };
2282
2282
  var serializeAws_queryDescribeExpressionsRequest = function (input, context) {
2283
2283
  var entries = {};
2284
- if (input.DomainName !== undefined && input.DomainName !== null) {
2284
+ if (input.DomainName != null) {
2285
2285
  entries["DomainName"] = input.DomainName;
2286
2286
  }
2287
- if (input.ExpressionNames !== undefined && input.ExpressionNames !== null) {
2287
+ if (input.ExpressionNames != null) {
2288
2288
  var memberEntries = serializeAws_queryStandardNameList(input.ExpressionNames, context);
2289
2289
  Object.entries(memberEntries).forEach(function (_a) {
2290
2290
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2292,17 +2292,17 @@ var serializeAws_queryDescribeExpressionsRequest = function (input, context) {
2292
2292
  entries[loc] = value;
2293
2293
  });
2294
2294
  }
2295
- if (input.Deployed !== undefined && input.Deployed !== null) {
2295
+ if (input.Deployed != null) {
2296
2296
  entries["Deployed"] = input.Deployed;
2297
2297
  }
2298
2298
  return entries;
2299
2299
  };
2300
2300
  var serializeAws_queryDescribeIndexFieldsRequest = function (input, context) {
2301
2301
  var entries = {};
2302
- if (input.DomainName !== undefined && input.DomainName !== null) {
2302
+ if (input.DomainName != null) {
2303
2303
  entries["DomainName"] = input.DomainName;
2304
2304
  }
2305
- if (input.FieldNames !== undefined && input.FieldNames !== null) {
2305
+ if (input.FieldNames != null) {
2306
2306
  var memberEntries = serializeAws_queryDynamicFieldNameList(input.FieldNames, context);
2307
2307
  Object.entries(memberEntries).forEach(function (_a) {
2308
2308
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2310,34 +2310,34 @@ var serializeAws_queryDescribeIndexFieldsRequest = function (input, context) {
2310
2310
  entries[loc] = value;
2311
2311
  });
2312
2312
  }
2313
- if (input.Deployed !== undefined && input.Deployed !== null) {
2313
+ if (input.Deployed != null) {
2314
2314
  entries["Deployed"] = input.Deployed;
2315
2315
  }
2316
2316
  return entries;
2317
2317
  };
2318
2318
  var serializeAws_queryDescribeScalingParametersRequest = function (input, context) {
2319
2319
  var entries = {};
2320
- if (input.DomainName !== undefined && input.DomainName !== null) {
2320
+ if (input.DomainName != null) {
2321
2321
  entries["DomainName"] = input.DomainName;
2322
2322
  }
2323
2323
  return entries;
2324
2324
  };
2325
2325
  var serializeAws_queryDescribeServiceAccessPoliciesRequest = function (input, context) {
2326
2326
  var entries = {};
2327
- if (input.DomainName !== undefined && input.DomainName !== null) {
2327
+ if (input.DomainName != null) {
2328
2328
  entries["DomainName"] = input.DomainName;
2329
2329
  }
2330
- if (input.Deployed !== undefined && input.Deployed !== null) {
2330
+ if (input.Deployed != null) {
2331
2331
  entries["Deployed"] = input.Deployed;
2332
2332
  }
2333
2333
  return entries;
2334
2334
  };
2335
2335
  var serializeAws_queryDescribeSuggestersRequest = function (input, context) {
2336
2336
  var entries = {};
2337
- if (input.DomainName !== undefined && input.DomainName !== null) {
2337
+ if (input.DomainName != null) {
2338
2338
  entries["DomainName"] = input.DomainName;
2339
2339
  }
2340
- if (input.SuggesterNames !== undefined && input.SuggesterNames !== null) {
2340
+ if (input.SuggesterNames != null) {
2341
2341
  var memberEntries = serializeAws_queryStandardNameList(input.SuggesterNames, context);
2342
2342
  Object.entries(memberEntries).forEach(function (_a) {
2343
2343
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2345,30 +2345,30 @@ var serializeAws_queryDescribeSuggestersRequest = function (input, context) {
2345
2345
  entries[loc] = value;
2346
2346
  });
2347
2347
  }
2348
- if (input.Deployed !== undefined && input.Deployed !== null) {
2348
+ if (input.Deployed != null) {
2349
2349
  entries["Deployed"] = input.Deployed;
2350
2350
  }
2351
2351
  return entries;
2352
2352
  };
2353
2353
  var serializeAws_queryDocumentSuggesterOptions = function (input, context) {
2354
2354
  var entries = {};
2355
- if (input.SourceField !== undefined && input.SourceField !== null) {
2355
+ if (input.SourceField != null) {
2356
2356
  entries["SourceField"] = input.SourceField;
2357
2357
  }
2358
- if (input.FuzzyMatching !== undefined && input.FuzzyMatching !== null) {
2358
+ if (input.FuzzyMatching != null) {
2359
2359
  entries["FuzzyMatching"] = input.FuzzyMatching;
2360
2360
  }
2361
- if (input.SortExpression !== undefined && input.SortExpression !== null) {
2361
+ if (input.SortExpression != null) {
2362
2362
  entries["SortExpression"] = input.SortExpression;
2363
2363
  }
2364
2364
  return entries;
2365
2365
  };
2366
2366
  var serializeAws_queryDomainEndpointOptions = function (input, context) {
2367
2367
  var entries = {};
2368
- if (input.EnforceHTTPS !== undefined && input.EnforceHTTPS !== null) {
2368
+ if (input.EnforceHTTPS != null) {
2369
2369
  entries["EnforceHTTPS"] = input.EnforceHTTPS;
2370
2370
  }
2371
- if (input.TLSSecurityPolicy !== undefined && input.TLSSecurityPolicy !== null) {
2371
+ if (input.TLSSecurityPolicy != null) {
2372
2372
  entries["TLSSecurityPolicy"] = input.TLSSecurityPolicy;
2373
2373
  }
2374
2374
  return entries;
@@ -2398,41 +2398,41 @@ var serializeAws_queryDomainNameList = function (input, context) {
2398
2398
  };
2399
2399
  var serializeAws_queryDoubleArrayOptions = function (input, context) {
2400
2400
  var entries = {};
2401
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2401
+ if (input.DefaultValue != null) {
2402
2402
  entries["DefaultValue"] = __serializeFloat(input.DefaultValue);
2403
2403
  }
2404
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2404
+ if (input.SourceFields != null) {
2405
2405
  entries["SourceFields"] = input.SourceFields;
2406
2406
  }
2407
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2407
+ if (input.FacetEnabled != null) {
2408
2408
  entries["FacetEnabled"] = input.FacetEnabled;
2409
2409
  }
2410
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2410
+ if (input.SearchEnabled != null) {
2411
2411
  entries["SearchEnabled"] = input.SearchEnabled;
2412
2412
  }
2413
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2413
+ if (input.ReturnEnabled != null) {
2414
2414
  entries["ReturnEnabled"] = input.ReturnEnabled;
2415
2415
  }
2416
2416
  return entries;
2417
2417
  };
2418
2418
  var serializeAws_queryDoubleOptions = function (input, context) {
2419
2419
  var entries = {};
2420
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2420
+ if (input.DefaultValue != null) {
2421
2421
  entries["DefaultValue"] = __serializeFloat(input.DefaultValue);
2422
2422
  }
2423
- if (input.SourceField !== undefined && input.SourceField !== null) {
2423
+ if (input.SourceField != null) {
2424
2424
  entries["SourceField"] = input.SourceField;
2425
2425
  }
2426
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2426
+ if (input.FacetEnabled != null) {
2427
2427
  entries["FacetEnabled"] = input.FacetEnabled;
2428
2428
  }
2429
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2429
+ if (input.SearchEnabled != null) {
2430
2430
  entries["SearchEnabled"] = input.SearchEnabled;
2431
2431
  }
2432
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2432
+ if (input.ReturnEnabled != null) {
2433
2433
  entries["ReturnEnabled"] = input.ReturnEnabled;
2434
2434
  }
2435
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2435
+ if (input.SortEnabled != null) {
2436
2436
  entries["SortEnabled"] = input.SortEnabled;
2437
2437
  }
2438
2438
  return entries;
@@ -2462,30 +2462,30 @@ var serializeAws_queryDynamicFieldNameList = function (input, context) {
2462
2462
  };
2463
2463
  var serializeAws_queryExpression = function (input, context) {
2464
2464
  var entries = {};
2465
- if (input.ExpressionName !== undefined && input.ExpressionName !== null) {
2465
+ if (input.ExpressionName != null) {
2466
2466
  entries["ExpressionName"] = input.ExpressionName;
2467
2467
  }
2468
- if (input.ExpressionValue !== undefined && input.ExpressionValue !== null) {
2468
+ if (input.ExpressionValue != null) {
2469
2469
  entries["ExpressionValue"] = input.ExpressionValue;
2470
2470
  }
2471
2471
  return entries;
2472
2472
  };
2473
2473
  var serializeAws_queryIndexDocumentsRequest = function (input, context) {
2474
2474
  var entries = {};
2475
- if (input.DomainName !== undefined && input.DomainName !== null) {
2475
+ if (input.DomainName != null) {
2476
2476
  entries["DomainName"] = input.DomainName;
2477
2477
  }
2478
2478
  return entries;
2479
2479
  };
2480
2480
  var serializeAws_queryIndexField = function (input, context) {
2481
2481
  var entries = {};
2482
- if (input.IndexFieldName !== undefined && input.IndexFieldName !== null) {
2482
+ if (input.IndexFieldName != null) {
2483
2483
  entries["IndexFieldName"] = input.IndexFieldName;
2484
2484
  }
2485
- if (input.IndexFieldType !== undefined && input.IndexFieldType !== null) {
2485
+ if (input.IndexFieldType != null) {
2486
2486
  entries["IndexFieldType"] = input.IndexFieldType;
2487
2487
  }
2488
- if (input.IntOptions !== undefined && input.IntOptions !== null) {
2488
+ if (input.IntOptions != null) {
2489
2489
  var memberEntries = serializeAws_queryIntOptions(input.IntOptions, context);
2490
2490
  Object.entries(memberEntries).forEach(function (_a) {
2491
2491
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2493,7 +2493,7 @@ var serializeAws_queryIndexField = function (input, context) {
2493
2493
  entries[loc] = value;
2494
2494
  });
2495
2495
  }
2496
- if (input.DoubleOptions !== undefined && input.DoubleOptions !== null) {
2496
+ if (input.DoubleOptions != null) {
2497
2497
  var memberEntries = serializeAws_queryDoubleOptions(input.DoubleOptions, context);
2498
2498
  Object.entries(memberEntries).forEach(function (_a) {
2499
2499
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2501,7 +2501,7 @@ var serializeAws_queryIndexField = function (input, context) {
2501
2501
  entries[loc] = value;
2502
2502
  });
2503
2503
  }
2504
- if (input.LiteralOptions !== undefined && input.LiteralOptions !== null) {
2504
+ if (input.LiteralOptions != null) {
2505
2505
  var memberEntries = serializeAws_queryLiteralOptions(input.LiteralOptions, context);
2506
2506
  Object.entries(memberEntries).forEach(function (_a) {
2507
2507
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2509,7 +2509,7 @@ var serializeAws_queryIndexField = function (input, context) {
2509
2509
  entries[loc] = value;
2510
2510
  });
2511
2511
  }
2512
- if (input.TextOptions !== undefined && input.TextOptions !== null) {
2512
+ if (input.TextOptions != null) {
2513
2513
  var memberEntries = serializeAws_queryTextOptions(input.TextOptions, context);
2514
2514
  Object.entries(memberEntries).forEach(function (_a) {
2515
2515
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2517,7 +2517,7 @@ var serializeAws_queryIndexField = function (input, context) {
2517
2517
  entries[loc] = value;
2518
2518
  });
2519
2519
  }
2520
- if (input.DateOptions !== undefined && input.DateOptions !== null) {
2520
+ if (input.DateOptions != null) {
2521
2521
  var memberEntries = serializeAws_queryDateOptions(input.DateOptions, context);
2522
2522
  Object.entries(memberEntries).forEach(function (_a) {
2523
2523
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2525,7 +2525,7 @@ var serializeAws_queryIndexField = function (input, context) {
2525
2525
  entries[loc] = value;
2526
2526
  });
2527
2527
  }
2528
- if (input.LatLonOptions !== undefined && input.LatLonOptions !== null) {
2528
+ if (input.LatLonOptions != null) {
2529
2529
  var memberEntries = serializeAws_queryLatLonOptions(input.LatLonOptions, context);
2530
2530
  Object.entries(memberEntries).forEach(function (_a) {
2531
2531
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2533,7 +2533,7 @@ var serializeAws_queryIndexField = function (input, context) {
2533
2533
  entries[loc] = value;
2534
2534
  });
2535
2535
  }
2536
- if (input.IntArrayOptions !== undefined && input.IntArrayOptions !== null) {
2536
+ if (input.IntArrayOptions != null) {
2537
2537
  var memberEntries = serializeAws_queryIntArrayOptions(input.IntArrayOptions, context);
2538
2538
  Object.entries(memberEntries).forEach(function (_a) {
2539
2539
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2541,7 +2541,7 @@ var serializeAws_queryIndexField = function (input, context) {
2541
2541
  entries[loc] = value;
2542
2542
  });
2543
2543
  }
2544
- if (input.DoubleArrayOptions !== undefined && input.DoubleArrayOptions !== null) {
2544
+ if (input.DoubleArrayOptions != null) {
2545
2545
  var memberEntries = serializeAws_queryDoubleArrayOptions(input.DoubleArrayOptions, context);
2546
2546
  Object.entries(memberEntries).forEach(function (_a) {
2547
2547
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2549,7 +2549,7 @@ var serializeAws_queryIndexField = function (input, context) {
2549
2549
  entries[loc] = value;
2550
2550
  });
2551
2551
  }
2552
- if (input.LiteralArrayOptions !== undefined && input.LiteralArrayOptions !== null) {
2552
+ if (input.LiteralArrayOptions != null) {
2553
2553
  var memberEntries = serializeAws_queryLiteralArrayOptions(input.LiteralArrayOptions, context);
2554
2554
  Object.entries(memberEntries).forEach(function (_a) {
2555
2555
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2557,7 +2557,7 @@ var serializeAws_queryIndexField = function (input, context) {
2557
2557
  entries[loc] = value;
2558
2558
  });
2559
2559
  }
2560
- if (input.TextArrayOptions !== undefined && input.TextArrayOptions !== null) {
2560
+ if (input.TextArrayOptions != null) {
2561
2561
  var memberEntries = serializeAws_queryTextArrayOptions(input.TextArrayOptions, context);
2562
2562
  Object.entries(memberEntries).forEach(function (_a) {
2563
2563
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2565,7 +2565,7 @@ var serializeAws_queryIndexField = function (input, context) {
2565
2565
  entries[loc] = value;
2566
2566
  });
2567
2567
  }
2568
- if (input.DateArrayOptions !== undefined && input.DateArrayOptions !== null) {
2568
+ if (input.DateArrayOptions != null) {
2569
2569
  var memberEntries = serializeAws_queryDateArrayOptions(input.DateArrayOptions, context);
2570
2570
  Object.entries(memberEntries).forEach(function (_a) {
2571
2571
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2577,117 +2577,117 @@ var serializeAws_queryIndexField = function (input, context) {
2577
2577
  };
2578
2578
  var serializeAws_queryIntArrayOptions = function (input, context) {
2579
2579
  var entries = {};
2580
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2580
+ if (input.DefaultValue != null) {
2581
2581
  entries["DefaultValue"] = input.DefaultValue;
2582
2582
  }
2583
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2583
+ if (input.SourceFields != null) {
2584
2584
  entries["SourceFields"] = input.SourceFields;
2585
2585
  }
2586
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2586
+ if (input.FacetEnabled != null) {
2587
2587
  entries["FacetEnabled"] = input.FacetEnabled;
2588
2588
  }
2589
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2589
+ if (input.SearchEnabled != null) {
2590
2590
  entries["SearchEnabled"] = input.SearchEnabled;
2591
2591
  }
2592
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2592
+ if (input.ReturnEnabled != null) {
2593
2593
  entries["ReturnEnabled"] = input.ReturnEnabled;
2594
2594
  }
2595
2595
  return entries;
2596
2596
  };
2597
2597
  var serializeAws_queryIntOptions = function (input, context) {
2598
2598
  var entries = {};
2599
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2599
+ if (input.DefaultValue != null) {
2600
2600
  entries["DefaultValue"] = input.DefaultValue;
2601
2601
  }
2602
- if (input.SourceField !== undefined && input.SourceField !== null) {
2602
+ if (input.SourceField != null) {
2603
2603
  entries["SourceField"] = input.SourceField;
2604
2604
  }
2605
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2605
+ if (input.FacetEnabled != null) {
2606
2606
  entries["FacetEnabled"] = input.FacetEnabled;
2607
2607
  }
2608
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2608
+ if (input.SearchEnabled != null) {
2609
2609
  entries["SearchEnabled"] = input.SearchEnabled;
2610
2610
  }
2611
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2611
+ if (input.ReturnEnabled != null) {
2612
2612
  entries["ReturnEnabled"] = input.ReturnEnabled;
2613
2613
  }
2614
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2614
+ if (input.SortEnabled != null) {
2615
2615
  entries["SortEnabled"] = input.SortEnabled;
2616
2616
  }
2617
2617
  return entries;
2618
2618
  };
2619
2619
  var serializeAws_queryLatLonOptions = function (input, context) {
2620
2620
  var entries = {};
2621
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2621
+ if (input.DefaultValue != null) {
2622
2622
  entries["DefaultValue"] = input.DefaultValue;
2623
2623
  }
2624
- if (input.SourceField !== undefined && input.SourceField !== null) {
2624
+ if (input.SourceField != null) {
2625
2625
  entries["SourceField"] = input.SourceField;
2626
2626
  }
2627
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2627
+ if (input.FacetEnabled != null) {
2628
2628
  entries["FacetEnabled"] = input.FacetEnabled;
2629
2629
  }
2630
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2630
+ if (input.SearchEnabled != null) {
2631
2631
  entries["SearchEnabled"] = input.SearchEnabled;
2632
2632
  }
2633
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2633
+ if (input.ReturnEnabled != null) {
2634
2634
  entries["ReturnEnabled"] = input.ReturnEnabled;
2635
2635
  }
2636
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2636
+ if (input.SortEnabled != null) {
2637
2637
  entries["SortEnabled"] = input.SortEnabled;
2638
2638
  }
2639
2639
  return entries;
2640
2640
  };
2641
2641
  var serializeAws_queryLiteralArrayOptions = function (input, context) {
2642
2642
  var entries = {};
2643
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2643
+ if (input.DefaultValue != null) {
2644
2644
  entries["DefaultValue"] = input.DefaultValue;
2645
2645
  }
2646
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2646
+ if (input.SourceFields != null) {
2647
2647
  entries["SourceFields"] = input.SourceFields;
2648
2648
  }
2649
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2649
+ if (input.FacetEnabled != null) {
2650
2650
  entries["FacetEnabled"] = input.FacetEnabled;
2651
2651
  }
2652
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2652
+ if (input.SearchEnabled != null) {
2653
2653
  entries["SearchEnabled"] = input.SearchEnabled;
2654
2654
  }
2655
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2655
+ if (input.ReturnEnabled != null) {
2656
2656
  entries["ReturnEnabled"] = input.ReturnEnabled;
2657
2657
  }
2658
2658
  return entries;
2659
2659
  };
2660
2660
  var serializeAws_queryLiteralOptions = function (input, context) {
2661
2661
  var entries = {};
2662
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2662
+ if (input.DefaultValue != null) {
2663
2663
  entries["DefaultValue"] = input.DefaultValue;
2664
2664
  }
2665
- if (input.SourceField !== undefined && input.SourceField !== null) {
2665
+ if (input.SourceField != null) {
2666
2666
  entries["SourceField"] = input.SourceField;
2667
2667
  }
2668
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2668
+ if (input.FacetEnabled != null) {
2669
2669
  entries["FacetEnabled"] = input.FacetEnabled;
2670
2670
  }
2671
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2671
+ if (input.SearchEnabled != null) {
2672
2672
  entries["SearchEnabled"] = input.SearchEnabled;
2673
2673
  }
2674
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2674
+ if (input.ReturnEnabled != null) {
2675
2675
  entries["ReturnEnabled"] = input.ReturnEnabled;
2676
2676
  }
2677
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2677
+ if (input.SortEnabled != null) {
2678
2678
  entries["SortEnabled"] = input.SortEnabled;
2679
2679
  }
2680
2680
  return entries;
2681
2681
  };
2682
2682
  var serializeAws_queryScalingParameters = function (input, context) {
2683
2683
  var entries = {};
2684
- if (input.DesiredInstanceType !== undefined && input.DesiredInstanceType !== null) {
2684
+ if (input.DesiredInstanceType != null) {
2685
2685
  entries["DesiredInstanceType"] = input.DesiredInstanceType;
2686
2686
  }
2687
- if (input.DesiredReplicationCount !== undefined && input.DesiredReplicationCount !== null) {
2687
+ if (input.DesiredReplicationCount != null) {
2688
2688
  entries["DesiredReplicationCount"] = input.DesiredReplicationCount;
2689
2689
  }
2690
- if (input.DesiredPartitionCount !== undefined && input.DesiredPartitionCount !== null) {
2690
+ if (input.DesiredPartitionCount != null) {
2691
2691
  entries["DesiredPartitionCount"] = input.DesiredPartitionCount;
2692
2692
  }
2693
2693
  return entries;
@@ -2717,10 +2717,10 @@ var serializeAws_queryStandardNameList = function (input, context) {
2717
2717
  };
2718
2718
  var serializeAws_querySuggester = function (input, context) {
2719
2719
  var entries = {};
2720
- if (input.SuggesterName !== undefined && input.SuggesterName !== null) {
2720
+ if (input.SuggesterName != null) {
2721
2721
  entries["SuggesterName"] = input.SuggesterName;
2722
2722
  }
2723
- if (input.DocumentSuggesterOptions !== undefined && input.DocumentSuggesterOptions !== null) {
2723
+ if (input.DocumentSuggesterOptions != null) {
2724
2724
  var memberEntries = serializeAws_queryDocumentSuggesterOptions(input.DocumentSuggesterOptions, context);
2725
2725
  Object.entries(memberEntries).forEach(function (_a) {
2726
2726
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2732,61 +2732,61 @@ var serializeAws_querySuggester = function (input, context) {
2732
2732
  };
2733
2733
  var serializeAws_queryTextArrayOptions = function (input, context) {
2734
2734
  var entries = {};
2735
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2735
+ if (input.DefaultValue != null) {
2736
2736
  entries["DefaultValue"] = input.DefaultValue;
2737
2737
  }
2738
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2738
+ if (input.SourceFields != null) {
2739
2739
  entries["SourceFields"] = input.SourceFields;
2740
2740
  }
2741
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2741
+ if (input.ReturnEnabled != null) {
2742
2742
  entries["ReturnEnabled"] = input.ReturnEnabled;
2743
2743
  }
2744
- if (input.HighlightEnabled !== undefined && input.HighlightEnabled !== null) {
2744
+ if (input.HighlightEnabled != null) {
2745
2745
  entries["HighlightEnabled"] = input.HighlightEnabled;
2746
2746
  }
2747
- if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
2747
+ if (input.AnalysisScheme != null) {
2748
2748
  entries["AnalysisScheme"] = input.AnalysisScheme;
2749
2749
  }
2750
2750
  return entries;
2751
2751
  };
2752
2752
  var serializeAws_queryTextOptions = function (input, context) {
2753
2753
  var entries = {};
2754
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2754
+ if (input.DefaultValue != null) {
2755
2755
  entries["DefaultValue"] = input.DefaultValue;
2756
2756
  }
2757
- if (input.SourceField !== undefined && input.SourceField !== null) {
2757
+ if (input.SourceField != null) {
2758
2758
  entries["SourceField"] = input.SourceField;
2759
2759
  }
2760
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2760
+ if (input.ReturnEnabled != null) {
2761
2761
  entries["ReturnEnabled"] = input.ReturnEnabled;
2762
2762
  }
2763
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2763
+ if (input.SortEnabled != null) {
2764
2764
  entries["SortEnabled"] = input.SortEnabled;
2765
2765
  }
2766
- if (input.HighlightEnabled !== undefined && input.HighlightEnabled !== null) {
2766
+ if (input.HighlightEnabled != null) {
2767
2767
  entries["HighlightEnabled"] = input.HighlightEnabled;
2768
2768
  }
2769
- if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
2769
+ if (input.AnalysisScheme != null) {
2770
2770
  entries["AnalysisScheme"] = input.AnalysisScheme;
2771
2771
  }
2772
2772
  return entries;
2773
2773
  };
2774
2774
  var serializeAws_queryUpdateAvailabilityOptionsRequest = function (input, context) {
2775
2775
  var entries = {};
2776
- if (input.DomainName !== undefined && input.DomainName !== null) {
2776
+ if (input.DomainName != null) {
2777
2777
  entries["DomainName"] = input.DomainName;
2778
2778
  }
2779
- if (input.MultiAZ !== undefined && input.MultiAZ !== null) {
2779
+ if (input.MultiAZ != null) {
2780
2780
  entries["MultiAZ"] = input.MultiAZ;
2781
2781
  }
2782
2782
  return entries;
2783
2783
  };
2784
2784
  var serializeAws_queryUpdateDomainEndpointOptionsRequest = function (input, context) {
2785
2785
  var entries = {};
2786
- if (input.DomainName !== undefined && input.DomainName !== null) {
2786
+ if (input.DomainName != null) {
2787
2787
  entries["DomainName"] = input.DomainName;
2788
2788
  }
2789
- if (input.DomainEndpointOptions !== undefined && input.DomainEndpointOptions !== null) {
2789
+ if (input.DomainEndpointOptions != null) {
2790
2790
  var memberEntries = serializeAws_queryDomainEndpointOptions(input.DomainEndpointOptions, context);
2791
2791
  Object.entries(memberEntries).forEach(function (_a) {
2792
2792
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2798,10 +2798,10 @@ var serializeAws_queryUpdateDomainEndpointOptionsRequest = function (input, cont
2798
2798
  };
2799
2799
  var serializeAws_queryUpdateScalingParametersRequest = function (input, context) {
2800
2800
  var entries = {};
2801
- if (input.DomainName !== undefined && input.DomainName !== null) {
2801
+ if (input.DomainName != null) {
2802
2802
  entries["DomainName"] = input.DomainName;
2803
2803
  }
2804
- if (input.ScalingParameters !== undefined && input.ScalingParameters !== null) {
2804
+ if (input.ScalingParameters != null) {
2805
2805
  var memberEntries = serializeAws_queryScalingParameters(input.ScalingParameters, context);
2806
2806
  Object.entries(memberEntries).forEach(function (_a) {
2807
2807
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2813,10 +2813,10 @@ var serializeAws_queryUpdateScalingParametersRequest = function (input, context)
2813
2813
  };
2814
2814
  var serializeAws_queryUpdateServiceAccessPoliciesRequest = function (input, context) {
2815
2815
  var entries = {};
2816
- if (input.DomainName !== undefined && input.DomainName !== null) {
2816
+ if (input.DomainName != null) {
2817
2817
  entries["DomainName"] = input.DomainName;
2818
2818
  }
2819
- if (input.AccessPolicies !== undefined && input.AccessPolicies !== null) {
2819
+ if (input.AccessPolicies != null) {
2820
2820
  entries["AccessPolicies"] = input.AccessPolicies;
2821
2821
  }
2822
2822
  return entries;
@@ -2893,9 +2893,6 @@ var deserializeAws_queryAnalysisSchemeStatusList = function (output, context) {
2893
2893
  return (output || [])
2894
2894
  .filter(function (e) { return e != null; })
2895
2895
  .map(function (entry) {
2896
- if (entry === null) {
2897
- return null;
2898
- }
2899
2896
  return deserializeAws_queryAnalysisSchemeStatus(entry, context);
2900
2897
  });
2901
2898
  };
@@ -3303,9 +3300,6 @@ var deserializeAws_queryDomainStatusList = function (output, context) {
3303
3300
  return (output || [])
3304
3301
  .filter(function (e) { return e != null; })
3305
3302
  .map(function (entry) {
3306
- if (entry === null) {
3307
- return null;
3308
- }
3309
3303
  return deserializeAws_queryDomainStatus(entry, context);
3310
3304
  });
3311
3305
  };
@@ -3393,9 +3387,6 @@ var deserializeAws_queryExpressionStatusList = function (output, context) {
3393
3387
  return (output || [])
3394
3388
  .filter(function (e) { return e != null; })
3395
3389
  .map(function (entry) {
3396
- if (entry === null) {
3397
- return null;
3398
- }
3399
3390
  return deserializeAws_queryExpressionStatus(entry, context);
3400
3391
  });
3401
3392
  };
@@ -3403,9 +3394,6 @@ var deserializeAws_queryFieldNameList = function (output, context) {
3403
3394
  return (output || [])
3404
3395
  .filter(function (e) { return e != null; })
3405
3396
  .map(function (entry) {
3406
- if (entry === null) {
3407
- return null;
3408
- }
3409
3397
  return __expectString(entry);
3410
3398
  });
3411
3399
  };
@@ -3495,9 +3483,6 @@ var deserializeAws_queryIndexFieldStatusList = function (output, context) {
3495
3483
  return (output || [])
3496
3484
  .filter(function (e) { return e != null; })
3497
3485
  .map(function (entry) {
3498
- if (entry === null) {
3499
- return null;
3500
- }
3501
3486
  return deserializeAws_queryIndexFieldStatus(entry, context);
3502
3487
  });
3503
3488
  };
@@ -3822,9 +3807,6 @@ var deserializeAws_querySuggesterStatusList = function (output, context) {
3822
3807
  return (output || [])
3823
3808
  .filter(function (e) { return e != null; })
3824
3809
  .map(function (entry) {
3825
- if (entry === null) {
3826
- return null;
3827
- }
3828
3810
  return deserializeAws_querySuggesterStatus(entry, context);
3829
3811
  });
3830
3812
  };