@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
@@ -363,7 +363,6 @@ const deserializeAws_queryBuildSuggestersCommandError = async (output, context)
363
363
  ...output,
364
364
  body: await parseBody(output.body, context),
365
365
  };
366
- let response;
367
366
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
368
367
  switch (errorCode) {
369
368
  case "BaseException":
@@ -380,14 +379,12 @@ const deserializeAws_queryBuildSuggestersCommandError = async (output, context)
380
379
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
381
380
  default:
382
381
  const parsedBody = parsedOutput.body;
383
- const $metadata = deserializeMetadata(output);
384
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
385
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
386
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
387
- $fault: "client",
388
- $metadata,
382
+ (0, smithy_client_1.throwDefaultError)({
383
+ output,
384
+ parsedBody: parsedBody.Error,
385
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
386
+ errorCode,
389
387
  });
390
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
391
388
  }
392
389
  };
393
390
  const deserializeAws_queryCreateDomainCommand = async (output, context) => {
@@ -409,7 +406,6 @@ const deserializeAws_queryCreateDomainCommandError = async (output, context) =>
409
406
  ...output,
410
407
  body: await parseBody(output.body, context),
411
408
  };
412
- let response;
413
409
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
414
410
  switch (errorCode) {
415
411
  case "BaseException":
@@ -429,14 +425,12 @@ const deserializeAws_queryCreateDomainCommandError = async (output, context) =>
429
425
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
430
426
  default:
431
427
  const parsedBody = parsedOutput.body;
432
- const $metadata = deserializeMetadata(output);
433
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
434
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
435
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
436
- $fault: "client",
437
- $metadata,
428
+ (0, smithy_client_1.throwDefaultError)({
429
+ output,
430
+ parsedBody: parsedBody.Error,
431
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
432
+ errorCode,
438
433
  });
439
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
440
434
  }
441
435
  };
442
436
  const deserializeAws_queryDefineAnalysisSchemeCommand = async (output, context) => {
@@ -458,7 +452,6 @@ const deserializeAws_queryDefineAnalysisSchemeCommandError = async (output, cont
458
452
  ...output,
459
453
  body: await parseBody(output.body, context),
460
454
  };
461
- let response;
462
455
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
463
456
  switch (errorCode) {
464
457
  case "BaseException":
@@ -481,14 +474,12 @@ const deserializeAws_queryDefineAnalysisSchemeCommandError = async (output, cont
481
474
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
482
475
  default:
483
476
  const parsedBody = parsedOutput.body;
484
- const $metadata = deserializeMetadata(output);
485
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
486
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
487
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
488
- $fault: "client",
489
- $metadata,
477
+ (0, smithy_client_1.throwDefaultError)({
478
+ output,
479
+ parsedBody: parsedBody.Error,
480
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
481
+ errorCode,
490
482
  });
491
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
492
483
  }
493
484
  };
494
485
  const deserializeAws_queryDefineExpressionCommand = async (output, context) => {
@@ -510,7 +501,6 @@ const deserializeAws_queryDefineExpressionCommandError = async (output, context)
510
501
  ...output,
511
502
  body: await parseBody(output.body, context),
512
503
  };
513
- let response;
514
504
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
515
505
  switch (errorCode) {
516
506
  case "BaseException":
@@ -533,14 +523,12 @@ const deserializeAws_queryDefineExpressionCommandError = async (output, context)
533
523
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
534
524
  default:
535
525
  const parsedBody = parsedOutput.body;
536
- const $metadata = deserializeMetadata(output);
537
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
538
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
539
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
540
- $fault: "client",
541
- $metadata,
526
+ (0, smithy_client_1.throwDefaultError)({
527
+ output,
528
+ parsedBody: parsedBody.Error,
529
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
530
+ errorCode,
542
531
  });
543
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
544
532
  }
545
533
  };
546
534
  const deserializeAws_queryDefineIndexFieldCommand = async (output, context) => {
@@ -562,7 +550,6 @@ const deserializeAws_queryDefineIndexFieldCommandError = async (output, context)
562
550
  ...output,
563
551
  body: await parseBody(output.body, context),
564
552
  };
565
- let response;
566
553
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
567
554
  switch (errorCode) {
568
555
  case "BaseException":
@@ -585,14 +572,12 @@ const deserializeAws_queryDefineIndexFieldCommandError = async (output, context)
585
572
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
586
573
  default:
587
574
  const parsedBody = parsedOutput.body;
588
- const $metadata = deserializeMetadata(output);
589
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
590
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
591
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
592
- $fault: "client",
593
- $metadata,
575
+ (0, smithy_client_1.throwDefaultError)({
576
+ output,
577
+ parsedBody: parsedBody.Error,
578
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
579
+ errorCode,
594
580
  });
595
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
596
581
  }
597
582
  };
598
583
  const deserializeAws_queryDefineSuggesterCommand = async (output, context) => {
@@ -614,7 +599,6 @@ const deserializeAws_queryDefineSuggesterCommandError = async (output, context)
614
599
  ...output,
615
600
  body: await parseBody(output.body, context),
616
601
  };
617
- let response;
618
602
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
619
603
  switch (errorCode) {
620
604
  case "BaseException":
@@ -637,14 +621,12 @@ const deserializeAws_queryDefineSuggesterCommandError = async (output, context)
637
621
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
638
622
  default:
639
623
  const parsedBody = parsedOutput.body;
640
- const $metadata = deserializeMetadata(output);
641
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
642
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
643
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
644
- $fault: "client",
645
- $metadata,
624
+ (0, smithy_client_1.throwDefaultError)({
625
+ output,
626
+ parsedBody: parsedBody.Error,
627
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
628
+ errorCode,
646
629
  });
647
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
648
630
  }
649
631
  };
650
632
  const deserializeAws_queryDeleteAnalysisSchemeCommand = async (output, context) => {
@@ -666,7 +648,6 @@ const deserializeAws_queryDeleteAnalysisSchemeCommandError = async (output, cont
666
648
  ...output,
667
649
  body: await parseBody(output.body, context),
668
650
  };
669
- let response;
670
651
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
671
652
  switch (errorCode) {
672
653
  case "BaseException":
@@ -686,14 +667,12 @@ const deserializeAws_queryDeleteAnalysisSchemeCommandError = async (output, cont
686
667
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
687
668
  default:
688
669
  const parsedBody = parsedOutput.body;
689
- const $metadata = deserializeMetadata(output);
690
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
691
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
692
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
693
- $fault: "client",
694
- $metadata,
670
+ (0, smithy_client_1.throwDefaultError)({
671
+ output,
672
+ parsedBody: parsedBody.Error,
673
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
674
+ errorCode,
695
675
  });
696
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
697
676
  }
698
677
  };
699
678
  const deserializeAws_queryDeleteDomainCommand = async (output, context) => {
@@ -715,7 +694,6 @@ const deserializeAws_queryDeleteDomainCommandError = async (output, context) =>
715
694
  ...output,
716
695
  body: await parseBody(output.body, context),
717
696
  };
718
- let response;
719
697
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
720
698
  switch (errorCode) {
721
699
  case "BaseException":
@@ -726,14 +704,12 @@ const deserializeAws_queryDeleteDomainCommandError = async (output, context) =>
726
704
  throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
727
705
  default:
728
706
  const parsedBody = parsedOutput.body;
729
- const $metadata = deserializeMetadata(output);
730
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
731
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
732
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
733
- $fault: "client",
734
- $metadata,
707
+ (0, smithy_client_1.throwDefaultError)({
708
+ output,
709
+ parsedBody: parsedBody.Error,
710
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
711
+ errorCode,
735
712
  });
736
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
737
713
  }
738
714
  };
739
715
  const deserializeAws_queryDeleteExpressionCommand = async (output, context) => {
@@ -755,7 +731,6 @@ const deserializeAws_queryDeleteExpressionCommandError = async (output, context)
755
731
  ...output,
756
732
  body: await parseBody(output.body, context),
757
733
  };
758
- let response;
759
734
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
760
735
  switch (errorCode) {
761
736
  case "BaseException":
@@ -775,14 +750,12 @@ const deserializeAws_queryDeleteExpressionCommandError = async (output, context)
775
750
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
776
751
  default:
777
752
  const parsedBody = parsedOutput.body;
778
- const $metadata = deserializeMetadata(output);
779
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
780
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
781
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
782
- $fault: "client",
783
- $metadata,
753
+ (0, smithy_client_1.throwDefaultError)({
754
+ output,
755
+ parsedBody: parsedBody.Error,
756
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
757
+ errorCode,
784
758
  });
785
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
786
759
  }
787
760
  };
788
761
  const deserializeAws_queryDeleteIndexFieldCommand = async (output, context) => {
@@ -804,7 +777,6 @@ const deserializeAws_queryDeleteIndexFieldCommandError = async (output, context)
804
777
  ...output,
805
778
  body: await parseBody(output.body, context),
806
779
  };
807
- let response;
808
780
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
809
781
  switch (errorCode) {
810
782
  case "BaseException":
@@ -824,14 +796,12 @@ const deserializeAws_queryDeleteIndexFieldCommandError = async (output, context)
824
796
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
825
797
  default:
826
798
  const parsedBody = parsedOutput.body;
827
- const $metadata = deserializeMetadata(output);
828
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
829
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
830
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
831
- $fault: "client",
832
- $metadata,
799
+ (0, smithy_client_1.throwDefaultError)({
800
+ output,
801
+ parsedBody: parsedBody.Error,
802
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
803
+ errorCode,
833
804
  });
834
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
835
805
  }
836
806
  };
837
807
  const deserializeAws_queryDeleteSuggesterCommand = async (output, context) => {
@@ -853,7 +823,6 @@ const deserializeAws_queryDeleteSuggesterCommandError = async (output, context)
853
823
  ...output,
854
824
  body: await parseBody(output.body, context),
855
825
  };
856
- let response;
857
826
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
858
827
  switch (errorCode) {
859
828
  case "BaseException":
@@ -873,14 +842,12 @@ const deserializeAws_queryDeleteSuggesterCommandError = async (output, context)
873
842
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
874
843
  default:
875
844
  const parsedBody = parsedOutput.body;
876
- const $metadata = deserializeMetadata(output);
877
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
878
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
879
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
880
- $fault: "client",
881
- $metadata,
845
+ (0, smithy_client_1.throwDefaultError)({
846
+ output,
847
+ parsedBody: parsedBody.Error,
848
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
849
+ errorCode,
882
850
  });
883
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
884
851
  }
885
852
  };
886
853
  const deserializeAws_queryDescribeAnalysisSchemesCommand = async (output, context) => {
@@ -902,7 +869,6 @@ const deserializeAws_queryDescribeAnalysisSchemesCommandError = async (output, c
902
869
  ...output,
903
870
  body: await parseBody(output.body, context),
904
871
  };
905
- let response;
906
872
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
907
873
  switch (errorCode) {
908
874
  case "BaseException":
@@ -916,14 +882,12 @@ const deserializeAws_queryDescribeAnalysisSchemesCommandError = async (output, c
916
882
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
917
883
  default:
918
884
  const parsedBody = parsedOutput.body;
919
- const $metadata = deserializeMetadata(output);
920
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
921
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
922
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
923
- $fault: "client",
924
- $metadata,
885
+ (0, smithy_client_1.throwDefaultError)({
886
+ output,
887
+ parsedBody: parsedBody.Error,
888
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
889
+ errorCode,
925
890
  });
926
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
927
891
  }
928
892
  };
929
893
  const deserializeAws_queryDescribeAvailabilityOptionsCommand = async (output, context) => {
@@ -945,7 +909,6 @@ const deserializeAws_queryDescribeAvailabilityOptionsCommandError = async (outpu
945
909
  ...output,
946
910
  body: await parseBody(output.body, context),
947
911
  };
948
- let response;
949
912
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
950
913
  switch (errorCode) {
951
914
  case "BaseException":
@@ -968,14 +931,12 @@ const deserializeAws_queryDescribeAvailabilityOptionsCommandError = async (outpu
968
931
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
969
932
  default:
970
933
  const parsedBody = parsedOutput.body;
971
- const $metadata = deserializeMetadata(output);
972
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
973
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
974
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
975
- $fault: "client",
976
- $metadata,
934
+ (0, smithy_client_1.throwDefaultError)({
935
+ output,
936
+ parsedBody: parsedBody.Error,
937
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
938
+ errorCode,
977
939
  });
978
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
979
940
  }
980
941
  };
981
942
  const deserializeAws_queryDescribeDomainEndpointOptionsCommand = async (output, context) => {
@@ -997,7 +958,6 @@ const deserializeAws_queryDescribeDomainEndpointOptionsCommandError = async (out
997
958
  ...output,
998
959
  body: await parseBody(output.body, context),
999
960
  };
1000
- let response;
1001
961
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1002
962
  switch (errorCode) {
1003
963
  case "BaseException":
@@ -1017,14 +977,12 @@ const deserializeAws_queryDescribeDomainEndpointOptionsCommandError = async (out
1017
977
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1018
978
  default:
1019
979
  const parsedBody = parsedOutput.body;
1020
- const $metadata = deserializeMetadata(output);
1021
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1022
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1023
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1024
- $fault: "client",
1025
- $metadata,
980
+ (0, smithy_client_1.throwDefaultError)({
981
+ output,
982
+ parsedBody: parsedBody.Error,
983
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
984
+ errorCode,
1026
985
  });
1027
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1028
986
  }
1029
987
  };
1030
988
  const deserializeAws_queryDescribeDomainsCommand = async (output, context) => {
@@ -1046,7 +1004,6 @@ const deserializeAws_queryDescribeDomainsCommandError = async (output, context)
1046
1004
  ...output,
1047
1005
  body: await parseBody(output.body, context),
1048
1006
  };
1049
- let response;
1050
1007
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1051
1008
  switch (errorCode) {
1052
1009
  case "BaseException":
@@ -1057,14 +1014,12 @@ const deserializeAws_queryDescribeDomainsCommandError = async (output, context)
1057
1014
  throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
1058
1015
  default:
1059
1016
  const parsedBody = parsedOutput.body;
1060
- const $metadata = deserializeMetadata(output);
1061
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1062
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1063
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1064
- $fault: "client",
1065
- $metadata,
1017
+ (0, smithy_client_1.throwDefaultError)({
1018
+ output,
1019
+ parsedBody: parsedBody.Error,
1020
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1021
+ errorCode,
1066
1022
  });
1067
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1068
1023
  }
1069
1024
  };
1070
1025
  const deserializeAws_queryDescribeExpressionsCommand = async (output, context) => {
@@ -1086,7 +1041,6 @@ const deserializeAws_queryDescribeExpressionsCommandError = async (output, conte
1086
1041
  ...output,
1087
1042
  body: await parseBody(output.body, context),
1088
1043
  };
1089
- let response;
1090
1044
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1091
1045
  switch (errorCode) {
1092
1046
  case "BaseException":
@@ -1100,14 +1054,12 @@ const deserializeAws_queryDescribeExpressionsCommandError = async (output, conte
1100
1054
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1101
1055
  default:
1102
1056
  const parsedBody = parsedOutput.body;
1103
- const $metadata = deserializeMetadata(output);
1104
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1105
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1106
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1107
- $fault: "client",
1108
- $metadata,
1057
+ (0, smithy_client_1.throwDefaultError)({
1058
+ output,
1059
+ parsedBody: parsedBody.Error,
1060
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1061
+ errorCode,
1109
1062
  });
1110
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1111
1063
  }
1112
1064
  };
1113
1065
  const deserializeAws_queryDescribeIndexFieldsCommand = async (output, context) => {
@@ -1129,7 +1081,6 @@ const deserializeAws_queryDescribeIndexFieldsCommandError = async (output, conte
1129
1081
  ...output,
1130
1082
  body: await parseBody(output.body, context),
1131
1083
  };
1132
- let response;
1133
1084
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1134
1085
  switch (errorCode) {
1135
1086
  case "BaseException":
@@ -1143,14 +1094,12 @@ const deserializeAws_queryDescribeIndexFieldsCommandError = async (output, conte
1143
1094
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1144
1095
  default:
1145
1096
  const parsedBody = parsedOutput.body;
1146
- const $metadata = deserializeMetadata(output);
1147
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1148
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1149
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1150
- $fault: "client",
1151
- $metadata,
1097
+ (0, smithy_client_1.throwDefaultError)({
1098
+ output,
1099
+ parsedBody: parsedBody.Error,
1100
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1101
+ errorCode,
1152
1102
  });
1153
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1154
1103
  }
1155
1104
  };
1156
1105
  const deserializeAws_queryDescribeScalingParametersCommand = async (output, context) => {
@@ -1172,7 +1121,6 @@ const deserializeAws_queryDescribeScalingParametersCommandError = async (output,
1172
1121
  ...output,
1173
1122
  body: await parseBody(output.body, context),
1174
1123
  };
1175
- let response;
1176
1124
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1177
1125
  switch (errorCode) {
1178
1126
  case "BaseException":
@@ -1186,14 +1134,12 @@ const deserializeAws_queryDescribeScalingParametersCommandError = async (output,
1186
1134
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1187
1135
  default:
1188
1136
  const parsedBody = parsedOutput.body;
1189
- const $metadata = deserializeMetadata(output);
1190
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1191
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1192
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1193
- $fault: "client",
1194
- $metadata,
1137
+ (0, smithy_client_1.throwDefaultError)({
1138
+ output,
1139
+ parsedBody: parsedBody.Error,
1140
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1141
+ errorCode,
1195
1142
  });
1196
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1197
1143
  }
1198
1144
  };
1199
1145
  const deserializeAws_queryDescribeServiceAccessPoliciesCommand = async (output, context) => {
@@ -1215,7 +1161,6 @@ const deserializeAws_queryDescribeServiceAccessPoliciesCommandError = async (out
1215
1161
  ...output,
1216
1162
  body: await parseBody(output.body, context),
1217
1163
  };
1218
- let response;
1219
1164
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1220
1165
  switch (errorCode) {
1221
1166
  case "BaseException":
@@ -1229,14 +1174,12 @@ const deserializeAws_queryDescribeServiceAccessPoliciesCommandError = async (out
1229
1174
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1230
1175
  default:
1231
1176
  const parsedBody = parsedOutput.body;
1232
- const $metadata = deserializeMetadata(output);
1233
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1234
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1235
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1236
- $fault: "client",
1237
- $metadata,
1177
+ (0, smithy_client_1.throwDefaultError)({
1178
+ output,
1179
+ parsedBody: parsedBody.Error,
1180
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1181
+ errorCode,
1238
1182
  });
1239
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1240
1183
  }
1241
1184
  };
1242
1185
  const deserializeAws_queryDescribeSuggestersCommand = async (output, context) => {
@@ -1258,7 +1201,6 @@ const deserializeAws_queryDescribeSuggestersCommandError = async (output, contex
1258
1201
  ...output,
1259
1202
  body: await parseBody(output.body, context),
1260
1203
  };
1261
- let response;
1262
1204
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1263
1205
  switch (errorCode) {
1264
1206
  case "BaseException":
@@ -1272,14 +1214,12 @@ const deserializeAws_queryDescribeSuggestersCommandError = async (output, contex
1272
1214
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1273
1215
  default:
1274
1216
  const parsedBody = parsedOutput.body;
1275
- const $metadata = deserializeMetadata(output);
1276
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1277
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1278
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1279
- $fault: "client",
1280
- $metadata,
1217
+ (0, smithy_client_1.throwDefaultError)({
1218
+ output,
1219
+ parsedBody: parsedBody.Error,
1220
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1221
+ errorCode,
1281
1222
  });
1282
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1283
1223
  }
1284
1224
  };
1285
1225
  const deserializeAws_queryIndexDocumentsCommand = async (output, context) => {
@@ -1301,7 +1241,6 @@ const deserializeAws_queryIndexDocumentsCommandError = async (output, context) =
1301
1241
  ...output,
1302
1242
  body: await parseBody(output.body, context),
1303
1243
  };
1304
- let response;
1305
1244
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1306
1245
  switch (errorCode) {
1307
1246
  case "BaseException":
@@ -1318,14 +1257,12 @@ const deserializeAws_queryIndexDocumentsCommandError = async (output, context) =
1318
1257
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
1319
1258
  default:
1320
1259
  const parsedBody = parsedOutput.body;
1321
- const $metadata = deserializeMetadata(output);
1322
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1323
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1324
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1325
- $fault: "client",
1326
- $metadata,
1260
+ (0, smithy_client_1.throwDefaultError)({
1261
+ output,
1262
+ parsedBody: parsedBody.Error,
1263
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1264
+ errorCode,
1327
1265
  });
1328
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1329
1266
  }
1330
1267
  };
1331
1268
  const deserializeAws_queryListDomainNamesCommand = async (output, context) => {
@@ -1347,7 +1284,6 @@ const deserializeAws_queryListDomainNamesCommandError = async (output, context)
1347
1284
  ...output,
1348
1285
  body: await parseBody(output.body, context),
1349
1286
  };
1350
- let response;
1351
1287
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1352
1288
  switch (errorCode) {
1353
1289
  case "BaseException":
@@ -1355,14 +1291,12 @@ const deserializeAws_queryListDomainNamesCommandError = async (output, context)
1355
1291
  throw await deserializeAws_queryBaseExceptionResponse(parsedOutput, context);
1356
1292
  default:
1357
1293
  const parsedBody = parsedOutput.body;
1358
- const $metadata = deserializeMetadata(output);
1359
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1360
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1361
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1362
- $fault: "client",
1363
- $metadata,
1294
+ (0, smithy_client_1.throwDefaultError)({
1295
+ output,
1296
+ parsedBody: parsedBody.Error,
1297
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1298
+ errorCode,
1364
1299
  });
1365
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1366
1300
  }
1367
1301
  };
1368
1302
  const deserializeAws_queryUpdateAvailabilityOptionsCommand = async (output, context) => {
@@ -1384,7 +1318,6 @@ const deserializeAws_queryUpdateAvailabilityOptionsCommandError = async (output,
1384
1318
  ...output,
1385
1319
  body: await parseBody(output.body, context),
1386
1320
  };
1387
- let response;
1388
1321
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1389
1322
  switch (errorCode) {
1390
1323
  case "BaseException":
@@ -1410,14 +1343,12 @@ const deserializeAws_queryUpdateAvailabilityOptionsCommandError = async (output,
1410
1343
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
1411
1344
  default:
1412
1345
  const parsedBody = parsedOutput.body;
1413
- const $metadata = deserializeMetadata(output);
1414
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1415
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1416
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1417
- $fault: "client",
1418
- $metadata,
1346
+ (0, smithy_client_1.throwDefaultError)({
1347
+ output,
1348
+ parsedBody: parsedBody.Error,
1349
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1350
+ errorCode,
1419
1351
  });
1420
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1421
1352
  }
1422
1353
  };
1423
1354
  const deserializeAws_queryUpdateDomainEndpointOptionsCommand = async (output, context) => {
@@ -1439,7 +1370,6 @@ const deserializeAws_queryUpdateDomainEndpointOptionsCommandError = async (outpu
1439
1370
  ...output,
1440
1371
  body: await parseBody(output.body, context),
1441
1372
  };
1442
- let response;
1443
1373
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1444
1374
  switch (errorCode) {
1445
1375
  case "BaseException":
@@ -1465,14 +1395,12 @@ const deserializeAws_queryUpdateDomainEndpointOptionsCommandError = async (outpu
1465
1395
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
1466
1396
  default:
1467
1397
  const parsedBody = parsedOutput.body;
1468
- const $metadata = deserializeMetadata(output);
1469
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1470
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1471
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1472
- $fault: "client",
1473
- $metadata,
1398
+ (0, smithy_client_1.throwDefaultError)({
1399
+ output,
1400
+ parsedBody: parsedBody.Error,
1401
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1402
+ errorCode,
1474
1403
  });
1475
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1476
1404
  }
1477
1405
  };
1478
1406
  const deserializeAws_queryUpdateScalingParametersCommand = async (output, context) => {
@@ -1494,7 +1422,6 @@ const deserializeAws_queryUpdateScalingParametersCommandError = async (output, c
1494
1422
  ...output,
1495
1423
  body: await parseBody(output.body, context),
1496
1424
  };
1497
- let response;
1498
1425
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1499
1426
  switch (errorCode) {
1500
1427
  case "BaseException":
@@ -1517,14 +1444,12 @@ const deserializeAws_queryUpdateScalingParametersCommandError = async (output, c
1517
1444
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
1518
1445
  default:
1519
1446
  const parsedBody = parsedOutput.body;
1520
- const $metadata = deserializeMetadata(output);
1521
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1522
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1523
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1524
- $fault: "client",
1525
- $metadata,
1447
+ (0, smithy_client_1.throwDefaultError)({
1448
+ output,
1449
+ parsedBody: parsedBody.Error,
1450
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1451
+ errorCode,
1526
1452
  });
1527
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1528
1453
  }
1529
1454
  };
1530
1455
  const deserializeAws_queryUpdateServiceAccessPoliciesCommand = async (output, context) => {
@@ -1546,7 +1471,6 @@ const deserializeAws_queryUpdateServiceAccessPoliciesCommandError = async (outpu
1546
1471
  ...output,
1547
1472
  body: await parseBody(output.body, context),
1548
1473
  };
1549
- let response;
1550
1474
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1551
1475
  switch (errorCode) {
1552
1476
  case "BaseException":
@@ -1569,14 +1493,12 @@ const deserializeAws_queryUpdateServiceAccessPoliciesCommandError = async (outpu
1569
1493
  throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
1570
1494
  default:
1571
1495
  const parsedBody = parsedOutput.body;
1572
- const $metadata = deserializeMetadata(output);
1573
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1574
- response = new CloudSearchServiceException_1.CloudSearchServiceException({
1575
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1576
- $fault: "client",
1577
- $metadata,
1496
+ (0, smithy_client_1.throwDefaultError)({
1497
+ output,
1498
+ parsedBody: parsedBody.Error,
1499
+ exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
1500
+ errorCode,
1578
1501
  });
1579
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1580
1502
  }
1581
1503
  };
1582
1504
  const deserializeAws_queryBaseExceptionResponse = async (parsedOutput, context) => {
@@ -1653,32 +1575,32 @@ const deserializeAws_queryValidationExceptionResponse = async (parsedOutput, con
1653
1575
  };
1654
1576
  const serializeAws_queryAnalysisOptions = (input, context) => {
1655
1577
  const entries = {};
1656
- if (input.Synonyms !== undefined && input.Synonyms !== null) {
1578
+ if (input.Synonyms != null) {
1657
1579
  entries["Synonyms"] = input.Synonyms;
1658
1580
  }
1659
- if (input.Stopwords !== undefined && input.Stopwords !== null) {
1581
+ if (input.Stopwords != null) {
1660
1582
  entries["Stopwords"] = input.Stopwords;
1661
1583
  }
1662
- if (input.StemmingDictionary !== undefined && input.StemmingDictionary !== null) {
1584
+ if (input.StemmingDictionary != null) {
1663
1585
  entries["StemmingDictionary"] = input.StemmingDictionary;
1664
1586
  }
1665
- if (input.JapaneseTokenizationDictionary !== undefined && input.JapaneseTokenizationDictionary !== null) {
1587
+ if (input.JapaneseTokenizationDictionary != null) {
1666
1588
  entries["JapaneseTokenizationDictionary"] = input.JapaneseTokenizationDictionary;
1667
1589
  }
1668
- if (input.AlgorithmicStemming !== undefined && input.AlgorithmicStemming !== null) {
1590
+ if (input.AlgorithmicStemming != null) {
1669
1591
  entries["AlgorithmicStemming"] = input.AlgorithmicStemming;
1670
1592
  }
1671
1593
  return entries;
1672
1594
  };
1673
1595
  const serializeAws_queryAnalysisScheme = (input, context) => {
1674
1596
  const entries = {};
1675
- if (input.AnalysisSchemeName !== undefined && input.AnalysisSchemeName !== null) {
1597
+ if (input.AnalysisSchemeName != null) {
1676
1598
  entries["AnalysisSchemeName"] = input.AnalysisSchemeName;
1677
1599
  }
1678
- if (input.AnalysisSchemeLanguage !== undefined && input.AnalysisSchemeLanguage !== null) {
1600
+ if (input.AnalysisSchemeLanguage != null) {
1679
1601
  entries["AnalysisSchemeLanguage"] = input.AnalysisSchemeLanguage;
1680
1602
  }
1681
- if (input.AnalysisOptions !== undefined && input.AnalysisOptions !== null) {
1603
+ if (input.AnalysisOptions != null) {
1682
1604
  const memberEntries = serializeAws_queryAnalysisOptions(input.AnalysisOptions, context);
1683
1605
  Object.entries(memberEntries).forEach(([key, value]) => {
1684
1606
  const loc = `AnalysisOptions.${key}`;
@@ -1689,65 +1611,65 @@ const serializeAws_queryAnalysisScheme = (input, context) => {
1689
1611
  };
1690
1612
  const serializeAws_queryBuildSuggestersRequest = (input, context) => {
1691
1613
  const entries = {};
1692
- if (input.DomainName !== undefined && input.DomainName !== null) {
1614
+ if (input.DomainName != null) {
1693
1615
  entries["DomainName"] = input.DomainName;
1694
1616
  }
1695
1617
  return entries;
1696
1618
  };
1697
1619
  const serializeAws_queryCreateDomainRequest = (input, context) => {
1698
1620
  const entries = {};
1699
- if (input.DomainName !== undefined && input.DomainName !== null) {
1621
+ if (input.DomainName != null) {
1700
1622
  entries["DomainName"] = input.DomainName;
1701
1623
  }
1702
1624
  return entries;
1703
1625
  };
1704
1626
  const serializeAws_queryDateArrayOptions = (input, context) => {
1705
1627
  const entries = {};
1706
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
1628
+ if (input.DefaultValue != null) {
1707
1629
  entries["DefaultValue"] = input.DefaultValue;
1708
1630
  }
1709
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
1631
+ if (input.SourceFields != null) {
1710
1632
  entries["SourceFields"] = input.SourceFields;
1711
1633
  }
1712
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
1634
+ if (input.FacetEnabled != null) {
1713
1635
  entries["FacetEnabled"] = input.FacetEnabled;
1714
1636
  }
1715
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
1637
+ if (input.SearchEnabled != null) {
1716
1638
  entries["SearchEnabled"] = input.SearchEnabled;
1717
1639
  }
1718
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
1640
+ if (input.ReturnEnabled != null) {
1719
1641
  entries["ReturnEnabled"] = input.ReturnEnabled;
1720
1642
  }
1721
1643
  return entries;
1722
1644
  };
1723
1645
  const serializeAws_queryDateOptions = (input, context) => {
1724
1646
  const entries = {};
1725
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
1647
+ if (input.DefaultValue != null) {
1726
1648
  entries["DefaultValue"] = input.DefaultValue;
1727
1649
  }
1728
- if (input.SourceField !== undefined && input.SourceField !== null) {
1650
+ if (input.SourceField != null) {
1729
1651
  entries["SourceField"] = input.SourceField;
1730
1652
  }
1731
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
1653
+ if (input.FacetEnabled != null) {
1732
1654
  entries["FacetEnabled"] = input.FacetEnabled;
1733
1655
  }
1734
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
1656
+ if (input.SearchEnabled != null) {
1735
1657
  entries["SearchEnabled"] = input.SearchEnabled;
1736
1658
  }
1737
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
1659
+ if (input.ReturnEnabled != null) {
1738
1660
  entries["ReturnEnabled"] = input.ReturnEnabled;
1739
1661
  }
1740
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
1662
+ if (input.SortEnabled != null) {
1741
1663
  entries["SortEnabled"] = input.SortEnabled;
1742
1664
  }
1743
1665
  return entries;
1744
1666
  };
1745
1667
  const serializeAws_queryDefineAnalysisSchemeRequest = (input, context) => {
1746
1668
  const entries = {};
1747
- if (input.DomainName !== undefined && input.DomainName !== null) {
1669
+ if (input.DomainName != null) {
1748
1670
  entries["DomainName"] = input.DomainName;
1749
1671
  }
1750
- if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
1672
+ if (input.AnalysisScheme != null) {
1751
1673
  const memberEntries = serializeAws_queryAnalysisScheme(input.AnalysisScheme, context);
1752
1674
  Object.entries(memberEntries).forEach(([key, value]) => {
1753
1675
  const loc = `AnalysisScheme.${key}`;
@@ -1758,10 +1680,10 @@ const serializeAws_queryDefineAnalysisSchemeRequest = (input, context) => {
1758
1680
  };
1759
1681
  const serializeAws_queryDefineExpressionRequest = (input, context) => {
1760
1682
  const entries = {};
1761
- if (input.DomainName !== undefined && input.DomainName !== null) {
1683
+ if (input.DomainName != null) {
1762
1684
  entries["DomainName"] = input.DomainName;
1763
1685
  }
1764
- if (input.Expression !== undefined && input.Expression !== null) {
1686
+ if (input.Expression != null) {
1765
1687
  const memberEntries = serializeAws_queryExpression(input.Expression, context);
1766
1688
  Object.entries(memberEntries).forEach(([key, value]) => {
1767
1689
  const loc = `Expression.${key}`;
@@ -1772,10 +1694,10 @@ const serializeAws_queryDefineExpressionRequest = (input, context) => {
1772
1694
  };
1773
1695
  const serializeAws_queryDefineIndexFieldRequest = (input, context) => {
1774
1696
  const entries = {};
1775
- if (input.DomainName !== undefined && input.DomainName !== null) {
1697
+ if (input.DomainName != null) {
1776
1698
  entries["DomainName"] = input.DomainName;
1777
1699
  }
1778
- if (input.IndexField !== undefined && input.IndexField !== null) {
1700
+ if (input.IndexField != null) {
1779
1701
  const memberEntries = serializeAws_queryIndexField(input.IndexField, context);
1780
1702
  Object.entries(memberEntries).forEach(([key, value]) => {
1781
1703
  const loc = `IndexField.${key}`;
@@ -1786,10 +1708,10 @@ const serializeAws_queryDefineIndexFieldRequest = (input, context) => {
1786
1708
  };
1787
1709
  const serializeAws_queryDefineSuggesterRequest = (input, context) => {
1788
1710
  const entries = {};
1789
- if (input.DomainName !== undefined && input.DomainName !== null) {
1711
+ if (input.DomainName != null) {
1790
1712
  entries["DomainName"] = input.DomainName;
1791
1713
  }
1792
- if (input.Suggester !== undefined && input.Suggester !== null) {
1714
+ if (input.Suggester != null) {
1793
1715
  const memberEntries = serializeAws_querySuggester(input.Suggester, context);
1794
1716
  Object.entries(memberEntries).forEach(([key, value]) => {
1795
1717
  const loc = `Suggester.${key}`;
@@ -1800,91 +1722,91 @@ const serializeAws_queryDefineSuggesterRequest = (input, context) => {
1800
1722
  };
1801
1723
  const serializeAws_queryDeleteAnalysisSchemeRequest = (input, context) => {
1802
1724
  const entries = {};
1803
- if (input.DomainName !== undefined && input.DomainName !== null) {
1725
+ if (input.DomainName != null) {
1804
1726
  entries["DomainName"] = input.DomainName;
1805
1727
  }
1806
- if (input.AnalysisSchemeName !== undefined && input.AnalysisSchemeName !== null) {
1728
+ if (input.AnalysisSchemeName != null) {
1807
1729
  entries["AnalysisSchemeName"] = input.AnalysisSchemeName;
1808
1730
  }
1809
1731
  return entries;
1810
1732
  };
1811
1733
  const serializeAws_queryDeleteDomainRequest = (input, context) => {
1812
1734
  const entries = {};
1813
- if (input.DomainName !== undefined && input.DomainName !== null) {
1735
+ if (input.DomainName != null) {
1814
1736
  entries["DomainName"] = input.DomainName;
1815
1737
  }
1816
1738
  return entries;
1817
1739
  };
1818
1740
  const serializeAws_queryDeleteExpressionRequest = (input, context) => {
1819
1741
  const entries = {};
1820
- if (input.DomainName !== undefined && input.DomainName !== null) {
1742
+ if (input.DomainName != null) {
1821
1743
  entries["DomainName"] = input.DomainName;
1822
1744
  }
1823
- if (input.ExpressionName !== undefined && input.ExpressionName !== null) {
1745
+ if (input.ExpressionName != null) {
1824
1746
  entries["ExpressionName"] = input.ExpressionName;
1825
1747
  }
1826
1748
  return entries;
1827
1749
  };
1828
1750
  const serializeAws_queryDeleteIndexFieldRequest = (input, context) => {
1829
1751
  const entries = {};
1830
- if (input.DomainName !== undefined && input.DomainName !== null) {
1752
+ if (input.DomainName != null) {
1831
1753
  entries["DomainName"] = input.DomainName;
1832
1754
  }
1833
- if (input.IndexFieldName !== undefined && input.IndexFieldName !== null) {
1755
+ if (input.IndexFieldName != null) {
1834
1756
  entries["IndexFieldName"] = input.IndexFieldName;
1835
1757
  }
1836
1758
  return entries;
1837
1759
  };
1838
1760
  const serializeAws_queryDeleteSuggesterRequest = (input, context) => {
1839
1761
  const entries = {};
1840
- if (input.DomainName !== undefined && input.DomainName !== null) {
1762
+ if (input.DomainName != null) {
1841
1763
  entries["DomainName"] = input.DomainName;
1842
1764
  }
1843
- if (input.SuggesterName !== undefined && input.SuggesterName !== null) {
1765
+ if (input.SuggesterName != null) {
1844
1766
  entries["SuggesterName"] = input.SuggesterName;
1845
1767
  }
1846
1768
  return entries;
1847
1769
  };
1848
1770
  const serializeAws_queryDescribeAnalysisSchemesRequest = (input, context) => {
1849
1771
  const entries = {};
1850
- if (input.DomainName !== undefined && input.DomainName !== null) {
1772
+ if (input.DomainName != null) {
1851
1773
  entries["DomainName"] = input.DomainName;
1852
1774
  }
1853
- if (input.AnalysisSchemeNames !== undefined && input.AnalysisSchemeNames !== null) {
1775
+ if (input.AnalysisSchemeNames != null) {
1854
1776
  const memberEntries = serializeAws_queryStandardNameList(input.AnalysisSchemeNames, context);
1855
1777
  Object.entries(memberEntries).forEach(([key, value]) => {
1856
1778
  const loc = `AnalysisSchemeNames.${key}`;
1857
1779
  entries[loc] = value;
1858
1780
  });
1859
1781
  }
1860
- if (input.Deployed !== undefined && input.Deployed !== null) {
1782
+ if (input.Deployed != null) {
1861
1783
  entries["Deployed"] = input.Deployed;
1862
1784
  }
1863
1785
  return entries;
1864
1786
  };
1865
1787
  const serializeAws_queryDescribeAvailabilityOptionsRequest = (input, context) => {
1866
1788
  const entries = {};
1867
- if (input.DomainName !== undefined && input.DomainName !== null) {
1789
+ if (input.DomainName != null) {
1868
1790
  entries["DomainName"] = input.DomainName;
1869
1791
  }
1870
- if (input.Deployed !== undefined && input.Deployed !== null) {
1792
+ if (input.Deployed != null) {
1871
1793
  entries["Deployed"] = input.Deployed;
1872
1794
  }
1873
1795
  return entries;
1874
1796
  };
1875
1797
  const serializeAws_queryDescribeDomainEndpointOptionsRequest = (input, context) => {
1876
1798
  const entries = {};
1877
- if (input.DomainName !== undefined && input.DomainName !== null) {
1799
+ if (input.DomainName != null) {
1878
1800
  entries["DomainName"] = input.DomainName;
1879
1801
  }
1880
- if (input.Deployed !== undefined && input.Deployed !== null) {
1802
+ if (input.Deployed != null) {
1881
1803
  entries["Deployed"] = input.Deployed;
1882
1804
  }
1883
1805
  return entries;
1884
1806
  };
1885
1807
  const serializeAws_queryDescribeDomainsRequest = (input, context) => {
1886
1808
  const entries = {};
1887
- if (input.DomainNames !== undefined && input.DomainNames !== null) {
1809
+ if (input.DomainNames != null) {
1888
1810
  const memberEntries = serializeAws_queryDomainNameList(input.DomainNames, context);
1889
1811
  Object.entries(memberEntries).forEach(([key, value]) => {
1890
1812
  const loc = `DomainNames.${key}`;
@@ -1895,91 +1817,91 @@ const serializeAws_queryDescribeDomainsRequest = (input, context) => {
1895
1817
  };
1896
1818
  const serializeAws_queryDescribeExpressionsRequest = (input, context) => {
1897
1819
  const entries = {};
1898
- if (input.DomainName !== undefined && input.DomainName !== null) {
1820
+ if (input.DomainName != null) {
1899
1821
  entries["DomainName"] = input.DomainName;
1900
1822
  }
1901
- if (input.ExpressionNames !== undefined && input.ExpressionNames !== null) {
1823
+ if (input.ExpressionNames != null) {
1902
1824
  const memberEntries = serializeAws_queryStandardNameList(input.ExpressionNames, context);
1903
1825
  Object.entries(memberEntries).forEach(([key, value]) => {
1904
1826
  const loc = `ExpressionNames.${key}`;
1905
1827
  entries[loc] = value;
1906
1828
  });
1907
1829
  }
1908
- if (input.Deployed !== undefined && input.Deployed !== null) {
1830
+ if (input.Deployed != null) {
1909
1831
  entries["Deployed"] = input.Deployed;
1910
1832
  }
1911
1833
  return entries;
1912
1834
  };
1913
1835
  const serializeAws_queryDescribeIndexFieldsRequest = (input, context) => {
1914
1836
  const entries = {};
1915
- if (input.DomainName !== undefined && input.DomainName !== null) {
1837
+ if (input.DomainName != null) {
1916
1838
  entries["DomainName"] = input.DomainName;
1917
1839
  }
1918
- if (input.FieldNames !== undefined && input.FieldNames !== null) {
1840
+ if (input.FieldNames != null) {
1919
1841
  const memberEntries = serializeAws_queryDynamicFieldNameList(input.FieldNames, context);
1920
1842
  Object.entries(memberEntries).forEach(([key, value]) => {
1921
1843
  const loc = `FieldNames.${key}`;
1922
1844
  entries[loc] = value;
1923
1845
  });
1924
1846
  }
1925
- if (input.Deployed !== undefined && input.Deployed !== null) {
1847
+ if (input.Deployed != null) {
1926
1848
  entries["Deployed"] = input.Deployed;
1927
1849
  }
1928
1850
  return entries;
1929
1851
  };
1930
1852
  const serializeAws_queryDescribeScalingParametersRequest = (input, context) => {
1931
1853
  const entries = {};
1932
- if (input.DomainName !== undefined && input.DomainName !== null) {
1854
+ if (input.DomainName != null) {
1933
1855
  entries["DomainName"] = input.DomainName;
1934
1856
  }
1935
1857
  return entries;
1936
1858
  };
1937
1859
  const serializeAws_queryDescribeServiceAccessPoliciesRequest = (input, context) => {
1938
1860
  const entries = {};
1939
- if (input.DomainName !== undefined && input.DomainName !== null) {
1861
+ if (input.DomainName != null) {
1940
1862
  entries["DomainName"] = input.DomainName;
1941
1863
  }
1942
- if (input.Deployed !== undefined && input.Deployed !== null) {
1864
+ if (input.Deployed != null) {
1943
1865
  entries["Deployed"] = input.Deployed;
1944
1866
  }
1945
1867
  return entries;
1946
1868
  };
1947
1869
  const serializeAws_queryDescribeSuggestersRequest = (input, context) => {
1948
1870
  const entries = {};
1949
- if (input.DomainName !== undefined && input.DomainName !== null) {
1871
+ if (input.DomainName != null) {
1950
1872
  entries["DomainName"] = input.DomainName;
1951
1873
  }
1952
- if (input.SuggesterNames !== undefined && input.SuggesterNames !== null) {
1874
+ if (input.SuggesterNames != null) {
1953
1875
  const memberEntries = serializeAws_queryStandardNameList(input.SuggesterNames, context);
1954
1876
  Object.entries(memberEntries).forEach(([key, value]) => {
1955
1877
  const loc = `SuggesterNames.${key}`;
1956
1878
  entries[loc] = value;
1957
1879
  });
1958
1880
  }
1959
- if (input.Deployed !== undefined && input.Deployed !== null) {
1881
+ if (input.Deployed != null) {
1960
1882
  entries["Deployed"] = input.Deployed;
1961
1883
  }
1962
1884
  return entries;
1963
1885
  };
1964
1886
  const serializeAws_queryDocumentSuggesterOptions = (input, context) => {
1965
1887
  const entries = {};
1966
- if (input.SourceField !== undefined && input.SourceField !== null) {
1888
+ if (input.SourceField != null) {
1967
1889
  entries["SourceField"] = input.SourceField;
1968
1890
  }
1969
- if (input.FuzzyMatching !== undefined && input.FuzzyMatching !== null) {
1891
+ if (input.FuzzyMatching != null) {
1970
1892
  entries["FuzzyMatching"] = input.FuzzyMatching;
1971
1893
  }
1972
- if (input.SortExpression !== undefined && input.SortExpression !== null) {
1894
+ if (input.SortExpression != null) {
1973
1895
  entries["SortExpression"] = input.SortExpression;
1974
1896
  }
1975
1897
  return entries;
1976
1898
  };
1977
1899
  const serializeAws_queryDomainEndpointOptions = (input, context) => {
1978
1900
  const entries = {};
1979
- if (input.EnforceHTTPS !== undefined && input.EnforceHTTPS !== null) {
1901
+ if (input.EnforceHTTPS != null) {
1980
1902
  entries["EnforceHTTPS"] = input.EnforceHTTPS;
1981
1903
  }
1982
- if (input.TLSSecurityPolicy !== undefined && input.TLSSecurityPolicy !== null) {
1904
+ if (input.TLSSecurityPolicy != null) {
1983
1905
  entries["TLSSecurityPolicy"] = input.TLSSecurityPolicy;
1984
1906
  }
1985
1907
  return entries;
@@ -1998,41 +1920,41 @@ const serializeAws_queryDomainNameList = (input, context) => {
1998
1920
  };
1999
1921
  const serializeAws_queryDoubleArrayOptions = (input, context) => {
2000
1922
  const entries = {};
2001
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
1923
+ if (input.DefaultValue != null) {
2002
1924
  entries["DefaultValue"] = (0, smithy_client_1.serializeFloat)(input.DefaultValue);
2003
1925
  }
2004
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
1926
+ if (input.SourceFields != null) {
2005
1927
  entries["SourceFields"] = input.SourceFields;
2006
1928
  }
2007
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
1929
+ if (input.FacetEnabled != null) {
2008
1930
  entries["FacetEnabled"] = input.FacetEnabled;
2009
1931
  }
2010
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
1932
+ if (input.SearchEnabled != null) {
2011
1933
  entries["SearchEnabled"] = input.SearchEnabled;
2012
1934
  }
2013
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
1935
+ if (input.ReturnEnabled != null) {
2014
1936
  entries["ReturnEnabled"] = input.ReturnEnabled;
2015
1937
  }
2016
1938
  return entries;
2017
1939
  };
2018
1940
  const serializeAws_queryDoubleOptions = (input, context) => {
2019
1941
  const entries = {};
2020
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
1942
+ if (input.DefaultValue != null) {
2021
1943
  entries["DefaultValue"] = (0, smithy_client_1.serializeFloat)(input.DefaultValue);
2022
1944
  }
2023
- if (input.SourceField !== undefined && input.SourceField !== null) {
1945
+ if (input.SourceField != null) {
2024
1946
  entries["SourceField"] = input.SourceField;
2025
1947
  }
2026
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
1948
+ if (input.FacetEnabled != null) {
2027
1949
  entries["FacetEnabled"] = input.FacetEnabled;
2028
1950
  }
2029
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
1951
+ if (input.SearchEnabled != null) {
2030
1952
  entries["SearchEnabled"] = input.SearchEnabled;
2031
1953
  }
2032
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
1954
+ if (input.ReturnEnabled != null) {
2033
1955
  entries["ReturnEnabled"] = input.ReturnEnabled;
2034
1956
  }
2035
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
1957
+ if (input.SortEnabled != null) {
2036
1958
  entries["SortEnabled"] = input.SortEnabled;
2037
1959
  }
2038
1960
  return entries;
@@ -2051,100 +1973,100 @@ const serializeAws_queryDynamicFieldNameList = (input, context) => {
2051
1973
  };
2052
1974
  const serializeAws_queryExpression = (input, context) => {
2053
1975
  const entries = {};
2054
- if (input.ExpressionName !== undefined && input.ExpressionName !== null) {
1976
+ if (input.ExpressionName != null) {
2055
1977
  entries["ExpressionName"] = input.ExpressionName;
2056
1978
  }
2057
- if (input.ExpressionValue !== undefined && input.ExpressionValue !== null) {
1979
+ if (input.ExpressionValue != null) {
2058
1980
  entries["ExpressionValue"] = input.ExpressionValue;
2059
1981
  }
2060
1982
  return entries;
2061
1983
  };
2062
1984
  const serializeAws_queryIndexDocumentsRequest = (input, context) => {
2063
1985
  const entries = {};
2064
- if (input.DomainName !== undefined && input.DomainName !== null) {
1986
+ if (input.DomainName != null) {
2065
1987
  entries["DomainName"] = input.DomainName;
2066
1988
  }
2067
1989
  return entries;
2068
1990
  };
2069
1991
  const serializeAws_queryIndexField = (input, context) => {
2070
1992
  const entries = {};
2071
- if (input.IndexFieldName !== undefined && input.IndexFieldName !== null) {
1993
+ if (input.IndexFieldName != null) {
2072
1994
  entries["IndexFieldName"] = input.IndexFieldName;
2073
1995
  }
2074
- if (input.IndexFieldType !== undefined && input.IndexFieldType !== null) {
1996
+ if (input.IndexFieldType != null) {
2075
1997
  entries["IndexFieldType"] = input.IndexFieldType;
2076
1998
  }
2077
- if (input.IntOptions !== undefined && input.IntOptions !== null) {
1999
+ if (input.IntOptions != null) {
2078
2000
  const memberEntries = serializeAws_queryIntOptions(input.IntOptions, context);
2079
2001
  Object.entries(memberEntries).forEach(([key, value]) => {
2080
2002
  const loc = `IntOptions.${key}`;
2081
2003
  entries[loc] = value;
2082
2004
  });
2083
2005
  }
2084
- if (input.DoubleOptions !== undefined && input.DoubleOptions !== null) {
2006
+ if (input.DoubleOptions != null) {
2085
2007
  const memberEntries = serializeAws_queryDoubleOptions(input.DoubleOptions, context);
2086
2008
  Object.entries(memberEntries).forEach(([key, value]) => {
2087
2009
  const loc = `DoubleOptions.${key}`;
2088
2010
  entries[loc] = value;
2089
2011
  });
2090
2012
  }
2091
- if (input.LiteralOptions !== undefined && input.LiteralOptions !== null) {
2013
+ if (input.LiteralOptions != null) {
2092
2014
  const memberEntries = serializeAws_queryLiteralOptions(input.LiteralOptions, context);
2093
2015
  Object.entries(memberEntries).forEach(([key, value]) => {
2094
2016
  const loc = `LiteralOptions.${key}`;
2095
2017
  entries[loc] = value;
2096
2018
  });
2097
2019
  }
2098
- if (input.TextOptions !== undefined && input.TextOptions !== null) {
2020
+ if (input.TextOptions != null) {
2099
2021
  const memberEntries = serializeAws_queryTextOptions(input.TextOptions, context);
2100
2022
  Object.entries(memberEntries).forEach(([key, value]) => {
2101
2023
  const loc = `TextOptions.${key}`;
2102
2024
  entries[loc] = value;
2103
2025
  });
2104
2026
  }
2105
- if (input.DateOptions !== undefined && input.DateOptions !== null) {
2027
+ if (input.DateOptions != null) {
2106
2028
  const memberEntries = serializeAws_queryDateOptions(input.DateOptions, context);
2107
2029
  Object.entries(memberEntries).forEach(([key, value]) => {
2108
2030
  const loc = `DateOptions.${key}`;
2109
2031
  entries[loc] = value;
2110
2032
  });
2111
2033
  }
2112
- if (input.LatLonOptions !== undefined && input.LatLonOptions !== null) {
2034
+ if (input.LatLonOptions != null) {
2113
2035
  const memberEntries = serializeAws_queryLatLonOptions(input.LatLonOptions, context);
2114
2036
  Object.entries(memberEntries).forEach(([key, value]) => {
2115
2037
  const loc = `LatLonOptions.${key}`;
2116
2038
  entries[loc] = value;
2117
2039
  });
2118
2040
  }
2119
- if (input.IntArrayOptions !== undefined && input.IntArrayOptions !== null) {
2041
+ if (input.IntArrayOptions != null) {
2120
2042
  const memberEntries = serializeAws_queryIntArrayOptions(input.IntArrayOptions, context);
2121
2043
  Object.entries(memberEntries).forEach(([key, value]) => {
2122
2044
  const loc = `IntArrayOptions.${key}`;
2123
2045
  entries[loc] = value;
2124
2046
  });
2125
2047
  }
2126
- if (input.DoubleArrayOptions !== undefined && input.DoubleArrayOptions !== null) {
2048
+ if (input.DoubleArrayOptions != null) {
2127
2049
  const memberEntries = serializeAws_queryDoubleArrayOptions(input.DoubleArrayOptions, context);
2128
2050
  Object.entries(memberEntries).forEach(([key, value]) => {
2129
2051
  const loc = `DoubleArrayOptions.${key}`;
2130
2052
  entries[loc] = value;
2131
2053
  });
2132
2054
  }
2133
- if (input.LiteralArrayOptions !== undefined && input.LiteralArrayOptions !== null) {
2055
+ if (input.LiteralArrayOptions != null) {
2134
2056
  const memberEntries = serializeAws_queryLiteralArrayOptions(input.LiteralArrayOptions, context);
2135
2057
  Object.entries(memberEntries).forEach(([key, value]) => {
2136
2058
  const loc = `LiteralArrayOptions.${key}`;
2137
2059
  entries[loc] = value;
2138
2060
  });
2139
2061
  }
2140
- if (input.TextArrayOptions !== undefined && input.TextArrayOptions !== null) {
2062
+ if (input.TextArrayOptions != null) {
2141
2063
  const memberEntries = serializeAws_queryTextArrayOptions(input.TextArrayOptions, context);
2142
2064
  Object.entries(memberEntries).forEach(([key, value]) => {
2143
2065
  const loc = `TextArrayOptions.${key}`;
2144
2066
  entries[loc] = value;
2145
2067
  });
2146
2068
  }
2147
- if (input.DateArrayOptions !== undefined && input.DateArrayOptions !== null) {
2069
+ if (input.DateArrayOptions != null) {
2148
2070
  const memberEntries = serializeAws_queryDateArrayOptions(input.DateArrayOptions, context);
2149
2071
  Object.entries(memberEntries).forEach(([key, value]) => {
2150
2072
  const loc = `DateArrayOptions.${key}`;
@@ -2155,117 +2077,117 @@ const serializeAws_queryIndexField = (input, context) => {
2155
2077
  };
2156
2078
  const serializeAws_queryIntArrayOptions = (input, context) => {
2157
2079
  const entries = {};
2158
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2080
+ if (input.DefaultValue != null) {
2159
2081
  entries["DefaultValue"] = input.DefaultValue;
2160
2082
  }
2161
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2083
+ if (input.SourceFields != null) {
2162
2084
  entries["SourceFields"] = input.SourceFields;
2163
2085
  }
2164
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2086
+ if (input.FacetEnabled != null) {
2165
2087
  entries["FacetEnabled"] = input.FacetEnabled;
2166
2088
  }
2167
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2089
+ if (input.SearchEnabled != null) {
2168
2090
  entries["SearchEnabled"] = input.SearchEnabled;
2169
2091
  }
2170
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2092
+ if (input.ReturnEnabled != null) {
2171
2093
  entries["ReturnEnabled"] = input.ReturnEnabled;
2172
2094
  }
2173
2095
  return entries;
2174
2096
  };
2175
2097
  const serializeAws_queryIntOptions = (input, context) => {
2176
2098
  const entries = {};
2177
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2099
+ if (input.DefaultValue != null) {
2178
2100
  entries["DefaultValue"] = input.DefaultValue;
2179
2101
  }
2180
- if (input.SourceField !== undefined && input.SourceField !== null) {
2102
+ if (input.SourceField != null) {
2181
2103
  entries["SourceField"] = input.SourceField;
2182
2104
  }
2183
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2105
+ if (input.FacetEnabled != null) {
2184
2106
  entries["FacetEnabled"] = input.FacetEnabled;
2185
2107
  }
2186
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2108
+ if (input.SearchEnabled != null) {
2187
2109
  entries["SearchEnabled"] = input.SearchEnabled;
2188
2110
  }
2189
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2111
+ if (input.ReturnEnabled != null) {
2190
2112
  entries["ReturnEnabled"] = input.ReturnEnabled;
2191
2113
  }
2192
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2114
+ if (input.SortEnabled != null) {
2193
2115
  entries["SortEnabled"] = input.SortEnabled;
2194
2116
  }
2195
2117
  return entries;
2196
2118
  };
2197
2119
  const serializeAws_queryLatLonOptions = (input, context) => {
2198
2120
  const entries = {};
2199
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2121
+ if (input.DefaultValue != null) {
2200
2122
  entries["DefaultValue"] = input.DefaultValue;
2201
2123
  }
2202
- if (input.SourceField !== undefined && input.SourceField !== null) {
2124
+ if (input.SourceField != null) {
2203
2125
  entries["SourceField"] = input.SourceField;
2204
2126
  }
2205
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2127
+ if (input.FacetEnabled != null) {
2206
2128
  entries["FacetEnabled"] = input.FacetEnabled;
2207
2129
  }
2208
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2130
+ if (input.SearchEnabled != null) {
2209
2131
  entries["SearchEnabled"] = input.SearchEnabled;
2210
2132
  }
2211
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2133
+ if (input.ReturnEnabled != null) {
2212
2134
  entries["ReturnEnabled"] = input.ReturnEnabled;
2213
2135
  }
2214
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2136
+ if (input.SortEnabled != null) {
2215
2137
  entries["SortEnabled"] = input.SortEnabled;
2216
2138
  }
2217
2139
  return entries;
2218
2140
  };
2219
2141
  const serializeAws_queryLiteralArrayOptions = (input, context) => {
2220
2142
  const entries = {};
2221
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2143
+ if (input.DefaultValue != null) {
2222
2144
  entries["DefaultValue"] = input.DefaultValue;
2223
2145
  }
2224
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2146
+ if (input.SourceFields != null) {
2225
2147
  entries["SourceFields"] = input.SourceFields;
2226
2148
  }
2227
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2149
+ if (input.FacetEnabled != null) {
2228
2150
  entries["FacetEnabled"] = input.FacetEnabled;
2229
2151
  }
2230
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2152
+ if (input.SearchEnabled != null) {
2231
2153
  entries["SearchEnabled"] = input.SearchEnabled;
2232
2154
  }
2233
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2155
+ if (input.ReturnEnabled != null) {
2234
2156
  entries["ReturnEnabled"] = input.ReturnEnabled;
2235
2157
  }
2236
2158
  return entries;
2237
2159
  };
2238
2160
  const serializeAws_queryLiteralOptions = (input, context) => {
2239
2161
  const entries = {};
2240
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2162
+ if (input.DefaultValue != null) {
2241
2163
  entries["DefaultValue"] = input.DefaultValue;
2242
2164
  }
2243
- if (input.SourceField !== undefined && input.SourceField !== null) {
2165
+ if (input.SourceField != null) {
2244
2166
  entries["SourceField"] = input.SourceField;
2245
2167
  }
2246
- if (input.FacetEnabled !== undefined && input.FacetEnabled !== null) {
2168
+ if (input.FacetEnabled != null) {
2247
2169
  entries["FacetEnabled"] = input.FacetEnabled;
2248
2170
  }
2249
- if (input.SearchEnabled !== undefined && input.SearchEnabled !== null) {
2171
+ if (input.SearchEnabled != null) {
2250
2172
  entries["SearchEnabled"] = input.SearchEnabled;
2251
2173
  }
2252
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2174
+ if (input.ReturnEnabled != null) {
2253
2175
  entries["ReturnEnabled"] = input.ReturnEnabled;
2254
2176
  }
2255
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2177
+ if (input.SortEnabled != null) {
2256
2178
  entries["SortEnabled"] = input.SortEnabled;
2257
2179
  }
2258
2180
  return entries;
2259
2181
  };
2260
2182
  const serializeAws_queryScalingParameters = (input, context) => {
2261
2183
  const entries = {};
2262
- if (input.DesiredInstanceType !== undefined && input.DesiredInstanceType !== null) {
2184
+ if (input.DesiredInstanceType != null) {
2263
2185
  entries["DesiredInstanceType"] = input.DesiredInstanceType;
2264
2186
  }
2265
- if (input.DesiredReplicationCount !== undefined && input.DesiredReplicationCount !== null) {
2187
+ if (input.DesiredReplicationCount != null) {
2266
2188
  entries["DesiredReplicationCount"] = input.DesiredReplicationCount;
2267
2189
  }
2268
- if (input.DesiredPartitionCount !== undefined && input.DesiredPartitionCount !== null) {
2190
+ if (input.DesiredPartitionCount != null) {
2269
2191
  entries["DesiredPartitionCount"] = input.DesiredPartitionCount;
2270
2192
  }
2271
2193
  return entries;
@@ -2284,10 +2206,10 @@ const serializeAws_queryStandardNameList = (input, context) => {
2284
2206
  };
2285
2207
  const serializeAws_querySuggester = (input, context) => {
2286
2208
  const entries = {};
2287
- if (input.SuggesterName !== undefined && input.SuggesterName !== null) {
2209
+ if (input.SuggesterName != null) {
2288
2210
  entries["SuggesterName"] = input.SuggesterName;
2289
2211
  }
2290
- if (input.DocumentSuggesterOptions !== undefined && input.DocumentSuggesterOptions !== null) {
2212
+ if (input.DocumentSuggesterOptions != null) {
2291
2213
  const memberEntries = serializeAws_queryDocumentSuggesterOptions(input.DocumentSuggesterOptions, context);
2292
2214
  Object.entries(memberEntries).forEach(([key, value]) => {
2293
2215
  const loc = `DocumentSuggesterOptions.${key}`;
@@ -2298,61 +2220,61 @@ const serializeAws_querySuggester = (input, context) => {
2298
2220
  };
2299
2221
  const serializeAws_queryTextArrayOptions = (input, context) => {
2300
2222
  const entries = {};
2301
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2223
+ if (input.DefaultValue != null) {
2302
2224
  entries["DefaultValue"] = input.DefaultValue;
2303
2225
  }
2304
- if (input.SourceFields !== undefined && input.SourceFields !== null) {
2226
+ if (input.SourceFields != null) {
2305
2227
  entries["SourceFields"] = input.SourceFields;
2306
2228
  }
2307
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2229
+ if (input.ReturnEnabled != null) {
2308
2230
  entries["ReturnEnabled"] = input.ReturnEnabled;
2309
2231
  }
2310
- if (input.HighlightEnabled !== undefined && input.HighlightEnabled !== null) {
2232
+ if (input.HighlightEnabled != null) {
2311
2233
  entries["HighlightEnabled"] = input.HighlightEnabled;
2312
2234
  }
2313
- if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
2235
+ if (input.AnalysisScheme != null) {
2314
2236
  entries["AnalysisScheme"] = input.AnalysisScheme;
2315
2237
  }
2316
2238
  return entries;
2317
2239
  };
2318
2240
  const serializeAws_queryTextOptions = (input, context) => {
2319
2241
  const entries = {};
2320
- if (input.DefaultValue !== undefined && input.DefaultValue !== null) {
2242
+ if (input.DefaultValue != null) {
2321
2243
  entries["DefaultValue"] = input.DefaultValue;
2322
2244
  }
2323
- if (input.SourceField !== undefined && input.SourceField !== null) {
2245
+ if (input.SourceField != null) {
2324
2246
  entries["SourceField"] = input.SourceField;
2325
2247
  }
2326
- if (input.ReturnEnabled !== undefined && input.ReturnEnabled !== null) {
2248
+ if (input.ReturnEnabled != null) {
2327
2249
  entries["ReturnEnabled"] = input.ReturnEnabled;
2328
2250
  }
2329
- if (input.SortEnabled !== undefined && input.SortEnabled !== null) {
2251
+ if (input.SortEnabled != null) {
2330
2252
  entries["SortEnabled"] = input.SortEnabled;
2331
2253
  }
2332
- if (input.HighlightEnabled !== undefined && input.HighlightEnabled !== null) {
2254
+ if (input.HighlightEnabled != null) {
2333
2255
  entries["HighlightEnabled"] = input.HighlightEnabled;
2334
2256
  }
2335
- if (input.AnalysisScheme !== undefined && input.AnalysisScheme !== null) {
2257
+ if (input.AnalysisScheme != null) {
2336
2258
  entries["AnalysisScheme"] = input.AnalysisScheme;
2337
2259
  }
2338
2260
  return entries;
2339
2261
  };
2340
2262
  const serializeAws_queryUpdateAvailabilityOptionsRequest = (input, context) => {
2341
2263
  const entries = {};
2342
- if (input.DomainName !== undefined && input.DomainName !== null) {
2264
+ if (input.DomainName != null) {
2343
2265
  entries["DomainName"] = input.DomainName;
2344
2266
  }
2345
- if (input.MultiAZ !== undefined && input.MultiAZ !== null) {
2267
+ if (input.MultiAZ != null) {
2346
2268
  entries["MultiAZ"] = input.MultiAZ;
2347
2269
  }
2348
2270
  return entries;
2349
2271
  };
2350
2272
  const serializeAws_queryUpdateDomainEndpointOptionsRequest = (input, context) => {
2351
2273
  const entries = {};
2352
- if (input.DomainName !== undefined && input.DomainName !== null) {
2274
+ if (input.DomainName != null) {
2353
2275
  entries["DomainName"] = input.DomainName;
2354
2276
  }
2355
- if (input.DomainEndpointOptions !== undefined && input.DomainEndpointOptions !== null) {
2277
+ if (input.DomainEndpointOptions != null) {
2356
2278
  const memberEntries = serializeAws_queryDomainEndpointOptions(input.DomainEndpointOptions, context);
2357
2279
  Object.entries(memberEntries).forEach(([key, value]) => {
2358
2280
  const loc = `DomainEndpointOptions.${key}`;
@@ -2363,10 +2285,10 @@ const serializeAws_queryUpdateDomainEndpointOptionsRequest = (input, context) =>
2363
2285
  };
2364
2286
  const serializeAws_queryUpdateScalingParametersRequest = (input, context) => {
2365
2287
  const entries = {};
2366
- if (input.DomainName !== undefined && input.DomainName !== null) {
2288
+ if (input.DomainName != null) {
2367
2289
  entries["DomainName"] = input.DomainName;
2368
2290
  }
2369
- if (input.ScalingParameters !== undefined && input.ScalingParameters !== null) {
2291
+ if (input.ScalingParameters != null) {
2370
2292
  const memberEntries = serializeAws_queryScalingParameters(input.ScalingParameters, context);
2371
2293
  Object.entries(memberEntries).forEach(([key, value]) => {
2372
2294
  const loc = `ScalingParameters.${key}`;
@@ -2377,10 +2299,10 @@ const serializeAws_queryUpdateScalingParametersRequest = (input, context) => {
2377
2299
  };
2378
2300
  const serializeAws_queryUpdateServiceAccessPoliciesRequest = (input, context) => {
2379
2301
  const entries = {};
2380
- if (input.DomainName !== undefined && input.DomainName !== null) {
2302
+ if (input.DomainName != null) {
2381
2303
  entries["DomainName"] = input.DomainName;
2382
2304
  }
2383
- if (input.AccessPolicies !== undefined && input.AccessPolicies !== null) {
2305
+ if (input.AccessPolicies != null) {
2384
2306
  entries["AccessPolicies"] = input.AccessPolicies;
2385
2307
  }
2386
2308
  return entries;
@@ -2457,9 +2379,6 @@ const deserializeAws_queryAnalysisSchemeStatusList = (output, context) => {
2457
2379
  return (output || [])
2458
2380
  .filter((e) => e != null)
2459
2381
  .map((entry) => {
2460
- if (entry === null) {
2461
- return null;
2462
- }
2463
2382
  return deserializeAws_queryAnalysisSchemeStatus(entry, context);
2464
2383
  });
2465
2384
  };
@@ -2869,9 +2788,6 @@ const deserializeAws_queryDomainStatusList = (output, context) => {
2869
2788
  return (output || [])
2870
2789
  .filter((e) => e != null)
2871
2790
  .map((entry) => {
2872
- if (entry === null) {
2873
- return null;
2874
- }
2875
2791
  return deserializeAws_queryDomainStatus(entry, context);
2876
2792
  });
2877
2793
  };
@@ -2959,9 +2875,6 @@ const deserializeAws_queryExpressionStatusList = (output, context) => {
2959
2875
  return (output || [])
2960
2876
  .filter((e) => e != null)
2961
2877
  .map((entry) => {
2962
- if (entry === null) {
2963
- return null;
2964
- }
2965
2878
  return deserializeAws_queryExpressionStatus(entry, context);
2966
2879
  });
2967
2880
  };
@@ -2969,9 +2882,6 @@ const deserializeAws_queryFieldNameList = (output, context) => {
2969
2882
  return (output || [])
2970
2883
  .filter((e) => e != null)
2971
2884
  .map((entry) => {
2972
- if (entry === null) {
2973
- return null;
2974
- }
2975
2885
  return (0, smithy_client_1.expectString)(entry);
2976
2886
  });
2977
2887
  };
@@ -3061,9 +2971,6 @@ const deserializeAws_queryIndexFieldStatusList = (output, context) => {
3061
2971
  return (output || [])
3062
2972
  .filter((e) => e != null)
3063
2973
  .map((entry) => {
3064
- if (entry === null) {
3065
- return null;
3066
- }
3067
2974
  return deserializeAws_queryIndexFieldStatus(entry, context);
3068
2975
  });
3069
2976
  };
@@ -3388,9 +3295,6 @@ const deserializeAws_querySuggesterStatusList = (output, context) => {
3388
3295
  return (output || [])
3389
3296
  .filter((e) => e != null)
3390
3297
  .map((entry) => {
3391
- if (entry === null) {
3392
- return null;
3393
- }
3394
3298
  return deserializeAws_querySuggesterStatus(entry, context);
3395
3299
  });
3396
3300
  };