@aws-sdk/client-appintegrations 3.503.1 → 3.507.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 +35 -643
- package/dist-es/protocols/Aws_restJson1.js +34 -642
- package/package.json +3 -3
|
@@ -280,7 +280,7 @@ export const se_UpdateEventIntegrationCommand = async (input, context) => {
|
|
|
280
280
|
};
|
|
281
281
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
282
282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
283
|
-
return
|
|
283
|
+
return de_CommandError(output, context);
|
|
284
284
|
}
|
|
285
285
|
const contents = map({
|
|
286
286
|
$metadata: deserializeMetadata(output),
|
|
@@ -293,46 +293,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
293
293
|
Object.assign(contents, doc);
|
|
294
294
|
return contents;
|
|
295
295
|
};
|
|
296
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
297
|
-
const parsedOutput = {
|
|
298
|
-
...output,
|
|
299
|
-
body: await parseErrorBody(output.body, context),
|
|
300
|
-
};
|
|
301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
302
|
-
switch (errorCode) {
|
|
303
|
-
case "AccessDeniedException":
|
|
304
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
305
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
306
|
-
case "DuplicateResourceException":
|
|
307
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
308
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
309
|
-
case "InternalServiceError":
|
|
310
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
311
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
312
|
-
case "InvalidRequestException":
|
|
313
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
314
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
315
|
-
case "ResourceQuotaExceededException":
|
|
316
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
317
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
318
|
-
case "ThrottlingException":
|
|
319
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
320
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
321
|
-
case "UnsupportedOperationException":
|
|
322
|
-
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
323
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
324
|
-
default:
|
|
325
|
-
const parsedBody = parsedOutput.body;
|
|
326
|
-
return throwDefaultError({
|
|
327
|
-
output,
|
|
328
|
-
parsedBody,
|
|
329
|
-
errorCode,
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
296
|
export const de_CreateDataIntegrationCommand = async (output, context) => {
|
|
334
297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
|
-
return
|
|
298
|
+
return de_CommandError(output, context);
|
|
336
299
|
}
|
|
337
300
|
const contents = map({
|
|
338
301
|
$metadata: deserializeMetadata(output),
|
|
@@ -354,43 +317,9 @@ export const de_CreateDataIntegrationCommand = async (output, context) => {
|
|
|
354
317
|
Object.assign(contents, doc);
|
|
355
318
|
return contents;
|
|
356
319
|
};
|
|
357
|
-
const de_CreateDataIntegrationCommandError = async (output, context) => {
|
|
358
|
-
const parsedOutput = {
|
|
359
|
-
...output,
|
|
360
|
-
body: await parseErrorBody(output.body, context),
|
|
361
|
-
};
|
|
362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
363
|
-
switch (errorCode) {
|
|
364
|
-
case "AccessDeniedException":
|
|
365
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
366
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
367
|
-
case "DuplicateResourceException":
|
|
368
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
369
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
370
|
-
case "InternalServiceError":
|
|
371
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
372
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
373
|
-
case "InvalidRequestException":
|
|
374
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
375
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
376
|
-
case "ResourceQuotaExceededException":
|
|
377
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
378
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
379
|
-
case "ThrottlingException":
|
|
380
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
381
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
382
|
-
default:
|
|
383
|
-
const parsedBody = parsedOutput.body;
|
|
384
|
-
return throwDefaultError({
|
|
385
|
-
output,
|
|
386
|
-
parsedBody,
|
|
387
|
-
errorCode,
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
320
|
export const de_CreateEventIntegrationCommand = async (output, context) => {
|
|
392
321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
393
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
394
323
|
}
|
|
395
324
|
const contents = map({
|
|
396
325
|
$metadata: deserializeMetadata(output),
|
|
@@ -402,43 +331,9 @@ export const de_CreateEventIntegrationCommand = async (output, context) => {
|
|
|
402
331
|
Object.assign(contents, doc);
|
|
403
332
|
return contents;
|
|
404
333
|
};
|
|
405
|
-
const de_CreateEventIntegrationCommandError = async (output, context) => {
|
|
406
|
-
const parsedOutput = {
|
|
407
|
-
...output,
|
|
408
|
-
body: await parseErrorBody(output.body, context),
|
|
409
|
-
};
|
|
410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
-
switch (errorCode) {
|
|
412
|
-
case "AccessDeniedException":
|
|
413
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
415
|
-
case "DuplicateResourceException":
|
|
416
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
417
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
418
|
-
case "InternalServiceError":
|
|
419
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
420
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
421
|
-
case "InvalidRequestException":
|
|
422
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
423
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ResourceQuotaExceededException":
|
|
425
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
426
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ThrottlingException":
|
|
428
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
429
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
430
|
-
default:
|
|
431
|
-
const parsedBody = parsedOutput.body;
|
|
432
|
-
return throwDefaultError({
|
|
433
|
-
output,
|
|
434
|
-
parsedBody,
|
|
435
|
-
errorCode,
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
334
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
440
335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
-
return
|
|
336
|
+
return de_CommandError(output, context);
|
|
442
337
|
}
|
|
443
338
|
const contents = map({
|
|
444
339
|
$metadata: deserializeMetadata(output),
|
|
@@ -446,40 +341,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
446
341
|
await collectBody(output.body, context);
|
|
447
342
|
return contents;
|
|
448
343
|
};
|
|
449
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
450
|
-
const parsedOutput = {
|
|
451
|
-
...output,
|
|
452
|
-
body: await parseErrorBody(output.body, context),
|
|
453
|
-
};
|
|
454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
-
switch (errorCode) {
|
|
456
|
-
case "AccessDeniedException":
|
|
457
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
459
|
-
case "InternalServiceError":
|
|
460
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
461
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
462
|
-
case "InvalidRequestException":
|
|
463
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
464
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ResourceNotFoundException":
|
|
466
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ThrottlingException":
|
|
469
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
471
|
-
default:
|
|
472
|
-
const parsedBody = parsedOutput.body;
|
|
473
|
-
return throwDefaultError({
|
|
474
|
-
output,
|
|
475
|
-
parsedBody,
|
|
476
|
-
errorCode,
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
344
|
export const de_DeleteDataIntegrationCommand = async (output, context) => {
|
|
481
345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return
|
|
346
|
+
return de_CommandError(output, context);
|
|
483
347
|
}
|
|
484
348
|
const contents = map({
|
|
485
349
|
$metadata: deserializeMetadata(output),
|
|
@@ -487,40 +351,9 @@ export const de_DeleteDataIntegrationCommand = async (output, context) => {
|
|
|
487
351
|
await collectBody(output.body, context);
|
|
488
352
|
return contents;
|
|
489
353
|
};
|
|
490
|
-
const de_DeleteDataIntegrationCommandError = async (output, context) => {
|
|
491
|
-
const parsedOutput = {
|
|
492
|
-
...output,
|
|
493
|
-
body: await parseErrorBody(output.body, context),
|
|
494
|
-
};
|
|
495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
-
switch (errorCode) {
|
|
497
|
-
case "AccessDeniedException":
|
|
498
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
499
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
500
|
-
case "InternalServiceError":
|
|
501
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
502
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
503
|
-
case "InvalidRequestException":
|
|
504
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
505
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ResourceNotFoundException":
|
|
507
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
508
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ThrottlingException":
|
|
510
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
511
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
512
|
-
default:
|
|
513
|
-
const parsedBody = parsedOutput.body;
|
|
514
|
-
return throwDefaultError({
|
|
515
|
-
output,
|
|
516
|
-
parsedBody,
|
|
517
|
-
errorCode,
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
354
|
export const de_DeleteEventIntegrationCommand = async (output, context) => {
|
|
522
355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
523
|
-
return
|
|
356
|
+
return de_CommandError(output, context);
|
|
524
357
|
}
|
|
525
358
|
const contents = map({
|
|
526
359
|
$metadata: deserializeMetadata(output),
|
|
@@ -528,40 +361,9 @@ export const de_DeleteEventIntegrationCommand = async (output, context) => {
|
|
|
528
361
|
await collectBody(output.body, context);
|
|
529
362
|
return contents;
|
|
530
363
|
};
|
|
531
|
-
const de_DeleteEventIntegrationCommandError = async (output, context) => {
|
|
532
|
-
const parsedOutput = {
|
|
533
|
-
...output,
|
|
534
|
-
body: await parseErrorBody(output.body, context),
|
|
535
|
-
};
|
|
536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
-
switch (errorCode) {
|
|
538
|
-
case "AccessDeniedException":
|
|
539
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
540
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
541
|
-
case "InternalServiceError":
|
|
542
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
543
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
544
|
-
case "InvalidRequestException":
|
|
545
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
546
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ResourceNotFoundException":
|
|
548
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
549
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ThrottlingException":
|
|
551
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
552
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
553
|
-
default:
|
|
554
|
-
const parsedBody = parsedOutput.body;
|
|
555
|
-
return throwDefaultError({
|
|
556
|
-
output,
|
|
557
|
-
parsedBody,
|
|
558
|
-
errorCode,
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
364
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
563
365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
565
367
|
}
|
|
566
368
|
const contents = map({
|
|
567
369
|
$metadata: deserializeMetadata(output),
|
|
@@ -584,40 +386,9 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
584
386
|
Object.assign(contents, doc);
|
|
585
387
|
return contents;
|
|
586
388
|
};
|
|
587
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
588
|
-
const parsedOutput = {
|
|
589
|
-
...output,
|
|
590
|
-
body: await parseErrorBody(output.body, context),
|
|
591
|
-
};
|
|
592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
-
switch (errorCode) {
|
|
594
|
-
case "AccessDeniedException":
|
|
595
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
596
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
-
case "InternalServiceError":
|
|
598
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
599
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
600
|
-
case "InvalidRequestException":
|
|
601
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
602
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ResourceNotFoundException":
|
|
604
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ThrottlingException":
|
|
607
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
609
|
-
default:
|
|
610
|
-
const parsedBody = parsedOutput.body;
|
|
611
|
-
return throwDefaultError({
|
|
612
|
-
output,
|
|
613
|
-
parsedBody,
|
|
614
|
-
errorCode,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
389
|
export const de_GetDataIntegrationCommand = async (output, context) => {
|
|
619
390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
-
return
|
|
391
|
+
return de_CommandError(output, context);
|
|
621
392
|
}
|
|
622
393
|
const contents = map({
|
|
623
394
|
$metadata: deserializeMetadata(output),
|
|
@@ -638,40 +409,9 @@ export const de_GetDataIntegrationCommand = async (output, context) => {
|
|
|
638
409
|
Object.assign(contents, doc);
|
|
639
410
|
return contents;
|
|
640
411
|
};
|
|
641
|
-
const de_GetDataIntegrationCommandError = async (output, context) => {
|
|
642
|
-
const parsedOutput = {
|
|
643
|
-
...output,
|
|
644
|
-
body: await parseErrorBody(output.body, context),
|
|
645
|
-
};
|
|
646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
|
-
switch (errorCode) {
|
|
648
|
-
case "AccessDeniedException":
|
|
649
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
650
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
651
|
-
case "InternalServiceError":
|
|
652
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
653
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
654
|
-
case "InvalidRequestException":
|
|
655
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
656
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ResourceNotFoundException":
|
|
658
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ThrottlingException":
|
|
661
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
663
|
-
default:
|
|
664
|
-
const parsedBody = parsedOutput.body;
|
|
665
|
-
return throwDefaultError({
|
|
666
|
-
output,
|
|
667
|
-
parsedBody,
|
|
668
|
-
errorCode,
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
412
|
export const de_GetEventIntegrationCommand = async (output, context) => {
|
|
673
413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
674
|
-
return
|
|
414
|
+
return de_CommandError(output, context);
|
|
675
415
|
}
|
|
676
416
|
const contents = map({
|
|
677
417
|
$metadata: deserializeMetadata(output),
|
|
@@ -688,40 +428,9 @@ export const de_GetEventIntegrationCommand = async (output, context) => {
|
|
|
688
428
|
Object.assign(contents, doc);
|
|
689
429
|
return contents;
|
|
690
430
|
};
|
|
691
|
-
const de_GetEventIntegrationCommandError = async (output, context) => {
|
|
692
|
-
const parsedOutput = {
|
|
693
|
-
...output,
|
|
694
|
-
body: await parseErrorBody(output.body, context),
|
|
695
|
-
};
|
|
696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
-
switch (errorCode) {
|
|
698
|
-
case "AccessDeniedException":
|
|
699
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
700
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
701
|
-
case "InternalServiceError":
|
|
702
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
703
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
704
|
-
case "InvalidRequestException":
|
|
705
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
706
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
707
|
-
case "ResourceNotFoundException":
|
|
708
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
709
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ThrottlingException":
|
|
711
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
712
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
713
|
-
default:
|
|
714
|
-
const parsedBody = parsedOutput.body;
|
|
715
|
-
return throwDefaultError({
|
|
716
|
-
output,
|
|
717
|
-
parsedBody,
|
|
718
|
-
errorCode,
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
|
-
};
|
|
722
431
|
export const de_ListApplicationAssociationsCommand = async (output, context) => {
|
|
723
432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
-
return
|
|
433
|
+
return de_CommandError(output, context);
|
|
725
434
|
}
|
|
726
435
|
const contents = map({
|
|
727
436
|
$metadata: deserializeMetadata(output),
|
|
@@ -734,40 +443,9 @@ export const de_ListApplicationAssociationsCommand = async (output, context) =>
|
|
|
734
443
|
Object.assign(contents, doc);
|
|
735
444
|
return contents;
|
|
736
445
|
};
|
|
737
|
-
const de_ListApplicationAssociationsCommandError = async (output, context) => {
|
|
738
|
-
const parsedOutput = {
|
|
739
|
-
...output,
|
|
740
|
-
body: await parseErrorBody(output.body, context),
|
|
741
|
-
};
|
|
742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
-
switch (errorCode) {
|
|
744
|
-
case "AccessDeniedException":
|
|
745
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
746
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
747
|
-
case "InternalServiceError":
|
|
748
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
749
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
750
|
-
case "InvalidRequestException":
|
|
751
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
752
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
753
|
-
case "ResourceNotFoundException":
|
|
754
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ThrottlingException":
|
|
757
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
758
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
759
|
-
default:
|
|
760
|
-
const parsedBody = parsedOutput.body;
|
|
761
|
-
return throwDefaultError({
|
|
762
|
-
output,
|
|
763
|
-
parsedBody,
|
|
764
|
-
errorCode,
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
446
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
769
447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
771
449
|
}
|
|
772
450
|
const contents = map({
|
|
773
451
|
$metadata: deserializeMetadata(output),
|
|
@@ -780,37 +458,9 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
780
458
|
Object.assign(contents, doc);
|
|
781
459
|
return contents;
|
|
782
460
|
};
|
|
783
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
784
|
-
const parsedOutput = {
|
|
785
|
-
...output,
|
|
786
|
-
body: await parseErrorBody(output.body, context),
|
|
787
|
-
};
|
|
788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
-
switch (errorCode) {
|
|
790
|
-
case "AccessDeniedException":
|
|
791
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
792
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
793
|
-
case "InternalServiceError":
|
|
794
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
795
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
796
|
-
case "InvalidRequestException":
|
|
797
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
798
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ThrottlingException":
|
|
800
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
801
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
802
|
-
default:
|
|
803
|
-
const parsedBody = parsedOutput.body;
|
|
804
|
-
return throwDefaultError({
|
|
805
|
-
output,
|
|
806
|
-
parsedBody,
|
|
807
|
-
errorCode,
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
461
|
export const de_ListDataIntegrationAssociationsCommand = async (output, context) => {
|
|
812
462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
813
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
814
464
|
}
|
|
815
465
|
const contents = map({
|
|
816
466
|
$metadata: deserializeMetadata(output),
|
|
@@ -823,40 +473,9 @@ export const de_ListDataIntegrationAssociationsCommand = async (output, context)
|
|
|
823
473
|
Object.assign(contents, doc);
|
|
824
474
|
return contents;
|
|
825
475
|
};
|
|
826
|
-
const de_ListDataIntegrationAssociationsCommandError = async (output, context) => {
|
|
827
|
-
const parsedOutput = {
|
|
828
|
-
...output,
|
|
829
|
-
body: await parseErrorBody(output.body, context),
|
|
830
|
-
};
|
|
831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
|
-
switch (errorCode) {
|
|
833
|
-
case "AccessDeniedException":
|
|
834
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
835
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
836
|
-
case "InternalServiceError":
|
|
837
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
838
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
839
|
-
case "InvalidRequestException":
|
|
840
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
841
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
842
|
-
case "ResourceNotFoundException":
|
|
843
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
844
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
845
|
-
case "ThrottlingException":
|
|
846
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
847
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
848
|
-
default:
|
|
849
|
-
const parsedBody = parsedOutput.body;
|
|
850
|
-
return throwDefaultError({
|
|
851
|
-
output,
|
|
852
|
-
parsedBody,
|
|
853
|
-
errorCode,
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
476
|
export const de_ListDataIntegrationsCommand = async (output, context) => {
|
|
858
477
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
|
-
return
|
|
478
|
+
return de_CommandError(output, context);
|
|
860
479
|
}
|
|
861
480
|
const contents = map({
|
|
862
481
|
$metadata: deserializeMetadata(output),
|
|
@@ -869,37 +488,9 @@ export const de_ListDataIntegrationsCommand = async (output, context) => {
|
|
|
869
488
|
Object.assign(contents, doc);
|
|
870
489
|
return contents;
|
|
871
490
|
};
|
|
872
|
-
const de_ListDataIntegrationsCommandError = async (output, context) => {
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await parseErrorBody(output.body, context),
|
|
876
|
-
};
|
|
877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "AccessDeniedException":
|
|
880
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
881
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
882
|
-
case "InternalServiceError":
|
|
883
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
884
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
885
|
-
case "InvalidRequestException":
|
|
886
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
887
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ThrottlingException":
|
|
889
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
890
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode,
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
491
|
export const de_ListEventIntegrationAssociationsCommand = async (output, context) => {
|
|
901
492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
903
494
|
}
|
|
904
495
|
const contents = map({
|
|
905
496
|
$metadata: deserializeMetadata(output),
|
|
@@ -912,40 +503,9 @@ export const de_ListEventIntegrationAssociationsCommand = async (output, context
|
|
|
912
503
|
Object.assign(contents, doc);
|
|
913
504
|
return contents;
|
|
914
505
|
};
|
|
915
|
-
const de_ListEventIntegrationAssociationsCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "AccessDeniedException":
|
|
923
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
924
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
925
|
-
case "InternalServiceError":
|
|
926
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
927
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
928
|
-
case "InvalidRequestException":
|
|
929
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
930
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
506
|
export const de_ListEventIntegrationsCommand = async (output, context) => {
|
|
947
507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
948
|
-
return
|
|
508
|
+
return de_CommandError(output, context);
|
|
949
509
|
}
|
|
950
510
|
const contents = map({
|
|
951
511
|
$metadata: deserializeMetadata(output),
|
|
@@ -958,37 +518,9 @@ export const de_ListEventIntegrationsCommand = async (output, context) => {
|
|
|
958
518
|
Object.assign(contents, doc);
|
|
959
519
|
return contents;
|
|
960
520
|
};
|
|
961
|
-
const de_ListEventIntegrationsCommandError = async (output, context) => {
|
|
962
|
-
const parsedOutput = {
|
|
963
|
-
...output,
|
|
964
|
-
body: await parseErrorBody(output.body, context),
|
|
965
|
-
};
|
|
966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
-
switch (errorCode) {
|
|
968
|
-
case "AccessDeniedException":
|
|
969
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
970
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
971
|
-
case "InternalServiceError":
|
|
972
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
973
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
974
|
-
case "InvalidRequestException":
|
|
975
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
976
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ThrottlingException":
|
|
978
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
979
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode,
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
521
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
990
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
992
524
|
}
|
|
993
525
|
const contents = map({
|
|
994
526
|
$metadata: deserializeMetadata(output),
|
|
@@ -1000,37 +532,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1000
532
|
Object.assign(contents, doc);
|
|
1001
533
|
return contents;
|
|
1002
534
|
};
|
|
1003
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "InternalServiceError":
|
|
1011
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1012
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1013
|
-
case "InvalidRequestException":
|
|
1014
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1015
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ResourceNotFoundException":
|
|
1017
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1018
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ThrottlingException":
|
|
1020
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
-
default:
|
|
1023
|
-
const parsedBody = parsedOutput.body;
|
|
1024
|
-
return throwDefaultError({
|
|
1025
|
-
output,
|
|
1026
|
-
parsedBody,
|
|
1027
|
-
errorCode,
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
535
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1032
536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return
|
|
537
|
+
return de_CommandError(output, context);
|
|
1034
538
|
}
|
|
1035
539
|
const contents = map({
|
|
1036
540
|
$metadata: deserializeMetadata(output),
|
|
@@ -1038,37 +542,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1038
542
|
await collectBody(output.body, context);
|
|
1039
543
|
return contents;
|
|
1040
544
|
};
|
|
1041
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1042
|
-
const parsedOutput = {
|
|
1043
|
-
...output,
|
|
1044
|
-
body: await parseErrorBody(output.body, context),
|
|
1045
|
-
};
|
|
1046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
|
-
switch (errorCode) {
|
|
1048
|
-
case "InternalServiceError":
|
|
1049
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1050
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1051
|
-
case "InvalidRequestException":
|
|
1052
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1053
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "ResourceNotFoundException":
|
|
1055
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "ThrottlingException":
|
|
1058
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1059
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1060
|
-
default:
|
|
1061
|
-
const parsedBody = parsedOutput.body;
|
|
1062
|
-
return throwDefaultError({
|
|
1063
|
-
output,
|
|
1064
|
-
parsedBody,
|
|
1065
|
-
errorCode,
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
};
|
|
1069
545
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1070
546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
1072
548
|
}
|
|
1073
549
|
const contents = map({
|
|
1074
550
|
$metadata: deserializeMetadata(output),
|
|
@@ -1076,37 +552,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1076
552
|
await collectBody(output.body, context);
|
|
1077
553
|
return contents;
|
|
1078
554
|
};
|
|
1079
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1080
|
-
const parsedOutput = {
|
|
1081
|
-
...output,
|
|
1082
|
-
body: await parseErrorBody(output.body, context),
|
|
1083
|
-
};
|
|
1084
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
-
switch (errorCode) {
|
|
1086
|
-
case "InternalServiceError":
|
|
1087
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1088
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1089
|
-
case "InvalidRequestException":
|
|
1090
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1091
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ResourceNotFoundException":
|
|
1093
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1094
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "ThrottlingException":
|
|
1096
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1097
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1098
|
-
default:
|
|
1099
|
-
const parsedBody = parsedOutput.body;
|
|
1100
|
-
return throwDefaultError({
|
|
1101
|
-
output,
|
|
1102
|
-
parsedBody,
|
|
1103
|
-
errorCode,
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
};
|
|
1107
555
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1108
556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1109
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
1110
558
|
}
|
|
1111
559
|
const contents = map({
|
|
1112
560
|
$metadata: deserializeMetadata(output),
|
|
@@ -1114,43 +562,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1114
562
|
await collectBody(output.body, context);
|
|
1115
563
|
return contents;
|
|
1116
564
|
};
|
|
1117
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context),
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "AccessDeniedException":
|
|
1125
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1126
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "InternalServiceError":
|
|
1128
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1129
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1130
|
-
case "InvalidRequestException":
|
|
1131
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1132
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ResourceNotFoundException":
|
|
1134
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1135
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ThrottlingException":
|
|
1137
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1138
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "UnsupportedOperationException":
|
|
1140
|
-
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
1141
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1142
|
-
default:
|
|
1143
|
-
const parsedBody = parsedOutput.body;
|
|
1144
|
-
return throwDefaultError({
|
|
1145
|
-
output,
|
|
1146
|
-
parsedBody,
|
|
1147
|
-
errorCode,
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
565
|
export const de_UpdateDataIntegrationCommand = async (output, context) => {
|
|
1152
566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1153
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
1154
568
|
}
|
|
1155
569
|
const contents = map({
|
|
1156
570
|
$metadata: deserializeMetadata(output),
|
|
@@ -1158,40 +572,9 @@ export const de_UpdateDataIntegrationCommand = async (output, context) => {
|
|
|
1158
572
|
await collectBody(output.body, context);
|
|
1159
573
|
return contents;
|
|
1160
574
|
};
|
|
1161
|
-
const de_UpdateDataIntegrationCommandError = async (output, context) => {
|
|
1162
|
-
const parsedOutput = {
|
|
1163
|
-
...output,
|
|
1164
|
-
body: await parseErrorBody(output.body, context),
|
|
1165
|
-
};
|
|
1166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
-
switch (errorCode) {
|
|
1168
|
-
case "AccessDeniedException":
|
|
1169
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1170
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "InternalServiceError":
|
|
1172
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1173
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1174
|
-
case "InvalidRequestException":
|
|
1175
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1176
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ResourceNotFoundException":
|
|
1178
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1179
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "ThrottlingException":
|
|
1181
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1182
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1183
|
-
default:
|
|
1184
|
-
const parsedBody = parsedOutput.body;
|
|
1185
|
-
return throwDefaultError({
|
|
1186
|
-
output,
|
|
1187
|
-
parsedBody,
|
|
1188
|
-
errorCode,
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
};
|
|
1192
575
|
export const de_UpdateEventIntegrationCommand = async (output, context) => {
|
|
1193
576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
|
-
return
|
|
577
|
+
return de_CommandError(output, context);
|
|
1195
578
|
}
|
|
1196
579
|
const contents = map({
|
|
1197
580
|
$metadata: deserializeMetadata(output),
|
|
@@ -1199,7 +582,7 @@ export const de_UpdateEventIntegrationCommand = async (output, context) => {
|
|
|
1199
582
|
await collectBody(output.body, context);
|
|
1200
583
|
return contents;
|
|
1201
584
|
};
|
|
1202
|
-
const
|
|
585
|
+
const de_CommandError = async (output, context) => {
|
|
1203
586
|
const parsedOutput = {
|
|
1204
587
|
...output,
|
|
1205
588
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1209,18 +592,27 @@ const de_UpdateEventIntegrationCommandError = async (output, context) => {
|
|
|
1209
592
|
case "AccessDeniedException":
|
|
1210
593
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1211
594
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
595
|
+
case "DuplicateResourceException":
|
|
596
|
+
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
597
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
1212
598
|
case "InternalServiceError":
|
|
1213
599
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1214
600
|
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1215
601
|
case "InvalidRequestException":
|
|
1216
602
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1217
603
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "
|
|
1219
|
-
case "com.amazonaws.appintegrations#
|
|
1220
|
-
throw await
|
|
604
|
+
case "ResourceQuotaExceededException":
|
|
605
|
+
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
606
|
+
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1221
607
|
case "ThrottlingException":
|
|
1222
608
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1223
609
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
610
|
+
case "UnsupportedOperationException":
|
|
611
|
+
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
612
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
613
|
+
case "ResourceNotFoundException":
|
|
614
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
615
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1224
616
|
default:
|
|
1225
617
|
const parsedBody = parsedOutput.body;
|
|
1226
618
|
return throwDefaultError({
|