@aws-sdk/client-cloudsearch 3.312.0 → 3.315.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.
|
@@ -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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { CloudSearchServiceException as __BaseException } from "../models/CloudSearchServiceException";
|
|
5
5
|
import { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
@@ -272,7 +272,7 @@ export const de_BuildSuggestersCommand = async (output, context) => {
|
|
|
272
272
|
$metadata: deserializeMetadata(output),
|
|
273
273
|
...contents,
|
|
274
274
|
};
|
|
275
|
-
return
|
|
275
|
+
return response;
|
|
276
276
|
};
|
|
277
277
|
const de_BuildSuggestersCommandError = async (output, context) => {
|
|
278
278
|
const parsedOutput = {
|
|
@@ -295,10 +295,9 @@ const de_BuildSuggestersCommandError = async (output, context) => {
|
|
|
295
295
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
296
296
|
default:
|
|
297
297
|
const parsedBody = parsedOutput.body;
|
|
298
|
-
throwDefaultError({
|
|
298
|
+
return throwDefaultError({
|
|
299
299
|
output,
|
|
300
300
|
parsedBody: parsedBody.Error,
|
|
301
|
-
exceptionCtor: __BaseException,
|
|
302
301
|
errorCode,
|
|
303
302
|
});
|
|
304
303
|
}
|
|
@@ -314,7 +313,7 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
314
313
|
$metadata: deserializeMetadata(output),
|
|
315
314
|
...contents,
|
|
316
315
|
};
|
|
317
|
-
return
|
|
316
|
+
return response;
|
|
318
317
|
};
|
|
319
318
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
320
319
|
const parsedOutput = {
|
|
@@ -340,10 +339,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
340
339
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
341
340
|
default:
|
|
342
341
|
const parsedBody = parsedOutput.body;
|
|
343
|
-
throwDefaultError({
|
|
342
|
+
return throwDefaultError({
|
|
344
343
|
output,
|
|
345
344
|
parsedBody: parsedBody.Error,
|
|
346
|
-
exceptionCtor: __BaseException,
|
|
347
345
|
errorCode,
|
|
348
346
|
});
|
|
349
347
|
}
|
|
@@ -359,7 +357,7 @@ export const de_DefineAnalysisSchemeCommand = async (output, context) => {
|
|
|
359
357
|
$metadata: deserializeMetadata(output),
|
|
360
358
|
...contents,
|
|
361
359
|
};
|
|
362
|
-
return
|
|
360
|
+
return response;
|
|
363
361
|
};
|
|
364
362
|
const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
365
363
|
const parsedOutput = {
|
|
@@ -388,10 +386,9 @@ const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
|
388
386
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
389
387
|
default:
|
|
390
388
|
const parsedBody = parsedOutput.body;
|
|
391
|
-
throwDefaultError({
|
|
389
|
+
return throwDefaultError({
|
|
392
390
|
output,
|
|
393
391
|
parsedBody: parsedBody.Error,
|
|
394
|
-
exceptionCtor: __BaseException,
|
|
395
392
|
errorCode,
|
|
396
393
|
});
|
|
397
394
|
}
|
|
@@ -407,7 +404,7 @@ export const de_DefineExpressionCommand = async (output, context) => {
|
|
|
407
404
|
$metadata: deserializeMetadata(output),
|
|
408
405
|
...contents,
|
|
409
406
|
};
|
|
410
|
-
return
|
|
407
|
+
return response;
|
|
411
408
|
};
|
|
412
409
|
const de_DefineExpressionCommandError = async (output, context) => {
|
|
413
410
|
const parsedOutput = {
|
|
@@ -436,10 +433,9 @@ const de_DefineExpressionCommandError = async (output, context) => {
|
|
|
436
433
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
437
434
|
default:
|
|
438
435
|
const parsedBody = parsedOutput.body;
|
|
439
|
-
throwDefaultError({
|
|
436
|
+
return throwDefaultError({
|
|
440
437
|
output,
|
|
441
438
|
parsedBody: parsedBody.Error,
|
|
442
|
-
exceptionCtor: __BaseException,
|
|
443
439
|
errorCode,
|
|
444
440
|
});
|
|
445
441
|
}
|
|
@@ -455,7 +451,7 @@ export const de_DefineIndexFieldCommand = async (output, context) => {
|
|
|
455
451
|
$metadata: deserializeMetadata(output),
|
|
456
452
|
...contents,
|
|
457
453
|
};
|
|
458
|
-
return
|
|
454
|
+
return response;
|
|
459
455
|
};
|
|
460
456
|
const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
461
457
|
const parsedOutput = {
|
|
@@ -484,10 +480,9 @@ const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
|
484
480
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
485
481
|
default:
|
|
486
482
|
const parsedBody = parsedOutput.body;
|
|
487
|
-
throwDefaultError({
|
|
483
|
+
return throwDefaultError({
|
|
488
484
|
output,
|
|
489
485
|
parsedBody: parsedBody.Error,
|
|
490
|
-
exceptionCtor: __BaseException,
|
|
491
486
|
errorCode,
|
|
492
487
|
});
|
|
493
488
|
}
|
|
@@ -503,7 +498,7 @@ export const de_DefineSuggesterCommand = async (output, context) => {
|
|
|
503
498
|
$metadata: deserializeMetadata(output),
|
|
504
499
|
...contents,
|
|
505
500
|
};
|
|
506
|
-
return
|
|
501
|
+
return response;
|
|
507
502
|
};
|
|
508
503
|
const de_DefineSuggesterCommandError = async (output, context) => {
|
|
509
504
|
const parsedOutput = {
|
|
@@ -532,10 +527,9 @@ const de_DefineSuggesterCommandError = async (output, context) => {
|
|
|
532
527
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
533
528
|
default:
|
|
534
529
|
const parsedBody = parsedOutput.body;
|
|
535
|
-
throwDefaultError({
|
|
530
|
+
return throwDefaultError({
|
|
536
531
|
output,
|
|
537
532
|
parsedBody: parsedBody.Error,
|
|
538
|
-
exceptionCtor: __BaseException,
|
|
539
533
|
errorCode,
|
|
540
534
|
});
|
|
541
535
|
}
|
|
@@ -551,7 +545,7 @@ export const de_DeleteAnalysisSchemeCommand = async (output, context) => {
|
|
|
551
545
|
$metadata: deserializeMetadata(output),
|
|
552
546
|
...contents,
|
|
553
547
|
};
|
|
554
|
-
return
|
|
548
|
+
return response;
|
|
555
549
|
};
|
|
556
550
|
const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
557
551
|
const parsedOutput = {
|
|
@@ -577,10 +571,9 @@ const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
|
577
571
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
578
572
|
default:
|
|
579
573
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
throwDefaultError({
|
|
574
|
+
return throwDefaultError({
|
|
581
575
|
output,
|
|
582
576
|
parsedBody: parsedBody.Error,
|
|
583
|
-
exceptionCtor: __BaseException,
|
|
584
577
|
errorCode,
|
|
585
578
|
});
|
|
586
579
|
}
|
|
@@ -596,7 +589,7 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
596
589
|
$metadata: deserializeMetadata(output),
|
|
597
590
|
...contents,
|
|
598
591
|
};
|
|
599
|
-
return
|
|
592
|
+
return response;
|
|
600
593
|
};
|
|
601
594
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
602
595
|
const parsedOutput = {
|
|
@@ -613,10 +606,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
613
606
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
614
607
|
default:
|
|
615
608
|
const parsedBody = parsedOutput.body;
|
|
616
|
-
throwDefaultError({
|
|
609
|
+
return throwDefaultError({
|
|
617
610
|
output,
|
|
618
611
|
parsedBody: parsedBody.Error,
|
|
619
|
-
exceptionCtor: __BaseException,
|
|
620
612
|
errorCode,
|
|
621
613
|
});
|
|
622
614
|
}
|
|
@@ -632,7 +624,7 @@ export const de_DeleteExpressionCommand = async (output, context) => {
|
|
|
632
624
|
$metadata: deserializeMetadata(output),
|
|
633
625
|
...contents,
|
|
634
626
|
};
|
|
635
|
-
return
|
|
627
|
+
return response;
|
|
636
628
|
};
|
|
637
629
|
const de_DeleteExpressionCommandError = async (output, context) => {
|
|
638
630
|
const parsedOutput = {
|
|
@@ -658,10 +650,9 @@ const de_DeleteExpressionCommandError = async (output, context) => {
|
|
|
658
650
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
659
651
|
default:
|
|
660
652
|
const parsedBody = parsedOutput.body;
|
|
661
|
-
throwDefaultError({
|
|
653
|
+
return throwDefaultError({
|
|
662
654
|
output,
|
|
663
655
|
parsedBody: parsedBody.Error,
|
|
664
|
-
exceptionCtor: __BaseException,
|
|
665
656
|
errorCode,
|
|
666
657
|
});
|
|
667
658
|
}
|
|
@@ -677,7 +668,7 @@ export const de_DeleteIndexFieldCommand = async (output, context) => {
|
|
|
677
668
|
$metadata: deserializeMetadata(output),
|
|
678
669
|
...contents,
|
|
679
670
|
};
|
|
680
|
-
return
|
|
671
|
+
return response;
|
|
681
672
|
};
|
|
682
673
|
const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
683
674
|
const parsedOutput = {
|
|
@@ -703,10 +694,9 @@ const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
|
703
694
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
704
695
|
default:
|
|
705
696
|
const parsedBody = parsedOutput.body;
|
|
706
|
-
throwDefaultError({
|
|
697
|
+
return throwDefaultError({
|
|
707
698
|
output,
|
|
708
699
|
parsedBody: parsedBody.Error,
|
|
709
|
-
exceptionCtor: __BaseException,
|
|
710
700
|
errorCode,
|
|
711
701
|
});
|
|
712
702
|
}
|
|
@@ -722,7 +712,7 @@ export const de_DeleteSuggesterCommand = async (output, context) => {
|
|
|
722
712
|
$metadata: deserializeMetadata(output),
|
|
723
713
|
...contents,
|
|
724
714
|
};
|
|
725
|
-
return
|
|
715
|
+
return response;
|
|
726
716
|
};
|
|
727
717
|
const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
728
718
|
const parsedOutput = {
|
|
@@ -748,10 +738,9 @@ const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
|
748
738
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
749
739
|
default:
|
|
750
740
|
const parsedBody = parsedOutput.body;
|
|
751
|
-
throwDefaultError({
|
|
741
|
+
return throwDefaultError({
|
|
752
742
|
output,
|
|
753
743
|
parsedBody: parsedBody.Error,
|
|
754
|
-
exceptionCtor: __BaseException,
|
|
755
744
|
errorCode,
|
|
756
745
|
});
|
|
757
746
|
}
|
|
@@ -767,7 +756,7 @@ export const de_DescribeAnalysisSchemesCommand = async (output, context) => {
|
|
|
767
756
|
$metadata: deserializeMetadata(output),
|
|
768
757
|
...contents,
|
|
769
758
|
};
|
|
770
|
-
return
|
|
759
|
+
return response;
|
|
771
760
|
};
|
|
772
761
|
const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
773
762
|
const parsedOutput = {
|
|
@@ -787,10 +776,9 @@ const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
|
787
776
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
788
777
|
default:
|
|
789
778
|
const parsedBody = parsedOutput.body;
|
|
790
|
-
throwDefaultError({
|
|
779
|
+
return throwDefaultError({
|
|
791
780
|
output,
|
|
792
781
|
parsedBody: parsedBody.Error,
|
|
793
|
-
exceptionCtor: __BaseException,
|
|
794
782
|
errorCode,
|
|
795
783
|
});
|
|
796
784
|
}
|
|
@@ -806,7 +794,7 @@ export const de_DescribeAvailabilityOptionsCommand = async (output, context) =>
|
|
|
806
794
|
$metadata: deserializeMetadata(output),
|
|
807
795
|
...contents,
|
|
808
796
|
};
|
|
809
|
-
return
|
|
797
|
+
return response;
|
|
810
798
|
};
|
|
811
799
|
const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
812
800
|
const parsedOutput = {
|
|
@@ -835,10 +823,9 @@ const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
835
823
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
836
824
|
default:
|
|
837
825
|
const parsedBody = parsedOutput.body;
|
|
838
|
-
throwDefaultError({
|
|
826
|
+
return throwDefaultError({
|
|
839
827
|
output,
|
|
840
828
|
parsedBody: parsedBody.Error,
|
|
841
|
-
exceptionCtor: __BaseException,
|
|
842
829
|
errorCode,
|
|
843
830
|
});
|
|
844
831
|
}
|
|
@@ -854,7 +841,7 @@ export const de_DescribeDomainEndpointOptionsCommand = async (output, context) =
|
|
|
854
841
|
$metadata: deserializeMetadata(output),
|
|
855
842
|
...contents,
|
|
856
843
|
};
|
|
857
|
-
return
|
|
844
|
+
return response;
|
|
858
845
|
};
|
|
859
846
|
const de_DescribeDomainEndpointOptionsCommandError = async (output, context) => {
|
|
860
847
|
const parsedOutput = {
|
|
@@ -880,10 +867,9 @@ const de_DescribeDomainEndpointOptionsCommandError = async (output, context) =>
|
|
|
880
867
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
881
868
|
default:
|
|
882
869
|
const parsedBody = parsedOutput.body;
|
|
883
|
-
throwDefaultError({
|
|
870
|
+
return throwDefaultError({
|
|
884
871
|
output,
|
|
885
872
|
parsedBody: parsedBody.Error,
|
|
886
|
-
exceptionCtor: __BaseException,
|
|
887
873
|
errorCode,
|
|
888
874
|
});
|
|
889
875
|
}
|
|
@@ -899,7 +885,7 @@ export const de_DescribeDomainsCommand = async (output, context) => {
|
|
|
899
885
|
$metadata: deserializeMetadata(output),
|
|
900
886
|
...contents,
|
|
901
887
|
};
|
|
902
|
-
return
|
|
888
|
+
return response;
|
|
903
889
|
};
|
|
904
890
|
const de_DescribeDomainsCommandError = async (output, context) => {
|
|
905
891
|
const parsedOutput = {
|
|
@@ -916,10 +902,9 @@ const de_DescribeDomainsCommandError = async (output, context) => {
|
|
|
916
902
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
917
903
|
default:
|
|
918
904
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
throwDefaultError({
|
|
905
|
+
return throwDefaultError({
|
|
920
906
|
output,
|
|
921
907
|
parsedBody: parsedBody.Error,
|
|
922
|
-
exceptionCtor: __BaseException,
|
|
923
908
|
errorCode,
|
|
924
909
|
});
|
|
925
910
|
}
|
|
@@ -935,7 +920,7 @@ export const de_DescribeExpressionsCommand = async (output, context) => {
|
|
|
935
920
|
$metadata: deserializeMetadata(output),
|
|
936
921
|
...contents,
|
|
937
922
|
};
|
|
938
|
-
return
|
|
923
|
+
return response;
|
|
939
924
|
};
|
|
940
925
|
const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
941
926
|
const parsedOutput = {
|
|
@@ -955,10 +940,9 @@ const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
|
955
940
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
941
|
default:
|
|
957
942
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
throwDefaultError({
|
|
943
|
+
return throwDefaultError({
|
|
959
944
|
output,
|
|
960
945
|
parsedBody: parsedBody.Error,
|
|
961
|
-
exceptionCtor: __BaseException,
|
|
962
946
|
errorCode,
|
|
963
947
|
});
|
|
964
948
|
}
|
|
@@ -974,7 +958,7 @@ export const de_DescribeIndexFieldsCommand = async (output, context) => {
|
|
|
974
958
|
$metadata: deserializeMetadata(output),
|
|
975
959
|
...contents,
|
|
976
960
|
};
|
|
977
|
-
return
|
|
961
|
+
return response;
|
|
978
962
|
};
|
|
979
963
|
const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
980
964
|
const parsedOutput = {
|
|
@@ -994,10 +978,9 @@ const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
|
994
978
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
995
979
|
default:
|
|
996
980
|
const parsedBody = parsedOutput.body;
|
|
997
|
-
throwDefaultError({
|
|
981
|
+
return throwDefaultError({
|
|
998
982
|
output,
|
|
999
983
|
parsedBody: parsedBody.Error,
|
|
1000
|
-
exceptionCtor: __BaseException,
|
|
1001
984
|
errorCode,
|
|
1002
985
|
});
|
|
1003
986
|
}
|
|
@@ -1013,7 +996,7 @@ export const de_DescribeScalingParametersCommand = async (output, context) => {
|
|
|
1013
996
|
$metadata: deserializeMetadata(output),
|
|
1014
997
|
...contents,
|
|
1015
998
|
};
|
|
1016
|
-
return
|
|
999
|
+
return response;
|
|
1017
1000
|
};
|
|
1018
1001
|
const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
1019
1002
|
const parsedOutput = {
|
|
@@ -1033,10 +1016,9 @@ const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
|
1033
1016
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1034
1017
|
default:
|
|
1035
1018
|
const parsedBody = parsedOutput.body;
|
|
1036
|
-
throwDefaultError({
|
|
1019
|
+
return throwDefaultError({
|
|
1037
1020
|
output,
|
|
1038
1021
|
parsedBody: parsedBody.Error,
|
|
1039
|
-
exceptionCtor: __BaseException,
|
|
1040
1022
|
errorCode,
|
|
1041
1023
|
});
|
|
1042
1024
|
}
|
|
@@ -1052,7 +1034,7 @@ export const de_DescribeServiceAccessPoliciesCommand = async (output, context) =
|
|
|
1052
1034
|
$metadata: deserializeMetadata(output),
|
|
1053
1035
|
...contents,
|
|
1054
1036
|
};
|
|
1055
|
-
return
|
|
1037
|
+
return response;
|
|
1056
1038
|
};
|
|
1057
1039
|
const de_DescribeServiceAccessPoliciesCommandError = async (output, context) => {
|
|
1058
1040
|
const parsedOutput = {
|
|
@@ -1072,10 +1054,9 @@ const de_DescribeServiceAccessPoliciesCommandError = async (output, context) =>
|
|
|
1072
1054
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1073
1055
|
default:
|
|
1074
1056
|
const parsedBody = parsedOutput.body;
|
|
1075
|
-
throwDefaultError({
|
|
1057
|
+
return throwDefaultError({
|
|
1076
1058
|
output,
|
|
1077
1059
|
parsedBody: parsedBody.Error,
|
|
1078
|
-
exceptionCtor: __BaseException,
|
|
1079
1060
|
errorCode,
|
|
1080
1061
|
});
|
|
1081
1062
|
}
|
|
@@ -1091,7 +1072,7 @@ export const de_DescribeSuggestersCommand = async (output, context) => {
|
|
|
1091
1072
|
$metadata: deserializeMetadata(output),
|
|
1092
1073
|
...contents,
|
|
1093
1074
|
};
|
|
1094
|
-
return
|
|
1075
|
+
return response;
|
|
1095
1076
|
};
|
|
1096
1077
|
const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
1097
1078
|
const parsedOutput = {
|
|
@@ -1111,10 +1092,9 @@ const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
|
1111
1092
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1112
1093
|
default:
|
|
1113
1094
|
const parsedBody = parsedOutput.body;
|
|
1114
|
-
throwDefaultError({
|
|
1095
|
+
return throwDefaultError({
|
|
1115
1096
|
output,
|
|
1116
1097
|
parsedBody: parsedBody.Error,
|
|
1117
|
-
exceptionCtor: __BaseException,
|
|
1118
1098
|
errorCode,
|
|
1119
1099
|
});
|
|
1120
1100
|
}
|
|
@@ -1130,7 +1110,7 @@ export const de_IndexDocumentsCommand = async (output, context) => {
|
|
|
1130
1110
|
$metadata: deserializeMetadata(output),
|
|
1131
1111
|
...contents,
|
|
1132
1112
|
};
|
|
1133
|
-
return
|
|
1113
|
+
return response;
|
|
1134
1114
|
};
|
|
1135
1115
|
const de_IndexDocumentsCommandError = async (output, context) => {
|
|
1136
1116
|
const parsedOutput = {
|
|
@@ -1153,10 +1133,9 @@ const de_IndexDocumentsCommandError = async (output, context) => {
|
|
|
1153
1133
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1154
1134
|
default:
|
|
1155
1135
|
const parsedBody = parsedOutput.body;
|
|
1156
|
-
throwDefaultError({
|
|
1136
|
+
return throwDefaultError({
|
|
1157
1137
|
output,
|
|
1158
1138
|
parsedBody: parsedBody.Error,
|
|
1159
|
-
exceptionCtor: __BaseException,
|
|
1160
1139
|
errorCode,
|
|
1161
1140
|
});
|
|
1162
1141
|
}
|
|
@@ -1172,7 +1151,7 @@ export const de_ListDomainNamesCommand = async (output, context) => {
|
|
|
1172
1151
|
$metadata: deserializeMetadata(output),
|
|
1173
1152
|
...contents,
|
|
1174
1153
|
};
|
|
1175
|
-
return
|
|
1154
|
+
return response;
|
|
1176
1155
|
};
|
|
1177
1156
|
const de_ListDomainNamesCommandError = async (output, context) => {
|
|
1178
1157
|
const parsedOutput = {
|
|
@@ -1186,10 +1165,9 @@ const de_ListDomainNamesCommandError = async (output, context) => {
|
|
|
1186
1165
|
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1187
1166
|
default:
|
|
1188
1167
|
const parsedBody = parsedOutput.body;
|
|
1189
|
-
throwDefaultError({
|
|
1168
|
+
return throwDefaultError({
|
|
1190
1169
|
output,
|
|
1191
1170
|
parsedBody: parsedBody.Error,
|
|
1192
|
-
exceptionCtor: __BaseException,
|
|
1193
1171
|
errorCode,
|
|
1194
1172
|
});
|
|
1195
1173
|
}
|
|
@@ -1205,7 +1183,7 @@ export const de_UpdateAvailabilityOptionsCommand = async (output, context) => {
|
|
|
1205
1183
|
$metadata: deserializeMetadata(output),
|
|
1206
1184
|
...contents,
|
|
1207
1185
|
};
|
|
1208
|
-
return
|
|
1186
|
+
return response;
|
|
1209
1187
|
};
|
|
1210
1188
|
const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
1211
1189
|
const parsedOutput = {
|
|
@@ -1237,10 +1215,9 @@ const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
1237
1215
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1238
1216
|
default:
|
|
1239
1217
|
const parsedBody = parsedOutput.body;
|
|
1240
|
-
throwDefaultError({
|
|
1218
|
+
return throwDefaultError({
|
|
1241
1219
|
output,
|
|
1242
1220
|
parsedBody: parsedBody.Error,
|
|
1243
|
-
exceptionCtor: __BaseException,
|
|
1244
1221
|
errorCode,
|
|
1245
1222
|
});
|
|
1246
1223
|
}
|
|
@@ -1256,7 +1233,7 @@ export const de_UpdateDomainEndpointOptionsCommand = async (output, context) =>
|
|
|
1256
1233
|
$metadata: deserializeMetadata(output),
|
|
1257
1234
|
...contents,
|
|
1258
1235
|
};
|
|
1259
|
-
return
|
|
1236
|
+
return response;
|
|
1260
1237
|
};
|
|
1261
1238
|
const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
1262
1239
|
const parsedOutput = {
|
|
@@ -1288,10 +1265,9 @@ const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
|
1288
1265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1289
1266
|
default:
|
|
1290
1267
|
const parsedBody = parsedOutput.body;
|
|
1291
|
-
throwDefaultError({
|
|
1268
|
+
return throwDefaultError({
|
|
1292
1269
|
output,
|
|
1293
1270
|
parsedBody: parsedBody.Error,
|
|
1294
|
-
exceptionCtor: __BaseException,
|
|
1295
1271
|
errorCode,
|
|
1296
1272
|
});
|
|
1297
1273
|
}
|
|
@@ -1307,7 +1283,7 @@ export const de_UpdateScalingParametersCommand = async (output, context) => {
|
|
|
1307
1283
|
$metadata: deserializeMetadata(output),
|
|
1308
1284
|
...contents,
|
|
1309
1285
|
};
|
|
1310
|
-
return
|
|
1286
|
+
return response;
|
|
1311
1287
|
};
|
|
1312
1288
|
const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
1313
1289
|
const parsedOutput = {
|
|
@@ -1336,10 +1312,9 @@ const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
|
1336
1312
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
1313
|
default:
|
|
1338
1314
|
const parsedBody = parsedOutput.body;
|
|
1339
|
-
throwDefaultError({
|
|
1315
|
+
return throwDefaultError({
|
|
1340
1316
|
output,
|
|
1341
1317
|
parsedBody: parsedBody.Error,
|
|
1342
|
-
exceptionCtor: __BaseException,
|
|
1343
1318
|
errorCode,
|
|
1344
1319
|
});
|
|
1345
1320
|
}
|
|
@@ -1355,7 +1330,7 @@ export const de_UpdateServiceAccessPoliciesCommand = async (output, context) =>
|
|
|
1355
1330
|
$metadata: deserializeMetadata(output),
|
|
1356
1331
|
...contents,
|
|
1357
1332
|
};
|
|
1358
|
-
return
|
|
1333
|
+
return response;
|
|
1359
1334
|
};
|
|
1360
1335
|
const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
1361
1336
|
const parsedOutput = {
|
|
@@ -1384,10 +1359,9 @@ const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
|
1384
1359
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
1360
|
default:
|
|
1386
1361
|
const parsedBody = parsedOutput.body;
|
|
1387
|
-
throwDefaultError({
|
|
1362
|
+
return throwDefaultError({
|
|
1388
1363
|
output,
|
|
1389
1364
|
parsedBody: parsedBody.Error,
|
|
1390
|
-
exceptionCtor: __BaseException,
|
|
1391
1365
|
errorCode,
|
|
1392
1366
|
});
|
|
1393
1367
|
}
|
|
@@ -3080,6 +3054,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3080
3054
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3081
3055
|
};
|
|
3082
3056
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3057
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3083
3058
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3084
3059
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3085
3060
|
const contents = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudsearch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudsearch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.315.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|