@aws-sdk/client-cloudsearch 3.312.0 → 3.316.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.
- package/dist-cjs/CloudSearch.js +30 -364
- package/dist-cjs/protocols/Aws_query.js +53 -78
- package/dist-es/CloudSearch.js +30 -364
- package/dist-es/protocols/Aws_query.js +54 -79
- package/dist-types/CloudSearch.d.ts +39 -72
- package/dist-types/ts3.4/CloudSearch.d.ts +4 -1
- package/package.json +6 -6
|
@@ -302,7 +302,7 @@ const de_BuildSuggestersCommand = async (output, context) => {
|
|
|
302
302
|
$metadata: deserializeMetadata(output),
|
|
303
303
|
...contents,
|
|
304
304
|
};
|
|
305
|
-
return
|
|
305
|
+
return response;
|
|
306
306
|
};
|
|
307
307
|
exports.de_BuildSuggestersCommand = de_BuildSuggestersCommand;
|
|
308
308
|
const de_BuildSuggestersCommandError = async (output, context) => {
|
|
@@ -326,10 +326,9 @@ const de_BuildSuggestersCommandError = async (output, context) => {
|
|
|
326
326
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
327
327
|
default:
|
|
328
328
|
const parsedBody = parsedOutput.body;
|
|
329
|
-
|
|
329
|
+
return throwDefaultError({
|
|
330
330
|
output,
|
|
331
331
|
parsedBody: parsedBody.Error,
|
|
332
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
333
332
|
errorCode,
|
|
334
333
|
});
|
|
335
334
|
}
|
|
@@ -345,7 +344,7 @@ const de_CreateDomainCommand = async (output, context) => {
|
|
|
345
344
|
$metadata: deserializeMetadata(output),
|
|
346
345
|
...contents,
|
|
347
346
|
};
|
|
348
|
-
return
|
|
347
|
+
return response;
|
|
349
348
|
};
|
|
350
349
|
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
351
350
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
@@ -372,10 +371,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
372
371
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
373
372
|
default:
|
|
374
373
|
const parsedBody = parsedOutput.body;
|
|
375
|
-
|
|
374
|
+
return throwDefaultError({
|
|
376
375
|
output,
|
|
377
376
|
parsedBody: parsedBody.Error,
|
|
378
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
379
377
|
errorCode,
|
|
380
378
|
});
|
|
381
379
|
}
|
|
@@ -391,7 +389,7 @@ const de_DefineAnalysisSchemeCommand = async (output, context) => {
|
|
|
391
389
|
$metadata: deserializeMetadata(output),
|
|
392
390
|
...contents,
|
|
393
391
|
};
|
|
394
|
-
return
|
|
392
|
+
return response;
|
|
395
393
|
};
|
|
396
394
|
exports.de_DefineAnalysisSchemeCommand = de_DefineAnalysisSchemeCommand;
|
|
397
395
|
const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
@@ -421,10 +419,9 @@ const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
|
421
419
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
422
420
|
default:
|
|
423
421
|
const parsedBody = parsedOutput.body;
|
|
424
|
-
|
|
422
|
+
return throwDefaultError({
|
|
425
423
|
output,
|
|
426
424
|
parsedBody: parsedBody.Error,
|
|
427
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
428
425
|
errorCode,
|
|
429
426
|
});
|
|
430
427
|
}
|
|
@@ -440,7 +437,7 @@ const de_DefineExpressionCommand = async (output, context) => {
|
|
|
440
437
|
$metadata: deserializeMetadata(output),
|
|
441
438
|
...contents,
|
|
442
439
|
};
|
|
443
|
-
return
|
|
440
|
+
return response;
|
|
444
441
|
};
|
|
445
442
|
exports.de_DefineExpressionCommand = de_DefineExpressionCommand;
|
|
446
443
|
const de_DefineExpressionCommandError = async (output, context) => {
|
|
@@ -470,10 +467,9 @@ const de_DefineExpressionCommandError = async (output, context) => {
|
|
|
470
467
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
471
468
|
default:
|
|
472
469
|
const parsedBody = parsedOutput.body;
|
|
473
|
-
|
|
470
|
+
return throwDefaultError({
|
|
474
471
|
output,
|
|
475
472
|
parsedBody: parsedBody.Error,
|
|
476
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
477
473
|
errorCode,
|
|
478
474
|
});
|
|
479
475
|
}
|
|
@@ -489,7 +485,7 @@ const de_DefineIndexFieldCommand = async (output, context) => {
|
|
|
489
485
|
$metadata: deserializeMetadata(output),
|
|
490
486
|
...contents,
|
|
491
487
|
};
|
|
492
|
-
return
|
|
488
|
+
return response;
|
|
493
489
|
};
|
|
494
490
|
exports.de_DefineIndexFieldCommand = de_DefineIndexFieldCommand;
|
|
495
491
|
const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
@@ -519,10 +515,9 @@ const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
|
519
515
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
520
516
|
default:
|
|
521
517
|
const parsedBody = parsedOutput.body;
|
|
522
|
-
|
|
518
|
+
return throwDefaultError({
|
|
523
519
|
output,
|
|
524
520
|
parsedBody: parsedBody.Error,
|
|
525
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
526
521
|
errorCode,
|
|
527
522
|
});
|
|
528
523
|
}
|
|
@@ -538,7 +533,7 @@ const de_DefineSuggesterCommand = async (output, context) => {
|
|
|
538
533
|
$metadata: deserializeMetadata(output),
|
|
539
534
|
...contents,
|
|
540
535
|
};
|
|
541
|
-
return
|
|
536
|
+
return response;
|
|
542
537
|
};
|
|
543
538
|
exports.de_DefineSuggesterCommand = de_DefineSuggesterCommand;
|
|
544
539
|
const de_DefineSuggesterCommandError = async (output, context) => {
|
|
@@ -568,10 +563,9 @@ const de_DefineSuggesterCommandError = async (output, context) => {
|
|
|
568
563
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
569
564
|
default:
|
|
570
565
|
const parsedBody = parsedOutput.body;
|
|
571
|
-
|
|
566
|
+
return throwDefaultError({
|
|
572
567
|
output,
|
|
573
568
|
parsedBody: parsedBody.Error,
|
|
574
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
575
569
|
errorCode,
|
|
576
570
|
});
|
|
577
571
|
}
|
|
@@ -587,7 +581,7 @@ const de_DeleteAnalysisSchemeCommand = async (output, context) => {
|
|
|
587
581
|
$metadata: deserializeMetadata(output),
|
|
588
582
|
...contents,
|
|
589
583
|
};
|
|
590
|
-
return
|
|
584
|
+
return response;
|
|
591
585
|
};
|
|
592
586
|
exports.de_DeleteAnalysisSchemeCommand = de_DeleteAnalysisSchemeCommand;
|
|
593
587
|
const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
@@ -614,10 +608,9 @@ const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
|
614
608
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
615
609
|
default:
|
|
616
610
|
const parsedBody = parsedOutput.body;
|
|
617
|
-
|
|
611
|
+
return throwDefaultError({
|
|
618
612
|
output,
|
|
619
613
|
parsedBody: parsedBody.Error,
|
|
620
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
621
614
|
errorCode,
|
|
622
615
|
});
|
|
623
616
|
}
|
|
@@ -633,7 +626,7 @@ const de_DeleteDomainCommand = async (output, context) => {
|
|
|
633
626
|
$metadata: deserializeMetadata(output),
|
|
634
627
|
...contents,
|
|
635
628
|
};
|
|
636
|
-
return
|
|
629
|
+
return response;
|
|
637
630
|
};
|
|
638
631
|
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
639
632
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
@@ -651,10 +644,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
651
644
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
652
645
|
default:
|
|
653
646
|
const parsedBody = parsedOutput.body;
|
|
654
|
-
|
|
647
|
+
return throwDefaultError({
|
|
655
648
|
output,
|
|
656
649
|
parsedBody: parsedBody.Error,
|
|
657
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
658
650
|
errorCode,
|
|
659
651
|
});
|
|
660
652
|
}
|
|
@@ -670,7 +662,7 @@ const de_DeleteExpressionCommand = async (output, context) => {
|
|
|
670
662
|
$metadata: deserializeMetadata(output),
|
|
671
663
|
...contents,
|
|
672
664
|
};
|
|
673
|
-
return
|
|
665
|
+
return response;
|
|
674
666
|
};
|
|
675
667
|
exports.de_DeleteExpressionCommand = de_DeleteExpressionCommand;
|
|
676
668
|
const de_DeleteExpressionCommandError = async (output, context) => {
|
|
@@ -697,10 +689,9 @@ const de_DeleteExpressionCommandError = async (output, context) => {
|
|
|
697
689
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
698
690
|
default:
|
|
699
691
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
692
|
+
return throwDefaultError({
|
|
701
693
|
output,
|
|
702
694
|
parsedBody: parsedBody.Error,
|
|
703
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
704
695
|
errorCode,
|
|
705
696
|
});
|
|
706
697
|
}
|
|
@@ -716,7 +707,7 @@ const de_DeleteIndexFieldCommand = async (output, context) => {
|
|
|
716
707
|
$metadata: deserializeMetadata(output),
|
|
717
708
|
...contents,
|
|
718
709
|
};
|
|
719
|
-
return
|
|
710
|
+
return response;
|
|
720
711
|
};
|
|
721
712
|
exports.de_DeleteIndexFieldCommand = de_DeleteIndexFieldCommand;
|
|
722
713
|
const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
@@ -743,10 +734,9 @@ const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
|
743
734
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
735
|
default:
|
|
745
736
|
const parsedBody = parsedOutput.body;
|
|
746
|
-
|
|
737
|
+
return throwDefaultError({
|
|
747
738
|
output,
|
|
748
739
|
parsedBody: parsedBody.Error,
|
|
749
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
750
740
|
errorCode,
|
|
751
741
|
});
|
|
752
742
|
}
|
|
@@ -762,7 +752,7 @@ const de_DeleteSuggesterCommand = async (output, context) => {
|
|
|
762
752
|
$metadata: deserializeMetadata(output),
|
|
763
753
|
...contents,
|
|
764
754
|
};
|
|
765
|
-
return
|
|
755
|
+
return response;
|
|
766
756
|
};
|
|
767
757
|
exports.de_DeleteSuggesterCommand = de_DeleteSuggesterCommand;
|
|
768
758
|
const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
@@ -789,10 +779,9 @@ const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
|
789
779
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
780
|
default:
|
|
791
781
|
const parsedBody = parsedOutput.body;
|
|
792
|
-
|
|
782
|
+
return throwDefaultError({
|
|
793
783
|
output,
|
|
794
784
|
parsedBody: parsedBody.Error,
|
|
795
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
796
785
|
errorCode,
|
|
797
786
|
});
|
|
798
787
|
}
|
|
@@ -808,7 +797,7 @@ const de_DescribeAnalysisSchemesCommand = async (output, context) => {
|
|
|
808
797
|
$metadata: deserializeMetadata(output),
|
|
809
798
|
...contents,
|
|
810
799
|
};
|
|
811
|
-
return
|
|
800
|
+
return response;
|
|
812
801
|
};
|
|
813
802
|
exports.de_DescribeAnalysisSchemesCommand = de_DescribeAnalysisSchemesCommand;
|
|
814
803
|
const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
@@ -829,10 +818,9 @@ const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
|
829
818
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
830
819
|
default:
|
|
831
820
|
const parsedBody = parsedOutput.body;
|
|
832
|
-
|
|
821
|
+
return throwDefaultError({
|
|
833
822
|
output,
|
|
834
823
|
parsedBody: parsedBody.Error,
|
|
835
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
836
824
|
errorCode,
|
|
837
825
|
});
|
|
838
826
|
}
|
|
@@ -848,7 +836,7 @@ const de_DescribeAvailabilityOptionsCommand = async (output, context) => {
|
|
|
848
836
|
$metadata: deserializeMetadata(output),
|
|
849
837
|
...contents,
|
|
850
838
|
};
|
|
851
|
-
return
|
|
839
|
+
return response;
|
|
852
840
|
};
|
|
853
841
|
exports.de_DescribeAvailabilityOptionsCommand = de_DescribeAvailabilityOptionsCommand;
|
|
854
842
|
const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
@@ -878,10 +866,9 @@ const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
878
866
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
879
867
|
default:
|
|
880
868
|
const parsedBody = parsedOutput.body;
|
|
881
|
-
|
|
869
|
+
return throwDefaultError({
|
|
882
870
|
output,
|
|
883
871
|
parsedBody: parsedBody.Error,
|
|
884
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
885
872
|
errorCode,
|
|
886
873
|
});
|
|
887
874
|
}
|
|
@@ -897,7 +884,7 @@ const de_DescribeDomainEndpointOptionsCommand = async (output, context) => {
|
|
|
897
884
|
$metadata: deserializeMetadata(output),
|
|
898
885
|
...contents,
|
|
899
886
|
};
|
|
900
|
-
return
|
|
887
|
+
return response;
|
|
901
888
|
};
|
|
902
889
|
exports.de_DescribeDomainEndpointOptionsCommand = de_DescribeDomainEndpointOptionsCommand;
|
|
903
890
|
const de_DescribeDomainEndpointOptionsCommandError = async (output, context) => {
|
|
@@ -924,10 +911,9 @@ const de_DescribeDomainEndpointOptionsCommandError = async (output, context) =>
|
|
|
924
911
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
925
912
|
default:
|
|
926
913
|
const parsedBody = parsedOutput.body;
|
|
927
|
-
|
|
914
|
+
return throwDefaultError({
|
|
928
915
|
output,
|
|
929
916
|
parsedBody: parsedBody.Error,
|
|
930
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
931
917
|
errorCode,
|
|
932
918
|
});
|
|
933
919
|
}
|
|
@@ -943,7 +929,7 @@ const de_DescribeDomainsCommand = async (output, context) => {
|
|
|
943
929
|
$metadata: deserializeMetadata(output),
|
|
944
930
|
...contents,
|
|
945
931
|
};
|
|
946
|
-
return
|
|
932
|
+
return response;
|
|
947
933
|
};
|
|
948
934
|
exports.de_DescribeDomainsCommand = de_DescribeDomainsCommand;
|
|
949
935
|
const de_DescribeDomainsCommandError = async (output, context) => {
|
|
@@ -961,10 +947,9 @@ const de_DescribeDomainsCommandError = async (output, context) => {
|
|
|
961
947
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
962
948
|
default:
|
|
963
949
|
const parsedBody = parsedOutput.body;
|
|
964
|
-
|
|
950
|
+
return throwDefaultError({
|
|
965
951
|
output,
|
|
966
952
|
parsedBody: parsedBody.Error,
|
|
967
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
968
953
|
errorCode,
|
|
969
954
|
});
|
|
970
955
|
}
|
|
@@ -980,7 +965,7 @@ const de_DescribeExpressionsCommand = async (output, context) => {
|
|
|
980
965
|
$metadata: deserializeMetadata(output),
|
|
981
966
|
...contents,
|
|
982
967
|
};
|
|
983
|
-
return
|
|
968
|
+
return response;
|
|
984
969
|
};
|
|
985
970
|
exports.de_DescribeExpressionsCommand = de_DescribeExpressionsCommand;
|
|
986
971
|
const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
@@ -1001,10 +986,9 @@ const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
|
1001
986
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
987
|
default:
|
|
1003
988
|
const parsedBody = parsedOutput.body;
|
|
1004
|
-
|
|
989
|
+
return throwDefaultError({
|
|
1005
990
|
output,
|
|
1006
991
|
parsedBody: parsedBody.Error,
|
|
1007
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1008
992
|
errorCode,
|
|
1009
993
|
});
|
|
1010
994
|
}
|
|
@@ -1020,7 +1004,7 @@ const de_DescribeIndexFieldsCommand = async (output, context) => {
|
|
|
1020
1004
|
$metadata: deserializeMetadata(output),
|
|
1021
1005
|
...contents,
|
|
1022
1006
|
};
|
|
1023
|
-
return
|
|
1007
|
+
return response;
|
|
1024
1008
|
};
|
|
1025
1009
|
exports.de_DescribeIndexFieldsCommand = de_DescribeIndexFieldsCommand;
|
|
1026
1010
|
const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
@@ -1041,10 +1025,9 @@ const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
|
1041
1025
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1042
1026
|
default:
|
|
1043
1027
|
const parsedBody = parsedOutput.body;
|
|
1044
|
-
|
|
1028
|
+
return throwDefaultError({
|
|
1045
1029
|
output,
|
|
1046
1030
|
parsedBody: parsedBody.Error,
|
|
1047
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1048
1031
|
errorCode,
|
|
1049
1032
|
});
|
|
1050
1033
|
}
|
|
@@ -1060,7 +1043,7 @@ const de_DescribeScalingParametersCommand = async (output, context) => {
|
|
|
1060
1043
|
$metadata: deserializeMetadata(output),
|
|
1061
1044
|
...contents,
|
|
1062
1045
|
};
|
|
1063
|
-
return
|
|
1046
|
+
return response;
|
|
1064
1047
|
};
|
|
1065
1048
|
exports.de_DescribeScalingParametersCommand = de_DescribeScalingParametersCommand;
|
|
1066
1049
|
const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
@@ -1081,10 +1064,9 @@ const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
|
1081
1064
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1082
1065
|
default:
|
|
1083
1066
|
const parsedBody = parsedOutput.body;
|
|
1084
|
-
|
|
1067
|
+
return throwDefaultError({
|
|
1085
1068
|
output,
|
|
1086
1069
|
parsedBody: parsedBody.Error,
|
|
1087
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1088
1070
|
errorCode,
|
|
1089
1071
|
});
|
|
1090
1072
|
}
|
|
@@ -1100,7 +1082,7 @@ const de_DescribeServiceAccessPoliciesCommand = async (output, context) => {
|
|
|
1100
1082
|
$metadata: deserializeMetadata(output),
|
|
1101
1083
|
...contents,
|
|
1102
1084
|
};
|
|
1103
|
-
return
|
|
1085
|
+
return response;
|
|
1104
1086
|
};
|
|
1105
1087
|
exports.de_DescribeServiceAccessPoliciesCommand = de_DescribeServiceAccessPoliciesCommand;
|
|
1106
1088
|
const de_DescribeServiceAccessPoliciesCommandError = async (output, context) => {
|
|
@@ -1121,10 +1103,9 @@ const de_DescribeServiceAccessPoliciesCommandError = async (output, context) =>
|
|
|
1121
1103
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1122
1104
|
default:
|
|
1123
1105
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1106
|
+
return throwDefaultError({
|
|
1125
1107
|
output,
|
|
1126
1108
|
parsedBody: parsedBody.Error,
|
|
1127
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1128
1109
|
errorCode,
|
|
1129
1110
|
});
|
|
1130
1111
|
}
|
|
@@ -1140,7 +1121,7 @@ const de_DescribeSuggestersCommand = async (output, context) => {
|
|
|
1140
1121
|
$metadata: deserializeMetadata(output),
|
|
1141
1122
|
...contents,
|
|
1142
1123
|
};
|
|
1143
|
-
return
|
|
1124
|
+
return response;
|
|
1144
1125
|
};
|
|
1145
1126
|
exports.de_DescribeSuggestersCommand = de_DescribeSuggestersCommand;
|
|
1146
1127
|
const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
@@ -1161,10 +1142,9 @@ const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
|
1161
1142
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1162
1143
|
default:
|
|
1163
1144
|
const parsedBody = parsedOutput.body;
|
|
1164
|
-
|
|
1145
|
+
return throwDefaultError({
|
|
1165
1146
|
output,
|
|
1166
1147
|
parsedBody: parsedBody.Error,
|
|
1167
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1168
1148
|
errorCode,
|
|
1169
1149
|
});
|
|
1170
1150
|
}
|
|
@@ -1180,7 +1160,7 @@ const de_IndexDocumentsCommand = async (output, context) => {
|
|
|
1180
1160
|
$metadata: deserializeMetadata(output),
|
|
1181
1161
|
...contents,
|
|
1182
1162
|
};
|
|
1183
|
-
return
|
|
1163
|
+
return response;
|
|
1184
1164
|
};
|
|
1185
1165
|
exports.de_IndexDocumentsCommand = de_IndexDocumentsCommand;
|
|
1186
1166
|
const de_IndexDocumentsCommandError = async (output, context) => {
|
|
@@ -1204,10 +1184,9 @@ const de_IndexDocumentsCommandError = async (output, context) => {
|
|
|
1204
1184
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1205
1185
|
default:
|
|
1206
1186
|
const parsedBody = parsedOutput.body;
|
|
1207
|
-
|
|
1187
|
+
return throwDefaultError({
|
|
1208
1188
|
output,
|
|
1209
1189
|
parsedBody: parsedBody.Error,
|
|
1210
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1211
1190
|
errorCode,
|
|
1212
1191
|
});
|
|
1213
1192
|
}
|
|
@@ -1223,7 +1202,7 @@ const de_ListDomainNamesCommand = async (output, context) => {
|
|
|
1223
1202
|
$metadata: deserializeMetadata(output),
|
|
1224
1203
|
...contents,
|
|
1225
1204
|
};
|
|
1226
|
-
return
|
|
1205
|
+
return response;
|
|
1227
1206
|
};
|
|
1228
1207
|
exports.de_ListDomainNamesCommand = de_ListDomainNamesCommand;
|
|
1229
1208
|
const de_ListDomainNamesCommandError = async (output, context) => {
|
|
@@ -1238,10 +1217,9 @@ const de_ListDomainNamesCommandError = async (output, context) => {
|
|
|
1238
1217
|
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1239
1218
|
default:
|
|
1240
1219
|
const parsedBody = parsedOutput.body;
|
|
1241
|
-
|
|
1220
|
+
return throwDefaultError({
|
|
1242
1221
|
output,
|
|
1243
1222
|
parsedBody: parsedBody.Error,
|
|
1244
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1245
1223
|
errorCode,
|
|
1246
1224
|
});
|
|
1247
1225
|
}
|
|
@@ -1257,7 +1235,7 @@ const de_UpdateAvailabilityOptionsCommand = async (output, context) => {
|
|
|
1257
1235
|
$metadata: deserializeMetadata(output),
|
|
1258
1236
|
...contents,
|
|
1259
1237
|
};
|
|
1260
|
-
return
|
|
1238
|
+
return response;
|
|
1261
1239
|
};
|
|
1262
1240
|
exports.de_UpdateAvailabilityOptionsCommand = de_UpdateAvailabilityOptionsCommand;
|
|
1263
1241
|
const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
@@ -1290,10 +1268,9 @@ const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
1290
1268
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1291
1269
|
default:
|
|
1292
1270
|
const parsedBody = parsedOutput.body;
|
|
1293
|
-
|
|
1271
|
+
return throwDefaultError({
|
|
1294
1272
|
output,
|
|
1295
1273
|
parsedBody: parsedBody.Error,
|
|
1296
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1297
1274
|
errorCode,
|
|
1298
1275
|
});
|
|
1299
1276
|
}
|
|
@@ -1309,7 +1286,7 @@ const de_UpdateDomainEndpointOptionsCommand = async (output, context) => {
|
|
|
1309
1286
|
$metadata: deserializeMetadata(output),
|
|
1310
1287
|
...contents,
|
|
1311
1288
|
};
|
|
1312
|
-
return
|
|
1289
|
+
return response;
|
|
1313
1290
|
};
|
|
1314
1291
|
exports.de_UpdateDomainEndpointOptionsCommand = de_UpdateDomainEndpointOptionsCommand;
|
|
1315
1292
|
const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
@@ -1342,10 +1319,9 @@ const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
|
1342
1319
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1343
1320
|
default:
|
|
1344
1321
|
const parsedBody = parsedOutput.body;
|
|
1345
|
-
|
|
1322
|
+
return throwDefaultError({
|
|
1346
1323
|
output,
|
|
1347
1324
|
parsedBody: parsedBody.Error,
|
|
1348
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1349
1325
|
errorCode,
|
|
1350
1326
|
});
|
|
1351
1327
|
}
|
|
@@ -1361,7 +1337,7 @@ const de_UpdateScalingParametersCommand = async (output, context) => {
|
|
|
1361
1337
|
$metadata: deserializeMetadata(output),
|
|
1362
1338
|
...contents,
|
|
1363
1339
|
};
|
|
1364
|
-
return
|
|
1340
|
+
return response;
|
|
1365
1341
|
};
|
|
1366
1342
|
exports.de_UpdateScalingParametersCommand = de_UpdateScalingParametersCommand;
|
|
1367
1343
|
const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
@@ -1391,10 +1367,9 @@ const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
|
1391
1367
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1392
1368
|
default:
|
|
1393
1369
|
const parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1370
|
+
return throwDefaultError({
|
|
1395
1371
|
output,
|
|
1396
1372
|
parsedBody: parsedBody.Error,
|
|
1397
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1398
1373
|
errorCode,
|
|
1399
1374
|
});
|
|
1400
1375
|
}
|
|
@@ -1410,7 +1385,7 @@ const de_UpdateServiceAccessPoliciesCommand = async (output, context) => {
|
|
|
1410
1385
|
$metadata: deserializeMetadata(output),
|
|
1411
1386
|
...contents,
|
|
1412
1387
|
};
|
|
1413
|
-
return
|
|
1388
|
+
return response;
|
|
1414
1389
|
};
|
|
1415
1390
|
exports.de_UpdateServiceAccessPoliciesCommand = de_UpdateServiceAccessPoliciesCommand;
|
|
1416
1391
|
const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
@@ -1440,10 +1415,9 @@ const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
|
1440
1415
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1441
1416
|
default:
|
|
1442
1417
|
const parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1418
|
+
return throwDefaultError({
|
|
1444
1419
|
output,
|
|
1445
1420
|
parsedBody: parsedBody.Error,
|
|
1446
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1447
1421
|
errorCode,
|
|
1448
1422
|
});
|
|
1449
1423
|
}
|
|
@@ -3136,6 +3110,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3136
3110
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3137
3111
|
};
|
|
3138
3112
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3113
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudSearchServiceException_1.CloudSearchServiceException);
|
|
3139
3114
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3140
3115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3141
3116
|
const contents = {
|