@aws-sdk/client-cloudsearch 3.180.0 → 3.183.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/CHANGELOG.md +26 -0
- package/dist-cjs/protocols/Aws_query.js +85 -77
- package/dist-es/CloudSearch.js +106 -113
- package/dist-es/CloudSearchClient.js +22 -28
- package/dist-es/commands/BuildSuggestersCommand.js +21 -28
- package/dist-es/commands/CreateDomainCommand.js +21 -28
- package/dist-es/commands/DefineAnalysisSchemeCommand.js +21 -28
- package/dist-es/commands/DefineExpressionCommand.js +21 -28
- package/dist-es/commands/DefineIndexFieldCommand.js +21 -28
- package/dist-es/commands/DefineSuggesterCommand.js +21 -28
- package/dist-es/commands/DeleteAnalysisSchemeCommand.js +21 -28
- package/dist-es/commands/DeleteDomainCommand.js +21 -28
- package/dist-es/commands/DeleteExpressionCommand.js +21 -28
- package/dist-es/commands/DeleteIndexFieldCommand.js +21 -28
- package/dist-es/commands/DeleteSuggesterCommand.js +21 -28
- package/dist-es/commands/DescribeAnalysisSchemesCommand.js +21 -28
- package/dist-es/commands/DescribeAvailabilityOptionsCommand.js +21 -28
- package/dist-es/commands/DescribeDomainEndpointOptionsCommand.js +21 -28
- package/dist-es/commands/DescribeDomainsCommand.js +21 -28
- package/dist-es/commands/DescribeExpressionsCommand.js +21 -28
- package/dist-es/commands/DescribeIndexFieldsCommand.js +21 -28
- package/dist-es/commands/DescribeScalingParametersCommand.js +21 -28
- package/dist-es/commands/DescribeServiceAccessPoliciesCommand.js +21 -28
- package/dist-es/commands/DescribeSuggestersCommand.js +21 -28
- package/dist-es/commands/IndexDocumentsCommand.js +21 -28
- package/dist-es/commands/ListDomainNamesCommand.js +22 -29
- package/dist-es/commands/UpdateAvailabilityOptionsCommand.js +21 -28
- package/dist-es/commands/UpdateDomainEndpointOptionsCommand.js +21 -28
- package/dist-es/commands/UpdateScalingParametersCommand.js +21 -28
- package/dist-es/commands/UpdateServiceAccessPoliciesCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudSearchServiceException.js +5 -10
- package/dist-es/models/models_0.js +350 -187
- package/dist-es/protocols/Aws_query.js +1887 -2468
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudsearch
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
* **clients:** update message in Error key in case of XML protocol ([#4000](https://github.com/aws/aws-sdk-js-v3/issues/4000)) ([057f686](https://github.com/aws/aws-sdk-js-v3/commit/057f686f217caa4e277bbe6e2905decf97b0fad1))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **clients:** support awsQueryError trait ([#3998](https://github.com/aws/aws-sdk-js-v3/issues/3998)) ([384cbd7](https://github.com/aws/aws-sdk-js-v3/commit/384cbd7cbdbc0635d2dbff53b54d769ca80dabbb))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
6
32
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
33
|
|
|
8
34
|
**Note:** Version bump only for package @aws-sdk/client-cloudsearch
|
|
@@ -361,7 +361,7 @@ exports.deserializeAws_queryBuildSuggestersCommand = deserializeAws_queryBuildSu
|
|
|
361
361
|
const deserializeAws_queryBuildSuggestersCommandError = async (output, context) => {
|
|
362
362
|
const parsedOutput = {
|
|
363
363
|
...output,
|
|
364
|
-
body: await
|
|
364
|
+
body: await parseErrorBody(output.body, context),
|
|
365
365
|
};
|
|
366
366
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
367
367
|
switch (errorCode) {
|
|
@@ -371,7 +371,7 @@ const deserializeAws_queryBuildSuggestersCommandError = async (output, context)
|
|
|
371
371
|
case "InternalException":
|
|
372
372
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
373
373
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
374
|
-
case "
|
|
374
|
+
case "ResourceNotFound":
|
|
375
375
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
376
376
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
377
377
|
case "ValidationException":
|
|
@@ -404,7 +404,7 @@ exports.deserializeAws_queryCreateDomainCommand = deserializeAws_queryCreateDoma
|
|
|
404
404
|
const deserializeAws_queryCreateDomainCommandError = async (output, context) => {
|
|
405
405
|
const parsedOutput = {
|
|
406
406
|
...output,
|
|
407
|
-
body: await
|
|
407
|
+
body: await parseErrorBody(output.body, context),
|
|
408
408
|
};
|
|
409
409
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
410
410
|
switch (errorCode) {
|
|
@@ -414,10 +414,10 @@ const deserializeAws_queryCreateDomainCommandError = async (output, context) =>
|
|
|
414
414
|
case "InternalException":
|
|
415
415
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
416
416
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
417
|
-
case "
|
|
417
|
+
case "LimitExceeded":
|
|
418
418
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
419
419
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
420
|
-
case "
|
|
420
|
+
case "ResourceAlreadyExists":
|
|
421
421
|
case "com.amazonaws.cloudsearch#ResourceAlreadyExistsException":
|
|
422
422
|
throw await deserializeAws_queryResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
423
423
|
case "ValidationException":
|
|
@@ -450,7 +450,7 @@ exports.deserializeAws_queryDefineAnalysisSchemeCommand = deserializeAws_queryDe
|
|
|
450
450
|
const deserializeAws_queryDefineAnalysisSchemeCommandError = async (output, context) => {
|
|
451
451
|
const parsedOutput = {
|
|
452
452
|
...output,
|
|
453
|
-
body: await
|
|
453
|
+
body: await parseErrorBody(output.body, context),
|
|
454
454
|
};
|
|
455
455
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
456
456
|
switch (errorCode) {
|
|
@@ -460,13 +460,13 @@ const deserializeAws_queryDefineAnalysisSchemeCommandError = async (output, cont
|
|
|
460
460
|
case "InternalException":
|
|
461
461
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
462
462
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
463
|
-
case "
|
|
463
|
+
case "InvalidType":
|
|
464
464
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
465
465
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
466
|
-
case "
|
|
466
|
+
case "LimitExceeded":
|
|
467
467
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
468
468
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
469
|
-
case "
|
|
469
|
+
case "ResourceNotFound":
|
|
470
470
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
471
471
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
472
472
|
case "ValidationException":
|
|
@@ -499,7 +499,7 @@ exports.deserializeAws_queryDefineExpressionCommand = deserializeAws_queryDefine
|
|
|
499
499
|
const deserializeAws_queryDefineExpressionCommandError = async (output, context) => {
|
|
500
500
|
const parsedOutput = {
|
|
501
501
|
...output,
|
|
502
|
-
body: await
|
|
502
|
+
body: await parseErrorBody(output.body, context),
|
|
503
503
|
};
|
|
504
504
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
505
505
|
switch (errorCode) {
|
|
@@ -509,13 +509,13 @@ const deserializeAws_queryDefineExpressionCommandError = async (output, context)
|
|
|
509
509
|
case "InternalException":
|
|
510
510
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
511
511
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
512
|
-
case "
|
|
512
|
+
case "InvalidType":
|
|
513
513
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
514
514
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
515
|
-
case "
|
|
515
|
+
case "LimitExceeded":
|
|
516
516
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
517
517
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
518
|
-
case "
|
|
518
|
+
case "ResourceNotFound":
|
|
519
519
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
520
520
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
521
521
|
case "ValidationException":
|
|
@@ -548,7 +548,7 @@ exports.deserializeAws_queryDefineIndexFieldCommand = deserializeAws_queryDefine
|
|
|
548
548
|
const deserializeAws_queryDefineIndexFieldCommandError = async (output, context) => {
|
|
549
549
|
const parsedOutput = {
|
|
550
550
|
...output,
|
|
551
|
-
body: await
|
|
551
|
+
body: await parseErrorBody(output.body, context),
|
|
552
552
|
};
|
|
553
553
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
554
554
|
switch (errorCode) {
|
|
@@ -558,13 +558,13 @@ const deserializeAws_queryDefineIndexFieldCommandError = async (output, context)
|
|
|
558
558
|
case "InternalException":
|
|
559
559
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
560
560
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
561
|
-
case "
|
|
561
|
+
case "InvalidType":
|
|
562
562
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
563
563
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
564
|
-
case "
|
|
564
|
+
case "LimitExceeded":
|
|
565
565
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
566
566
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
567
|
-
case "
|
|
567
|
+
case "ResourceNotFound":
|
|
568
568
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
569
569
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
570
570
|
case "ValidationException":
|
|
@@ -597,7 +597,7 @@ exports.deserializeAws_queryDefineSuggesterCommand = deserializeAws_queryDefineS
|
|
|
597
597
|
const deserializeAws_queryDefineSuggesterCommandError = async (output, context) => {
|
|
598
598
|
const parsedOutput = {
|
|
599
599
|
...output,
|
|
600
|
-
body: await
|
|
600
|
+
body: await parseErrorBody(output.body, context),
|
|
601
601
|
};
|
|
602
602
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
603
603
|
switch (errorCode) {
|
|
@@ -607,13 +607,13 @@ const deserializeAws_queryDefineSuggesterCommandError = async (output, context)
|
|
|
607
607
|
case "InternalException":
|
|
608
608
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
609
609
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
610
|
-
case "
|
|
610
|
+
case "InvalidType":
|
|
611
611
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
612
612
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
613
|
-
case "
|
|
613
|
+
case "LimitExceeded":
|
|
614
614
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
615
615
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
616
|
-
case "
|
|
616
|
+
case "ResourceNotFound":
|
|
617
617
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
618
618
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
619
619
|
case "ValidationException":
|
|
@@ -646,7 +646,7 @@ exports.deserializeAws_queryDeleteAnalysisSchemeCommand = deserializeAws_queryDe
|
|
|
646
646
|
const deserializeAws_queryDeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
647
647
|
const parsedOutput = {
|
|
648
648
|
...output,
|
|
649
|
-
body: await
|
|
649
|
+
body: await parseErrorBody(output.body, context),
|
|
650
650
|
};
|
|
651
651
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
652
652
|
switch (errorCode) {
|
|
@@ -656,10 +656,10 @@ const deserializeAws_queryDeleteAnalysisSchemeCommandError = async (output, cont
|
|
|
656
656
|
case "InternalException":
|
|
657
657
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
658
658
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
659
|
-
case "
|
|
659
|
+
case "InvalidType":
|
|
660
660
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
661
661
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
662
|
-
case "
|
|
662
|
+
case "ResourceNotFound":
|
|
663
663
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
664
664
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
665
665
|
case "ValidationException":
|
|
@@ -692,7 +692,7 @@ exports.deserializeAws_queryDeleteDomainCommand = deserializeAws_queryDeleteDoma
|
|
|
692
692
|
const deserializeAws_queryDeleteDomainCommandError = async (output, context) => {
|
|
693
693
|
const parsedOutput = {
|
|
694
694
|
...output,
|
|
695
|
-
body: await
|
|
695
|
+
body: await parseErrorBody(output.body, context),
|
|
696
696
|
};
|
|
697
697
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
698
698
|
switch (errorCode) {
|
|
@@ -729,7 +729,7 @@ exports.deserializeAws_queryDeleteExpressionCommand = deserializeAws_queryDelete
|
|
|
729
729
|
const deserializeAws_queryDeleteExpressionCommandError = async (output, context) => {
|
|
730
730
|
const parsedOutput = {
|
|
731
731
|
...output,
|
|
732
|
-
body: await
|
|
732
|
+
body: await parseErrorBody(output.body, context),
|
|
733
733
|
};
|
|
734
734
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
735
735
|
switch (errorCode) {
|
|
@@ -739,10 +739,10 @@ const deserializeAws_queryDeleteExpressionCommandError = async (output, context)
|
|
|
739
739
|
case "InternalException":
|
|
740
740
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
741
741
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
742
|
-
case "
|
|
742
|
+
case "InvalidType":
|
|
743
743
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
744
744
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
745
|
-
case "
|
|
745
|
+
case "ResourceNotFound":
|
|
746
746
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
747
747
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
748
748
|
case "ValidationException":
|
|
@@ -775,7 +775,7 @@ exports.deserializeAws_queryDeleteIndexFieldCommand = deserializeAws_queryDelete
|
|
|
775
775
|
const deserializeAws_queryDeleteIndexFieldCommandError = async (output, context) => {
|
|
776
776
|
const parsedOutput = {
|
|
777
777
|
...output,
|
|
778
|
-
body: await
|
|
778
|
+
body: await parseErrorBody(output.body, context),
|
|
779
779
|
};
|
|
780
780
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
781
781
|
switch (errorCode) {
|
|
@@ -785,10 +785,10 @@ const deserializeAws_queryDeleteIndexFieldCommandError = async (output, context)
|
|
|
785
785
|
case "InternalException":
|
|
786
786
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
787
787
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
788
|
-
case "
|
|
788
|
+
case "InvalidType":
|
|
789
789
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
790
790
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
791
|
-
case "
|
|
791
|
+
case "ResourceNotFound":
|
|
792
792
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
793
793
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
794
794
|
case "ValidationException":
|
|
@@ -821,7 +821,7 @@ exports.deserializeAws_queryDeleteSuggesterCommand = deserializeAws_queryDeleteS
|
|
|
821
821
|
const deserializeAws_queryDeleteSuggesterCommandError = async (output, context) => {
|
|
822
822
|
const parsedOutput = {
|
|
823
823
|
...output,
|
|
824
|
-
body: await
|
|
824
|
+
body: await parseErrorBody(output.body, context),
|
|
825
825
|
};
|
|
826
826
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
827
827
|
switch (errorCode) {
|
|
@@ -831,10 +831,10 @@ const deserializeAws_queryDeleteSuggesterCommandError = async (output, context)
|
|
|
831
831
|
case "InternalException":
|
|
832
832
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
833
833
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
834
|
-
case "
|
|
834
|
+
case "InvalidType":
|
|
835
835
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
836
836
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
837
|
-
case "
|
|
837
|
+
case "ResourceNotFound":
|
|
838
838
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
839
839
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
840
840
|
case "ValidationException":
|
|
@@ -867,7 +867,7 @@ exports.deserializeAws_queryDescribeAnalysisSchemesCommand = deserializeAws_quer
|
|
|
867
867
|
const deserializeAws_queryDescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
868
868
|
const parsedOutput = {
|
|
869
869
|
...output,
|
|
870
|
-
body: await
|
|
870
|
+
body: await parseErrorBody(output.body, context),
|
|
871
871
|
};
|
|
872
872
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
873
873
|
switch (errorCode) {
|
|
@@ -877,7 +877,7 @@ const deserializeAws_queryDescribeAnalysisSchemesCommandError = async (output, c
|
|
|
877
877
|
case "InternalException":
|
|
878
878
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
879
879
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
880
|
-
case "
|
|
880
|
+
case "ResourceNotFound":
|
|
881
881
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
882
882
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
883
883
|
default:
|
|
@@ -907,26 +907,26 @@ exports.deserializeAws_queryDescribeAvailabilityOptionsCommand = deserializeAws_
|
|
|
907
907
|
const deserializeAws_queryDescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
908
908
|
const parsedOutput = {
|
|
909
909
|
...output,
|
|
910
|
-
body: await
|
|
910
|
+
body: await parseErrorBody(output.body, context),
|
|
911
911
|
};
|
|
912
912
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
913
913
|
switch (errorCode) {
|
|
914
914
|
case "BaseException":
|
|
915
915
|
case "com.amazonaws.cloudsearch#BaseException":
|
|
916
916
|
throw await deserializeAws_queryBaseExceptionResponse(parsedOutput, context);
|
|
917
|
-
case "
|
|
917
|
+
case "DisabledAction":
|
|
918
918
|
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
919
919
|
throw await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context);
|
|
920
920
|
case "InternalException":
|
|
921
921
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
922
922
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
923
|
-
case "
|
|
923
|
+
case "InvalidType":
|
|
924
924
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
925
925
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
926
|
-
case "
|
|
926
|
+
case "LimitExceeded":
|
|
927
927
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
928
928
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
929
|
-
case "
|
|
929
|
+
case "ResourceNotFound":
|
|
930
930
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
931
931
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
932
932
|
default:
|
|
@@ -956,23 +956,23 @@ exports.deserializeAws_queryDescribeDomainEndpointOptionsCommand = deserializeAw
|
|
|
956
956
|
const deserializeAws_queryDescribeDomainEndpointOptionsCommandError = async (output, context) => {
|
|
957
957
|
const parsedOutput = {
|
|
958
958
|
...output,
|
|
959
|
-
body: await
|
|
959
|
+
body: await parseErrorBody(output.body, context),
|
|
960
960
|
};
|
|
961
961
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
962
962
|
switch (errorCode) {
|
|
963
963
|
case "BaseException":
|
|
964
964
|
case "com.amazonaws.cloudsearch#BaseException":
|
|
965
965
|
throw await deserializeAws_queryBaseExceptionResponse(parsedOutput, context);
|
|
966
|
-
case "
|
|
966
|
+
case "DisabledAction":
|
|
967
967
|
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
968
968
|
throw await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context);
|
|
969
969
|
case "InternalException":
|
|
970
970
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
971
971
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
972
|
-
case "
|
|
972
|
+
case "LimitExceeded":
|
|
973
973
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
974
974
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
975
|
-
case "
|
|
975
|
+
case "ResourceNotFound":
|
|
976
976
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
977
977
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
978
978
|
default:
|
|
@@ -1002,7 +1002,7 @@ exports.deserializeAws_queryDescribeDomainsCommand = deserializeAws_queryDescrib
|
|
|
1002
1002
|
const deserializeAws_queryDescribeDomainsCommandError = async (output, context) => {
|
|
1003
1003
|
const parsedOutput = {
|
|
1004
1004
|
...output,
|
|
1005
|
-
body: await
|
|
1005
|
+
body: await parseErrorBody(output.body, context),
|
|
1006
1006
|
};
|
|
1007
1007
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1008
1008
|
switch (errorCode) {
|
|
@@ -1039,7 +1039,7 @@ exports.deserializeAws_queryDescribeExpressionsCommand = deserializeAws_queryDes
|
|
|
1039
1039
|
const deserializeAws_queryDescribeExpressionsCommandError = async (output, context) => {
|
|
1040
1040
|
const parsedOutput = {
|
|
1041
1041
|
...output,
|
|
1042
|
-
body: await
|
|
1042
|
+
body: await parseErrorBody(output.body, context),
|
|
1043
1043
|
};
|
|
1044
1044
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1045
1045
|
switch (errorCode) {
|
|
@@ -1049,7 +1049,7 @@ const deserializeAws_queryDescribeExpressionsCommandError = async (output, conte
|
|
|
1049
1049
|
case "InternalException":
|
|
1050
1050
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1051
1051
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1052
|
-
case "
|
|
1052
|
+
case "ResourceNotFound":
|
|
1053
1053
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1054
1054
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1055
1055
|
default:
|
|
@@ -1079,7 +1079,7 @@ exports.deserializeAws_queryDescribeIndexFieldsCommand = deserializeAws_queryDes
|
|
|
1079
1079
|
const deserializeAws_queryDescribeIndexFieldsCommandError = async (output, context) => {
|
|
1080
1080
|
const parsedOutput = {
|
|
1081
1081
|
...output,
|
|
1082
|
-
body: await
|
|
1082
|
+
body: await parseErrorBody(output.body, context),
|
|
1083
1083
|
};
|
|
1084
1084
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1085
1085
|
switch (errorCode) {
|
|
@@ -1089,7 +1089,7 @@ const deserializeAws_queryDescribeIndexFieldsCommandError = async (output, conte
|
|
|
1089
1089
|
case "InternalException":
|
|
1090
1090
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1091
1091
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1092
|
-
case "
|
|
1092
|
+
case "ResourceNotFound":
|
|
1093
1093
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1094
1094
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1095
1095
|
default:
|
|
@@ -1119,7 +1119,7 @@ exports.deserializeAws_queryDescribeScalingParametersCommand = deserializeAws_qu
|
|
|
1119
1119
|
const deserializeAws_queryDescribeScalingParametersCommandError = async (output, context) => {
|
|
1120
1120
|
const parsedOutput = {
|
|
1121
1121
|
...output,
|
|
1122
|
-
body: await
|
|
1122
|
+
body: await parseErrorBody(output.body, context),
|
|
1123
1123
|
};
|
|
1124
1124
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1125
1125
|
switch (errorCode) {
|
|
@@ -1129,7 +1129,7 @@ const deserializeAws_queryDescribeScalingParametersCommandError = async (output,
|
|
|
1129
1129
|
case "InternalException":
|
|
1130
1130
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1131
1131
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1132
|
-
case "
|
|
1132
|
+
case "ResourceNotFound":
|
|
1133
1133
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1134
1134
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1135
1135
|
default:
|
|
@@ -1159,7 +1159,7 @@ exports.deserializeAws_queryDescribeServiceAccessPoliciesCommand = deserializeAw
|
|
|
1159
1159
|
const deserializeAws_queryDescribeServiceAccessPoliciesCommandError = async (output, context) => {
|
|
1160
1160
|
const parsedOutput = {
|
|
1161
1161
|
...output,
|
|
1162
|
-
body: await
|
|
1162
|
+
body: await parseErrorBody(output.body, context),
|
|
1163
1163
|
};
|
|
1164
1164
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1165
1165
|
switch (errorCode) {
|
|
@@ -1169,7 +1169,7 @@ const deserializeAws_queryDescribeServiceAccessPoliciesCommandError = async (out
|
|
|
1169
1169
|
case "InternalException":
|
|
1170
1170
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1171
1171
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1172
|
-
case "
|
|
1172
|
+
case "ResourceNotFound":
|
|
1173
1173
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1174
1174
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1175
1175
|
default:
|
|
@@ -1199,7 +1199,7 @@ exports.deserializeAws_queryDescribeSuggestersCommand = deserializeAws_queryDesc
|
|
|
1199
1199
|
const deserializeAws_queryDescribeSuggestersCommandError = async (output, context) => {
|
|
1200
1200
|
const parsedOutput = {
|
|
1201
1201
|
...output,
|
|
1202
|
-
body: await
|
|
1202
|
+
body: await parseErrorBody(output.body, context),
|
|
1203
1203
|
};
|
|
1204
1204
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1205
1205
|
switch (errorCode) {
|
|
@@ -1209,7 +1209,7 @@ const deserializeAws_queryDescribeSuggestersCommandError = async (output, contex
|
|
|
1209
1209
|
case "InternalException":
|
|
1210
1210
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1211
1211
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1212
|
-
case "
|
|
1212
|
+
case "ResourceNotFound":
|
|
1213
1213
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1214
1214
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1215
1215
|
default:
|
|
@@ -1239,7 +1239,7 @@ exports.deserializeAws_queryIndexDocumentsCommand = deserializeAws_queryIndexDoc
|
|
|
1239
1239
|
const deserializeAws_queryIndexDocumentsCommandError = async (output, context) => {
|
|
1240
1240
|
const parsedOutput = {
|
|
1241
1241
|
...output,
|
|
1242
|
-
body: await
|
|
1242
|
+
body: await parseErrorBody(output.body, context),
|
|
1243
1243
|
};
|
|
1244
1244
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1245
1245
|
switch (errorCode) {
|
|
@@ -1249,7 +1249,7 @@ const deserializeAws_queryIndexDocumentsCommandError = async (output, context) =
|
|
|
1249
1249
|
case "InternalException":
|
|
1250
1250
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1251
1251
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1252
|
-
case "
|
|
1252
|
+
case "ResourceNotFound":
|
|
1253
1253
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1254
1254
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1255
1255
|
case "ValidationException":
|
|
@@ -1282,7 +1282,7 @@ exports.deserializeAws_queryListDomainNamesCommand = deserializeAws_queryListDom
|
|
|
1282
1282
|
const deserializeAws_queryListDomainNamesCommandError = async (output, context) => {
|
|
1283
1283
|
const parsedOutput = {
|
|
1284
1284
|
...output,
|
|
1285
|
-
body: await
|
|
1285
|
+
body: await parseErrorBody(output.body, context),
|
|
1286
1286
|
};
|
|
1287
1287
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1288
1288
|
switch (errorCode) {
|
|
@@ -1316,26 +1316,26 @@ exports.deserializeAws_queryUpdateAvailabilityOptionsCommand = deserializeAws_qu
|
|
|
1316
1316
|
const deserializeAws_queryUpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
1317
1317
|
const parsedOutput = {
|
|
1318
1318
|
...output,
|
|
1319
|
-
body: await
|
|
1319
|
+
body: await parseErrorBody(output.body, context),
|
|
1320
1320
|
};
|
|
1321
1321
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1322
1322
|
switch (errorCode) {
|
|
1323
1323
|
case "BaseException":
|
|
1324
1324
|
case "com.amazonaws.cloudsearch#BaseException":
|
|
1325
1325
|
throw await deserializeAws_queryBaseExceptionResponse(parsedOutput, context);
|
|
1326
|
-
case "
|
|
1326
|
+
case "DisabledAction":
|
|
1327
1327
|
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1328
1328
|
throw await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context);
|
|
1329
1329
|
case "InternalException":
|
|
1330
1330
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1331
1331
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1332
|
-
case "
|
|
1332
|
+
case "InvalidType":
|
|
1333
1333
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1334
1334
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
1335
|
-
case "
|
|
1335
|
+
case "LimitExceeded":
|
|
1336
1336
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1337
1337
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1338
|
-
case "
|
|
1338
|
+
case "ResourceNotFound":
|
|
1339
1339
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1340
1340
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1341
1341
|
case "ValidationException":
|
|
@@ -1368,26 +1368,26 @@ exports.deserializeAws_queryUpdateDomainEndpointOptionsCommand = deserializeAws_
|
|
|
1368
1368
|
const deserializeAws_queryUpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
1369
1369
|
const parsedOutput = {
|
|
1370
1370
|
...output,
|
|
1371
|
-
body: await
|
|
1371
|
+
body: await parseErrorBody(output.body, context),
|
|
1372
1372
|
};
|
|
1373
1373
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1374
1374
|
switch (errorCode) {
|
|
1375
1375
|
case "BaseException":
|
|
1376
1376
|
case "com.amazonaws.cloudsearch#BaseException":
|
|
1377
1377
|
throw await deserializeAws_queryBaseExceptionResponse(parsedOutput, context);
|
|
1378
|
-
case "
|
|
1378
|
+
case "DisabledAction":
|
|
1379
1379
|
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1380
1380
|
throw await deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context);
|
|
1381
1381
|
case "InternalException":
|
|
1382
1382
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1383
1383
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1384
|
-
case "
|
|
1384
|
+
case "InvalidType":
|
|
1385
1385
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1386
1386
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
1387
|
-
case "
|
|
1387
|
+
case "LimitExceeded":
|
|
1388
1388
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1389
1389
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1390
|
-
case "
|
|
1390
|
+
case "ResourceNotFound":
|
|
1391
1391
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1392
1392
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1393
1393
|
case "ValidationException":
|
|
@@ -1420,7 +1420,7 @@ exports.deserializeAws_queryUpdateScalingParametersCommand = deserializeAws_quer
|
|
|
1420
1420
|
const deserializeAws_queryUpdateScalingParametersCommandError = async (output, context) => {
|
|
1421
1421
|
const parsedOutput = {
|
|
1422
1422
|
...output,
|
|
1423
|
-
body: await
|
|
1423
|
+
body: await parseErrorBody(output.body, context),
|
|
1424
1424
|
};
|
|
1425
1425
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1426
1426
|
switch (errorCode) {
|
|
@@ -1430,13 +1430,13 @@ const deserializeAws_queryUpdateScalingParametersCommandError = async (output, c
|
|
|
1430
1430
|
case "InternalException":
|
|
1431
1431
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1432
1432
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1433
|
-
case "
|
|
1433
|
+
case "InvalidType":
|
|
1434
1434
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1435
1435
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
1436
|
-
case "
|
|
1436
|
+
case "LimitExceeded":
|
|
1437
1437
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1438
1438
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1439
|
-
case "
|
|
1439
|
+
case "ResourceNotFound":
|
|
1440
1440
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1441
1441
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1442
1442
|
case "ValidationException":
|
|
@@ -1469,7 +1469,7 @@ exports.deserializeAws_queryUpdateServiceAccessPoliciesCommand = deserializeAws_
|
|
|
1469
1469
|
const deserializeAws_queryUpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
1470
1470
|
const parsedOutput = {
|
|
1471
1471
|
...output,
|
|
1472
|
-
body: await
|
|
1472
|
+
body: await parseErrorBody(output.body, context),
|
|
1473
1473
|
};
|
|
1474
1474
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1475
1475
|
switch (errorCode) {
|
|
@@ -1479,13 +1479,13 @@ const deserializeAws_queryUpdateServiceAccessPoliciesCommandError = async (outpu
|
|
|
1479
1479
|
case "InternalException":
|
|
1480
1480
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1481
1481
|
throw await deserializeAws_queryInternalExceptionResponse(parsedOutput, context);
|
|
1482
|
-
case "
|
|
1482
|
+
case "InvalidType":
|
|
1483
1483
|
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1484
1484
|
throw await deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context);
|
|
1485
|
-
case "
|
|
1485
|
+
case "LimitExceeded":
|
|
1486
1486
|
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1487
1487
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1488
|
-
case "
|
|
1488
|
+
case "ResourceNotFound":
|
|
1489
1489
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1490
1490
|
throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1491
1491
|
case "ValidationException":
|
|
@@ -3455,6 +3455,14 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3455
3455
|
}
|
|
3456
3456
|
return {};
|
|
3457
3457
|
});
|
|
3458
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3459
|
+
var _a;
|
|
3460
|
+
const value = await parseBody(errorBody, context);
|
|
3461
|
+
if (value.Error) {
|
|
3462
|
+
value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
|
|
3463
|
+
}
|
|
3464
|
+
return value;
|
|
3465
|
+
};
|
|
3458
3466
|
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
3459
3467
|
.map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
|
|
3460
3468
|
.join("&");
|