@aws-sdk/client-cloudsearch 3.504.0 → 3.509.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/index.js +41 -768
- package/dist-es/protocols/Aws_query.js +55 -782
- package/package.json +3 -3
|
@@ -263,7 +263,7 @@ export const se_UpdateServiceAccessPoliciesCommand = async (input, context) => {
|
|
|
263
263
|
};
|
|
264
264
|
export const de_BuildSuggestersCommand = async (output, context) => {
|
|
265
265
|
if (output.statusCode >= 300) {
|
|
266
|
-
return
|
|
266
|
+
return de_CommandError(output, context);
|
|
267
267
|
}
|
|
268
268
|
const data = await parseBody(output.body, context);
|
|
269
269
|
let contents = {};
|
|
@@ -274,37 +274,9 @@ export const de_BuildSuggestersCommand = async (output, context) => {
|
|
|
274
274
|
};
|
|
275
275
|
return response;
|
|
276
276
|
};
|
|
277
|
-
const de_BuildSuggestersCommandError = async (output, context) => {
|
|
278
|
-
const parsedOutput = {
|
|
279
|
-
...output,
|
|
280
|
-
body: await parseErrorBody(output.body, context),
|
|
281
|
-
};
|
|
282
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
283
|
-
switch (errorCode) {
|
|
284
|
-
case "BaseException":
|
|
285
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
286
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
287
|
-
case "InternalException":
|
|
288
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
289
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
290
|
-
case "ResourceNotFound":
|
|
291
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
293
|
-
case "ValidationException":
|
|
294
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
295
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
296
|
-
default:
|
|
297
|
-
const parsedBody = parsedOutput.body;
|
|
298
|
-
return throwDefaultError({
|
|
299
|
-
output,
|
|
300
|
-
parsedBody: parsedBody.Error,
|
|
301
|
-
errorCode,
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
277
|
export const de_CreateDomainCommand = async (output, context) => {
|
|
306
278
|
if (output.statusCode >= 300) {
|
|
307
|
-
return
|
|
279
|
+
return de_CommandError(output, context);
|
|
308
280
|
}
|
|
309
281
|
const data = await parseBody(output.body, context);
|
|
310
282
|
let contents = {};
|
|
@@ -315,40 +287,9 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
315
287
|
};
|
|
316
288
|
return response;
|
|
317
289
|
};
|
|
318
|
-
const de_CreateDomainCommandError = async (output, context) => {
|
|
319
|
-
const parsedOutput = {
|
|
320
|
-
...output,
|
|
321
|
-
body: await parseErrorBody(output.body, context),
|
|
322
|
-
};
|
|
323
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
324
|
-
switch (errorCode) {
|
|
325
|
-
case "BaseException":
|
|
326
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
327
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
328
|
-
case "InternalException":
|
|
329
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
330
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
331
|
-
case "LimitExceeded":
|
|
332
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
333
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
334
|
-
case "ResourceAlreadyExists":
|
|
335
|
-
case "com.amazonaws.cloudsearch#ResourceAlreadyExistsException":
|
|
336
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
337
|
-
case "ValidationException":
|
|
338
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
340
|
-
default:
|
|
341
|
-
const parsedBody = parsedOutput.body;
|
|
342
|
-
return throwDefaultError({
|
|
343
|
-
output,
|
|
344
|
-
parsedBody: parsedBody.Error,
|
|
345
|
-
errorCode,
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
290
|
export const de_DefineAnalysisSchemeCommand = async (output, context) => {
|
|
350
291
|
if (output.statusCode >= 300) {
|
|
351
|
-
return
|
|
292
|
+
return de_CommandError(output, context);
|
|
352
293
|
}
|
|
353
294
|
const data = await parseBody(output.body, context);
|
|
354
295
|
let contents = {};
|
|
@@ -359,43 +300,9 @@ export const de_DefineAnalysisSchemeCommand = async (output, context) => {
|
|
|
359
300
|
};
|
|
360
301
|
return response;
|
|
361
302
|
};
|
|
362
|
-
const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
363
|
-
const parsedOutput = {
|
|
364
|
-
...output,
|
|
365
|
-
body: await parseErrorBody(output.body, context),
|
|
366
|
-
};
|
|
367
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
368
|
-
switch (errorCode) {
|
|
369
|
-
case "BaseException":
|
|
370
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
371
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
372
|
-
case "InternalException":
|
|
373
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
374
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
375
|
-
case "InvalidType":
|
|
376
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
377
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
378
|
-
case "LimitExceeded":
|
|
379
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
380
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ResourceNotFound":
|
|
382
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
383
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ValidationException":
|
|
385
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
387
|
-
default:
|
|
388
|
-
const parsedBody = parsedOutput.body;
|
|
389
|
-
return throwDefaultError({
|
|
390
|
-
output,
|
|
391
|
-
parsedBody: parsedBody.Error,
|
|
392
|
-
errorCode,
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
303
|
export const de_DefineExpressionCommand = async (output, context) => {
|
|
397
304
|
if (output.statusCode >= 300) {
|
|
398
|
-
return
|
|
305
|
+
return de_CommandError(output, context);
|
|
399
306
|
}
|
|
400
307
|
const data = await parseBody(output.body, context);
|
|
401
308
|
let contents = {};
|
|
@@ -406,43 +313,9 @@ export const de_DefineExpressionCommand = async (output, context) => {
|
|
|
406
313
|
};
|
|
407
314
|
return response;
|
|
408
315
|
};
|
|
409
|
-
const de_DefineExpressionCommandError = async (output, context) => {
|
|
410
|
-
const parsedOutput = {
|
|
411
|
-
...output,
|
|
412
|
-
body: await parseErrorBody(output.body, context),
|
|
413
|
-
};
|
|
414
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
415
|
-
switch (errorCode) {
|
|
416
|
-
case "BaseException":
|
|
417
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
418
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
419
|
-
case "InternalException":
|
|
420
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
421
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
422
|
-
case "InvalidType":
|
|
423
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
424
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
425
|
-
case "LimitExceeded":
|
|
426
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
427
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ResourceNotFound":
|
|
429
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
431
|
-
case "ValidationException":
|
|
432
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
|
-
default:
|
|
435
|
-
const parsedBody = parsedOutput.body;
|
|
436
|
-
return throwDefaultError({
|
|
437
|
-
output,
|
|
438
|
-
parsedBody: parsedBody.Error,
|
|
439
|
-
errorCode,
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
316
|
export const de_DefineIndexFieldCommand = async (output, context) => {
|
|
444
317
|
if (output.statusCode >= 300) {
|
|
445
|
-
return
|
|
318
|
+
return de_CommandError(output, context);
|
|
446
319
|
}
|
|
447
320
|
const data = await parseBody(output.body, context);
|
|
448
321
|
let contents = {};
|
|
@@ -453,43 +326,9 @@ export const de_DefineIndexFieldCommand = async (output, context) => {
|
|
|
453
326
|
};
|
|
454
327
|
return response;
|
|
455
328
|
};
|
|
456
|
-
const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
457
|
-
const parsedOutput = {
|
|
458
|
-
...output,
|
|
459
|
-
body: await parseErrorBody(output.body, context),
|
|
460
|
-
};
|
|
461
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
462
|
-
switch (errorCode) {
|
|
463
|
-
case "BaseException":
|
|
464
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
465
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
466
|
-
case "InternalException":
|
|
467
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
468
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
469
|
-
case "InvalidType":
|
|
470
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
471
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
472
|
-
case "LimitExceeded":
|
|
473
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
474
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ResourceNotFound":
|
|
476
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
477
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ValidationException":
|
|
479
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
480
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
481
|
-
default:
|
|
482
|
-
const parsedBody = parsedOutput.body;
|
|
483
|
-
return throwDefaultError({
|
|
484
|
-
output,
|
|
485
|
-
parsedBody: parsedBody.Error,
|
|
486
|
-
errorCode,
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
329
|
export const de_DefineSuggesterCommand = async (output, context) => {
|
|
491
330
|
if (output.statusCode >= 300) {
|
|
492
|
-
return
|
|
331
|
+
return de_CommandError(output, context);
|
|
493
332
|
}
|
|
494
333
|
const data = await parseBody(output.body, context);
|
|
495
334
|
let contents = {};
|
|
@@ -500,43 +339,9 @@ export const de_DefineSuggesterCommand = async (output, context) => {
|
|
|
500
339
|
};
|
|
501
340
|
return response;
|
|
502
341
|
};
|
|
503
|
-
const de_DefineSuggesterCommandError = async (output, context) => {
|
|
504
|
-
const parsedOutput = {
|
|
505
|
-
...output,
|
|
506
|
-
body: await parseErrorBody(output.body, context),
|
|
507
|
-
};
|
|
508
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
509
|
-
switch (errorCode) {
|
|
510
|
-
case "BaseException":
|
|
511
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
512
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
513
|
-
case "InternalException":
|
|
514
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
515
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
516
|
-
case "InvalidType":
|
|
517
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
518
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
519
|
-
case "LimitExceeded":
|
|
520
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
521
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ResourceNotFound":
|
|
523
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ValidationException":
|
|
526
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
527
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
528
|
-
default:
|
|
529
|
-
const parsedBody = parsedOutput.body;
|
|
530
|
-
return throwDefaultError({
|
|
531
|
-
output,
|
|
532
|
-
parsedBody: parsedBody.Error,
|
|
533
|
-
errorCode,
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
342
|
export const de_DeleteAnalysisSchemeCommand = async (output, context) => {
|
|
538
343
|
if (output.statusCode >= 300) {
|
|
539
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
540
345
|
}
|
|
541
346
|
const data = await parseBody(output.body, context);
|
|
542
347
|
let contents = {};
|
|
@@ -547,40 +352,9 @@ export const de_DeleteAnalysisSchemeCommand = async (output, context) => {
|
|
|
547
352
|
};
|
|
548
353
|
return response;
|
|
549
354
|
};
|
|
550
|
-
const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
551
|
-
const parsedOutput = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseErrorBody(output.body, context),
|
|
554
|
-
};
|
|
555
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
556
|
-
switch (errorCode) {
|
|
557
|
-
case "BaseException":
|
|
558
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
559
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
560
|
-
case "InternalException":
|
|
561
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
562
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
563
|
-
case "InvalidType":
|
|
564
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
565
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ResourceNotFound":
|
|
567
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ValidationException":
|
|
570
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
571
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
|
-
default:
|
|
573
|
-
const parsedBody = parsedOutput.body;
|
|
574
|
-
return throwDefaultError({
|
|
575
|
-
output,
|
|
576
|
-
parsedBody: parsedBody.Error,
|
|
577
|
-
errorCode,
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
355
|
export const de_DeleteDomainCommand = async (output, context) => {
|
|
582
356
|
if (output.statusCode >= 300) {
|
|
583
|
-
return
|
|
357
|
+
return de_CommandError(output, context);
|
|
584
358
|
}
|
|
585
359
|
const data = await parseBody(output.body, context);
|
|
586
360
|
let contents = {};
|
|
@@ -591,31 +365,9 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
591
365
|
};
|
|
592
366
|
return response;
|
|
593
367
|
};
|
|
594
|
-
const de_DeleteDomainCommandError = async (output, context) => {
|
|
595
|
-
const parsedOutput = {
|
|
596
|
-
...output,
|
|
597
|
-
body: await parseErrorBody(output.body, context),
|
|
598
|
-
};
|
|
599
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "BaseException":
|
|
602
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
603
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
604
|
-
case "InternalException":
|
|
605
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
606
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
607
|
-
default:
|
|
608
|
-
const parsedBody = parsedOutput.body;
|
|
609
|
-
return throwDefaultError({
|
|
610
|
-
output,
|
|
611
|
-
parsedBody: parsedBody.Error,
|
|
612
|
-
errorCode,
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
368
|
export const de_DeleteExpressionCommand = async (output, context) => {
|
|
617
369
|
if (output.statusCode >= 300) {
|
|
618
|
-
return
|
|
370
|
+
return de_CommandError(output, context);
|
|
619
371
|
}
|
|
620
372
|
const data = await parseBody(output.body, context);
|
|
621
373
|
let contents = {};
|
|
@@ -626,40 +378,9 @@ export const de_DeleteExpressionCommand = async (output, context) => {
|
|
|
626
378
|
};
|
|
627
379
|
return response;
|
|
628
380
|
};
|
|
629
|
-
const de_DeleteExpressionCommandError = async (output, context) => {
|
|
630
|
-
const parsedOutput = {
|
|
631
|
-
...output,
|
|
632
|
-
body: await parseErrorBody(output.body, context),
|
|
633
|
-
};
|
|
634
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
635
|
-
switch (errorCode) {
|
|
636
|
-
case "BaseException":
|
|
637
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
638
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
639
|
-
case "InternalException":
|
|
640
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
641
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InvalidType":
|
|
643
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
644
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ResourceNotFound":
|
|
646
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ValidationException":
|
|
649
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
651
|
-
default:
|
|
652
|
-
const parsedBody = parsedOutput.body;
|
|
653
|
-
return throwDefaultError({
|
|
654
|
-
output,
|
|
655
|
-
parsedBody: parsedBody.Error,
|
|
656
|
-
errorCode,
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
381
|
export const de_DeleteIndexFieldCommand = async (output, context) => {
|
|
661
382
|
if (output.statusCode >= 300) {
|
|
662
|
-
return
|
|
383
|
+
return de_CommandError(output, context);
|
|
663
384
|
}
|
|
664
385
|
const data = await parseBody(output.body, context);
|
|
665
386
|
let contents = {};
|
|
@@ -670,40 +391,9 @@ export const de_DeleteIndexFieldCommand = async (output, context) => {
|
|
|
670
391
|
};
|
|
671
392
|
return response;
|
|
672
393
|
};
|
|
673
|
-
const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
674
|
-
const parsedOutput = {
|
|
675
|
-
...output,
|
|
676
|
-
body: await parseErrorBody(output.body, context),
|
|
677
|
-
};
|
|
678
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
679
|
-
switch (errorCode) {
|
|
680
|
-
case "BaseException":
|
|
681
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
682
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalException":
|
|
684
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
685
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
686
|
-
case "InvalidType":
|
|
687
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
688
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ResourceNotFound":
|
|
690
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ValidationException":
|
|
693
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody: parsedBody.Error,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
394
|
export const de_DeleteSuggesterCommand = async (output, context) => {
|
|
705
395
|
if (output.statusCode >= 300) {
|
|
706
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
707
397
|
}
|
|
708
398
|
const data = await parseBody(output.body, context);
|
|
709
399
|
let contents = {};
|
|
@@ -714,40 +404,9 @@ export const de_DeleteSuggesterCommand = async (output, context) => {
|
|
|
714
404
|
};
|
|
715
405
|
return response;
|
|
716
406
|
};
|
|
717
|
-
const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context),
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "BaseException":
|
|
725
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
726
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
727
|
-
case "InternalException":
|
|
728
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
729
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
730
|
-
case "InvalidType":
|
|
731
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
732
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ResourceNotFound":
|
|
734
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
735
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ValidationException":
|
|
737
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody: parsedBody.Error,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
407
|
export const de_DescribeAnalysisSchemesCommand = async (output, context) => {
|
|
749
408
|
if (output.statusCode >= 300) {
|
|
750
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
751
410
|
}
|
|
752
411
|
const data = await parseBody(output.body, context);
|
|
753
412
|
let contents = {};
|
|
@@ -758,34 +417,9 @@ export const de_DescribeAnalysisSchemesCommand = async (output, context) => {
|
|
|
758
417
|
};
|
|
759
418
|
return response;
|
|
760
419
|
};
|
|
761
|
-
const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context),
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "BaseException":
|
|
769
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
770
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
771
|
-
case "InternalException":
|
|
772
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
773
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ResourceNotFound":
|
|
775
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
776
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
777
|
-
default:
|
|
778
|
-
const parsedBody = parsedOutput.body;
|
|
779
|
-
return throwDefaultError({
|
|
780
|
-
output,
|
|
781
|
-
parsedBody: parsedBody.Error,
|
|
782
|
-
errorCode,
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
};
|
|
786
420
|
export const de_DescribeAvailabilityOptionsCommand = async (output, context) => {
|
|
787
421
|
if (output.statusCode >= 300) {
|
|
788
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
789
423
|
}
|
|
790
424
|
const data = await parseBody(output.body, context);
|
|
791
425
|
let contents = {};
|
|
@@ -796,43 +430,9 @@ export const de_DescribeAvailabilityOptionsCommand = async (output, context) =>
|
|
|
796
430
|
};
|
|
797
431
|
return response;
|
|
798
432
|
};
|
|
799
|
-
const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context),
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "BaseException":
|
|
807
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
808
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
809
|
-
case "DisabledAction":
|
|
810
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
811
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
812
|
-
case "InternalException":
|
|
813
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
814
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
815
|
-
case "InvalidType":
|
|
816
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
817
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
818
|
-
case "LimitExceeded":
|
|
819
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
820
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ResourceNotFound":
|
|
822
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
823
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
824
|
-
default:
|
|
825
|
-
const parsedBody = parsedOutput.body;
|
|
826
|
-
return throwDefaultError({
|
|
827
|
-
output,
|
|
828
|
-
parsedBody: parsedBody.Error,
|
|
829
|
-
errorCode,
|
|
830
|
-
});
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
433
|
export const de_DescribeDomainEndpointOptionsCommand = async (output, context) => {
|
|
834
434
|
if (output.statusCode >= 300) {
|
|
835
|
-
return
|
|
435
|
+
return de_CommandError(output, context);
|
|
836
436
|
}
|
|
837
437
|
const data = await parseBody(output.body, context);
|
|
838
438
|
let contents = {};
|
|
@@ -843,40 +443,9 @@ export const de_DescribeDomainEndpointOptionsCommand = async (output, context) =
|
|
|
843
443
|
};
|
|
844
444
|
return response;
|
|
845
445
|
};
|
|
846
|
-
const de_DescribeDomainEndpointOptionsCommandError = async (output, context) => {
|
|
847
|
-
const parsedOutput = {
|
|
848
|
-
...output,
|
|
849
|
-
body: await parseErrorBody(output.body, context),
|
|
850
|
-
};
|
|
851
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
852
|
-
switch (errorCode) {
|
|
853
|
-
case "BaseException":
|
|
854
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
855
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
856
|
-
case "DisabledAction":
|
|
857
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
858
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
859
|
-
case "InternalException":
|
|
860
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
861
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
862
|
-
case "LimitExceeded":
|
|
863
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
864
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ResourceNotFound":
|
|
866
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
867
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
868
|
-
default:
|
|
869
|
-
const parsedBody = parsedOutput.body;
|
|
870
|
-
return throwDefaultError({
|
|
871
|
-
output,
|
|
872
|
-
parsedBody: parsedBody.Error,
|
|
873
|
-
errorCode,
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
};
|
|
877
446
|
export const de_DescribeDomainsCommand = async (output, context) => {
|
|
878
447
|
if (output.statusCode >= 300) {
|
|
879
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
880
449
|
}
|
|
881
450
|
const data = await parseBody(output.body, context);
|
|
882
451
|
let contents = {};
|
|
@@ -887,107 +456,35 @@ export const de_DescribeDomainsCommand = async (output, context) => {
|
|
|
887
456
|
};
|
|
888
457
|
return response;
|
|
889
458
|
};
|
|
890
|
-
const de_DescribeDomainsCommandError = async (output, context) => {
|
|
891
|
-
const parsedOutput = {
|
|
892
|
-
...output,
|
|
893
|
-
body: await parseErrorBody(output.body, context),
|
|
894
|
-
};
|
|
895
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
896
|
-
switch (errorCode) {
|
|
897
|
-
case "BaseException":
|
|
898
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
899
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
900
|
-
case "InternalException":
|
|
901
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
902
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody: parsedBody.Error,
|
|
908
|
-
errorCode,
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
459
|
export const de_DescribeExpressionsCommand = async (output, context) => {
|
|
913
460
|
if (output.statusCode >= 300) {
|
|
914
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
915
462
|
}
|
|
916
463
|
const data = await parseBody(output.body, context);
|
|
917
464
|
let contents = {};
|
|
918
465
|
contents = de_DescribeExpressionsResponse(data.DescribeExpressionsResult, context);
|
|
919
|
-
const response = {
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
...contents,
|
|
922
|
-
};
|
|
923
|
-
return response;
|
|
924
|
-
};
|
|
925
|
-
const
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
body: await parseErrorBody(output.body, context),
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "BaseException":
|
|
933
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
934
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
935
|
-
case "InternalException":
|
|
936
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
937
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ResourceNotFound":
|
|
939
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
940
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
941
|
-
default:
|
|
942
|
-
const parsedBody = parsedOutput.body;
|
|
943
|
-
return throwDefaultError({
|
|
944
|
-
output,
|
|
945
|
-
parsedBody: parsedBody.Error,
|
|
946
|
-
errorCode,
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
|
-
export const de_DescribeIndexFieldsCommand = async (output, context) => {
|
|
951
|
-
if (output.statusCode >= 300) {
|
|
952
|
-
return de_DescribeIndexFieldsCommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const data = await parseBody(output.body, context);
|
|
955
|
-
let contents = {};
|
|
956
|
-
contents = de_DescribeIndexFieldsResponse(data.DescribeIndexFieldsResult, context);
|
|
957
|
-
const response = {
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
...contents,
|
|
960
|
-
};
|
|
961
|
-
return response;
|
|
962
|
-
};
|
|
963
|
-
const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
964
|
-
const parsedOutput = {
|
|
965
|
-
...output,
|
|
966
|
-
body: await parseErrorBody(output.body, context),
|
|
967
|
-
};
|
|
968
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
969
|
-
switch (errorCode) {
|
|
970
|
-
case "BaseException":
|
|
971
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
972
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InternalException":
|
|
974
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
975
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ResourceNotFound":
|
|
977
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
978
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody: parsedBody.Error,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
466
|
+
const response = {
|
|
467
|
+
$metadata: deserializeMetadata(output),
|
|
468
|
+
...contents,
|
|
469
|
+
};
|
|
470
|
+
return response;
|
|
471
|
+
};
|
|
472
|
+
export const de_DescribeIndexFieldsCommand = async (output, context) => {
|
|
473
|
+
if (output.statusCode >= 300) {
|
|
474
|
+
return de_CommandError(output, context);
|
|
986
475
|
}
|
|
476
|
+
const data = await parseBody(output.body, context);
|
|
477
|
+
let contents = {};
|
|
478
|
+
contents = de_DescribeIndexFieldsResponse(data.DescribeIndexFieldsResult, context);
|
|
479
|
+
const response = {
|
|
480
|
+
$metadata: deserializeMetadata(output),
|
|
481
|
+
...contents,
|
|
482
|
+
};
|
|
483
|
+
return response;
|
|
987
484
|
};
|
|
988
485
|
export const de_DescribeScalingParametersCommand = async (output, context) => {
|
|
989
486
|
if (output.statusCode >= 300) {
|
|
990
|
-
return
|
|
487
|
+
return de_CommandError(output, context);
|
|
991
488
|
}
|
|
992
489
|
const data = await parseBody(output.body, context);
|
|
993
490
|
let contents = {};
|
|
@@ -998,34 +495,9 @@ export const de_DescribeScalingParametersCommand = async (output, context) => {
|
|
|
998
495
|
};
|
|
999
496
|
return response;
|
|
1000
497
|
};
|
|
1001
|
-
const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
1002
|
-
const parsedOutput = {
|
|
1003
|
-
...output,
|
|
1004
|
-
body: await parseErrorBody(output.body, context),
|
|
1005
|
-
};
|
|
1006
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1007
|
-
switch (errorCode) {
|
|
1008
|
-
case "BaseException":
|
|
1009
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1010
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "InternalException":
|
|
1012
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1013
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ResourceNotFound":
|
|
1015
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
-
default:
|
|
1018
|
-
const parsedBody = parsedOutput.body;
|
|
1019
|
-
return throwDefaultError({
|
|
1020
|
-
output,
|
|
1021
|
-
parsedBody: parsedBody.Error,
|
|
1022
|
-
errorCode,
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
498
|
export const de_DescribeServiceAccessPoliciesCommand = async (output, context) => {
|
|
1027
499
|
if (output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
1029
501
|
}
|
|
1030
502
|
const data = await parseBody(output.body, context);
|
|
1031
503
|
let contents = {};
|
|
@@ -1036,34 +508,9 @@ export const de_DescribeServiceAccessPoliciesCommand = async (output, context) =
|
|
|
1036
508
|
};
|
|
1037
509
|
return response;
|
|
1038
510
|
};
|
|
1039
|
-
const de_DescribeServiceAccessPoliciesCommandError = async (output, context) => {
|
|
1040
|
-
const parsedOutput = {
|
|
1041
|
-
...output,
|
|
1042
|
-
body: await parseErrorBody(output.body, context),
|
|
1043
|
-
};
|
|
1044
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1045
|
-
switch (errorCode) {
|
|
1046
|
-
case "BaseException":
|
|
1047
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1048
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "InternalException":
|
|
1050
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1051
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "ResourceNotFound":
|
|
1053
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1054
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1055
|
-
default:
|
|
1056
|
-
const parsedBody = parsedOutput.body;
|
|
1057
|
-
return throwDefaultError({
|
|
1058
|
-
output,
|
|
1059
|
-
parsedBody: parsedBody.Error,
|
|
1060
|
-
errorCode,
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
};
|
|
1064
511
|
export const de_DescribeSuggestersCommand = async (output, context) => {
|
|
1065
512
|
if (output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
1067
514
|
}
|
|
1068
515
|
const data = await parseBody(output.body, context);
|
|
1069
516
|
let contents = {};
|
|
@@ -1074,34 +521,9 @@ export const de_DescribeSuggestersCommand = async (output, context) => {
|
|
|
1074
521
|
};
|
|
1075
522
|
return response;
|
|
1076
523
|
};
|
|
1077
|
-
const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
1078
|
-
const parsedOutput = {
|
|
1079
|
-
...output,
|
|
1080
|
-
body: await parseErrorBody(output.body, context),
|
|
1081
|
-
};
|
|
1082
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1083
|
-
switch (errorCode) {
|
|
1084
|
-
case "BaseException":
|
|
1085
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1086
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "InternalException":
|
|
1088
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1089
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ResourceNotFound":
|
|
1091
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1092
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1093
|
-
default:
|
|
1094
|
-
const parsedBody = parsedOutput.body;
|
|
1095
|
-
return throwDefaultError({
|
|
1096
|
-
output,
|
|
1097
|
-
parsedBody: parsedBody.Error,
|
|
1098
|
-
errorCode,
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
};
|
|
1102
524
|
export const de_IndexDocumentsCommand = async (output, context) => {
|
|
1103
525
|
if (output.statusCode >= 300) {
|
|
1104
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
1105
527
|
}
|
|
1106
528
|
const data = await parseBody(output.body, context);
|
|
1107
529
|
let contents = {};
|
|
@@ -1112,37 +534,9 @@ export const de_IndexDocumentsCommand = async (output, context) => {
|
|
|
1112
534
|
};
|
|
1113
535
|
return response;
|
|
1114
536
|
};
|
|
1115
|
-
const de_IndexDocumentsCommandError = async (output, context) => {
|
|
1116
|
-
const parsedOutput = {
|
|
1117
|
-
...output,
|
|
1118
|
-
body: await parseErrorBody(output.body, context),
|
|
1119
|
-
};
|
|
1120
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1121
|
-
switch (errorCode) {
|
|
1122
|
-
case "BaseException":
|
|
1123
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1124
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "InternalException":
|
|
1126
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1127
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ResourceNotFound":
|
|
1129
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1130
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "ValidationException":
|
|
1132
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1133
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1134
|
-
default:
|
|
1135
|
-
const parsedBody = parsedOutput.body;
|
|
1136
|
-
return throwDefaultError({
|
|
1137
|
-
output,
|
|
1138
|
-
parsedBody: parsedBody.Error,
|
|
1139
|
-
errorCode,
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
537
|
export const de_ListDomainNamesCommand = async (output, context) => {
|
|
1144
538
|
if (output.statusCode >= 300) {
|
|
1145
|
-
return
|
|
539
|
+
return de_CommandError(output, context);
|
|
1146
540
|
}
|
|
1147
541
|
const data = await parseBody(output.body, context);
|
|
1148
542
|
let contents = {};
|
|
@@ -1153,28 +547,9 @@ export const de_ListDomainNamesCommand = async (output, context) => {
|
|
|
1153
547
|
};
|
|
1154
548
|
return response;
|
|
1155
549
|
};
|
|
1156
|
-
const de_ListDomainNamesCommandError = async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context),
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "BaseException":
|
|
1164
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1165
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1166
|
-
default:
|
|
1167
|
-
const parsedBody = parsedOutput.body;
|
|
1168
|
-
return throwDefaultError({
|
|
1169
|
-
output,
|
|
1170
|
-
parsedBody: parsedBody.Error,
|
|
1171
|
-
errorCode,
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
};
|
|
1175
550
|
export const de_UpdateAvailabilityOptionsCommand = async (output, context) => {
|
|
1176
551
|
if (output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
1178
553
|
}
|
|
1179
554
|
const data = await parseBody(output.body, context);
|
|
1180
555
|
let contents = {};
|
|
@@ -1185,46 +560,9 @@ export const de_UpdateAvailabilityOptionsCommand = async (output, context) => {
|
|
|
1185
560
|
};
|
|
1186
561
|
return response;
|
|
1187
562
|
};
|
|
1188
|
-
const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
1189
|
-
const parsedOutput = {
|
|
1190
|
-
...output,
|
|
1191
|
-
body: await parseErrorBody(output.body, context),
|
|
1192
|
-
};
|
|
1193
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1194
|
-
switch (errorCode) {
|
|
1195
|
-
case "BaseException":
|
|
1196
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1197
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "DisabledAction":
|
|
1199
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1200
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "InternalException":
|
|
1202
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1203
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "InvalidType":
|
|
1205
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1206
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "LimitExceeded":
|
|
1208
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1209
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "ResourceNotFound":
|
|
1211
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ValidationException":
|
|
1214
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1215
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1216
|
-
default:
|
|
1217
|
-
const parsedBody = parsedOutput.body;
|
|
1218
|
-
return throwDefaultError({
|
|
1219
|
-
output,
|
|
1220
|
-
parsedBody: parsedBody.Error,
|
|
1221
|
-
errorCode,
|
|
1222
|
-
});
|
|
1223
|
-
}
|
|
1224
|
-
};
|
|
1225
563
|
export const de_UpdateDomainEndpointOptionsCommand = async (output, context) => {
|
|
1226
564
|
if (output.statusCode >= 300) {
|
|
1227
|
-
return
|
|
565
|
+
return de_CommandError(output, context);
|
|
1228
566
|
}
|
|
1229
567
|
const data = await parseBody(output.body, context);
|
|
1230
568
|
let contents = {};
|
|
@@ -1235,46 +573,9 @@ export const de_UpdateDomainEndpointOptionsCommand = async (output, context) =>
|
|
|
1235
573
|
};
|
|
1236
574
|
return response;
|
|
1237
575
|
};
|
|
1238
|
-
const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
1239
|
-
const parsedOutput = {
|
|
1240
|
-
...output,
|
|
1241
|
-
body: await parseErrorBody(output.body, context),
|
|
1242
|
-
};
|
|
1243
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1244
|
-
switch (errorCode) {
|
|
1245
|
-
case "BaseException":
|
|
1246
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1247
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "DisabledAction":
|
|
1249
|
-
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
1250
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "InternalException":
|
|
1252
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1253
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "InvalidType":
|
|
1255
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1256
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "LimitExceeded":
|
|
1258
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1259
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "ResourceNotFound":
|
|
1261
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1262
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "ValidationException":
|
|
1264
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1265
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1266
|
-
default:
|
|
1267
|
-
const parsedBody = parsedOutput.body;
|
|
1268
|
-
return throwDefaultError({
|
|
1269
|
-
output,
|
|
1270
|
-
parsedBody: parsedBody.Error,
|
|
1271
|
-
errorCode,
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
|
-
};
|
|
1275
576
|
export const de_UpdateScalingParametersCommand = async (output, context) => {
|
|
1276
577
|
if (output.statusCode >= 300) {
|
|
1277
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
1278
579
|
}
|
|
1279
580
|
const data = await parseBody(output.body, context);
|
|
1280
581
|
let contents = {};
|
|
@@ -1285,43 +586,9 @@ export const de_UpdateScalingParametersCommand = async (output, context) => {
|
|
|
1285
586
|
};
|
|
1286
587
|
return response;
|
|
1287
588
|
};
|
|
1288
|
-
const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
1289
|
-
const parsedOutput = {
|
|
1290
|
-
...output,
|
|
1291
|
-
body: await parseErrorBody(output.body, context),
|
|
1292
|
-
};
|
|
1293
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1294
|
-
switch (errorCode) {
|
|
1295
|
-
case "BaseException":
|
|
1296
|
-
case "com.amazonaws.cloudsearch#BaseException":
|
|
1297
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "InternalException":
|
|
1299
|
-
case "com.amazonaws.cloudsearch#InternalException":
|
|
1300
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "InvalidType":
|
|
1302
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1303
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "LimitExceeded":
|
|
1305
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1306
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "ResourceNotFound":
|
|
1308
|
-
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1309
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "ValidationException":
|
|
1311
|
-
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1312
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1313
|
-
default:
|
|
1314
|
-
const parsedBody = parsedOutput.body;
|
|
1315
|
-
return throwDefaultError({
|
|
1316
|
-
output,
|
|
1317
|
-
parsedBody: parsedBody.Error,
|
|
1318
|
-
errorCode,
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
};
|
|
1322
589
|
export const de_UpdateServiceAccessPoliciesCommand = async (output, context) => {
|
|
1323
590
|
if (output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
1325
592
|
}
|
|
1326
593
|
const data = await parseBody(output.body, context);
|
|
1327
594
|
let contents = {};
|
|
@@ -1332,7 +599,7 @@ export const de_UpdateServiceAccessPoliciesCommand = async (output, context) =>
|
|
|
1332
599
|
};
|
|
1333
600
|
return response;
|
|
1334
601
|
};
|
|
1335
|
-
const
|
|
602
|
+
const de_CommandError = async (output, context) => {
|
|
1336
603
|
const parsedOutput = {
|
|
1337
604
|
...output,
|
|
1338
605
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1345,18 +612,24 @@ const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
|
1345
612
|
case "InternalException":
|
|
1346
613
|
case "com.amazonaws.cloudsearch#InternalException":
|
|
1347
614
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "InvalidType":
|
|
1349
|
-
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
1350
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "LimitExceeded":
|
|
1352
|
-
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
1353
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1354
615
|
case "ResourceNotFound":
|
|
1355
616
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException":
|
|
1356
617
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
618
|
case "ValidationException":
|
|
1358
619
|
case "com.amazonaws.cloudsearch#ValidationException":
|
|
1359
620
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
|
+
case "LimitExceeded":
|
|
622
|
+
case "com.amazonaws.cloudsearch#LimitExceededException":
|
|
623
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
624
|
+
case "ResourceAlreadyExists":
|
|
625
|
+
case "com.amazonaws.cloudsearch#ResourceAlreadyExistsException":
|
|
626
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
627
|
+
case "InvalidType":
|
|
628
|
+
case "com.amazonaws.cloudsearch#InvalidTypeException":
|
|
629
|
+
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
630
|
+
case "DisabledAction":
|
|
631
|
+
case "com.amazonaws.cloudsearch#DisabledOperationException":
|
|
632
|
+
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1360
633
|
default:
|
|
1361
634
|
const parsedBody = parsedOutput.body;
|
|
1362
635
|
return throwDefaultError({
|