@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
|
@@ -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 = {
|