@aws-sdk/client-support-app 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 +18 -252
- package/dist-es/protocols/Aws_restJson1.js +17 -251
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -433,7 +433,7 @@ var se_UpdateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (in
|
|
|
433
433
|
}, "se_UpdateSlackChannelConfigurationCommand");
|
|
434
434
|
var de_CreateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
435
435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return
|
|
436
|
+
return de_CommandError(output, context);
|
|
437
437
|
}
|
|
438
438
|
const contents = (0, import_smithy_client.map)({
|
|
439
439
|
$metadata: deserializeMetadata(output)
|
|
@@ -441,40 +441,9 @@ var de_CreateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
441
441
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
442
442
|
return contents;
|
|
443
443
|
}, "de_CreateSlackChannelConfigurationCommand");
|
|
444
|
-
var de_CreateSlackChannelConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
445
|
-
const parsedOutput = {
|
|
446
|
-
...output,
|
|
447
|
-
body: await parseErrorBody(output.body, context)
|
|
448
|
-
};
|
|
449
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
|
-
switch (errorCode) {
|
|
451
|
-
case "AccessDeniedException":
|
|
452
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
453
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ConflictException":
|
|
455
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
456
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
457
|
-
case "InternalServerException":
|
|
458
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
459
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ServiceQuotaExceededException":
|
|
461
|
-
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
462
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ValidationException":
|
|
464
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
465
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
|
-
default:
|
|
467
|
-
const parsedBody = parsedOutput.body;
|
|
468
|
-
return throwDefaultError({
|
|
469
|
-
output,
|
|
470
|
-
parsedBody,
|
|
471
|
-
errorCode
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
}, "de_CreateSlackChannelConfigurationCommandError");
|
|
475
444
|
var de_DeleteAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
476
445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
477
|
-
return
|
|
446
|
+
return de_CommandError(output, context);
|
|
478
447
|
}
|
|
479
448
|
const contents = (0, import_smithy_client.map)({
|
|
480
449
|
$metadata: deserializeMetadata(output)
|
|
@@ -482,34 +451,9 @@ var de_DeleteAccountAliasCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
482
451
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
483
452
|
return contents;
|
|
484
453
|
}, "de_DeleteAccountAliasCommand");
|
|
485
|
-
var de_DeleteAccountAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
486
|
-
const parsedOutput = {
|
|
487
|
-
...output,
|
|
488
|
-
body: await parseErrorBody(output.body, context)
|
|
489
|
-
};
|
|
490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
|
-
switch (errorCode) {
|
|
492
|
-
case "AccessDeniedException":
|
|
493
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
494
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
495
|
-
case "InternalServerException":
|
|
496
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
497
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ResourceNotFoundException":
|
|
499
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
}, "de_DeleteAccountAliasCommandError");
|
|
510
454
|
var de_DeleteSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
-
return
|
|
456
|
+
return de_CommandError(output, context);
|
|
513
457
|
}
|
|
514
458
|
const contents = (0, import_smithy_client.map)({
|
|
515
459
|
$metadata: deserializeMetadata(output)
|
|
@@ -517,40 +461,9 @@ var de_DeleteSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
517
461
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
518
462
|
return contents;
|
|
519
463
|
}, "de_DeleteSlackChannelConfigurationCommand");
|
|
520
|
-
var de_DeleteSlackChannelConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
521
|
-
const parsedOutput = {
|
|
522
|
-
...output,
|
|
523
|
-
body: await parseErrorBody(output.body, context)
|
|
524
|
-
};
|
|
525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
526
|
-
switch (errorCode) {
|
|
527
|
-
case "AccessDeniedException":
|
|
528
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
529
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ConflictException":
|
|
531
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
532
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
533
|
-
case "InternalServerException":
|
|
534
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
535
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
536
|
-
case "ResourceNotFoundException":
|
|
537
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
538
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
539
|
-
case "ValidationException":
|
|
540
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
541
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
542
|
-
default:
|
|
543
|
-
const parsedBody = parsedOutput.body;
|
|
544
|
-
return throwDefaultError({
|
|
545
|
-
output,
|
|
546
|
-
parsedBody,
|
|
547
|
-
errorCode
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
}, "de_DeleteSlackChannelConfigurationCommandError");
|
|
551
464
|
var de_DeleteSlackWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
552
465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
553
|
-
return
|
|
466
|
+
return de_CommandError(output, context);
|
|
554
467
|
}
|
|
555
468
|
const contents = (0, import_smithy_client.map)({
|
|
556
469
|
$metadata: deserializeMetadata(output)
|
|
@@ -558,40 +471,9 @@ var de_DeleteSlackWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
558
471
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
559
472
|
return contents;
|
|
560
473
|
}, "de_DeleteSlackWorkspaceConfigurationCommand");
|
|
561
|
-
var de_DeleteSlackWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
562
|
-
const parsedOutput = {
|
|
563
|
-
...output,
|
|
564
|
-
body: await parseErrorBody(output.body, context)
|
|
565
|
-
};
|
|
566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
|
-
switch (errorCode) {
|
|
568
|
-
case "AccessDeniedException":
|
|
569
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
570
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ConflictException":
|
|
572
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
573
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
574
|
-
case "InternalServerException":
|
|
575
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
576
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ResourceNotFoundException":
|
|
578
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
579
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ValidationException":
|
|
581
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
582
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
}, "de_DeleteSlackWorkspaceConfigurationCommandError");
|
|
592
474
|
var de_GetAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
593
475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
594
|
-
return
|
|
476
|
+
return de_CommandError(output, context);
|
|
595
477
|
}
|
|
596
478
|
const contents = (0, import_smithy_client.map)({
|
|
597
479
|
$metadata: deserializeMetadata(output)
|
|
@@ -603,28 +485,9 @@ var de_GetAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
603
485
|
Object.assign(contents, doc);
|
|
604
486
|
return contents;
|
|
605
487
|
}, "de_GetAccountAliasCommand");
|
|
606
|
-
var de_GetAccountAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
607
|
-
const parsedOutput = {
|
|
608
|
-
...output,
|
|
609
|
-
body: await parseErrorBody(output.body, context)
|
|
610
|
-
};
|
|
611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
-
switch (errorCode) {
|
|
613
|
-
case "InternalServerException":
|
|
614
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
615
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
616
|
-
default:
|
|
617
|
-
const parsedBody = parsedOutput.body;
|
|
618
|
-
return throwDefaultError({
|
|
619
|
-
output,
|
|
620
|
-
parsedBody,
|
|
621
|
-
errorCode
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
}, "de_GetAccountAliasCommandError");
|
|
625
488
|
var de_ListSlackChannelConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
626
489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
-
return
|
|
490
|
+
return de_CommandError(output, context);
|
|
628
491
|
}
|
|
629
492
|
const contents = (0, import_smithy_client.map)({
|
|
630
493
|
$metadata: deserializeMetadata(output)
|
|
@@ -637,31 +500,9 @@ var de_ListSlackChannelConfigurationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
637
500
|
Object.assign(contents, doc);
|
|
638
501
|
return contents;
|
|
639
502
|
}, "de_ListSlackChannelConfigurationsCommand");
|
|
640
|
-
var de_ListSlackChannelConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
|
-
const parsedOutput = {
|
|
642
|
-
...output,
|
|
643
|
-
body: await parseErrorBody(output.body, context)
|
|
644
|
-
};
|
|
645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
|
-
switch (errorCode) {
|
|
647
|
-
case "AccessDeniedException":
|
|
648
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
650
|
-
case "InternalServerException":
|
|
651
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
653
|
-
default:
|
|
654
|
-
const parsedBody = parsedOutput.body;
|
|
655
|
-
return throwDefaultError({
|
|
656
|
-
output,
|
|
657
|
-
parsedBody,
|
|
658
|
-
errorCode
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
}, "de_ListSlackChannelConfigurationsCommandError");
|
|
662
503
|
var de_ListSlackWorkspaceConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
663
504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
-
return
|
|
505
|
+
return de_CommandError(output, context);
|
|
665
506
|
}
|
|
666
507
|
const contents = (0, import_smithy_client.map)({
|
|
667
508
|
$metadata: deserializeMetadata(output)
|
|
@@ -674,31 +515,9 @@ var de_ListSlackWorkspaceConfigurationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
674
515
|
Object.assign(contents, doc);
|
|
675
516
|
return contents;
|
|
676
517
|
}, "de_ListSlackWorkspaceConfigurationsCommand");
|
|
677
|
-
var de_ListSlackWorkspaceConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
678
|
-
const parsedOutput = {
|
|
679
|
-
...output,
|
|
680
|
-
body: await parseErrorBody(output.body, context)
|
|
681
|
-
};
|
|
682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
-
switch (errorCode) {
|
|
684
|
-
case "AccessDeniedException":
|
|
685
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
686
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
687
|
-
case "InternalServerException":
|
|
688
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
689
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
690
|
-
default:
|
|
691
|
-
const parsedBody = parsedOutput.body;
|
|
692
|
-
return throwDefaultError({
|
|
693
|
-
output,
|
|
694
|
-
parsedBody,
|
|
695
|
-
errorCode
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
}, "de_ListSlackWorkspaceConfigurationsCommandError");
|
|
699
518
|
var de_PutAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
700
519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
|
-
return
|
|
520
|
+
return de_CommandError(output, context);
|
|
702
521
|
}
|
|
703
522
|
const contents = (0, import_smithy_client.map)({
|
|
704
523
|
$metadata: deserializeMetadata(output)
|
|
@@ -706,34 +525,9 @@ var de_PutAccountAliasCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
706
525
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
707
526
|
return contents;
|
|
708
527
|
}, "de_PutAccountAliasCommand");
|
|
709
|
-
var de_PutAccountAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
710
|
-
const parsedOutput = {
|
|
711
|
-
...output,
|
|
712
|
-
body: await parseErrorBody(output.body, context)
|
|
713
|
-
};
|
|
714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
-
switch (errorCode) {
|
|
716
|
-
case "AccessDeniedException":
|
|
717
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
718
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
719
|
-
case "InternalServerException":
|
|
720
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
721
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ValidationException":
|
|
723
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
}, "de_PutAccountAliasCommandError");
|
|
734
528
|
var de_RegisterSlackWorkspaceForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
-
return
|
|
530
|
+
return de_CommandError(output, context);
|
|
737
531
|
}
|
|
738
532
|
const contents = (0, import_smithy_client.map)({
|
|
739
533
|
$metadata: deserializeMetadata(output)
|
|
@@ -747,40 +541,9 @@ var de_RegisterSlackWorkspaceForOrganizationCommand = /* @__PURE__ */ __name(asy
|
|
|
747
541
|
Object.assign(contents, doc);
|
|
748
542
|
return contents;
|
|
749
543
|
}, "de_RegisterSlackWorkspaceForOrganizationCommand");
|
|
750
|
-
var de_RegisterSlackWorkspaceForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
751
|
-
const parsedOutput = {
|
|
752
|
-
...output,
|
|
753
|
-
body: await parseErrorBody(output.body, context)
|
|
754
|
-
};
|
|
755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
-
switch (errorCode) {
|
|
757
|
-
case "AccessDeniedException":
|
|
758
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
759
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ConflictException":
|
|
761
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
762
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InternalServerException":
|
|
764
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
765
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ResourceNotFoundException":
|
|
767
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ValidationException":
|
|
770
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
771
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
772
|
-
default:
|
|
773
|
-
const parsedBody = parsedOutput.body;
|
|
774
|
-
return throwDefaultError({
|
|
775
|
-
output,
|
|
776
|
-
parsedBody,
|
|
777
|
-
errorCode
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
}, "de_RegisterSlackWorkspaceForOrganizationCommandError");
|
|
781
544
|
var de_UpdateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
782
545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
|
-
return
|
|
546
|
+
return de_CommandError(output, context);
|
|
784
547
|
}
|
|
785
548
|
const contents = (0, import_smithy_client.map)({
|
|
786
549
|
$metadata: deserializeMetadata(output)
|
|
@@ -799,7 +562,7 @@ var de_UpdateSlackChannelConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
799
562
|
Object.assign(contents, doc);
|
|
800
563
|
return contents;
|
|
801
564
|
}, "de_UpdateSlackChannelConfigurationCommand");
|
|
802
|
-
var
|
|
565
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
566
|
const parsedOutput = {
|
|
804
567
|
...output,
|
|
805
568
|
body: await parseErrorBody(output.body, context)
|
|
@@ -815,12 +578,15 @@ var de_UpdateSlackChannelConfigurationCommandError = /* @__PURE__ */ __name(asyn
|
|
|
815
578
|
case "InternalServerException":
|
|
816
579
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
817
580
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
-
case "
|
|
819
|
-
case "com.amazonaws.supportapp#
|
|
820
|
-
throw await
|
|
581
|
+
case "ServiceQuotaExceededException":
|
|
582
|
+
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
583
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
821
584
|
case "ValidationException":
|
|
822
585
|
case "com.amazonaws.supportapp#ValidationException":
|
|
823
586
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
587
|
+
case "ResourceNotFoundException":
|
|
588
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
589
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
824
590
|
default:
|
|
825
591
|
const parsedBody = parsedOutput.body;
|
|
826
592
|
return throwDefaultError({
|
|
@@ -829,7 +595,7 @@ var de_UpdateSlackChannelConfigurationCommandError = /* @__PURE__ */ __name(asyn
|
|
|
829
595
|
errorCode
|
|
830
596
|
});
|
|
831
597
|
}
|
|
832
|
-
}, "
|
|
598
|
+
}, "de_CommandError");
|
|
833
599
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SupportAppServiceException);
|
|
834
600
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
835
601
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -145,7 +145,7 @@ export const se_UpdateSlackChannelConfigurationCommand = async (input, context)
|
|
|
145
145
|
};
|
|
146
146
|
export const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
|
|
147
147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
148
|
-
return
|
|
148
|
+
return de_CommandError(output, context);
|
|
149
149
|
}
|
|
150
150
|
const contents = map({
|
|
151
151
|
$metadata: deserializeMetadata(output),
|
|
@@ -153,40 +153,9 @@ export const de_CreateSlackChannelConfigurationCommand = async (output, context)
|
|
|
153
153
|
await collectBody(output.body, context);
|
|
154
154
|
return contents;
|
|
155
155
|
};
|
|
156
|
-
const de_CreateSlackChannelConfigurationCommandError = async (output, context) => {
|
|
157
|
-
const parsedOutput = {
|
|
158
|
-
...output,
|
|
159
|
-
body: await parseErrorBody(output.body, context),
|
|
160
|
-
};
|
|
161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
162
|
-
switch (errorCode) {
|
|
163
|
-
case "AccessDeniedException":
|
|
164
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
166
|
-
case "ConflictException":
|
|
167
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
168
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
169
|
-
case "InternalServerException":
|
|
170
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
171
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
172
|
-
case "ServiceQuotaExceededException":
|
|
173
|
-
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
174
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
175
|
-
case "ValidationException":
|
|
176
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
178
|
-
default:
|
|
179
|
-
const parsedBody = parsedOutput.body;
|
|
180
|
-
return throwDefaultError({
|
|
181
|
-
output,
|
|
182
|
-
parsedBody,
|
|
183
|
-
errorCode,
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
156
|
export const de_DeleteAccountAliasCommand = async (output, context) => {
|
|
188
157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
189
|
-
return
|
|
158
|
+
return de_CommandError(output, context);
|
|
190
159
|
}
|
|
191
160
|
const contents = map({
|
|
192
161
|
$metadata: deserializeMetadata(output),
|
|
@@ -194,34 +163,9 @@ export const de_DeleteAccountAliasCommand = async (output, context) => {
|
|
|
194
163
|
await collectBody(output.body, context);
|
|
195
164
|
return contents;
|
|
196
165
|
};
|
|
197
|
-
const de_DeleteAccountAliasCommandError = async (output, context) => {
|
|
198
|
-
const parsedOutput = {
|
|
199
|
-
...output,
|
|
200
|
-
body: await parseErrorBody(output.body, context),
|
|
201
|
-
};
|
|
202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
203
|
-
switch (errorCode) {
|
|
204
|
-
case "AccessDeniedException":
|
|
205
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
207
|
-
case "InternalServerException":
|
|
208
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
209
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
210
|
-
case "ResourceNotFoundException":
|
|
211
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
213
|
-
default:
|
|
214
|
-
const parsedBody = parsedOutput.body;
|
|
215
|
-
return throwDefaultError({
|
|
216
|
-
output,
|
|
217
|
-
parsedBody,
|
|
218
|
-
errorCode,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
166
|
export const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
|
|
223
167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
224
|
-
return
|
|
168
|
+
return de_CommandError(output, context);
|
|
225
169
|
}
|
|
226
170
|
const contents = map({
|
|
227
171
|
$metadata: deserializeMetadata(output),
|
|
@@ -229,40 +173,9 @@ export const de_DeleteSlackChannelConfigurationCommand = async (output, context)
|
|
|
229
173
|
await collectBody(output.body, context);
|
|
230
174
|
return contents;
|
|
231
175
|
};
|
|
232
|
-
const de_DeleteSlackChannelConfigurationCommandError = async (output, context) => {
|
|
233
|
-
const parsedOutput = {
|
|
234
|
-
...output,
|
|
235
|
-
body: await parseErrorBody(output.body, context),
|
|
236
|
-
};
|
|
237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
|
-
switch (errorCode) {
|
|
239
|
-
case "AccessDeniedException":
|
|
240
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
242
|
-
case "ConflictException":
|
|
243
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
244
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
245
|
-
case "InternalServerException":
|
|
246
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
248
|
-
case "ResourceNotFoundException":
|
|
249
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
251
|
-
case "ValidationException":
|
|
252
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
254
|
-
default:
|
|
255
|
-
const parsedBody = parsedOutput.body;
|
|
256
|
-
return throwDefaultError({
|
|
257
|
-
output,
|
|
258
|
-
parsedBody,
|
|
259
|
-
errorCode,
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
176
|
export const de_DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
|
|
264
177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
265
|
-
return
|
|
178
|
+
return de_CommandError(output, context);
|
|
266
179
|
}
|
|
267
180
|
const contents = map({
|
|
268
181
|
$metadata: deserializeMetadata(output),
|
|
@@ -270,40 +183,9 @@ export const de_DeleteSlackWorkspaceConfigurationCommand = async (output, contex
|
|
|
270
183
|
await collectBody(output.body, context);
|
|
271
184
|
return contents;
|
|
272
185
|
};
|
|
273
|
-
const de_DeleteSlackWorkspaceConfigurationCommandError = async (output, context) => {
|
|
274
|
-
const parsedOutput = {
|
|
275
|
-
...output,
|
|
276
|
-
body: await parseErrorBody(output.body, context),
|
|
277
|
-
};
|
|
278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
279
|
-
switch (errorCode) {
|
|
280
|
-
case "AccessDeniedException":
|
|
281
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
283
|
-
case "ConflictException":
|
|
284
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
285
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
286
|
-
case "InternalServerException":
|
|
287
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
289
|
-
case "ResourceNotFoundException":
|
|
290
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
292
|
-
case "ValidationException":
|
|
293
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
294
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
295
|
-
default:
|
|
296
|
-
const parsedBody = parsedOutput.body;
|
|
297
|
-
return throwDefaultError({
|
|
298
|
-
output,
|
|
299
|
-
parsedBody,
|
|
300
|
-
errorCode,
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
186
|
export const de_GetAccountAliasCommand = async (output, context) => {
|
|
305
187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
306
|
-
return
|
|
188
|
+
return de_CommandError(output, context);
|
|
307
189
|
}
|
|
308
190
|
const contents = map({
|
|
309
191
|
$metadata: deserializeMetadata(output),
|
|
@@ -315,28 +197,9 @@ export const de_GetAccountAliasCommand = async (output, context) => {
|
|
|
315
197
|
Object.assign(contents, doc);
|
|
316
198
|
return contents;
|
|
317
199
|
};
|
|
318
|
-
const de_GetAccountAliasCommandError = async (output, context) => {
|
|
319
|
-
const parsedOutput = {
|
|
320
|
-
...output,
|
|
321
|
-
body: await parseErrorBody(output.body, context),
|
|
322
|
-
};
|
|
323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
|
-
switch (errorCode) {
|
|
325
|
-
case "InternalServerException":
|
|
326
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
327
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
328
|
-
default:
|
|
329
|
-
const parsedBody = parsedOutput.body;
|
|
330
|
-
return throwDefaultError({
|
|
331
|
-
output,
|
|
332
|
-
parsedBody,
|
|
333
|
-
errorCode,
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
200
|
export const de_ListSlackChannelConfigurationsCommand = async (output, context) => {
|
|
338
201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
339
|
-
return
|
|
202
|
+
return de_CommandError(output, context);
|
|
340
203
|
}
|
|
341
204
|
const contents = map({
|
|
342
205
|
$metadata: deserializeMetadata(output),
|
|
@@ -349,31 +212,9 @@ export const de_ListSlackChannelConfigurationsCommand = async (output, context)
|
|
|
349
212
|
Object.assign(contents, doc);
|
|
350
213
|
return contents;
|
|
351
214
|
};
|
|
352
|
-
const de_ListSlackChannelConfigurationsCommandError = async (output, context) => {
|
|
353
|
-
const parsedOutput = {
|
|
354
|
-
...output,
|
|
355
|
-
body: await parseErrorBody(output.body, context),
|
|
356
|
-
};
|
|
357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
358
|
-
switch (errorCode) {
|
|
359
|
-
case "AccessDeniedException":
|
|
360
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
361
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
362
|
-
case "InternalServerException":
|
|
363
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
364
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
365
|
-
default:
|
|
366
|
-
const parsedBody = parsedOutput.body;
|
|
367
|
-
return throwDefaultError({
|
|
368
|
-
output,
|
|
369
|
-
parsedBody,
|
|
370
|
-
errorCode,
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
215
|
export const de_ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
|
|
375
216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
376
|
-
return
|
|
217
|
+
return de_CommandError(output, context);
|
|
377
218
|
}
|
|
378
219
|
const contents = map({
|
|
379
220
|
$metadata: deserializeMetadata(output),
|
|
@@ -386,31 +227,9 @@ export const de_ListSlackWorkspaceConfigurationsCommand = async (output, context
|
|
|
386
227
|
Object.assign(contents, doc);
|
|
387
228
|
return contents;
|
|
388
229
|
};
|
|
389
|
-
const de_ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
|
|
390
|
-
const parsedOutput = {
|
|
391
|
-
...output,
|
|
392
|
-
body: await parseErrorBody(output.body, context),
|
|
393
|
-
};
|
|
394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
|
-
switch (errorCode) {
|
|
396
|
-
case "AccessDeniedException":
|
|
397
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
398
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
399
|
-
case "InternalServerException":
|
|
400
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
402
|
-
default:
|
|
403
|
-
const parsedBody = parsedOutput.body;
|
|
404
|
-
return throwDefaultError({
|
|
405
|
-
output,
|
|
406
|
-
parsedBody,
|
|
407
|
-
errorCode,
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
230
|
export const de_PutAccountAliasCommand = async (output, context) => {
|
|
412
231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
413
|
-
return
|
|
232
|
+
return de_CommandError(output, context);
|
|
414
233
|
}
|
|
415
234
|
const contents = map({
|
|
416
235
|
$metadata: deserializeMetadata(output),
|
|
@@ -418,34 +237,9 @@ export const de_PutAccountAliasCommand = async (output, context) => {
|
|
|
418
237
|
await collectBody(output.body, context);
|
|
419
238
|
return contents;
|
|
420
239
|
};
|
|
421
|
-
const de_PutAccountAliasCommandError = async (output, context) => {
|
|
422
|
-
const parsedOutput = {
|
|
423
|
-
...output,
|
|
424
|
-
body: await parseErrorBody(output.body, context),
|
|
425
|
-
};
|
|
426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
|
-
switch (errorCode) {
|
|
428
|
-
case "AccessDeniedException":
|
|
429
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
431
|
-
case "InternalServerException":
|
|
432
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
433
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
434
|
-
case "ValidationException":
|
|
435
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
436
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
437
|
-
default:
|
|
438
|
-
const parsedBody = parsedOutput.body;
|
|
439
|
-
return throwDefaultError({
|
|
440
|
-
output,
|
|
441
|
-
parsedBody,
|
|
442
|
-
errorCode,
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
240
|
export const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
|
|
447
241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
448
|
-
return
|
|
242
|
+
return de_CommandError(output, context);
|
|
449
243
|
}
|
|
450
244
|
const contents = map({
|
|
451
245
|
$metadata: deserializeMetadata(output),
|
|
@@ -459,40 +253,9 @@ export const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, co
|
|
|
459
253
|
Object.assign(contents, doc);
|
|
460
254
|
return contents;
|
|
461
255
|
};
|
|
462
|
-
const de_RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
|
|
463
|
-
const parsedOutput = {
|
|
464
|
-
...output,
|
|
465
|
-
body: await parseErrorBody(output.body, context),
|
|
466
|
-
};
|
|
467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
468
|
-
switch (errorCode) {
|
|
469
|
-
case "AccessDeniedException":
|
|
470
|
-
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ConflictException":
|
|
473
|
-
case "com.amazonaws.supportapp#ConflictException":
|
|
474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
475
|
-
case "InternalServerException":
|
|
476
|
-
case "com.amazonaws.supportapp#InternalServerException":
|
|
477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ResourceNotFoundException":
|
|
479
|
-
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ValidationException":
|
|
482
|
-
case "com.amazonaws.supportapp#ValidationException":
|
|
483
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
484
|
-
default:
|
|
485
|
-
const parsedBody = parsedOutput.body;
|
|
486
|
-
return throwDefaultError({
|
|
487
|
-
output,
|
|
488
|
-
parsedBody,
|
|
489
|
-
errorCode,
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
256
|
export const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
494
257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
495
|
-
return
|
|
258
|
+
return de_CommandError(output, context);
|
|
496
259
|
}
|
|
497
260
|
const contents = map({
|
|
498
261
|
$metadata: deserializeMetadata(output),
|
|
@@ -511,7 +274,7 @@ export const de_UpdateSlackChannelConfigurationCommand = async (output, context)
|
|
|
511
274
|
Object.assign(contents, doc);
|
|
512
275
|
return contents;
|
|
513
276
|
};
|
|
514
|
-
const
|
|
277
|
+
const de_CommandError = async (output, context) => {
|
|
515
278
|
const parsedOutput = {
|
|
516
279
|
...output,
|
|
517
280
|
body: await parseErrorBody(output.body, context),
|
|
@@ -527,12 +290,15 @@ const de_UpdateSlackChannelConfigurationCommandError = async (output, context) =
|
|
|
527
290
|
case "InternalServerException":
|
|
528
291
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
529
292
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
530
|
-
case "
|
|
531
|
-
case "com.amazonaws.supportapp#
|
|
532
|
-
throw await
|
|
293
|
+
case "ServiceQuotaExceededException":
|
|
294
|
+
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
295
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
533
296
|
case "ValidationException":
|
|
534
297
|
case "com.amazonaws.supportapp#ValidationException":
|
|
535
298
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
299
|
+
case "ResourceNotFoundException":
|
|
300
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
301
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
536
302
|
default:
|
|
537
303
|
const parsedBody = parsedOutput.body;
|
|
538
304
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-support-app",
|
|
3
3
|
"description": "AWS SDK for JavaScript Support App Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-support-app",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|