@aws-sdk/client-chime-sdk-voice 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 +124 -3654
- package/dist-es/protocols/Aws_restJson1.js +343 -3873
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2495,7 +2495,7 @@ var se_ValidateE911AddressCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
2495
2495
|
}, "se_ValidateE911AddressCommand");
|
|
2496
2496
|
var de_AssociatePhoneNumbersWithVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2497
2497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2498
|
-
return
|
|
2498
|
+
return de_CommandError(output, context);
|
|
2499
2499
|
}
|
|
2500
2500
|
const contents = (0, import_smithy_client.map)({
|
|
2501
2501
|
$metadata: deserializeMetadata(output)
|
|
@@ -2507,49 +2507,9 @@ var de_AssociatePhoneNumbersWithVoiceConnectorCommand = /* @__PURE__ */ __name(a
|
|
|
2507
2507
|
Object.assign(contents, doc);
|
|
2508
2508
|
return contents;
|
|
2509
2509
|
}, "de_AssociatePhoneNumbersWithVoiceConnectorCommand");
|
|
2510
|
-
var de_AssociatePhoneNumbersWithVoiceConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2511
|
-
const parsedOutput = {
|
|
2512
|
-
...output,
|
|
2513
|
-
body: await parseErrorBody(output.body, context)
|
|
2514
|
-
};
|
|
2515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
|
-
switch (errorCode) {
|
|
2517
|
-
case "AccessDeniedException":
|
|
2518
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2519
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "BadRequestException":
|
|
2521
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2522
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "ForbiddenException":
|
|
2524
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2525
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "NotFoundException":
|
|
2527
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
2528
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ServiceFailureException":
|
|
2530
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2531
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "ServiceUnavailableException":
|
|
2533
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2534
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2535
|
-
case "ThrottledClientException":
|
|
2536
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2537
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2538
|
-
case "UnauthorizedClientException":
|
|
2539
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2540
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2541
|
-
default:
|
|
2542
|
-
const parsedBody = parsedOutput.body;
|
|
2543
|
-
return throwDefaultError({
|
|
2544
|
-
output,
|
|
2545
|
-
parsedBody,
|
|
2546
|
-
errorCode
|
|
2547
|
-
});
|
|
2548
|
-
}
|
|
2549
|
-
}, "de_AssociatePhoneNumbersWithVoiceConnectorCommandError");
|
|
2550
2510
|
var de_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2551
2511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2552
|
-
return
|
|
2512
|
+
return de_CommandError(output, context);
|
|
2553
2513
|
}
|
|
2554
2514
|
const contents = (0, import_smithy_client.map)({
|
|
2555
2515
|
$metadata: deserializeMetadata(output)
|
|
@@ -2561,49 +2521,9 @@ var de_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = /* @__PURE__ */ __n
|
|
|
2561
2521
|
Object.assign(contents, doc);
|
|
2562
2522
|
return contents;
|
|
2563
2523
|
}, "de_AssociatePhoneNumbersWithVoiceConnectorGroupCommand");
|
|
2564
|
-
var de_AssociatePhoneNumbersWithVoiceConnectorGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2565
|
-
const parsedOutput = {
|
|
2566
|
-
...output,
|
|
2567
|
-
body: await parseErrorBody(output.body, context)
|
|
2568
|
-
};
|
|
2569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2570
|
-
switch (errorCode) {
|
|
2571
|
-
case "AccessDeniedException":
|
|
2572
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2573
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "BadRequestException":
|
|
2575
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2576
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "ForbiddenException":
|
|
2578
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2579
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "NotFoundException":
|
|
2581
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
2582
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2583
|
-
case "ServiceFailureException":
|
|
2584
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2585
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2586
|
-
case "ServiceUnavailableException":
|
|
2587
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2588
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2589
|
-
case "ThrottledClientException":
|
|
2590
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2591
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2592
|
-
case "UnauthorizedClientException":
|
|
2593
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2594
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2595
|
-
default:
|
|
2596
|
-
const parsedBody = parsedOutput.body;
|
|
2597
|
-
return throwDefaultError({
|
|
2598
|
-
output,
|
|
2599
|
-
parsedBody,
|
|
2600
|
-
errorCode
|
|
2601
|
-
});
|
|
2602
|
-
}
|
|
2603
|
-
}, "de_AssociatePhoneNumbersWithVoiceConnectorGroupCommandError");
|
|
2604
2524
|
var de_BatchDeletePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2605
2525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2606
|
-
return
|
|
2526
|
+
return de_CommandError(output, context);
|
|
2607
2527
|
}
|
|
2608
2528
|
const contents = (0, import_smithy_client.map)({
|
|
2609
2529
|
$metadata: deserializeMetadata(output)
|
|
@@ -2615,46 +2535,9 @@ var de_BatchDeletePhoneNumberCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2615
2535
|
Object.assign(contents, doc);
|
|
2616
2536
|
return contents;
|
|
2617
2537
|
}, "de_BatchDeletePhoneNumberCommand");
|
|
2618
|
-
var de_BatchDeletePhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2619
|
-
const parsedOutput = {
|
|
2620
|
-
...output,
|
|
2621
|
-
body: await parseErrorBody(output.body, context)
|
|
2622
|
-
};
|
|
2623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
|
-
switch (errorCode) {
|
|
2625
|
-
case "BadRequestException":
|
|
2626
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2627
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ForbiddenException":
|
|
2629
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2630
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "NotFoundException":
|
|
2632
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
2633
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "ServiceFailureException":
|
|
2635
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2636
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2637
|
-
case "ServiceUnavailableException":
|
|
2638
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2639
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "ThrottledClientException":
|
|
2641
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2642
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2643
|
-
case "UnauthorizedClientException":
|
|
2644
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2645
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2646
|
-
default:
|
|
2647
|
-
const parsedBody = parsedOutput.body;
|
|
2648
|
-
return throwDefaultError({
|
|
2649
|
-
output,
|
|
2650
|
-
parsedBody,
|
|
2651
|
-
errorCode
|
|
2652
|
-
});
|
|
2653
|
-
}
|
|
2654
|
-
}, "de_BatchDeletePhoneNumberCommandError");
|
|
2655
2538
|
var de_BatchUpdatePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2656
2539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2657
|
-
return
|
|
2540
|
+
return de_CommandError(output, context);
|
|
2658
2541
|
}
|
|
2659
2542
|
const contents = (0, import_smithy_client.map)({
|
|
2660
2543
|
$metadata: deserializeMetadata(output)
|
|
@@ -2666,46 +2549,9 @@ var de_BatchUpdatePhoneNumberCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2666
2549
|
Object.assign(contents, doc);
|
|
2667
2550
|
return contents;
|
|
2668
2551
|
}, "de_BatchUpdatePhoneNumberCommand");
|
|
2669
|
-
var de_BatchUpdatePhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2670
|
-
const parsedOutput = {
|
|
2671
|
-
...output,
|
|
2672
|
-
body: await parseErrorBody(output.body, context)
|
|
2673
|
-
};
|
|
2674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2675
|
-
switch (errorCode) {
|
|
2676
|
-
case "BadRequestException":
|
|
2677
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2678
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2679
|
-
case "ForbiddenException":
|
|
2680
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2681
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2682
|
-
case "NotFoundException":
|
|
2683
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
2684
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2685
|
-
case "ServiceFailureException":
|
|
2686
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2687
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2688
|
-
case "ServiceUnavailableException":
|
|
2689
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2690
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "ThrottledClientException":
|
|
2692
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2693
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "UnauthorizedClientException":
|
|
2695
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2696
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2697
|
-
default:
|
|
2698
|
-
const parsedBody = parsedOutput.body;
|
|
2699
|
-
return throwDefaultError({
|
|
2700
|
-
output,
|
|
2701
|
-
parsedBody,
|
|
2702
|
-
errorCode
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
}, "de_BatchUpdatePhoneNumberCommandError");
|
|
2706
2552
|
var de_CreatePhoneNumberOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2707
2553
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2708
|
-
return
|
|
2554
|
+
return de_CommandError(output, context);
|
|
2709
2555
|
}
|
|
2710
2556
|
const contents = (0, import_smithy_client.map)({
|
|
2711
2557
|
$metadata: deserializeMetadata(output)
|
|
@@ -2717,49 +2563,9 @@ var de_CreatePhoneNumberOrderCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2717
2563
|
Object.assign(contents, doc);
|
|
2718
2564
|
return contents;
|
|
2719
2565
|
}, "de_CreatePhoneNumberOrderCommand");
|
|
2720
|
-
var de_CreatePhoneNumberOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2721
|
-
const parsedOutput = {
|
|
2722
|
-
...output,
|
|
2723
|
-
body: await parseErrorBody(output.body, context)
|
|
2724
|
-
};
|
|
2725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
|
-
switch (errorCode) {
|
|
2727
|
-
case "AccessDeniedException":
|
|
2728
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2729
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "BadRequestException":
|
|
2731
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2732
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2733
|
-
case "ForbiddenException":
|
|
2734
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2735
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2736
|
-
case "ResourceLimitExceededException":
|
|
2737
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
2738
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2739
|
-
case "ServiceFailureException":
|
|
2740
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2741
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2742
|
-
case "ServiceUnavailableException":
|
|
2743
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2744
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "ThrottledClientException":
|
|
2746
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2747
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "UnauthorizedClientException":
|
|
2749
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2750
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2751
|
-
default:
|
|
2752
|
-
const parsedBody = parsedOutput.body;
|
|
2753
|
-
return throwDefaultError({
|
|
2754
|
-
output,
|
|
2755
|
-
parsedBody,
|
|
2756
|
-
errorCode
|
|
2757
|
-
});
|
|
2758
|
-
}
|
|
2759
|
-
}, "de_CreatePhoneNumberOrderCommandError");
|
|
2760
2566
|
var de_CreateProxySessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2761
2567
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2762
|
-
return
|
|
2568
|
+
return de_CommandError(output, context);
|
|
2763
2569
|
}
|
|
2764
2570
|
const contents = (0, import_smithy_client.map)({
|
|
2765
2571
|
$metadata: deserializeMetadata(output)
|
|
@@ -2771,46 +2577,9 @@ var de_CreateProxySessionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2771
2577
|
Object.assign(contents, doc);
|
|
2772
2578
|
return contents;
|
|
2773
2579
|
}, "de_CreateProxySessionCommand");
|
|
2774
|
-
var de_CreateProxySessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2775
|
-
const parsedOutput = {
|
|
2776
|
-
...output,
|
|
2777
|
-
body: await parseErrorBody(output.body, context)
|
|
2778
|
-
};
|
|
2779
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2780
|
-
switch (errorCode) {
|
|
2781
|
-
case "BadRequestException":
|
|
2782
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2783
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "ForbiddenException":
|
|
2785
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2786
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "NotFoundException":
|
|
2788
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
2789
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ServiceFailureException":
|
|
2791
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2792
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "ServiceUnavailableException":
|
|
2794
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2795
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "ThrottledClientException":
|
|
2797
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2798
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "UnauthorizedClientException":
|
|
2800
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2801
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2802
|
-
default:
|
|
2803
|
-
const parsedBody = parsedOutput.body;
|
|
2804
|
-
return throwDefaultError({
|
|
2805
|
-
output,
|
|
2806
|
-
parsedBody,
|
|
2807
|
-
errorCode
|
|
2808
|
-
});
|
|
2809
|
-
}
|
|
2810
|
-
}, "de_CreateProxySessionCommandError");
|
|
2811
2580
|
var de_CreateSipMediaApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2812
2581
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2813
|
-
return
|
|
2582
|
+
return de_CommandError(output, context);
|
|
2814
2583
|
}
|
|
2815
2584
|
const contents = (0, import_smithy_client.map)({
|
|
2816
2585
|
$metadata: deserializeMetadata(output)
|
|
@@ -2822,52 +2591,9 @@ var de_CreateSipMediaApplicationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2822
2591
|
Object.assign(contents, doc);
|
|
2823
2592
|
return contents;
|
|
2824
2593
|
}, "de_CreateSipMediaApplicationCommand");
|
|
2825
|
-
var de_CreateSipMediaApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2826
|
-
const parsedOutput = {
|
|
2827
|
-
...output,
|
|
2828
|
-
body: await parseErrorBody(output.body, context)
|
|
2829
|
-
};
|
|
2830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
|
-
switch (errorCode) {
|
|
2832
|
-
case "AccessDeniedException":
|
|
2833
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "BadRequestException":
|
|
2836
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2837
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "ConflictException":
|
|
2839
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
2840
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ForbiddenException":
|
|
2842
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2843
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "ResourceLimitExceededException":
|
|
2845
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
2846
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "ServiceFailureException":
|
|
2848
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2849
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "ServiceUnavailableException":
|
|
2851
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2852
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2853
|
-
case "ThrottledClientException":
|
|
2854
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2855
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2856
|
-
case "UnauthorizedClientException":
|
|
2857
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2858
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2859
|
-
default:
|
|
2860
|
-
const parsedBody = parsedOutput.body;
|
|
2861
|
-
return throwDefaultError({
|
|
2862
|
-
output,
|
|
2863
|
-
parsedBody,
|
|
2864
|
-
errorCode
|
|
2865
|
-
});
|
|
2866
|
-
}
|
|
2867
|
-
}, "de_CreateSipMediaApplicationCommandError");
|
|
2868
2594
|
var de_CreateSipMediaApplicationCallCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2869
2595
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2870
|
-
return
|
|
2596
|
+
return de_CommandError(output, context);
|
|
2871
2597
|
}
|
|
2872
2598
|
const contents = (0, import_smithy_client.map)({
|
|
2873
2599
|
$metadata: deserializeMetadata(output)
|
|
@@ -2879,49 +2605,9 @@ var de_CreateSipMediaApplicationCallCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2879
2605
|
Object.assign(contents, doc);
|
|
2880
2606
|
return contents;
|
|
2881
2607
|
}, "de_CreateSipMediaApplicationCallCommand");
|
|
2882
|
-
var de_CreateSipMediaApplicationCallCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2883
|
-
const parsedOutput = {
|
|
2884
|
-
...output,
|
|
2885
|
-
body: await parseErrorBody(output.body, context)
|
|
2886
|
-
};
|
|
2887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2888
|
-
switch (errorCode) {
|
|
2889
|
-
case "AccessDeniedException":
|
|
2890
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2891
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "BadRequestException":
|
|
2893
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2894
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "ForbiddenException":
|
|
2896
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2897
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "ResourceLimitExceededException":
|
|
2899
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
2900
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2901
|
-
case "ServiceFailureException":
|
|
2902
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2903
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2904
|
-
case "ServiceUnavailableException":
|
|
2905
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2906
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2907
|
-
case "ThrottledClientException":
|
|
2908
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2909
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "UnauthorizedClientException":
|
|
2911
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2912
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2913
|
-
default:
|
|
2914
|
-
const parsedBody = parsedOutput.body;
|
|
2915
|
-
return throwDefaultError({
|
|
2916
|
-
output,
|
|
2917
|
-
parsedBody,
|
|
2918
|
-
errorCode
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
}, "de_CreateSipMediaApplicationCallCommandError");
|
|
2922
2608
|
var de_CreateSipRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2923
2609
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2924
|
-
return
|
|
2610
|
+
return de_CommandError(output, context);
|
|
2925
2611
|
}
|
|
2926
2612
|
const contents = (0, import_smithy_client.map)({
|
|
2927
2613
|
$metadata: deserializeMetadata(output)
|
|
@@ -2933,52 +2619,9 @@ var de_CreateSipRuleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2933
2619
|
Object.assign(contents, doc);
|
|
2934
2620
|
return contents;
|
|
2935
2621
|
}, "de_CreateSipRuleCommand");
|
|
2936
|
-
var de_CreateSipRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2937
|
-
const parsedOutput = {
|
|
2938
|
-
...output,
|
|
2939
|
-
body: await parseErrorBody(output.body, context)
|
|
2940
|
-
};
|
|
2941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2942
|
-
switch (errorCode) {
|
|
2943
|
-
case "AccessDeniedException":
|
|
2944
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
2945
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2946
|
-
case "BadRequestException":
|
|
2947
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
2948
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2949
|
-
case "ConflictException":
|
|
2950
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
2951
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2952
|
-
case "ForbiddenException":
|
|
2953
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
2954
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2955
|
-
case "ResourceLimitExceededException":
|
|
2956
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
2957
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2958
|
-
case "ServiceFailureException":
|
|
2959
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
2960
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2961
|
-
case "ServiceUnavailableException":
|
|
2962
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
2963
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2964
|
-
case "ThrottledClientException":
|
|
2965
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
2966
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "UnauthorizedClientException":
|
|
2968
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
2969
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2970
|
-
default:
|
|
2971
|
-
const parsedBody = parsedOutput.body;
|
|
2972
|
-
return throwDefaultError({
|
|
2973
|
-
output,
|
|
2974
|
-
parsedBody,
|
|
2975
|
-
errorCode
|
|
2976
|
-
});
|
|
2977
|
-
}
|
|
2978
|
-
}, "de_CreateSipRuleCommandError");
|
|
2979
2622
|
var de_CreateVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2980
2623
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2981
|
-
return
|
|
2624
|
+
return de_CommandError(output, context);
|
|
2982
2625
|
}
|
|
2983
2626
|
const contents = (0, import_smithy_client.map)({
|
|
2984
2627
|
$metadata: deserializeMetadata(output)
|
|
@@ -2990,49 +2633,9 @@ var de_CreateVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2990
2633
|
Object.assign(contents, doc);
|
|
2991
2634
|
return contents;
|
|
2992
2635
|
}, "de_CreateVoiceConnectorCommand");
|
|
2993
|
-
var de_CreateVoiceConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2994
|
-
const parsedOutput = {
|
|
2995
|
-
...output,
|
|
2996
|
-
body: await parseErrorBody(output.body, context)
|
|
2997
|
-
};
|
|
2998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
|
-
switch (errorCode) {
|
|
3000
|
-
case "AccessDeniedException":
|
|
3001
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3002
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "BadRequestException":
|
|
3004
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3005
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "ForbiddenException":
|
|
3007
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3008
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "ResourceLimitExceededException":
|
|
3010
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
3011
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "ServiceFailureException":
|
|
3013
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3014
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "ServiceUnavailableException":
|
|
3016
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3017
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "ThrottledClientException":
|
|
3019
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3020
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "UnauthorizedClientException":
|
|
3022
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3023
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3024
|
-
default:
|
|
3025
|
-
const parsedBody = parsedOutput.body;
|
|
3026
|
-
return throwDefaultError({
|
|
3027
|
-
output,
|
|
3028
|
-
parsedBody,
|
|
3029
|
-
errorCode
|
|
3030
|
-
});
|
|
3031
|
-
}
|
|
3032
|
-
}, "de_CreateVoiceConnectorCommandError");
|
|
3033
2636
|
var de_CreateVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3034
2637
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3035
|
-
return
|
|
2638
|
+
return de_CommandError(output, context);
|
|
3036
2639
|
}
|
|
3037
2640
|
const contents = (0, import_smithy_client.map)({
|
|
3038
2641
|
$metadata: deserializeMetadata(output)
|
|
@@ -3044,49 +2647,9 @@ var de_CreateVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3044
2647
|
Object.assign(contents, doc);
|
|
3045
2648
|
return contents;
|
|
3046
2649
|
}, "de_CreateVoiceConnectorGroupCommand");
|
|
3047
|
-
var de_CreateVoiceConnectorGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3048
|
-
const parsedOutput = {
|
|
3049
|
-
...output,
|
|
3050
|
-
body: await parseErrorBody(output.body, context)
|
|
3051
|
-
};
|
|
3052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
|
-
switch (errorCode) {
|
|
3054
|
-
case "AccessDeniedException":
|
|
3055
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3057
|
-
case "BadRequestException":
|
|
3058
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3059
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "ForbiddenException":
|
|
3061
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3062
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "ResourceLimitExceededException":
|
|
3064
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
3065
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "ServiceFailureException":
|
|
3067
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3068
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "ServiceUnavailableException":
|
|
3070
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3071
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "ThrottledClientException":
|
|
3073
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3074
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "UnauthorizedClientException":
|
|
3076
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3077
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3078
|
-
default:
|
|
3079
|
-
const parsedBody = parsedOutput.body;
|
|
3080
|
-
return throwDefaultError({
|
|
3081
|
-
output,
|
|
3082
|
-
parsedBody,
|
|
3083
|
-
errorCode
|
|
3084
|
-
});
|
|
3085
|
-
}
|
|
3086
|
-
}, "de_CreateVoiceConnectorGroupCommandError");
|
|
3087
2650
|
var de_CreateVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3088
2651
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3089
|
-
return
|
|
2652
|
+
return de_CommandError(output, context);
|
|
3090
2653
|
}
|
|
3091
2654
|
const contents = (0, import_smithy_client.map)({
|
|
3092
2655
|
$metadata: deserializeMetadata(output)
|
|
@@ -3098,58 +2661,9 @@ var de_CreateVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3098
2661
|
Object.assign(contents, doc);
|
|
3099
2662
|
return contents;
|
|
3100
2663
|
}, "de_CreateVoiceProfileCommand");
|
|
3101
|
-
var de_CreateVoiceProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3102
|
-
const parsedOutput = {
|
|
3103
|
-
...output,
|
|
3104
|
-
body: await parseErrorBody(output.body, context)
|
|
3105
|
-
};
|
|
3106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3107
|
-
switch (errorCode) {
|
|
3108
|
-
case "AccessDeniedException":
|
|
3109
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3110
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3111
|
-
case "BadRequestException":
|
|
3112
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3113
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3114
|
-
case "ConflictException":
|
|
3115
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3116
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3117
|
-
case "ForbiddenException":
|
|
3118
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3119
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "GoneException":
|
|
3121
|
-
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
3122
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "NotFoundException":
|
|
3124
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3125
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ResourceLimitExceededException":
|
|
3127
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
3128
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "ServiceFailureException":
|
|
3130
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3131
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3132
|
-
case "ServiceUnavailableException":
|
|
3133
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3134
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "ThrottledClientException":
|
|
3136
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3137
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "UnauthorizedClientException":
|
|
3139
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3140
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3141
|
-
default:
|
|
3142
|
-
const parsedBody = parsedOutput.body;
|
|
3143
|
-
return throwDefaultError({
|
|
3144
|
-
output,
|
|
3145
|
-
parsedBody,
|
|
3146
|
-
errorCode
|
|
3147
|
-
});
|
|
3148
|
-
}
|
|
3149
|
-
}, "de_CreateVoiceProfileCommandError");
|
|
3150
2664
|
var de_CreateVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3151
2665
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3152
|
-
return
|
|
2666
|
+
return de_CommandError(output, context);
|
|
3153
2667
|
}
|
|
3154
2668
|
const contents = (0, import_smithy_client.map)({
|
|
3155
2669
|
$metadata: deserializeMetadata(output)
|
|
@@ -3161,52 +2675,9 @@ var de_CreateVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3161
2675
|
Object.assign(contents, doc);
|
|
3162
2676
|
return contents;
|
|
3163
2677
|
}, "de_CreateVoiceProfileDomainCommand");
|
|
3164
|
-
var de_CreateVoiceProfileDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3165
|
-
const parsedOutput = {
|
|
3166
|
-
...output,
|
|
3167
|
-
body: await parseErrorBody(output.body, context)
|
|
3168
|
-
};
|
|
3169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3170
|
-
switch (errorCode) {
|
|
3171
|
-
case "AccessDeniedException":
|
|
3172
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3173
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "BadRequestException":
|
|
3175
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3176
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "ConflictException":
|
|
3178
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3179
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "ForbiddenException":
|
|
3181
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3182
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "ResourceLimitExceededException":
|
|
3184
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
3185
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "ServiceFailureException":
|
|
3187
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3188
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "ServiceUnavailableException":
|
|
3190
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3191
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "ThrottledClientException":
|
|
3193
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3194
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "UnauthorizedClientException":
|
|
3196
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3197
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3198
|
-
default:
|
|
3199
|
-
const parsedBody = parsedOutput.body;
|
|
3200
|
-
return throwDefaultError({
|
|
3201
|
-
output,
|
|
3202
|
-
parsedBody,
|
|
3203
|
-
errorCode
|
|
3204
|
-
});
|
|
3205
|
-
}
|
|
3206
|
-
}, "de_CreateVoiceProfileDomainCommandError");
|
|
3207
2678
|
var de_DeletePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3208
2679
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3209
|
-
return
|
|
2680
|
+
return de_CommandError(output, context);
|
|
3210
2681
|
}
|
|
3211
2682
|
const contents = (0, import_smithy_client.map)({
|
|
3212
2683
|
$metadata: deserializeMetadata(output)
|
|
@@ -3214,46 +2685,9 @@ var de_DeletePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3214
2685
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3215
2686
|
return contents;
|
|
3216
2687
|
}, "de_DeletePhoneNumberCommand");
|
|
3217
|
-
var de_DeletePhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3218
|
-
const parsedOutput = {
|
|
3219
|
-
...output,
|
|
3220
|
-
body: await parseErrorBody(output.body, context)
|
|
3221
|
-
};
|
|
3222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3223
|
-
switch (errorCode) {
|
|
3224
|
-
case "BadRequestException":
|
|
3225
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3226
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3227
|
-
case "ForbiddenException":
|
|
3228
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3229
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3230
|
-
case "NotFoundException":
|
|
3231
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3232
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3233
|
-
case "ServiceFailureException":
|
|
3234
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3235
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "ServiceUnavailableException":
|
|
3237
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3238
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "ThrottledClientException":
|
|
3240
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3241
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3242
|
-
case "UnauthorizedClientException":
|
|
3243
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3244
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3245
|
-
default:
|
|
3246
|
-
const parsedBody = parsedOutput.body;
|
|
3247
|
-
return throwDefaultError({
|
|
3248
|
-
output,
|
|
3249
|
-
parsedBody,
|
|
3250
|
-
errorCode
|
|
3251
|
-
});
|
|
3252
|
-
}
|
|
3253
|
-
}, "de_DeletePhoneNumberCommandError");
|
|
3254
2688
|
var de_DeleteProxySessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3255
2689
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3256
|
-
return
|
|
2690
|
+
return de_CommandError(output, context);
|
|
3257
2691
|
}
|
|
3258
2692
|
const contents = (0, import_smithy_client.map)({
|
|
3259
2693
|
$metadata: deserializeMetadata(output)
|
|
@@ -3261,46 +2695,9 @@ var de_DeleteProxySessionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3261
2695
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3262
2696
|
return contents;
|
|
3263
2697
|
}, "de_DeleteProxySessionCommand");
|
|
3264
|
-
var de_DeleteProxySessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3265
|
-
const parsedOutput = {
|
|
3266
|
-
...output,
|
|
3267
|
-
body: await parseErrorBody(output.body, context)
|
|
3268
|
-
};
|
|
3269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3270
|
-
switch (errorCode) {
|
|
3271
|
-
case "BadRequestException":
|
|
3272
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3273
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3274
|
-
case "ForbiddenException":
|
|
3275
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3276
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3277
|
-
case "NotFoundException":
|
|
3278
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3279
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3280
|
-
case "ServiceFailureException":
|
|
3281
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3282
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3283
|
-
case "ServiceUnavailableException":
|
|
3284
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3285
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3286
|
-
case "ThrottledClientException":
|
|
3287
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3288
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "UnauthorizedClientException":
|
|
3290
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3291
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3292
|
-
default:
|
|
3293
|
-
const parsedBody = parsedOutput.body;
|
|
3294
|
-
return throwDefaultError({
|
|
3295
|
-
output,
|
|
3296
|
-
parsedBody,
|
|
3297
|
-
errorCode
|
|
3298
|
-
});
|
|
3299
|
-
}
|
|
3300
|
-
}, "de_DeleteProxySessionCommandError");
|
|
3301
2698
|
var de_DeleteSipMediaApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3302
2699
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3303
|
-
return
|
|
2700
|
+
return de_CommandError(output, context);
|
|
3304
2701
|
}
|
|
3305
2702
|
const contents = (0, import_smithy_client.map)({
|
|
3306
2703
|
$metadata: deserializeMetadata(output)
|
|
@@ -3308,49 +2705,9 @@ var de_DeleteSipMediaApplicationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3308
2705
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3309
2706
|
return contents;
|
|
3310
2707
|
}, "de_DeleteSipMediaApplicationCommand");
|
|
3311
|
-
var de_DeleteSipMediaApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3312
|
-
const parsedOutput = {
|
|
3313
|
-
...output,
|
|
3314
|
-
body: await parseErrorBody(output.body, context)
|
|
3315
|
-
};
|
|
3316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3317
|
-
switch (errorCode) {
|
|
3318
|
-
case "BadRequestException":
|
|
3319
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3320
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3321
|
-
case "ConflictException":
|
|
3322
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3323
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "ForbiddenException":
|
|
3325
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3326
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3327
|
-
case "NotFoundException":
|
|
3328
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3329
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3330
|
-
case "ServiceFailureException":
|
|
3331
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3332
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3333
|
-
case "ServiceUnavailableException":
|
|
3334
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3335
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3336
|
-
case "ThrottledClientException":
|
|
3337
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3338
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3339
|
-
case "UnauthorizedClientException":
|
|
3340
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3341
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3342
|
-
default:
|
|
3343
|
-
const parsedBody = parsedOutput.body;
|
|
3344
|
-
return throwDefaultError({
|
|
3345
|
-
output,
|
|
3346
|
-
parsedBody,
|
|
3347
|
-
errorCode
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
}, "de_DeleteSipMediaApplicationCommandError");
|
|
3351
2708
|
var de_DeleteSipRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3352
2709
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3353
|
-
return
|
|
2710
|
+
return de_CommandError(output, context);
|
|
3354
2711
|
}
|
|
3355
2712
|
const contents = (0, import_smithy_client.map)({
|
|
3356
2713
|
$metadata: deserializeMetadata(output)
|
|
@@ -3358,49 +2715,9 @@ var de_DeleteSipRuleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3358
2715
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3359
2716
|
return contents;
|
|
3360
2717
|
}, "de_DeleteSipRuleCommand");
|
|
3361
|
-
var de_DeleteSipRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3362
|
-
const parsedOutput = {
|
|
3363
|
-
...output,
|
|
3364
|
-
body: await parseErrorBody(output.body, context)
|
|
3365
|
-
};
|
|
3366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3367
|
-
switch (errorCode) {
|
|
3368
|
-
case "BadRequestException":
|
|
3369
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3370
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "ConflictException":
|
|
3372
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3373
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "ForbiddenException":
|
|
3375
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3376
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "NotFoundException":
|
|
3378
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3379
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "ServiceFailureException":
|
|
3381
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3382
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "ServiceUnavailableException":
|
|
3384
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3385
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3386
|
-
case "ThrottledClientException":
|
|
3387
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3388
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3389
|
-
case "UnauthorizedClientException":
|
|
3390
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3391
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3392
|
-
default:
|
|
3393
|
-
const parsedBody = parsedOutput.body;
|
|
3394
|
-
return throwDefaultError({
|
|
3395
|
-
output,
|
|
3396
|
-
parsedBody,
|
|
3397
|
-
errorCode
|
|
3398
|
-
});
|
|
3399
|
-
}
|
|
3400
|
-
}, "de_DeleteSipRuleCommandError");
|
|
3401
2718
|
var de_DeleteVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3402
2719
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3403
|
-
return
|
|
2720
|
+
return de_CommandError(output, context);
|
|
3404
2721
|
}
|
|
3405
2722
|
const contents = (0, import_smithy_client.map)({
|
|
3406
2723
|
$metadata: deserializeMetadata(output)
|
|
@@ -3408,49 +2725,9 @@ var de_DeleteVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3408
2725
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3409
2726
|
return contents;
|
|
3410
2727
|
}, "de_DeleteVoiceConnectorCommand");
|
|
3411
|
-
var de_DeleteVoiceConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3412
|
-
const parsedOutput = {
|
|
3413
|
-
...output,
|
|
3414
|
-
body: await parseErrorBody(output.body, context)
|
|
3415
|
-
};
|
|
3416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3417
|
-
switch (errorCode) {
|
|
3418
|
-
case "BadRequestException":
|
|
3419
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3420
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3421
|
-
case "ConflictException":
|
|
3422
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3423
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "ForbiddenException":
|
|
3425
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3426
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3427
|
-
case "NotFoundException":
|
|
3428
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3429
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3430
|
-
case "ServiceFailureException":
|
|
3431
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3432
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3433
|
-
case "ServiceUnavailableException":
|
|
3434
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3435
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3436
|
-
case "ThrottledClientException":
|
|
3437
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3438
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3439
|
-
case "UnauthorizedClientException":
|
|
3440
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3441
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3442
|
-
default:
|
|
3443
|
-
const parsedBody = parsedOutput.body;
|
|
3444
|
-
return throwDefaultError({
|
|
3445
|
-
output,
|
|
3446
|
-
parsedBody,
|
|
3447
|
-
errorCode
|
|
3448
|
-
});
|
|
3449
|
-
}
|
|
3450
|
-
}, "de_DeleteVoiceConnectorCommandError");
|
|
3451
2728
|
var de_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3452
2729
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3453
|
-
return
|
|
2730
|
+
return de_CommandError(output, context);
|
|
3454
2731
|
}
|
|
3455
2732
|
const contents = (0, import_smithy_client.map)({
|
|
3456
2733
|
$metadata: deserializeMetadata(output)
|
|
@@ -3458,46 +2735,9 @@ var de_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = /* @__PURE__ *
|
|
|
3458
2735
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3459
2736
|
return contents;
|
|
3460
2737
|
}, "de_DeleteVoiceConnectorEmergencyCallingConfigurationCommand");
|
|
3461
|
-
var de_DeleteVoiceConnectorEmergencyCallingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3462
|
-
const parsedOutput = {
|
|
3463
|
-
...output,
|
|
3464
|
-
body: await parseErrorBody(output.body, context)
|
|
3465
|
-
};
|
|
3466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3467
|
-
switch (errorCode) {
|
|
3468
|
-
case "BadRequestException":
|
|
3469
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3470
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3471
|
-
case "ForbiddenException":
|
|
3472
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3473
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3474
|
-
case "NotFoundException":
|
|
3475
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3476
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3477
|
-
case "ServiceFailureException":
|
|
3478
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3479
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3480
|
-
case "ServiceUnavailableException":
|
|
3481
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3482
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3483
|
-
case "ThrottledClientException":
|
|
3484
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3485
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "UnauthorizedClientException":
|
|
3487
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3488
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3489
|
-
default:
|
|
3490
|
-
const parsedBody = parsedOutput.body;
|
|
3491
|
-
return throwDefaultError({
|
|
3492
|
-
output,
|
|
3493
|
-
parsedBody,
|
|
3494
|
-
errorCode
|
|
3495
|
-
});
|
|
3496
|
-
}
|
|
3497
|
-
}, "de_DeleteVoiceConnectorEmergencyCallingConfigurationCommandError");
|
|
3498
2738
|
var de_DeleteVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3499
2739
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3500
|
-
return
|
|
2740
|
+
return de_CommandError(output, context);
|
|
3501
2741
|
}
|
|
3502
2742
|
const contents = (0, import_smithy_client.map)({
|
|
3503
2743
|
$metadata: deserializeMetadata(output)
|
|
@@ -3505,49 +2745,9 @@ var de_DeleteVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3505
2745
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3506
2746
|
return contents;
|
|
3507
2747
|
}, "de_DeleteVoiceConnectorGroupCommand");
|
|
3508
|
-
var de_DeleteVoiceConnectorGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3509
|
-
const parsedOutput = {
|
|
3510
|
-
...output,
|
|
3511
|
-
body: await parseErrorBody(output.body, context)
|
|
3512
|
-
};
|
|
3513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3514
|
-
switch (errorCode) {
|
|
3515
|
-
case "BadRequestException":
|
|
3516
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3517
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3518
|
-
case "ConflictException":
|
|
3519
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3520
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3521
|
-
case "ForbiddenException":
|
|
3522
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3523
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3524
|
-
case "NotFoundException":
|
|
3525
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3526
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3527
|
-
case "ServiceFailureException":
|
|
3528
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3529
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3530
|
-
case "ServiceUnavailableException":
|
|
3531
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3532
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3533
|
-
case "ThrottledClientException":
|
|
3534
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3535
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3536
|
-
case "UnauthorizedClientException":
|
|
3537
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3538
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3539
|
-
default:
|
|
3540
|
-
const parsedBody = parsedOutput.body;
|
|
3541
|
-
return throwDefaultError({
|
|
3542
|
-
output,
|
|
3543
|
-
parsedBody,
|
|
3544
|
-
errorCode
|
|
3545
|
-
});
|
|
3546
|
-
}
|
|
3547
|
-
}, "de_DeleteVoiceConnectorGroupCommandError");
|
|
3548
2748
|
var de_DeleteVoiceConnectorOriginationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3549
2749
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3550
|
-
return
|
|
2750
|
+
return de_CommandError(output, context);
|
|
3551
2751
|
}
|
|
3552
2752
|
const contents = (0, import_smithy_client.map)({
|
|
3553
2753
|
$metadata: deserializeMetadata(output)
|
|
@@ -3555,46 +2755,9 @@ var de_DeleteVoiceConnectorOriginationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3555
2755
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3556
2756
|
return contents;
|
|
3557
2757
|
}, "de_DeleteVoiceConnectorOriginationCommand");
|
|
3558
|
-
var de_DeleteVoiceConnectorOriginationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3559
|
-
const parsedOutput = {
|
|
3560
|
-
...output,
|
|
3561
|
-
body: await parseErrorBody(output.body, context)
|
|
3562
|
-
};
|
|
3563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3564
|
-
switch (errorCode) {
|
|
3565
|
-
case "BadRequestException":
|
|
3566
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3567
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3568
|
-
case "ForbiddenException":
|
|
3569
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3570
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3571
|
-
case "NotFoundException":
|
|
3572
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3573
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3574
|
-
case "ServiceFailureException":
|
|
3575
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3576
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3577
|
-
case "ServiceUnavailableException":
|
|
3578
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3579
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3580
|
-
case "ThrottledClientException":
|
|
3581
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3582
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3583
|
-
case "UnauthorizedClientException":
|
|
3584
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3585
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3586
|
-
default:
|
|
3587
|
-
const parsedBody = parsedOutput.body;
|
|
3588
|
-
return throwDefaultError({
|
|
3589
|
-
output,
|
|
3590
|
-
parsedBody,
|
|
3591
|
-
errorCode
|
|
3592
|
-
});
|
|
3593
|
-
}
|
|
3594
|
-
}, "de_DeleteVoiceConnectorOriginationCommandError");
|
|
3595
2758
|
var de_DeleteVoiceConnectorProxyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3596
2759
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3597
|
-
return
|
|
2760
|
+
return de_CommandError(output, context);
|
|
3598
2761
|
}
|
|
3599
2762
|
const contents = (0, import_smithy_client.map)({
|
|
3600
2763
|
$metadata: deserializeMetadata(output)
|
|
@@ -3602,46 +2765,9 @@ var de_DeleteVoiceConnectorProxyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3602
2765
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3603
2766
|
return contents;
|
|
3604
2767
|
}, "de_DeleteVoiceConnectorProxyCommand");
|
|
3605
|
-
var de_DeleteVoiceConnectorProxyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3606
|
-
const parsedOutput = {
|
|
3607
|
-
...output,
|
|
3608
|
-
body: await parseErrorBody(output.body, context)
|
|
3609
|
-
};
|
|
3610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3611
|
-
switch (errorCode) {
|
|
3612
|
-
case "BadRequestException":
|
|
3613
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3614
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3615
|
-
case "ForbiddenException":
|
|
3616
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3617
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3618
|
-
case "NotFoundException":
|
|
3619
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3620
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3621
|
-
case "ServiceFailureException":
|
|
3622
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3623
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3624
|
-
case "ServiceUnavailableException":
|
|
3625
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3626
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3627
|
-
case "ThrottledClientException":
|
|
3628
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3629
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3630
|
-
case "UnauthorizedClientException":
|
|
3631
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3632
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3633
|
-
default:
|
|
3634
|
-
const parsedBody = parsedOutput.body;
|
|
3635
|
-
return throwDefaultError({
|
|
3636
|
-
output,
|
|
3637
|
-
parsedBody,
|
|
3638
|
-
errorCode
|
|
3639
|
-
});
|
|
3640
|
-
}
|
|
3641
|
-
}, "de_DeleteVoiceConnectorProxyCommandError");
|
|
3642
2768
|
var de_DeleteVoiceConnectorStreamingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3643
2769
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3644
|
-
return
|
|
2770
|
+
return de_CommandError(output, context);
|
|
3645
2771
|
}
|
|
3646
2772
|
const contents = (0, import_smithy_client.map)({
|
|
3647
2773
|
$metadata: deserializeMetadata(output)
|
|
@@ -3649,46 +2775,9 @@ var de_DeleteVoiceConnectorStreamingConfigurationCommand = /* @__PURE__ */ __nam
|
|
|
3649
2775
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3650
2776
|
return contents;
|
|
3651
2777
|
}, "de_DeleteVoiceConnectorStreamingConfigurationCommand");
|
|
3652
|
-
var de_DeleteVoiceConnectorStreamingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3653
|
-
const parsedOutput = {
|
|
3654
|
-
...output,
|
|
3655
|
-
body: await parseErrorBody(output.body, context)
|
|
3656
|
-
};
|
|
3657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3658
|
-
switch (errorCode) {
|
|
3659
|
-
case "BadRequestException":
|
|
3660
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3661
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3662
|
-
case "ForbiddenException":
|
|
3663
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3664
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3665
|
-
case "NotFoundException":
|
|
3666
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3667
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3668
|
-
case "ServiceFailureException":
|
|
3669
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3670
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3671
|
-
case "ServiceUnavailableException":
|
|
3672
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3673
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3674
|
-
case "ThrottledClientException":
|
|
3675
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3676
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3677
|
-
case "UnauthorizedClientException":
|
|
3678
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3679
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3680
|
-
default:
|
|
3681
|
-
const parsedBody = parsedOutput.body;
|
|
3682
|
-
return throwDefaultError({
|
|
3683
|
-
output,
|
|
3684
|
-
parsedBody,
|
|
3685
|
-
errorCode
|
|
3686
|
-
});
|
|
3687
|
-
}
|
|
3688
|
-
}, "de_DeleteVoiceConnectorStreamingConfigurationCommandError");
|
|
3689
2778
|
var de_DeleteVoiceConnectorTerminationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3690
2779
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3691
|
-
return
|
|
2780
|
+
return de_CommandError(output, context);
|
|
3692
2781
|
}
|
|
3693
2782
|
const contents = (0, import_smithy_client.map)({
|
|
3694
2783
|
$metadata: deserializeMetadata(output)
|
|
@@ -3696,46 +2785,9 @@ var de_DeleteVoiceConnectorTerminationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3696
2785
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3697
2786
|
return contents;
|
|
3698
2787
|
}, "de_DeleteVoiceConnectorTerminationCommand");
|
|
3699
|
-
var de_DeleteVoiceConnectorTerminationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3700
|
-
const parsedOutput = {
|
|
3701
|
-
...output,
|
|
3702
|
-
body: await parseErrorBody(output.body, context)
|
|
3703
|
-
};
|
|
3704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3705
|
-
switch (errorCode) {
|
|
3706
|
-
case "BadRequestException":
|
|
3707
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3708
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3709
|
-
case "ForbiddenException":
|
|
3710
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3711
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3712
|
-
case "NotFoundException":
|
|
3713
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3714
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3715
|
-
case "ServiceFailureException":
|
|
3716
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3717
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3718
|
-
case "ServiceUnavailableException":
|
|
3719
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3720
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3721
|
-
case "ThrottledClientException":
|
|
3722
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3723
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3724
|
-
case "UnauthorizedClientException":
|
|
3725
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3726
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3727
|
-
default:
|
|
3728
|
-
const parsedBody = parsedOutput.body;
|
|
3729
|
-
return throwDefaultError({
|
|
3730
|
-
output,
|
|
3731
|
-
parsedBody,
|
|
3732
|
-
errorCode
|
|
3733
|
-
});
|
|
3734
|
-
}
|
|
3735
|
-
}, "de_DeleteVoiceConnectorTerminationCommandError");
|
|
3736
2788
|
var de_DeleteVoiceConnectorTerminationCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3737
2789
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3738
|
-
return
|
|
2790
|
+
return de_CommandError(output, context);
|
|
3739
2791
|
}
|
|
3740
2792
|
const contents = (0, import_smithy_client.map)({
|
|
3741
2793
|
$metadata: deserializeMetadata(output)
|
|
@@ -3743,46 +2795,9 @@ var de_DeleteVoiceConnectorTerminationCredentialsCommand = /* @__PURE__ */ __nam
|
|
|
3743
2795
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3744
2796
|
return contents;
|
|
3745
2797
|
}, "de_DeleteVoiceConnectorTerminationCredentialsCommand");
|
|
3746
|
-
var de_DeleteVoiceConnectorTerminationCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3747
|
-
const parsedOutput = {
|
|
3748
|
-
...output,
|
|
3749
|
-
body: await parseErrorBody(output.body, context)
|
|
3750
|
-
};
|
|
3751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3752
|
-
switch (errorCode) {
|
|
3753
|
-
case "BadRequestException":
|
|
3754
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3755
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3756
|
-
case "ForbiddenException":
|
|
3757
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3758
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3759
|
-
case "NotFoundException":
|
|
3760
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3761
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3762
|
-
case "ServiceFailureException":
|
|
3763
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3764
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "ServiceUnavailableException":
|
|
3766
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3767
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3768
|
-
case "ThrottledClientException":
|
|
3769
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3770
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3771
|
-
case "UnauthorizedClientException":
|
|
3772
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3773
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3774
|
-
default:
|
|
3775
|
-
const parsedBody = parsedOutput.body;
|
|
3776
|
-
return throwDefaultError({
|
|
3777
|
-
output,
|
|
3778
|
-
parsedBody,
|
|
3779
|
-
errorCode
|
|
3780
|
-
});
|
|
3781
|
-
}
|
|
3782
|
-
}, "de_DeleteVoiceConnectorTerminationCredentialsCommandError");
|
|
3783
2798
|
var de_DeleteVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3784
2799
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3785
|
-
return
|
|
2800
|
+
return de_CommandError(output, context);
|
|
3786
2801
|
}
|
|
3787
2802
|
const contents = (0, import_smithy_client.map)({
|
|
3788
2803
|
$metadata: deserializeMetadata(output)
|
|
@@ -3790,52 +2805,9 @@ var de_DeleteVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3790
2805
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3791
2806
|
return contents;
|
|
3792
2807
|
}, "de_DeleteVoiceProfileCommand");
|
|
3793
|
-
var de_DeleteVoiceProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3794
|
-
const parsedOutput = {
|
|
3795
|
-
...output,
|
|
3796
|
-
body: await parseErrorBody(output.body, context)
|
|
3797
|
-
};
|
|
3798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3799
|
-
switch (errorCode) {
|
|
3800
|
-
case "AccessDeniedException":
|
|
3801
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3802
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3803
|
-
case "BadRequestException":
|
|
3804
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3805
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3806
|
-
case "ConflictException":
|
|
3807
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3808
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3809
|
-
case "ForbiddenException":
|
|
3810
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3811
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3812
|
-
case "NotFoundException":
|
|
3813
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3814
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3815
|
-
case "ServiceFailureException":
|
|
3816
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3817
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3818
|
-
case "ServiceUnavailableException":
|
|
3819
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3820
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3821
|
-
case "ThrottledClientException":
|
|
3822
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3823
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3824
|
-
case "UnauthorizedClientException":
|
|
3825
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3826
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3827
|
-
default:
|
|
3828
|
-
const parsedBody = parsedOutput.body;
|
|
3829
|
-
return throwDefaultError({
|
|
3830
|
-
output,
|
|
3831
|
-
parsedBody,
|
|
3832
|
-
errorCode
|
|
3833
|
-
});
|
|
3834
|
-
}
|
|
3835
|
-
}, "de_DeleteVoiceProfileCommandError");
|
|
3836
2808
|
var de_DeleteVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3837
2809
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3838
|
-
return
|
|
2810
|
+
return de_CommandError(output, context);
|
|
3839
2811
|
}
|
|
3840
2812
|
const contents = (0, import_smithy_client.map)({
|
|
3841
2813
|
$metadata: deserializeMetadata(output)
|
|
@@ -3843,52 +2815,9 @@ var de_DeleteVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3843
2815
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3844
2816
|
return contents;
|
|
3845
2817
|
}, "de_DeleteVoiceProfileDomainCommand");
|
|
3846
|
-
var de_DeleteVoiceProfileDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3847
|
-
const parsedOutput = {
|
|
3848
|
-
...output,
|
|
3849
|
-
body: await parseErrorBody(output.body, context)
|
|
3850
|
-
};
|
|
3851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
|
-
switch (errorCode) {
|
|
3853
|
-
case "AccessDeniedException":
|
|
3854
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3855
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3856
|
-
case "BadRequestException":
|
|
3857
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3858
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3859
|
-
case "ConflictException":
|
|
3860
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3861
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3862
|
-
case "ForbiddenException":
|
|
3863
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3864
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3865
|
-
case "NotFoundException":
|
|
3866
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3867
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3868
|
-
case "ServiceFailureException":
|
|
3869
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3870
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3871
|
-
case "ServiceUnavailableException":
|
|
3872
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3873
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3874
|
-
case "ThrottledClientException":
|
|
3875
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3876
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3877
|
-
case "UnauthorizedClientException":
|
|
3878
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3879
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3880
|
-
default:
|
|
3881
|
-
const parsedBody = parsedOutput.body;
|
|
3882
|
-
return throwDefaultError({
|
|
3883
|
-
output,
|
|
3884
|
-
parsedBody,
|
|
3885
|
-
errorCode
|
|
3886
|
-
});
|
|
3887
|
-
}
|
|
3888
|
-
}, "de_DeleteVoiceProfileDomainCommandError");
|
|
3889
2818
|
var de_DisassociatePhoneNumbersFromVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3890
2819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3891
|
-
return
|
|
2820
|
+
return de_CommandError(output, context);
|
|
3892
2821
|
}
|
|
3893
2822
|
const contents = (0, import_smithy_client.map)({
|
|
3894
2823
|
$metadata: deserializeMetadata(output)
|
|
@@ -3900,46 +2829,9 @@ var de_DisassociatePhoneNumbersFromVoiceConnectorCommand = /* @__PURE__ */ __nam
|
|
|
3900
2829
|
Object.assign(contents, doc);
|
|
3901
2830
|
return contents;
|
|
3902
2831
|
}, "de_DisassociatePhoneNumbersFromVoiceConnectorCommand");
|
|
3903
|
-
var de_DisassociatePhoneNumbersFromVoiceConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3904
|
-
const parsedOutput = {
|
|
3905
|
-
...output,
|
|
3906
|
-
body: await parseErrorBody(output.body, context)
|
|
3907
|
-
};
|
|
3908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3909
|
-
switch (errorCode) {
|
|
3910
|
-
case "BadRequestException":
|
|
3911
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3912
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3913
|
-
case "ForbiddenException":
|
|
3914
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3915
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3916
|
-
case "NotFoundException":
|
|
3917
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3918
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3919
|
-
case "ServiceFailureException":
|
|
3920
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3921
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3922
|
-
case "ServiceUnavailableException":
|
|
3923
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3924
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3925
|
-
case "ThrottledClientException":
|
|
3926
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3927
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3928
|
-
case "UnauthorizedClientException":
|
|
3929
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3930
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3931
|
-
default:
|
|
3932
|
-
const parsedBody = parsedOutput.body;
|
|
3933
|
-
return throwDefaultError({
|
|
3934
|
-
output,
|
|
3935
|
-
parsedBody,
|
|
3936
|
-
errorCode
|
|
3937
|
-
});
|
|
3938
|
-
}
|
|
3939
|
-
}, "de_DisassociatePhoneNumbersFromVoiceConnectorCommandError");
|
|
3940
2832
|
var de_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3941
2833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3942
|
-
return
|
|
2834
|
+
return de_CommandError(output, context);
|
|
3943
2835
|
}
|
|
3944
2836
|
const contents = (0, import_smithy_client.map)({
|
|
3945
2837
|
$metadata: deserializeMetadata(output)
|
|
@@ -3951,46 +2843,9 @@ var de_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = /* @__PURE__ */
|
|
|
3951
2843
|
Object.assign(contents, doc);
|
|
3952
2844
|
return contents;
|
|
3953
2845
|
}, "de_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand");
|
|
3954
|
-
var de_DisassociatePhoneNumbersFromVoiceConnectorGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3955
|
-
const parsedOutput = {
|
|
3956
|
-
...output,
|
|
3957
|
-
body: await parseErrorBody(output.body, context)
|
|
3958
|
-
};
|
|
3959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3960
|
-
switch (errorCode) {
|
|
3961
|
-
case "BadRequestException":
|
|
3962
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
3963
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3964
|
-
case "ForbiddenException":
|
|
3965
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
3966
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3967
|
-
case "NotFoundException":
|
|
3968
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
3969
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3970
|
-
case "ServiceFailureException":
|
|
3971
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
3972
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3973
|
-
case "ServiceUnavailableException":
|
|
3974
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
3975
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3976
|
-
case "ThrottledClientException":
|
|
3977
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
3978
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3979
|
-
case "UnauthorizedClientException":
|
|
3980
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
3981
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3982
|
-
default:
|
|
3983
|
-
const parsedBody = parsedOutput.body;
|
|
3984
|
-
return throwDefaultError({
|
|
3985
|
-
output,
|
|
3986
|
-
parsedBody,
|
|
3987
|
-
errorCode
|
|
3988
|
-
});
|
|
3989
|
-
}
|
|
3990
|
-
}, "de_DisassociatePhoneNumbersFromVoiceConnectorGroupCommandError");
|
|
3991
2846
|
var de_GetGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3992
2847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3993
|
-
return
|
|
2848
|
+
return de_CommandError(output, context);
|
|
3994
2849
|
}
|
|
3995
2850
|
const contents = (0, import_smithy_client.map)({
|
|
3996
2851
|
$metadata: deserializeMetadata(output)
|
|
@@ -4002,43 +2857,9 @@ var de_GetGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4002
2857
|
Object.assign(contents, doc);
|
|
4003
2858
|
return contents;
|
|
4004
2859
|
}, "de_GetGlobalSettingsCommand");
|
|
4005
|
-
var de_GetGlobalSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4006
|
-
const parsedOutput = {
|
|
4007
|
-
...output,
|
|
4008
|
-
body: await parseErrorBody(output.body, context)
|
|
4009
|
-
};
|
|
4010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4011
|
-
switch (errorCode) {
|
|
4012
|
-
case "BadRequestException":
|
|
4013
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4014
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4015
|
-
case "ForbiddenException":
|
|
4016
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4017
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4018
|
-
case "ServiceFailureException":
|
|
4019
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4020
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4021
|
-
case "ServiceUnavailableException":
|
|
4022
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4023
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4024
|
-
case "ThrottledClientException":
|
|
4025
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4026
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4027
|
-
case "UnauthorizedClientException":
|
|
4028
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4029
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4030
|
-
default:
|
|
4031
|
-
const parsedBody = parsedOutput.body;
|
|
4032
|
-
return throwDefaultError({
|
|
4033
|
-
output,
|
|
4034
|
-
parsedBody,
|
|
4035
|
-
errorCode
|
|
4036
|
-
});
|
|
4037
|
-
}
|
|
4038
|
-
}, "de_GetGlobalSettingsCommandError");
|
|
4039
2860
|
var de_GetPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4040
2861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4041
|
-
return
|
|
2862
|
+
return de_CommandError(output, context);
|
|
4042
2863
|
}
|
|
4043
2864
|
const contents = (0, import_smithy_client.map)({
|
|
4044
2865
|
$metadata: deserializeMetadata(output)
|
|
@@ -4050,46 +2871,9 @@ var de_GetPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4050
2871
|
Object.assign(contents, doc);
|
|
4051
2872
|
return contents;
|
|
4052
2873
|
}, "de_GetPhoneNumberCommand");
|
|
4053
|
-
var de_GetPhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4054
|
-
const parsedOutput = {
|
|
4055
|
-
...output,
|
|
4056
|
-
body: await parseErrorBody(output.body, context)
|
|
4057
|
-
};
|
|
4058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4059
|
-
switch (errorCode) {
|
|
4060
|
-
case "BadRequestException":
|
|
4061
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4062
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4063
|
-
case "ForbiddenException":
|
|
4064
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4065
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4066
|
-
case "NotFoundException":
|
|
4067
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4068
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4069
|
-
case "ServiceFailureException":
|
|
4070
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4071
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4072
|
-
case "ServiceUnavailableException":
|
|
4073
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4074
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4075
|
-
case "ThrottledClientException":
|
|
4076
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4077
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4078
|
-
case "UnauthorizedClientException":
|
|
4079
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4080
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4081
|
-
default:
|
|
4082
|
-
const parsedBody = parsedOutput.body;
|
|
4083
|
-
return throwDefaultError({
|
|
4084
|
-
output,
|
|
4085
|
-
parsedBody,
|
|
4086
|
-
errorCode
|
|
4087
|
-
});
|
|
4088
|
-
}
|
|
4089
|
-
}, "de_GetPhoneNumberCommandError");
|
|
4090
2874
|
var de_GetPhoneNumberOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4091
2875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4092
|
-
return
|
|
2876
|
+
return de_CommandError(output, context);
|
|
4093
2877
|
}
|
|
4094
2878
|
const contents = (0, import_smithy_client.map)({
|
|
4095
2879
|
$metadata: deserializeMetadata(output)
|
|
@@ -4101,46 +2885,9 @@ var de_GetPhoneNumberOrderCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4101
2885
|
Object.assign(contents, doc);
|
|
4102
2886
|
return contents;
|
|
4103
2887
|
}, "de_GetPhoneNumberOrderCommand");
|
|
4104
|
-
var de_GetPhoneNumberOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4105
|
-
const parsedOutput = {
|
|
4106
|
-
...output,
|
|
4107
|
-
body: await parseErrorBody(output.body, context)
|
|
4108
|
-
};
|
|
4109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4110
|
-
switch (errorCode) {
|
|
4111
|
-
case "BadRequestException":
|
|
4112
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4113
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4114
|
-
case "ForbiddenException":
|
|
4115
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4116
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4117
|
-
case "NotFoundException":
|
|
4118
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4119
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4120
|
-
case "ServiceFailureException":
|
|
4121
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4122
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4123
|
-
case "ServiceUnavailableException":
|
|
4124
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4125
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4126
|
-
case "ThrottledClientException":
|
|
4127
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4128
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4129
|
-
case "UnauthorizedClientException":
|
|
4130
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4131
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4132
|
-
default:
|
|
4133
|
-
const parsedBody = parsedOutput.body;
|
|
4134
|
-
return throwDefaultError({
|
|
4135
|
-
output,
|
|
4136
|
-
parsedBody,
|
|
4137
|
-
errorCode
|
|
4138
|
-
});
|
|
4139
|
-
}
|
|
4140
|
-
}, "de_GetPhoneNumberOrderCommandError");
|
|
4141
2888
|
var de_GetPhoneNumberSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4142
2889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4143
|
-
return
|
|
2890
|
+
return de_CommandError(output, context);
|
|
4144
2891
|
}
|
|
4145
2892
|
const contents = (0, import_smithy_client.map)({
|
|
4146
2893
|
$metadata: deserializeMetadata(output)
|
|
@@ -4153,43 +2900,9 @@ var de_GetPhoneNumberSettingsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4153
2900
|
Object.assign(contents, doc);
|
|
4154
2901
|
return contents;
|
|
4155
2902
|
}, "de_GetPhoneNumberSettingsCommand");
|
|
4156
|
-
var de_GetPhoneNumberSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4157
|
-
const parsedOutput = {
|
|
4158
|
-
...output,
|
|
4159
|
-
body: await parseErrorBody(output.body, context)
|
|
4160
|
-
};
|
|
4161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4162
|
-
switch (errorCode) {
|
|
4163
|
-
case "BadRequestException":
|
|
4164
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4165
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4166
|
-
case "ForbiddenException":
|
|
4167
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4168
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4169
|
-
case "ServiceFailureException":
|
|
4170
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4171
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4172
|
-
case "ServiceUnavailableException":
|
|
4173
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4174
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4175
|
-
case "ThrottledClientException":
|
|
4176
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4177
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4178
|
-
case "UnauthorizedClientException":
|
|
4179
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4180
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4181
|
-
default:
|
|
4182
|
-
const parsedBody = parsedOutput.body;
|
|
4183
|
-
return throwDefaultError({
|
|
4184
|
-
output,
|
|
4185
|
-
parsedBody,
|
|
4186
|
-
errorCode
|
|
4187
|
-
});
|
|
4188
|
-
}
|
|
4189
|
-
}, "de_GetPhoneNumberSettingsCommandError");
|
|
4190
2903
|
var de_GetProxySessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4191
2904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4192
|
-
return
|
|
2905
|
+
return de_CommandError(output, context);
|
|
4193
2906
|
}
|
|
4194
2907
|
const contents = (0, import_smithy_client.map)({
|
|
4195
2908
|
$metadata: deserializeMetadata(output)
|
|
@@ -4201,46 +2914,9 @@ var de_GetProxySessionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4201
2914
|
Object.assign(contents, doc);
|
|
4202
2915
|
return contents;
|
|
4203
2916
|
}, "de_GetProxySessionCommand");
|
|
4204
|
-
var de_GetProxySessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4205
|
-
const parsedOutput = {
|
|
4206
|
-
...output,
|
|
4207
|
-
body: await parseErrorBody(output.body, context)
|
|
4208
|
-
};
|
|
4209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4210
|
-
switch (errorCode) {
|
|
4211
|
-
case "BadRequestException":
|
|
4212
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4213
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4214
|
-
case "ForbiddenException":
|
|
4215
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4216
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4217
|
-
case "NotFoundException":
|
|
4218
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4219
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4220
|
-
case "ServiceFailureException":
|
|
4221
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4222
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4223
|
-
case "ServiceUnavailableException":
|
|
4224
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4225
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4226
|
-
case "ThrottledClientException":
|
|
4227
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4228
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4229
|
-
case "UnauthorizedClientException":
|
|
4230
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4231
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4232
|
-
default:
|
|
4233
|
-
const parsedBody = parsedOutput.body;
|
|
4234
|
-
return throwDefaultError({
|
|
4235
|
-
output,
|
|
4236
|
-
parsedBody,
|
|
4237
|
-
errorCode
|
|
4238
|
-
});
|
|
4239
|
-
}
|
|
4240
|
-
}, "de_GetProxySessionCommandError");
|
|
4241
2917
|
var de_GetSipMediaApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4242
2918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4243
|
-
return
|
|
2919
|
+
return de_CommandError(output, context);
|
|
4244
2920
|
}
|
|
4245
2921
|
const contents = (0, import_smithy_client.map)({
|
|
4246
2922
|
$metadata: deserializeMetadata(output)
|
|
@@ -4252,46 +2928,9 @@ var de_GetSipMediaApplicationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4252
2928
|
Object.assign(contents, doc);
|
|
4253
2929
|
return contents;
|
|
4254
2930
|
}, "de_GetSipMediaApplicationCommand");
|
|
4255
|
-
var de_GetSipMediaApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4256
|
-
const parsedOutput = {
|
|
4257
|
-
...output,
|
|
4258
|
-
body: await parseErrorBody(output.body, context)
|
|
4259
|
-
};
|
|
4260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4261
|
-
switch (errorCode) {
|
|
4262
|
-
case "BadRequestException":
|
|
4263
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4264
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4265
|
-
case "ForbiddenException":
|
|
4266
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4267
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4268
|
-
case "NotFoundException":
|
|
4269
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4270
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4271
|
-
case "ServiceFailureException":
|
|
4272
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4273
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4274
|
-
case "ServiceUnavailableException":
|
|
4275
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4276
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4277
|
-
case "ThrottledClientException":
|
|
4278
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4279
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4280
|
-
case "UnauthorizedClientException":
|
|
4281
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4282
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4283
|
-
default:
|
|
4284
|
-
const parsedBody = parsedOutput.body;
|
|
4285
|
-
return throwDefaultError({
|
|
4286
|
-
output,
|
|
4287
|
-
parsedBody,
|
|
4288
|
-
errorCode
|
|
4289
|
-
});
|
|
4290
|
-
}
|
|
4291
|
-
}, "de_GetSipMediaApplicationCommandError");
|
|
4292
2931
|
var de_GetSipMediaApplicationAlexaSkillConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4293
2932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4294
|
-
return
|
|
2933
|
+
return de_CommandError(output, context);
|
|
4295
2934
|
}
|
|
4296
2935
|
const contents = (0, import_smithy_client.map)({
|
|
4297
2936
|
$metadata: deserializeMetadata(output)
|
|
@@ -4303,46 +2942,9 @@ var de_GetSipMediaApplicationAlexaSkillConfigurationCommand = /* @__PURE__ */ __
|
|
|
4303
2942
|
Object.assign(contents, doc);
|
|
4304
2943
|
return contents;
|
|
4305
2944
|
}, "de_GetSipMediaApplicationAlexaSkillConfigurationCommand");
|
|
4306
|
-
var de_GetSipMediaApplicationAlexaSkillConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4307
|
-
const parsedOutput = {
|
|
4308
|
-
...output,
|
|
4309
|
-
body: await parseErrorBody(output.body, context)
|
|
4310
|
-
};
|
|
4311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4312
|
-
switch (errorCode) {
|
|
4313
|
-
case "BadRequestException":
|
|
4314
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4315
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4316
|
-
case "ForbiddenException":
|
|
4317
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4318
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4319
|
-
case "NotFoundException":
|
|
4320
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4321
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4322
|
-
case "ServiceFailureException":
|
|
4323
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4324
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4325
|
-
case "ServiceUnavailableException":
|
|
4326
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4327
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4328
|
-
case "ThrottledClientException":
|
|
4329
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4330
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4331
|
-
case "UnauthorizedClientException":
|
|
4332
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4333
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4334
|
-
default:
|
|
4335
|
-
const parsedBody = parsedOutput.body;
|
|
4336
|
-
return throwDefaultError({
|
|
4337
|
-
output,
|
|
4338
|
-
parsedBody,
|
|
4339
|
-
errorCode
|
|
4340
|
-
});
|
|
4341
|
-
}
|
|
4342
|
-
}, "de_GetSipMediaApplicationAlexaSkillConfigurationCommandError");
|
|
4343
2945
|
var de_GetSipMediaApplicationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4344
2946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4345
|
-
return
|
|
2947
|
+
return de_CommandError(output, context);
|
|
4346
2948
|
}
|
|
4347
2949
|
const contents = (0, import_smithy_client.map)({
|
|
4348
2950
|
$metadata: deserializeMetadata(output)
|
|
@@ -4354,46 +2956,9 @@ var de_GetSipMediaApplicationLoggingConfigurationCommand = /* @__PURE__ */ __nam
|
|
|
4354
2956
|
Object.assign(contents, doc);
|
|
4355
2957
|
return contents;
|
|
4356
2958
|
}, "de_GetSipMediaApplicationLoggingConfigurationCommand");
|
|
4357
|
-
var de_GetSipMediaApplicationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4358
|
-
const parsedOutput = {
|
|
4359
|
-
...output,
|
|
4360
|
-
body: await parseErrorBody(output.body, context)
|
|
4361
|
-
};
|
|
4362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4363
|
-
switch (errorCode) {
|
|
4364
|
-
case "BadRequestException":
|
|
4365
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4366
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4367
|
-
case "ForbiddenException":
|
|
4368
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4369
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4370
|
-
case "NotFoundException":
|
|
4371
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4372
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4373
|
-
case "ServiceFailureException":
|
|
4374
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4375
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4376
|
-
case "ServiceUnavailableException":
|
|
4377
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4378
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4379
|
-
case "ThrottledClientException":
|
|
4380
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4381
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4382
|
-
case "UnauthorizedClientException":
|
|
4383
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4384
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4385
|
-
default:
|
|
4386
|
-
const parsedBody = parsedOutput.body;
|
|
4387
|
-
return throwDefaultError({
|
|
4388
|
-
output,
|
|
4389
|
-
parsedBody,
|
|
4390
|
-
errorCode
|
|
4391
|
-
});
|
|
4392
|
-
}
|
|
4393
|
-
}, "de_GetSipMediaApplicationLoggingConfigurationCommandError");
|
|
4394
2959
|
var de_GetSipRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4395
2960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4396
|
-
return
|
|
2961
|
+
return de_CommandError(output, context);
|
|
4397
2962
|
}
|
|
4398
2963
|
const contents = (0, import_smithy_client.map)({
|
|
4399
2964
|
$metadata: deserializeMetadata(output)
|
|
@@ -4405,46 +2970,9 @@ var de_GetSipRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4405
2970
|
Object.assign(contents, doc);
|
|
4406
2971
|
return contents;
|
|
4407
2972
|
}, "de_GetSipRuleCommand");
|
|
4408
|
-
var de_GetSipRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4409
|
-
const parsedOutput = {
|
|
4410
|
-
...output,
|
|
4411
|
-
body: await parseErrorBody(output.body, context)
|
|
4412
|
-
};
|
|
4413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4414
|
-
switch (errorCode) {
|
|
4415
|
-
case "BadRequestException":
|
|
4416
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4417
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4418
|
-
case "ForbiddenException":
|
|
4419
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4420
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4421
|
-
case "NotFoundException":
|
|
4422
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4423
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4424
|
-
case "ServiceFailureException":
|
|
4425
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4426
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4427
|
-
case "ServiceUnavailableException":
|
|
4428
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4429
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4430
|
-
case "ThrottledClientException":
|
|
4431
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4432
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4433
|
-
case "UnauthorizedClientException":
|
|
4434
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4435
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4436
|
-
default:
|
|
4437
|
-
const parsedBody = parsedOutput.body;
|
|
4438
|
-
return throwDefaultError({
|
|
4439
|
-
output,
|
|
4440
|
-
parsedBody,
|
|
4441
|
-
errorCode
|
|
4442
|
-
});
|
|
4443
|
-
}
|
|
4444
|
-
}, "de_GetSipRuleCommandError");
|
|
4445
2973
|
var de_GetSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4446
2974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4447
|
-
return
|
|
2975
|
+
return de_CommandError(output, context);
|
|
4448
2976
|
}
|
|
4449
2977
|
const contents = (0, import_smithy_client.map)({
|
|
4450
2978
|
$metadata: deserializeMetadata(output)
|
|
@@ -4456,52 +2984,9 @@ var de_GetSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4456
2984
|
Object.assign(contents, doc);
|
|
4457
2985
|
return contents;
|
|
4458
2986
|
}, "de_GetSpeakerSearchTaskCommand");
|
|
4459
|
-
var de_GetSpeakerSearchTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4460
|
-
const parsedOutput = {
|
|
4461
|
-
...output,
|
|
4462
|
-
body: await parseErrorBody(output.body, context)
|
|
4463
|
-
};
|
|
4464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4465
|
-
switch (errorCode) {
|
|
4466
|
-
case "AccessDeniedException":
|
|
4467
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4469
|
-
case "BadRequestException":
|
|
4470
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4471
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4472
|
-
case "ConflictException":
|
|
4473
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
4474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4475
|
-
case "ForbiddenException":
|
|
4476
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4477
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4478
|
-
case "NotFoundException":
|
|
4479
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4480
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4481
|
-
case "ServiceFailureException":
|
|
4482
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4483
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4484
|
-
case "ServiceUnavailableException":
|
|
4485
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4486
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4487
|
-
case "ThrottledClientException":
|
|
4488
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4489
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4490
|
-
case "UnauthorizedClientException":
|
|
4491
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4492
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4493
|
-
default:
|
|
4494
|
-
const parsedBody = parsedOutput.body;
|
|
4495
|
-
return throwDefaultError({
|
|
4496
|
-
output,
|
|
4497
|
-
parsedBody,
|
|
4498
|
-
errorCode
|
|
4499
|
-
});
|
|
4500
|
-
}
|
|
4501
|
-
}, "de_GetSpeakerSearchTaskCommandError");
|
|
4502
2987
|
var de_GetVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4503
2988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4504
|
-
return
|
|
2989
|
+
return de_CommandError(output, context);
|
|
4505
2990
|
}
|
|
4506
2991
|
const contents = (0, import_smithy_client.map)({
|
|
4507
2992
|
$metadata: deserializeMetadata(output)
|
|
@@ -4513,46 +2998,9 @@ var de_GetVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4513
2998
|
Object.assign(contents, doc);
|
|
4514
2999
|
return contents;
|
|
4515
3000
|
}, "de_GetVoiceConnectorCommand");
|
|
4516
|
-
var de_GetVoiceConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4517
|
-
const parsedOutput = {
|
|
4518
|
-
...output,
|
|
4519
|
-
body: await parseErrorBody(output.body, context)
|
|
4520
|
-
};
|
|
4521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4522
|
-
switch (errorCode) {
|
|
4523
|
-
case "BadRequestException":
|
|
4524
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4525
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4526
|
-
case "ForbiddenException":
|
|
4527
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4528
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4529
|
-
case "NotFoundException":
|
|
4530
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4531
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4532
|
-
case "ServiceFailureException":
|
|
4533
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4534
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4535
|
-
case "ServiceUnavailableException":
|
|
4536
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4537
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4538
|
-
case "ThrottledClientException":
|
|
4539
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4540
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4541
|
-
case "UnauthorizedClientException":
|
|
4542
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4543
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4544
|
-
default:
|
|
4545
|
-
const parsedBody = parsedOutput.body;
|
|
4546
|
-
return throwDefaultError({
|
|
4547
|
-
output,
|
|
4548
|
-
parsedBody,
|
|
4549
|
-
errorCode
|
|
4550
|
-
});
|
|
4551
|
-
}
|
|
4552
|
-
}, "de_GetVoiceConnectorCommandError");
|
|
4553
3001
|
var de_GetVoiceConnectorEmergencyCallingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4554
3002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4555
|
-
return
|
|
3003
|
+
return de_CommandError(output, context);
|
|
4556
3004
|
}
|
|
4557
3005
|
const contents = (0, import_smithy_client.map)({
|
|
4558
3006
|
$metadata: deserializeMetadata(output)
|
|
@@ -4564,46 +3012,9 @@ var de_GetVoiceConnectorEmergencyCallingConfigurationCommand = /* @__PURE__ */ _
|
|
|
4564
3012
|
Object.assign(contents, doc);
|
|
4565
3013
|
return contents;
|
|
4566
3014
|
}, "de_GetVoiceConnectorEmergencyCallingConfigurationCommand");
|
|
4567
|
-
var de_GetVoiceConnectorEmergencyCallingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4568
|
-
const parsedOutput = {
|
|
4569
|
-
...output,
|
|
4570
|
-
body: await parseErrorBody(output.body, context)
|
|
4571
|
-
};
|
|
4572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4573
|
-
switch (errorCode) {
|
|
4574
|
-
case "BadRequestException":
|
|
4575
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4576
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4577
|
-
case "ForbiddenException":
|
|
4578
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4579
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4580
|
-
case "NotFoundException":
|
|
4581
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4582
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4583
|
-
case "ServiceFailureException":
|
|
4584
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4585
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4586
|
-
case "ServiceUnavailableException":
|
|
4587
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4588
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4589
|
-
case "ThrottledClientException":
|
|
4590
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4591
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4592
|
-
case "UnauthorizedClientException":
|
|
4593
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4594
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4595
|
-
default:
|
|
4596
|
-
const parsedBody = parsedOutput.body;
|
|
4597
|
-
return throwDefaultError({
|
|
4598
|
-
output,
|
|
4599
|
-
parsedBody,
|
|
4600
|
-
errorCode
|
|
4601
|
-
});
|
|
4602
|
-
}
|
|
4603
|
-
}, "de_GetVoiceConnectorEmergencyCallingConfigurationCommandError");
|
|
4604
3015
|
var de_GetVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4605
3016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4606
|
-
return
|
|
3017
|
+
return de_CommandError(output, context);
|
|
4607
3018
|
}
|
|
4608
3019
|
const contents = (0, import_smithy_client.map)({
|
|
4609
3020
|
$metadata: deserializeMetadata(output)
|
|
@@ -4615,46 +3026,9 @@ var de_GetVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4615
3026
|
Object.assign(contents, doc);
|
|
4616
3027
|
return contents;
|
|
4617
3028
|
}, "de_GetVoiceConnectorGroupCommand");
|
|
4618
|
-
var de_GetVoiceConnectorGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4619
|
-
const parsedOutput = {
|
|
4620
|
-
...output,
|
|
4621
|
-
body: await parseErrorBody(output.body, context)
|
|
4622
|
-
};
|
|
4623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4624
|
-
switch (errorCode) {
|
|
4625
|
-
case "BadRequestException":
|
|
4626
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4627
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4628
|
-
case "ForbiddenException":
|
|
4629
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4630
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4631
|
-
case "NotFoundException":
|
|
4632
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4633
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4634
|
-
case "ServiceFailureException":
|
|
4635
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4636
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4637
|
-
case "ServiceUnavailableException":
|
|
4638
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4639
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4640
|
-
case "ThrottledClientException":
|
|
4641
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4642
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4643
|
-
case "UnauthorizedClientException":
|
|
4644
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4645
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4646
|
-
default:
|
|
4647
|
-
const parsedBody = parsedOutput.body;
|
|
4648
|
-
return throwDefaultError({
|
|
4649
|
-
output,
|
|
4650
|
-
parsedBody,
|
|
4651
|
-
errorCode
|
|
4652
|
-
});
|
|
4653
|
-
}
|
|
4654
|
-
}, "de_GetVoiceConnectorGroupCommandError");
|
|
4655
3029
|
var de_GetVoiceConnectorLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4656
3030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4657
|
-
return
|
|
3031
|
+
return de_CommandError(output, context);
|
|
4658
3032
|
}
|
|
4659
3033
|
const contents = (0, import_smithy_client.map)({
|
|
4660
3034
|
$metadata: deserializeMetadata(output)
|
|
@@ -4666,46 +3040,9 @@ var de_GetVoiceConnectorLoggingConfigurationCommand = /* @__PURE__ */ __name(asy
|
|
|
4666
3040
|
Object.assign(contents, doc);
|
|
4667
3041
|
return contents;
|
|
4668
3042
|
}, "de_GetVoiceConnectorLoggingConfigurationCommand");
|
|
4669
|
-
var de_GetVoiceConnectorLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4670
|
-
const parsedOutput = {
|
|
4671
|
-
...output,
|
|
4672
|
-
body: await parseErrorBody(output.body, context)
|
|
4673
|
-
};
|
|
4674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4675
|
-
switch (errorCode) {
|
|
4676
|
-
case "BadRequestException":
|
|
4677
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4678
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4679
|
-
case "ForbiddenException":
|
|
4680
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4681
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4682
|
-
case "NotFoundException":
|
|
4683
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4684
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4685
|
-
case "ServiceFailureException":
|
|
4686
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4687
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4688
|
-
case "ServiceUnavailableException":
|
|
4689
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4690
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4691
|
-
case "ThrottledClientException":
|
|
4692
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4693
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4694
|
-
case "UnauthorizedClientException":
|
|
4695
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4696
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4697
|
-
default:
|
|
4698
|
-
const parsedBody = parsedOutput.body;
|
|
4699
|
-
return throwDefaultError({
|
|
4700
|
-
output,
|
|
4701
|
-
parsedBody,
|
|
4702
|
-
errorCode
|
|
4703
|
-
});
|
|
4704
|
-
}
|
|
4705
|
-
}, "de_GetVoiceConnectorLoggingConfigurationCommandError");
|
|
4706
3043
|
var de_GetVoiceConnectorOriginationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4707
3044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4708
|
-
return
|
|
3045
|
+
return de_CommandError(output, context);
|
|
4709
3046
|
}
|
|
4710
3047
|
const contents = (0, import_smithy_client.map)({
|
|
4711
3048
|
$metadata: deserializeMetadata(output)
|
|
@@ -4717,46 +3054,9 @@ var de_GetVoiceConnectorOriginationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4717
3054
|
Object.assign(contents, doc);
|
|
4718
3055
|
return contents;
|
|
4719
3056
|
}, "de_GetVoiceConnectorOriginationCommand");
|
|
4720
|
-
var de_GetVoiceConnectorOriginationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4721
|
-
const parsedOutput = {
|
|
4722
|
-
...output,
|
|
4723
|
-
body: await parseErrorBody(output.body, context)
|
|
4724
|
-
};
|
|
4725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4726
|
-
switch (errorCode) {
|
|
4727
|
-
case "BadRequestException":
|
|
4728
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4729
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4730
|
-
case "ForbiddenException":
|
|
4731
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4732
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4733
|
-
case "NotFoundException":
|
|
4734
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4735
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4736
|
-
case "ServiceFailureException":
|
|
4737
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4738
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4739
|
-
case "ServiceUnavailableException":
|
|
4740
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4741
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4742
|
-
case "ThrottledClientException":
|
|
4743
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4744
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4745
|
-
case "UnauthorizedClientException":
|
|
4746
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4747
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4748
|
-
default:
|
|
4749
|
-
const parsedBody = parsedOutput.body;
|
|
4750
|
-
return throwDefaultError({
|
|
4751
|
-
output,
|
|
4752
|
-
parsedBody,
|
|
4753
|
-
errorCode
|
|
4754
|
-
});
|
|
4755
|
-
}
|
|
4756
|
-
}, "de_GetVoiceConnectorOriginationCommandError");
|
|
4757
3057
|
var de_GetVoiceConnectorProxyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4758
3058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4759
|
-
return
|
|
3059
|
+
return de_CommandError(output, context);
|
|
4760
3060
|
}
|
|
4761
3061
|
const contents = (0, import_smithy_client.map)({
|
|
4762
3062
|
$metadata: deserializeMetadata(output)
|
|
@@ -4768,46 +3068,9 @@ var de_GetVoiceConnectorProxyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4768
3068
|
Object.assign(contents, doc);
|
|
4769
3069
|
return contents;
|
|
4770
3070
|
}, "de_GetVoiceConnectorProxyCommand");
|
|
4771
|
-
var de_GetVoiceConnectorProxyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4772
|
-
const parsedOutput = {
|
|
4773
|
-
...output,
|
|
4774
|
-
body: await parseErrorBody(output.body, context)
|
|
4775
|
-
};
|
|
4776
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4777
|
-
switch (errorCode) {
|
|
4778
|
-
case "BadRequestException":
|
|
4779
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4780
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4781
|
-
case "ForbiddenException":
|
|
4782
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4783
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4784
|
-
case "NotFoundException":
|
|
4785
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4786
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4787
|
-
case "ServiceFailureException":
|
|
4788
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4789
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4790
|
-
case "ServiceUnavailableException":
|
|
4791
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4792
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4793
|
-
case "ThrottledClientException":
|
|
4794
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4795
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4796
|
-
case "UnauthorizedClientException":
|
|
4797
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4798
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4799
|
-
default:
|
|
4800
|
-
const parsedBody = parsedOutput.body;
|
|
4801
|
-
return throwDefaultError({
|
|
4802
|
-
output,
|
|
4803
|
-
parsedBody,
|
|
4804
|
-
errorCode
|
|
4805
|
-
});
|
|
4806
|
-
}
|
|
4807
|
-
}, "de_GetVoiceConnectorProxyCommandError");
|
|
4808
3071
|
var de_GetVoiceConnectorStreamingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4809
3072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4810
|
-
return
|
|
3073
|
+
return de_CommandError(output, context);
|
|
4811
3074
|
}
|
|
4812
3075
|
const contents = (0, import_smithy_client.map)({
|
|
4813
3076
|
$metadata: deserializeMetadata(output)
|
|
@@ -4819,46 +3082,9 @@ var de_GetVoiceConnectorStreamingConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
4819
3082
|
Object.assign(contents, doc);
|
|
4820
3083
|
return contents;
|
|
4821
3084
|
}, "de_GetVoiceConnectorStreamingConfigurationCommand");
|
|
4822
|
-
var de_GetVoiceConnectorStreamingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4823
|
-
const parsedOutput = {
|
|
4824
|
-
...output,
|
|
4825
|
-
body: await parseErrorBody(output.body, context)
|
|
4826
|
-
};
|
|
4827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4828
|
-
switch (errorCode) {
|
|
4829
|
-
case "BadRequestException":
|
|
4830
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4831
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4832
|
-
case "ForbiddenException":
|
|
4833
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4834
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4835
|
-
case "NotFoundException":
|
|
4836
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4837
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4838
|
-
case "ServiceFailureException":
|
|
4839
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4840
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4841
|
-
case "ServiceUnavailableException":
|
|
4842
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4843
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4844
|
-
case "ThrottledClientException":
|
|
4845
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4846
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4847
|
-
case "UnauthorizedClientException":
|
|
4848
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4849
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4850
|
-
default:
|
|
4851
|
-
const parsedBody = parsedOutput.body;
|
|
4852
|
-
return throwDefaultError({
|
|
4853
|
-
output,
|
|
4854
|
-
parsedBody,
|
|
4855
|
-
errorCode
|
|
4856
|
-
});
|
|
4857
|
-
}
|
|
4858
|
-
}, "de_GetVoiceConnectorStreamingConfigurationCommandError");
|
|
4859
3085
|
var de_GetVoiceConnectorTerminationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4860
3086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4861
|
-
return
|
|
3087
|
+
return de_CommandError(output, context);
|
|
4862
3088
|
}
|
|
4863
3089
|
const contents = (0, import_smithy_client.map)({
|
|
4864
3090
|
$metadata: deserializeMetadata(output)
|
|
@@ -4870,46 +3096,9 @@ var de_GetVoiceConnectorTerminationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4870
3096
|
Object.assign(contents, doc);
|
|
4871
3097
|
return contents;
|
|
4872
3098
|
}, "de_GetVoiceConnectorTerminationCommand");
|
|
4873
|
-
var de_GetVoiceConnectorTerminationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4874
|
-
const parsedOutput = {
|
|
4875
|
-
...output,
|
|
4876
|
-
body: await parseErrorBody(output.body, context)
|
|
4877
|
-
};
|
|
4878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4879
|
-
switch (errorCode) {
|
|
4880
|
-
case "BadRequestException":
|
|
4881
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4882
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4883
|
-
case "ForbiddenException":
|
|
4884
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4885
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4886
|
-
case "NotFoundException":
|
|
4887
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4888
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4889
|
-
case "ServiceFailureException":
|
|
4890
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4891
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4892
|
-
case "ServiceUnavailableException":
|
|
4893
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4894
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4895
|
-
case "ThrottledClientException":
|
|
4896
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4897
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4898
|
-
case "UnauthorizedClientException":
|
|
4899
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4900
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4901
|
-
default:
|
|
4902
|
-
const parsedBody = parsedOutput.body;
|
|
4903
|
-
return throwDefaultError({
|
|
4904
|
-
output,
|
|
4905
|
-
parsedBody,
|
|
4906
|
-
errorCode
|
|
4907
|
-
});
|
|
4908
|
-
}
|
|
4909
|
-
}, "de_GetVoiceConnectorTerminationCommandError");
|
|
4910
3099
|
var de_GetVoiceConnectorTerminationHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4911
3100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4912
|
-
return
|
|
3101
|
+
return de_CommandError(output, context);
|
|
4913
3102
|
}
|
|
4914
3103
|
const contents = (0, import_smithy_client.map)({
|
|
4915
3104
|
$metadata: deserializeMetadata(output)
|
|
@@ -4921,46 +3110,9 @@ var de_GetVoiceConnectorTerminationHealthCommand = /* @__PURE__ */ __name(async
|
|
|
4921
3110
|
Object.assign(contents, doc);
|
|
4922
3111
|
return contents;
|
|
4923
3112
|
}, "de_GetVoiceConnectorTerminationHealthCommand");
|
|
4924
|
-
var de_GetVoiceConnectorTerminationHealthCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4925
|
-
const parsedOutput = {
|
|
4926
|
-
...output,
|
|
4927
|
-
body: await parseErrorBody(output.body, context)
|
|
4928
|
-
};
|
|
4929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4930
|
-
switch (errorCode) {
|
|
4931
|
-
case "BadRequestException":
|
|
4932
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4933
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4934
|
-
case "ForbiddenException":
|
|
4935
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4936
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4937
|
-
case "NotFoundException":
|
|
4938
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4939
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4940
|
-
case "ServiceFailureException":
|
|
4941
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4942
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4943
|
-
case "ServiceUnavailableException":
|
|
4944
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4945
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4946
|
-
case "ThrottledClientException":
|
|
4947
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
4948
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4949
|
-
case "UnauthorizedClientException":
|
|
4950
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
4951
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4952
|
-
default:
|
|
4953
|
-
const parsedBody = parsedOutput.body;
|
|
4954
|
-
return throwDefaultError({
|
|
4955
|
-
output,
|
|
4956
|
-
parsedBody,
|
|
4957
|
-
errorCode
|
|
4958
|
-
});
|
|
4959
|
-
}
|
|
4960
|
-
}, "de_GetVoiceConnectorTerminationHealthCommandError");
|
|
4961
3113
|
var de_GetVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4962
3114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4963
|
-
return
|
|
3115
|
+
return de_CommandError(output, context);
|
|
4964
3116
|
}
|
|
4965
3117
|
const contents = (0, import_smithy_client.map)({
|
|
4966
3118
|
$metadata: deserializeMetadata(output)
|
|
@@ -4972,49 +3124,9 @@ var de_GetVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4972
3124
|
Object.assign(contents, doc);
|
|
4973
3125
|
return contents;
|
|
4974
3126
|
}, "de_GetVoiceProfileCommand");
|
|
4975
|
-
var de_GetVoiceProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4976
|
-
const parsedOutput = {
|
|
4977
|
-
...output,
|
|
4978
|
-
body: await parseErrorBody(output.body, context)
|
|
4979
|
-
};
|
|
4980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4981
|
-
switch (errorCode) {
|
|
4982
|
-
case "AccessDeniedException":
|
|
4983
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
4984
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4985
|
-
case "BadRequestException":
|
|
4986
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
4987
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4988
|
-
case "ForbiddenException":
|
|
4989
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
4990
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4991
|
-
case "NotFoundException":
|
|
4992
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
4993
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4994
|
-
case "ServiceFailureException":
|
|
4995
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
4996
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4997
|
-
case "ServiceUnavailableException":
|
|
4998
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
4999
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5000
|
-
case "ThrottledClientException":
|
|
5001
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5002
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5003
|
-
case "UnauthorizedClientException":
|
|
5004
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5005
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5006
|
-
default:
|
|
5007
|
-
const parsedBody = parsedOutput.body;
|
|
5008
|
-
return throwDefaultError({
|
|
5009
|
-
output,
|
|
5010
|
-
parsedBody,
|
|
5011
|
-
errorCode
|
|
5012
|
-
});
|
|
5013
|
-
}
|
|
5014
|
-
}, "de_GetVoiceProfileCommandError");
|
|
5015
3127
|
var de_GetVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5016
3128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5017
|
-
return
|
|
3129
|
+
return de_CommandError(output, context);
|
|
5018
3130
|
}
|
|
5019
3131
|
const contents = (0, import_smithy_client.map)({
|
|
5020
3132
|
$metadata: deserializeMetadata(output)
|
|
@@ -5026,49 +3138,9 @@ var de_GetVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
5026
3138
|
Object.assign(contents, doc);
|
|
5027
3139
|
return contents;
|
|
5028
3140
|
}, "de_GetVoiceProfileDomainCommand");
|
|
5029
|
-
var de_GetVoiceProfileDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5030
|
-
const parsedOutput = {
|
|
5031
|
-
...output,
|
|
5032
|
-
body: await parseErrorBody(output.body, context)
|
|
5033
|
-
};
|
|
5034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5035
|
-
switch (errorCode) {
|
|
5036
|
-
case "AccessDeniedException":
|
|
5037
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
5038
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5039
|
-
case "BadRequestException":
|
|
5040
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5041
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5042
|
-
case "ForbiddenException":
|
|
5043
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5044
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5045
|
-
case "NotFoundException":
|
|
5046
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5047
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5048
|
-
case "ServiceFailureException":
|
|
5049
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5050
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5051
|
-
case "ServiceUnavailableException":
|
|
5052
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5053
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5054
|
-
case "ThrottledClientException":
|
|
5055
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5056
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5057
|
-
case "UnauthorizedClientException":
|
|
5058
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5059
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5060
|
-
default:
|
|
5061
|
-
const parsedBody = parsedOutput.body;
|
|
5062
|
-
return throwDefaultError({
|
|
5063
|
-
output,
|
|
5064
|
-
parsedBody,
|
|
5065
|
-
errorCode
|
|
5066
|
-
});
|
|
5067
|
-
}
|
|
5068
|
-
}, "de_GetVoiceProfileDomainCommandError");
|
|
5069
3141
|
var de_GetVoiceToneAnalysisTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5070
3142
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5071
|
-
return
|
|
3143
|
+
return de_CommandError(output, context);
|
|
5072
3144
|
}
|
|
5073
3145
|
const contents = (0, import_smithy_client.map)({
|
|
5074
3146
|
$metadata: deserializeMetadata(output)
|
|
@@ -5080,52 +3152,9 @@ var de_GetVoiceToneAnalysisTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5080
3152
|
Object.assign(contents, doc);
|
|
5081
3153
|
return contents;
|
|
5082
3154
|
}, "de_GetVoiceToneAnalysisTaskCommand");
|
|
5083
|
-
var de_GetVoiceToneAnalysisTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5084
|
-
const parsedOutput = {
|
|
5085
|
-
...output,
|
|
5086
|
-
body: await parseErrorBody(output.body, context)
|
|
5087
|
-
};
|
|
5088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5089
|
-
switch (errorCode) {
|
|
5090
|
-
case "AccessDeniedException":
|
|
5091
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
5092
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5093
|
-
case "BadRequestException":
|
|
5094
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5095
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5096
|
-
case "ConflictException":
|
|
5097
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
5098
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5099
|
-
case "ForbiddenException":
|
|
5100
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5101
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5102
|
-
case "NotFoundException":
|
|
5103
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5104
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5105
|
-
case "ServiceFailureException":
|
|
5106
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5107
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5108
|
-
case "ServiceUnavailableException":
|
|
5109
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5110
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5111
|
-
case "ThrottledClientException":
|
|
5112
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5113
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5114
|
-
case "UnauthorizedClientException":
|
|
5115
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5116
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5117
|
-
default:
|
|
5118
|
-
const parsedBody = parsedOutput.body;
|
|
5119
|
-
return throwDefaultError({
|
|
5120
|
-
output,
|
|
5121
|
-
parsedBody,
|
|
5122
|
-
errorCode
|
|
5123
|
-
});
|
|
5124
|
-
}
|
|
5125
|
-
}, "de_GetVoiceToneAnalysisTaskCommandError");
|
|
5126
3155
|
var de_ListAvailableVoiceConnectorRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5127
3156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5128
|
-
return
|
|
3157
|
+
return de_CommandError(output, context);
|
|
5129
3158
|
}
|
|
5130
3159
|
const contents = (0, import_smithy_client.map)({
|
|
5131
3160
|
$metadata: deserializeMetadata(output)
|
|
@@ -5137,43 +3166,9 @@ var de_ListAvailableVoiceConnectorRegionsCommand = /* @__PURE__ */ __name(async
|
|
|
5137
3166
|
Object.assign(contents, doc);
|
|
5138
3167
|
return contents;
|
|
5139
3168
|
}, "de_ListAvailableVoiceConnectorRegionsCommand");
|
|
5140
|
-
var de_ListAvailableVoiceConnectorRegionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5141
|
-
const parsedOutput = {
|
|
5142
|
-
...output,
|
|
5143
|
-
body: await parseErrorBody(output.body, context)
|
|
5144
|
-
};
|
|
5145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5146
|
-
switch (errorCode) {
|
|
5147
|
-
case "BadRequestException":
|
|
5148
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5149
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5150
|
-
case "ForbiddenException":
|
|
5151
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5152
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5153
|
-
case "ServiceFailureException":
|
|
5154
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5155
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5156
|
-
case "ServiceUnavailableException":
|
|
5157
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5158
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5159
|
-
case "ThrottledClientException":
|
|
5160
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5161
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5162
|
-
case "UnauthorizedClientException":
|
|
5163
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5164
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5165
|
-
default:
|
|
5166
|
-
const parsedBody = parsedOutput.body;
|
|
5167
|
-
return throwDefaultError({
|
|
5168
|
-
output,
|
|
5169
|
-
parsedBody,
|
|
5170
|
-
errorCode
|
|
5171
|
-
});
|
|
5172
|
-
}
|
|
5173
|
-
}, "de_ListAvailableVoiceConnectorRegionsCommandError");
|
|
5174
3169
|
var de_ListPhoneNumberOrdersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5175
3170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5176
|
-
return
|
|
3171
|
+
return de_CommandError(output, context);
|
|
5177
3172
|
}
|
|
5178
3173
|
const contents = (0, import_smithy_client.map)({
|
|
5179
3174
|
$metadata: deserializeMetadata(output)
|
|
@@ -5186,43 +3181,9 @@ var de_ListPhoneNumberOrdersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
5186
3181
|
Object.assign(contents, doc);
|
|
5187
3182
|
return contents;
|
|
5188
3183
|
}, "de_ListPhoneNumberOrdersCommand");
|
|
5189
|
-
var de_ListPhoneNumberOrdersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5190
|
-
const parsedOutput = {
|
|
5191
|
-
...output,
|
|
5192
|
-
body: await parseErrorBody(output.body, context)
|
|
5193
|
-
};
|
|
5194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5195
|
-
switch (errorCode) {
|
|
5196
|
-
case "BadRequestException":
|
|
5197
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5198
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5199
|
-
case "ForbiddenException":
|
|
5200
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5201
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5202
|
-
case "ServiceFailureException":
|
|
5203
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5204
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5205
|
-
case "ServiceUnavailableException":
|
|
5206
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5207
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5208
|
-
case "ThrottledClientException":
|
|
5209
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5210
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5211
|
-
case "UnauthorizedClientException":
|
|
5212
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5213
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5214
|
-
default:
|
|
5215
|
-
const parsedBody = parsedOutput.body;
|
|
5216
|
-
return throwDefaultError({
|
|
5217
|
-
output,
|
|
5218
|
-
parsedBody,
|
|
5219
|
-
errorCode
|
|
5220
|
-
});
|
|
5221
|
-
}
|
|
5222
|
-
}, "de_ListPhoneNumberOrdersCommandError");
|
|
5223
3184
|
var de_ListPhoneNumbersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5224
3185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5225
|
-
return
|
|
3186
|
+
return de_CommandError(output, context);
|
|
5226
3187
|
}
|
|
5227
3188
|
const contents = (0, import_smithy_client.map)({
|
|
5228
3189
|
$metadata: deserializeMetadata(output)
|
|
@@ -5235,46 +3196,9 @@ var de_ListPhoneNumbersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5235
3196
|
Object.assign(contents, doc);
|
|
5236
3197
|
return contents;
|
|
5237
3198
|
}, "de_ListPhoneNumbersCommand");
|
|
5238
|
-
var de_ListPhoneNumbersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5239
|
-
const parsedOutput = {
|
|
5240
|
-
...output,
|
|
5241
|
-
body: await parseErrorBody(output.body, context)
|
|
5242
|
-
};
|
|
5243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5244
|
-
switch (errorCode) {
|
|
5245
|
-
case "BadRequestException":
|
|
5246
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5247
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5248
|
-
case "ForbiddenException":
|
|
5249
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5250
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5251
|
-
case "NotFoundException":
|
|
5252
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5253
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5254
|
-
case "ServiceFailureException":
|
|
5255
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5256
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5257
|
-
case "ServiceUnavailableException":
|
|
5258
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5259
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5260
|
-
case "ThrottledClientException":
|
|
5261
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5262
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5263
|
-
case "UnauthorizedClientException":
|
|
5264
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5265
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5266
|
-
default:
|
|
5267
|
-
const parsedBody = parsedOutput.body;
|
|
5268
|
-
return throwDefaultError({
|
|
5269
|
-
output,
|
|
5270
|
-
parsedBody,
|
|
5271
|
-
errorCode
|
|
5272
|
-
});
|
|
5273
|
-
}
|
|
5274
|
-
}, "de_ListPhoneNumbersCommandError");
|
|
5275
3199
|
var de_ListProxySessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5276
3200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5277
|
-
return
|
|
3201
|
+
return de_CommandError(output, context);
|
|
5278
3202
|
}
|
|
5279
3203
|
const contents = (0, import_smithy_client.map)({
|
|
5280
3204
|
$metadata: deserializeMetadata(output)
|
|
@@ -5287,46 +3211,9 @@ var de_ListProxySessionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5287
3211
|
Object.assign(contents, doc);
|
|
5288
3212
|
return contents;
|
|
5289
3213
|
}, "de_ListProxySessionsCommand");
|
|
5290
|
-
var de_ListProxySessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5291
|
-
const parsedOutput = {
|
|
5292
|
-
...output,
|
|
5293
|
-
body: await parseErrorBody(output.body, context)
|
|
5294
|
-
};
|
|
5295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5296
|
-
switch (errorCode) {
|
|
5297
|
-
case "BadRequestException":
|
|
5298
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5299
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5300
|
-
case "ForbiddenException":
|
|
5301
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5302
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5303
|
-
case "NotFoundException":
|
|
5304
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5305
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5306
|
-
case "ServiceFailureException":
|
|
5307
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5308
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5309
|
-
case "ServiceUnavailableException":
|
|
5310
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5311
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5312
|
-
case "ThrottledClientException":
|
|
5313
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5314
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5315
|
-
case "UnauthorizedClientException":
|
|
5316
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5317
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5318
|
-
default:
|
|
5319
|
-
const parsedBody = parsedOutput.body;
|
|
5320
|
-
return throwDefaultError({
|
|
5321
|
-
output,
|
|
5322
|
-
parsedBody,
|
|
5323
|
-
errorCode
|
|
5324
|
-
});
|
|
5325
|
-
}
|
|
5326
|
-
}, "de_ListProxySessionsCommandError");
|
|
5327
3214
|
var de_ListSipMediaApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5328
3215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5329
|
-
return
|
|
3216
|
+
return de_CommandError(output, context);
|
|
5330
3217
|
}
|
|
5331
3218
|
const contents = (0, import_smithy_client.map)({
|
|
5332
3219
|
$metadata: deserializeMetadata(output)
|
|
@@ -5339,43 +3226,9 @@ var de_ListSipMediaApplicationsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5339
3226
|
Object.assign(contents, doc);
|
|
5340
3227
|
return contents;
|
|
5341
3228
|
}, "de_ListSipMediaApplicationsCommand");
|
|
5342
|
-
var de_ListSipMediaApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5343
|
-
const parsedOutput = {
|
|
5344
|
-
...output,
|
|
5345
|
-
body: await parseErrorBody(output.body, context)
|
|
5346
|
-
};
|
|
5347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5348
|
-
switch (errorCode) {
|
|
5349
|
-
case "BadRequestException":
|
|
5350
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5351
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5352
|
-
case "ForbiddenException":
|
|
5353
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5354
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5355
|
-
case "ServiceFailureException":
|
|
5356
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5357
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5358
|
-
case "ServiceUnavailableException":
|
|
5359
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5360
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5361
|
-
case "ThrottledClientException":
|
|
5362
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5363
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5364
|
-
case "UnauthorizedClientException":
|
|
5365
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5366
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5367
|
-
default:
|
|
5368
|
-
const parsedBody = parsedOutput.body;
|
|
5369
|
-
return throwDefaultError({
|
|
5370
|
-
output,
|
|
5371
|
-
parsedBody,
|
|
5372
|
-
errorCode
|
|
5373
|
-
});
|
|
5374
|
-
}
|
|
5375
|
-
}, "de_ListSipMediaApplicationsCommandError");
|
|
5376
3229
|
var de_ListSipRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5377
3230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5378
|
-
return
|
|
3231
|
+
return de_CommandError(output, context);
|
|
5379
3232
|
}
|
|
5380
3233
|
const contents = (0, import_smithy_client.map)({
|
|
5381
3234
|
$metadata: deserializeMetadata(output)
|
|
@@ -5388,43 +3241,9 @@ var de_ListSipRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5388
3241
|
Object.assign(contents, doc);
|
|
5389
3242
|
return contents;
|
|
5390
3243
|
}, "de_ListSipRulesCommand");
|
|
5391
|
-
var de_ListSipRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5392
|
-
const parsedOutput = {
|
|
5393
|
-
...output,
|
|
5394
|
-
body: await parseErrorBody(output.body, context)
|
|
5395
|
-
};
|
|
5396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5397
|
-
switch (errorCode) {
|
|
5398
|
-
case "BadRequestException":
|
|
5399
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5400
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5401
|
-
case "ForbiddenException":
|
|
5402
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5403
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5404
|
-
case "ServiceFailureException":
|
|
5405
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5406
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5407
|
-
case "ServiceUnavailableException":
|
|
5408
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5409
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5410
|
-
case "ThrottledClientException":
|
|
5411
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5412
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5413
|
-
case "UnauthorizedClientException":
|
|
5414
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5415
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5416
|
-
default:
|
|
5417
|
-
const parsedBody = parsedOutput.body;
|
|
5418
|
-
return throwDefaultError({
|
|
5419
|
-
output,
|
|
5420
|
-
parsedBody,
|
|
5421
|
-
errorCode
|
|
5422
|
-
});
|
|
5423
|
-
}
|
|
5424
|
-
}, "de_ListSipRulesCommandError");
|
|
5425
3244
|
var de_ListSupportedPhoneNumberCountriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5426
3245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5427
|
-
return
|
|
3246
|
+
return de_CommandError(output, context);
|
|
5428
3247
|
}
|
|
5429
3248
|
const contents = (0, import_smithy_client.map)({
|
|
5430
3249
|
$metadata: deserializeMetadata(output)
|
|
@@ -5436,46 +3255,9 @@ var de_ListSupportedPhoneNumberCountriesCommand = /* @__PURE__ */ __name(async (
|
|
|
5436
3255
|
Object.assign(contents, doc);
|
|
5437
3256
|
return contents;
|
|
5438
3257
|
}, "de_ListSupportedPhoneNumberCountriesCommand");
|
|
5439
|
-
var de_ListSupportedPhoneNumberCountriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5440
|
-
const parsedOutput = {
|
|
5441
|
-
...output,
|
|
5442
|
-
body: await parseErrorBody(output.body, context)
|
|
5443
|
-
};
|
|
5444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5445
|
-
switch (errorCode) {
|
|
5446
|
-
case "AccessDeniedException":
|
|
5447
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
5448
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5449
|
-
case "BadRequestException":
|
|
5450
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5451
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5452
|
-
case "ForbiddenException":
|
|
5453
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5454
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5455
|
-
case "ServiceFailureException":
|
|
5456
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5457
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5458
|
-
case "ServiceUnavailableException":
|
|
5459
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5460
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5461
|
-
case "ThrottledClientException":
|
|
5462
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5463
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5464
|
-
case "UnauthorizedClientException":
|
|
5465
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5466
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5467
|
-
default:
|
|
5468
|
-
const parsedBody = parsedOutput.body;
|
|
5469
|
-
return throwDefaultError({
|
|
5470
|
-
output,
|
|
5471
|
-
parsedBody,
|
|
5472
|
-
errorCode
|
|
5473
|
-
});
|
|
5474
|
-
}
|
|
5475
|
-
}, "de_ListSupportedPhoneNumberCountriesCommandError");
|
|
5476
3258
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5477
3259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5478
|
-
return
|
|
3260
|
+
return de_CommandError(output, context);
|
|
5479
3261
|
}
|
|
5480
3262
|
const contents = (0, import_smithy_client.map)({
|
|
5481
3263
|
$metadata: deserializeMetadata(output)
|
|
@@ -5487,43 +3269,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5487
3269
|
Object.assign(contents, doc);
|
|
5488
3270
|
return contents;
|
|
5489
3271
|
}, "de_ListTagsForResourceCommand");
|
|
5490
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5491
|
-
const parsedOutput = {
|
|
5492
|
-
...output,
|
|
5493
|
-
body: await parseErrorBody(output.body, context)
|
|
5494
|
-
};
|
|
5495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5496
|
-
switch (errorCode) {
|
|
5497
|
-
case "BadRequestException":
|
|
5498
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5499
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5500
|
-
case "ForbiddenException":
|
|
5501
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5502
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5503
|
-
case "NotFoundException":
|
|
5504
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5505
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5506
|
-
case "ServiceFailureException":
|
|
5507
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5508
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5509
|
-
case "ServiceUnavailableException":
|
|
5510
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5511
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5512
|
-
case "UnauthorizedClientException":
|
|
5513
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5514
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5515
|
-
default:
|
|
5516
|
-
const parsedBody = parsedOutput.body;
|
|
5517
|
-
return throwDefaultError({
|
|
5518
|
-
output,
|
|
5519
|
-
parsedBody,
|
|
5520
|
-
errorCode
|
|
5521
|
-
});
|
|
5522
|
-
}
|
|
5523
|
-
}, "de_ListTagsForResourceCommandError");
|
|
5524
3272
|
var de_ListVoiceConnectorGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5525
3273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5526
|
-
return
|
|
3274
|
+
return de_CommandError(output, context);
|
|
5527
3275
|
}
|
|
5528
3276
|
const contents = (0, import_smithy_client.map)({
|
|
5529
3277
|
$metadata: deserializeMetadata(output)
|
|
@@ -5536,43 +3284,9 @@ var de_ListVoiceConnectorGroupsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5536
3284
|
Object.assign(contents, doc);
|
|
5537
3285
|
return contents;
|
|
5538
3286
|
}, "de_ListVoiceConnectorGroupsCommand");
|
|
5539
|
-
var de_ListVoiceConnectorGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5540
|
-
const parsedOutput = {
|
|
5541
|
-
...output,
|
|
5542
|
-
body: await parseErrorBody(output.body, context)
|
|
5543
|
-
};
|
|
5544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5545
|
-
switch (errorCode) {
|
|
5546
|
-
case "BadRequestException":
|
|
5547
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5548
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5549
|
-
case "ForbiddenException":
|
|
5550
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5551
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5552
|
-
case "ServiceFailureException":
|
|
5553
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5554
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5555
|
-
case "ServiceUnavailableException":
|
|
5556
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5557
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5558
|
-
case "ThrottledClientException":
|
|
5559
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5560
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5561
|
-
case "UnauthorizedClientException":
|
|
5562
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5563
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5564
|
-
default:
|
|
5565
|
-
const parsedBody = parsedOutput.body;
|
|
5566
|
-
return throwDefaultError({
|
|
5567
|
-
output,
|
|
5568
|
-
parsedBody,
|
|
5569
|
-
errorCode
|
|
5570
|
-
});
|
|
5571
|
-
}
|
|
5572
|
-
}, "de_ListVoiceConnectorGroupsCommandError");
|
|
5573
3287
|
var de_ListVoiceConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5574
3288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5575
|
-
return
|
|
3289
|
+
return de_CommandError(output, context);
|
|
5576
3290
|
}
|
|
5577
3291
|
const contents = (0, import_smithy_client.map)({
|
|
5578
3292
|
$metadata: deserializeMetadata(output)
|
|
@@ -5585,43 +3299,9 @@ var de_ListVoiceConnectorsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5585
3299
|
Object.assign(contents, doc);
|
|
5586
3300
|
return contents;
|
|
5587
3301
|
}, "de_ListVoiceConnectorsCommand");
|
|
5588
|
-
var de_ListVoiceConnectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5589
|
-
const parsedOutput = {
|
|
5590
|
-
...output,
|
|
5591
|
-
body: await parseErrorBody(output.body, context)
|
|
5592
|
-
};
|
|
5593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5594
|
-
switch (errorCode) {
|
|
5595
|
-
case "BadRequestException":
|
|
5596
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5597
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5598
|
-
case "ForbiddenException":
|
|
5599
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5600
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5601
|
-
case "ServiceFailureException":
|
|
5602
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5603
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5604
|
-
case "ServiceUnavailableException":
|
|
5605
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5606
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5607
|
-
case "ThrottledClientException":
|
|
5608
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5609
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5610
|
-
case "UnauthorizedClientException":
|
|
5611
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5612
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5613
|
-
default:
|
|
5614
|
-
const parsedBody = parsedOutput.body;
|
|
5615
|
-
return throwDefaultError({
|
|
5616
|
-
output,
|
|
5617
|
-
parsedBody,
|
|
5618
|
-
errorCode
|
|
5619
|
-
});
|
|
5620
|
-
}
|
|
5621
|
-
}, "de_ListVoiceConnectorsCommandError");
|
|
5622
3302
|
var de_ListVoiceConnectorTerminationCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5623
3303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5624
|
-
return
|
|
3304
|
+
return de_CommandError(output, context);
|
|
5625
3305
|
}
|
|
5626
3306
|
const contents = (0, import_smithy_client.map)({
|
|
5627
3307
|
$metadata: deserializeMetadata(output)
|
|
@@ -5633,46 +3313,9 @@ var de_ListVoiceConnectorTerminationCredentialsCommand = /* @__PURE__ */ __name(
|
|
|
5633
3313
|
Object.assign(contents, doc);
|
|
5634
3314
|
return contents;
|
|
5635
3315
|
}, "de_ListVoiceConnectorTerminationCredentialsCommand");
|
|
5636
|
-
var de_ListVoiceConnectorTerminationCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5637
|
-
const parsedOutput = {
|
|
5638
|
-
...output,
|
|
5639
|
-
body: await parseErrorBody(output.body, context)
|
|
5640
|
-
};
|
|
5641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5642
|
-
switch (errorCode) {
|
|
5643
|
-
case "BadRequestException":
|
|
5644
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5645
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5646
|
-
case "ForbiddenException":
|
|
5647
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5648
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5649
|
-
case "NotFoundException":
|
|
5650
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5651
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5652
|
-
case "ServiceFailureException":
|
|
5653
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5654
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5655
|
-
case "ServiceUnavailableException":
|
|
5656
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5657
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5658
|
-
case "ThrottledClientException":
|
|
5659
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5660
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5661
|
-
case "UnauthorizedClientException":
|
|
5662
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5663
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5664
|
-
default:
|
|
5665
|
-
const parsedBody = parsedOutput.body;
|
|
5666
|
-
return throwDefaultError({
|
|
5667
|
-
output,
|
|
5668
|
-
parsedBody,
|
|
5669
|
-
errorCode
|
|
5670
|
-
});
|
|
5671
|
-
}
|
|
5672
|
-
}, "de_ListVoiceConnectorTerminationCredentialsCommandError");
|
|
5673
3316
|
var de_ListVoiceProfileDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5674
3317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5675
|
-
return
|
|
3318
|
+
return de_CommandError(output, context);
|
|
5676
3319
|
}
|
|
5677
3320
|
const contents = (0, import_smithy_client.map)({
|
|
5678
3321
|
$metadata: deserializeMetadata(output)
|
|
@@ -5685,46 +3328,9 @@ var de_ListVoiceProfileDomainsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
5685
3328
|
Object.assign(contents, doc);
|
|
5686
3329
|
return contents;
|
|
5687
3330
|
}, "de_ListVoiceProfileDomainsCommand");
|
|
5688
|
-
var de_ListVoiceProfileDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5689
|
-
const parsedOutput = {
|
|
5690
|
-
...output,
|
|
5691
|
-
body: await parseErrorBody(output.body, context)
|
|
5692
|
-
};
|
|
5693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5694
|
-
switch (errorCode) {
|
|
5695
|
-
case "BadRequestException":
|
|
5696
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5697
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5698
|
-
case "ForbiddenException":
|
|
5699
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5700
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5701
|
-
case "NotFoundException":
|
|
5702
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5703
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5704
|
-
case "ServiceFailureException":
|
|
5705
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5706
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5707
|
-
case "ServiceUnavailableException":
|
|
5708
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5709
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5710
|
-
case "ThrottledClientException":
|
|
5711
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5712
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5713
|
-
case "UnauthorizedClientException":
|
|
5714
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5715
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5716
|
-
default:
|
|
5717
|
-
const parsedBody = parsedOutput.body;
|
|
5718
|
-
return throwDefaultError({
|
|
5719
|
-
output,
|
|
5720
|
-
parsedBody,
|
|
5721
|
-
errorCode
|
|
5722
|
-
});
|
|
5723
|
-
}
|
|
5724
|
-
}, "de_ListVoiceProfileDomainsCommandError");
|
|
5725
3331
|
var de_ListVoiceProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5726
3332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5727
|
-
return
|
|
3333
|
+
return de_CommandError(output, context);
|
|
5728
3334
|
}
|
|
5729
3335
|
const contents = (0, import_smithy_client.map)({
|
|
5730
3336
|
$metadata: deserializeMetadata(output)
|
|
@@ -5737,46 +3343,9 @@ var de_ListVoiceProfilesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5737
3343
|
Object.assign(contents, doc);
|
|
5738
3344
|
return contents;
|
|
5739
3345
|
}, "de_ListVoiceProfilesCommand");
|
|
5740
|
-
var de_ListVoiceProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5741
|
-
const parsedOutput = {
|
|
5742
|
-
...output,
|
|
5743
|
-
body: await parseErrorBody(output.body, context)
|
|
5744
|
-
};
|
|
5745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5746
|
-
switch (errorCode) {
|
|
5747
|
-
case "BadRequestException":
|
|
5748
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5749
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5750
|
-
case "ForbiddenException":
|
|
5751
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5752
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5753
|
-
case "NotFoundException":
|
|
5754
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5755
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5756
|
-
case "ServiceFailureException":
|
|
5757
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5758
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5759
|
-
case "ServiceUnavailableException":
|
|
5760
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5761
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5762
|
-
case "ThrottledClientException":
|
|
5763
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5764
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5765
|
-
case "UnauthorizedClientException":
|
|
5766
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5767
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5768
|
-
default:
|
|
5769
|
-
const parsedBody = parsedOutput.body;
|
|
5770
|
-
return throwDefaultError({
|
|
5771
|
-
output,
|
|
5772
|
-
parsedBody,
|
|
5773
|
-
errorCode
|
|
5774
|
-
});
|
|
5775
|
-
}
|
|
5776
|
-
}, "de_ListVoiceProfilesCommandError");
|
|
5777
3346
|
var de_PutSipMediaApplicationAlexaSkillConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5778
3347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5779
|
-
return
|
|
3348
|
+
return de_CommandError(output, context);
|
|
5780
3349
|
}
|
|
5781
3350
|
const contents = (0, import_smithy_client.map)({
|
|
5782
3351
|
$metadata: deserializeMetadata(output)
|
|
@@ -5788,46 +3357,9 @@ var de_PutSipMediaApplicationAlexaSkillConfigurationCommand = /* @__PURE__ */ __
|
|
|
5788
3357
|
Object.assign(contents, doc);
|
|
5789
3358
|
return contents;
|
|
5790
3359
|
}, "de_PutSipMediaApplicationAlexaSkillConfigurationCommand");
|
|
5791
|
-
var de_PutSipMediaApplicationAlexaSkillConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5792
|
-
const parsedOutput = {
|
|
5793
|
-
...output,
|
|
5794
|
-
body: await parseErrorBody(output.body, context)
|
|
5795
|
-
};
|
|
5796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5797
|
-
switch (errorCode) {
|
|
5798
|
-
case "BadRequestException":
|
|
5799
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5800
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5801
|
-
case "ForbiddenException":
|
|
5802
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5803
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5804
|
-
case "NotFoundException":
|
|
5805
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5806
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5807
|
-
case "ServiceFailureException":
|
|
5808
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5809
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5810
|
-
case "ServiceUnavailableException":
|
|
5811
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5812
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5813
|
-
case "ThrottledClientException":
|
|
5814
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5815
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5816
|
-
case "UnauthorizedClientException":
|
|
5817
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5818
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5819
|
-
default:
|
|
5820
|
-
const parsedBody = parsedOutput.body;
|
|
5821
|
-
return throwDefaultError({
|
|
5822
|
-
output,
|
|
5823
|
-
parsedBody,
|
|
5824
|
-
errorCode
|
|
5825
|
-
});
|
|
5826
|
-
}
|
|
5827
|
-
}, "de_PutSipMediaApplicationAlexaSkillConfigurationCommandError");
|
|
5828
3360
|
var de_PutSipMediaApplicationLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5829
3361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5830
|
-
return
|
|
3362
|
+
return de_CommandError(output, context);
|
|
5831
3363
|
}
|
|
5832
3364
|
const contents = (0, import_smithy_client.map)({
|
|
5833
3365
|
$metadata: deserializeMetadata(output)
|
|
@@ -5839,46 +3371,9 @@ var de_PutSipMediaApplicationLoggingConfigurationCommand = /* @__PURE__ */ __nam
|
|
|
5839
3371
|
Object.assign(contents, doc);
|
|
5840
3372
|
return contents;
|
|
5841
3373
|
}, "de_PutSipMediaApplicationLoggingConfigurationCommand");
|
|
5842
|
-
var de_PutSipMediaApplicationLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5843
|
-
const parsedOutput = {
|
|
5844
|
-
...output,
|
|
5845
|
-
body: await parseErrorBody(output.body, context)
|
|
5846
|
-
};
|
|
5847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5848
|
-
switch (errorCode) {
|
|
5849
|
-
case "BadRequestException":
|
|
5850
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5851
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5852
|
-
case "ForbiddenException":
|
|
5853
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5854
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5855
|
-
case "NotFoundException":
|
|
5856
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5857
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5858
|
-
case "ServiceFailureException":
|
|
5859
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5860
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5861
|
-
case "ServiceUnavailableException":
|
|
5862
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5863
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5864
|
-
case "ThrottledClientException":
|
|
5865
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5866
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5867
|
-
case "UnauthorizedClientException":
|
|
5868
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5869
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5870
|
-
default:
|
|
5871
|
-
const parsedBody = parsedOutput.body;
|
|
5872
|
-
return throwDefaultError({
|
|
5873
|
-
output,
|
|
5874
|
-
parsedBody,
|
|
5875
|
-
errorCode
|
|
5876
|
-
});
|
|
5877
|
-
}
|
|
5878
|
-
}, "de_PutSipMediaApplicationLoggingConfigurationCommandError");
|
|
5879
3374
|
var de_PutVoiceConnectorEmergencyCallingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5880
3375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5881
|
-
return
|
|
3376
|
+
return de_CommandError(output, context);
|
|
5882
3377
|
}
|
|
5883
3378
|
const contents = (0, import_smithy_client.map)({
|
|
5884
3379
|
$metadata: deserializeMetadata(output)
|
|
@@ -5890,46 +3385,9 @@ var de_PutVoiceConnectorEmergencyCallingConfigurationCommand = /* @__PURE__ */ _
|
|
|
5890
3385
|
Object.assign(contents, doc);
|
|
5891
3386
|
return contents;
|
|
5892
3387
|
}, "de_PutVoiceConnectorEmergencyCallingConfigurationCommand");
|
|
5893
|
-
var de_PutVoiceConnectorEmergencyCallingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5894
|
-
const parsedOutput = {
|
|
5895
|
-
...output,
|
|
5896
|
-
body: await parseErrorBody(output.body, context)
|
|
5897
|
-
};
|
|
5898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5899
|
-
switch (errorCode) {
|
|
5900
|
-
case "BadRequestException":
|
|
5901
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5902
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5903
|
-
case "ForbiddenException":
|
|
5904
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5905
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5906
|
-
case "NotFoundException":
|
|
5907
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5908
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5909
|
-
case "ServiceFailureException":
|
|
5910
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5911
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5912
|
-
case "ServiceUnavailableException":
|
|
5913
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5914
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5915
|
-
case "ThrottledClientException":
|
|
5916
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5917
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5918
|
-
case "UnauthorizedClientException":
|
|
5919
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5920
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5921
|
-
default:
|
|
5922
|
-
const parsedBody = parsedOutput.body;
|
|
5923
|
-
return throwDefaultError({
|
|
5924
|
-
output,
|
|
5925
|
-
parsedBody,
|
|
5926
|
-
errorCode
|
|
5927
|
-
});
|
|
5928
|
-
}
|
|
5929
|
-
}, "de_PutVoiceConnectorEmergencyCallingConfigurationCommandError");
|
|
5930
3388
|
var de_PutVoiceConnectorLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5931
3389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5932
|
-
return
|
|
3390
|
+
return de_CommandError(output, context);
|
|
5933
3391
|
}
|
|
5934
3392
|
const contents = (0, import_smithy_client.map)({
|
|
5935
3393
|
$metadata: deserializeMetadata(output)
|
|
@@ -5941,46 +3399,9 @@ var de_PutVoiceConnectorLoggingConfigurationCommand = /* @__PURE__ */ __name(asy
|
|
|
5941
3399
|
Object.assign(contents, doc);
|
|
5942
3400
|
return contents;
|
|
5943
3401
|
}, "de_PutVoiceConnectorLoggingConfigurationCommand");
|
|
5944
|
-
var de_PutVoiceConnectorLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5945
|
-
const parsedOutput = {
|
|
5946
|
-
...output,
|
|
5947
|
-
body: await parseErrorBody(output.body, context)
|
|
5948
|
-
};
|
|
5949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5950
|
-
switch (errorCode) {
|
|
5951
|
-
case "BadRequestException":
|
|
5952
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
5953
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5954
|
-
case "ForbiddenException":
|
|
5955
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
5956
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5957
|
-
case "NotFoundException":
|
|
5958
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
5959
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5960
|
-
case "ServiceFailureException":
|
|
5961
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
5962
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
5963
|
-
case "ServiceUnavailableException":
|
|
5964
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
5965
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5966
|
-
case "ThrottledClientException":
|
|
5967
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
5968
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
5969
|
-
case "UnauthorizedClientException":
|
|
5970
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
5971
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
5972
|
-
default:
|
|
5973
|
-
const parsedBody = parsedOutput.body;
|
|
5974
|
-
return throwDefaultError({
|
|
5975
|
-
output,
|
|
5976
|
-
parsedBody,
|
|
5977
|
-
errorCode
|
|
5978
|
-
});
|
|
5979
|
-
}
|
|
5980
|
-
}, "de_PutVoiceConnectorLoggingConfigurationCommandError");
|
|
5981
3402
|
var de_PutVoiceConnectorOriginationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5982
3403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5983
|
-
return
|
|
3404
|
+
return de_CommandError(output, context);
|
|
5984
3405
|
}
|
|
5985
3406
|
const contents = (0, import_smithy_client.map)({
|
|
5986
3407
|
$metadata: deserializeMetadata(output)
|
|
@@ -5992,46 +3413,9 @@ var de_PutVoiceConnectorOriginationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
5992
3413
|
Object.assign(contents, doc);
|
|
5993
3414
|
return contents;
|
|
5994
3415
|
}, "de_PutVoiceConnectorOriginationCommand");
|
|
5995
|
-
var de_PutVoiceConnectorOriginationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5996
|
-
const parsedOutput = {
|
|
5997
|
-
...output,
|
|
5998
|
-
body: await parseErrorBody(output.body, context)
|
|
5999
|
-
};
|
|
6000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6001
|
-
switch (errorCode) {
|
|
6002
|
-
case "BadRequestException":
|
|
6003
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6004
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6005
|
-
case "ForbiddenException":
|
|
6006
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6007
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6008
|
-
case "NotFoundException":
|
|
6009
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6010
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6011
|
-
case "ServiceFailureException":
|
|
6012
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6013
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6014
|
-
case "ServiceUnavailableException":
|
|
6015
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6016
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6017
|
-
case "ThrottledClientException":
|
|
6018
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6019
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6020
|
-
case "UnauthorizedClientException":
|
|
6021
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6022
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6023
|
-
default:
|
|
6024
|
-
const parsedBody = parsedOutput.body;
|
|
6025
|
-
return throwDefaultError({
|
|
6026
|
-
output,
|
|
6027
|
-
parsedBody,
|
|
6028
|
-
errorCode
|
|
6029
|
-
});
|
|
6030
|
-
}
|
|
6031
|
-
}, "de_PutVoiceConnectorOriginationCommandError");
|
|
6032
3416
|
var de_PutVoiceConnectorProxyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6033
3417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6034
|
-
return
|
|
3418
|
+
return de_CommandError(output, context);
|
|
6035
3419
|
}
|
|
6036
3420
|
const contents = (0, import_smithy_client.map)({
|
|
6037
3421
|
$metadata: deserializeMetadata(output)
|
|
@@ -6043,49 +3427,9 @@ var de_PutVoiceConnectorProxyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
6043
3427
|
Object.assign(contents, doc);
|
|
6044
3428
|
return contents;
|
|
6045
3429
|
}, "de_PutVoiceConnectorProxyCommand");
|
|
6046
|
-
var de_PutVoiceConnectorProxyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6047
|
-
const parsedOutput = {
|
|
6048
|
-
...output,
|
|
6049
|
-
body: await parseErrorBody(output.body, context)
|
|
6050
|
-
};
|
|
6051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6052
|
-
switch (errorCode) {
|
|
6053
|
-
case "AccessDeniedException":
|
|
6054
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6055
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6056
|
-
case "BadRequestException":
|
|
6057
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6058
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6059
|
-
case "ForbiddenException":
|
|
6060
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6061
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6062
|
-
case "NotFoundException":
|
|
6063
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6064
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6065
|
-
case "ServiceFailureException":
|
|
6066
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6067
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6068
|
-
case "ServiceUnavailableException":
|
|
6069
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6070
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6071
|
-
case "ThrottledClientException":
|
|
6072
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6073
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6074
|
-
case "UnauthorizedClientException":
|
|
6075
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6076
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6077
|
-
default:
|
|
6078
|
-
const parsedBody = parsedOutput.body;
|
|
6079
|
-
return throwDefaultError({
|
|
6080
|
-
output,
|
|
6081
|
-
parsedBody,
|
|
6082
|
-
errorCode
|
|
6083
|
-
});
|
|
6084
|
-
}
|
|
6085
|
-
}, "de_PutVoiceConnectorProxyCommandError");
|
|
6086
3430
|
var de_PutVoiceConnectorStreamingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6087
3431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6088
|
-
return
|
|
3432
|
+
return de_CommandError(output, context);
|
|
6089
3433
|
}
|
|
6090
3434
|
const contents = (0, import_smithy_client.map)({
|
|
6091
3435
|
$metadata: deserializeMetadata(output)
|
|
@@ -6097,46 +3441,9 @@ var de_PutVoiceConnectorStreamingConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
6097
3441
|
Object.assign(contents, doc);
|
|
6098
3442
|
return contents;
|
|
6099
3443
|
}, "de_PutVoiceConnectorStreamingConfigurationCommand");
|
|
6100
|
-
var de_PutVoiceConnectorStreamingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6101
|
-
const parsedOutput = {
|
|
6102
|
-
...output,
|
|
6103
|
-
body: await parseErrorBody(output.body, context)
|
|
6104
|
-
};
|
|
6105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6106
|
-
switch (errorCode) {
|
|
6107
|
-
case "BadRequestException":
|
|
6108
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6109
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6110
|
-
case "ForbiddenException":
|
|
6111
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6112
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6113
|
-
case "NotFoundException":
|
|
6114
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6115
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6116
|
-
case "ServiceFailureException":
|
|
6117
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6118
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6119
|
-
case "ServiceUnavailableException":
|
|
6120
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6121
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6122
|
-
case "ThrottledClientException":
|
|
6123
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6124
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6125
|
-
case "UnauthorizedClientException":
|
|
6126
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6127
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6128
|
-
default:
|
|
6129
|
-
const parsedBody = parsedOutput.body;
|
|
6130
|
-
return throwDefaultError({
|
|
6131
|
-
output,
|
|
6132
|
-
parsedBody,
|
|
6133
|
-
errorCode
|
|
6134
|
-
});
|
|
6135
|
-
}
|
|
6136
|
-
}, "de_PutVoiceConnectorStreamingConfigurationCommandError");
|
|
6137
3444
|
var de_PutVoiceConnectorTerminationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6138
3445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6139
|
-
return
|
|
3446
|
+
return de_CommandError(output, context);
|
|
6140
3447
|
}
|
|
6141
3448
|
const contents = (0, import_smithy_client.map)({
|
|
6142
3449
|
$metadata: deserializeMetadata(output)
|
|
@@ -6148,49 +3455,9 @@ var de_PutVoiceConnectorTerminationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
6148
3455
|
Object.assign(contents, doc);
|
|
6149
3456
|
return contents;
|
|
6150
3457
|
}, "de_PutVoiceConnectorTerminationCommand");
|
|
6151
|
-
var de_PutVoiceConnectorTerminationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6152
|
-
const parsedOutput = {
|
|
6153
|
-
...output,
|
|
6154
|
-
body: await parseErrorBody(output.body, context)
|
|
6155
|
-
};
|
|
6156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6157
|
-
switch (errorCode) {
|
|
6158
|
-
case "AccessDeniedException":
|
|
6159
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6160
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6161
|
-
case "BadRequestException":
|
|
6162
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6163
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6164
|
-
case "ForbiddenException":
|
|
6165
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6166
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6167
|
-
case "NotFoundException":
|
|
6168
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6169
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6170
|
-
case "ServiceFailureException":
|
|
6171
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6172
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6173
|
-
case "ServiceUnavailableException":
|
|
6174
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6175
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6176
|
-
case "ThrottledClientException":
|
|
6177
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6178
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6179
|
-
case "UnauthorizedClientException":
|
|
6180
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6181
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6182
|
-
default:
|
|
6183
|
-
const parsedBody = parsedOutput.body;
|
|
6184
|
-
return throwDefaultError({
|
|
6185
|
-
output,
|
|
6186
|
-
parsedBody,
|
|
6187
|
-
errorCode
|
|
6188
|
-
});
|
|
6189
|
-
}
|
|
6190
|
-
}, "de_PutVoiceConnectorTerminationCommandError");
|
|
6191
3458
|
var de_PutVoiceConnectorTerminationCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6192
3459
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6193
|
-
return
|
|
3460
|
+
return de_CommandError(output, context);
|
|
6194
3461
|
}
|
|
6195
3462
|
const contents = (0, import_smithy_client.map)({
|
|
6196
3463
|
$metadata: deserializeMetadata(output)
|
|
@@ -6198,46 +3465,9 @@ var de_PutVoiceConnectorTerminationCredentialsCommand = /* @__PURE__ */ __name(a
|
|
|
6198
3465
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
6199
3466
|
return contents;
|
|
6200
3467
|
}, "de_PutVoiceConnectorTerminationCredentialsCommand");
|
|
6201
|
-
var de_PutVoiceConnectorTerminationCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6202
|
-
const parsedOutput = {
|
|
6203
|
-
...output,
|
|
6204
|
-
body: await parseErrorBody(output.body, context)
|
|
6205
|
-
};
|
|
6206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6207
|
-
switch (errorCode) {
|
|
6208
|
-
case "BadRequestException":
|
|
6209
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6210
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6211
|
-
case "ForbiddenException":
|
|
6212
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6213
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6214
|
-
case "NotFoundException":
|
|
6215
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6216
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6217
|
-
case "ServiceFailureException":
|
|
6218
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6219
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6220
|
-
case "ServiceUnavailableException":
|
|
6221
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6222
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6223
|
-
case "ThrottledClientException":
|
|
6224
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6225
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6226
|
-
case "UnauthorizedClientException":
|
|
6227
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6228
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6229
|
-
default:
|
|
6230
|
-
const parsedBody = parsedOutput.body;
|
|
6231
|
-
return throwDefaultError({
|
|
6232
|
-
output,
|
|
6233
|
-
parsedBody,
|
|
6234
|
-
errorCode
|
|
6235
|
-
});
|
|
6236
|
-
}
|
|
6237
|
-
}, "de_PutVoiceConnectorTerminationCredentialsCommandError");
|
|
6238
3468
|
var de_RestorePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6239
3469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6240
|
-
return
|
|
3470
|
+
return de_CommandError(output, context);
|
|
6241
3471
|
}
|
|
6242
3472
|
const contents = (0, import_smithy_client.map)({
|
|
6243
3473
|
$metadata: deserializeMetadata(output)
|
|
@@ -6249,49 +3479,9 @@ var de_RestorePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
6249
3479
|
Object.assign(contents, doc);
|
|
6250
3480
|
return contents;
|
|
6251
3481
|
}, "de_RestorePhoneNumberCommand");
|
|
6252
|
-
var de_RestorePhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6253
|
-
const parsedOutput = {
|
|
6254
|
-
...output,
|
|
6255
|
-
body: await parseErrorBody(output.body, context)
|
|
6256
|
-
};
|
|
6257
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6258
|
-
switch (errorCode) {
|
|
6259
|
-
case "BadRequestException":
|
|
6260
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6261
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6262
|
-
case "ForbiddenException":
|
|
6263
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6264
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6265
|
-
case "NotFoundException":
|
|
6266
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6267
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6268
|
-
case "ResourceLimitExceededException":
|
|
6269
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6270
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
6271
|
-
case "ServiceFailureException":
|
|
6272
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6273
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6274
|
-
case "ServiceUnavailableException":
|
|
6275
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6276
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6277
|
-
case "ThrottledClientException":
|
|
6278
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6279
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6280
|
-
case "UnauthorizedClientException":
|
|
6281
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6282
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6283
|
-
default:
|
|
6284
|
-
const parsedBody = parsedOutput.body;
|
|
6285
|
-
return throwDefaultError({
|
|
6286
|
-
output,
|
|
6287
|
-
parsedBody,
|
|
6288
|
-
errorCode
|
|
6289
|
-
});
|
|
6290
|
-
}
|
|
6291
|
-
}, "de_RestorePhoneNumberCommandError");
|
|
6292
3482
|
var de_SearchAvailablePhoneNumbersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6293
3483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6294
|
-
return
|
|
3484
|
+
return de_CommandError(output, context);
|
|
6295
3485
|
}
|
|
6296
3486
|
const contents = (0, import_smithy_client.map)({
|
|
6297
3487
|
$metadata: deserializeMetadata(output)
|
|
@@ -6304,46 +3494,9 @@ var de_SearchAvailablePhoneNumbersCommand = /* @__PURE__ */ __name(async (output
|
|
|
6304
3494
|
Object.assign(contents, doc);
|
|
6305
3495
|
return contents;
|
|
6306
3496
|
}, "de_SearchAvailablePhoneNumbersCommand");
|
|
6307
|
-
var de_SearchAvailablePhoneNumbersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6308
|
-
const parsedOutput = {
|
|
6309
|
-
...output,
|
|
6310
|
-
body: await parseErrorBody(output.body, context)
|
|
6311
|
-
};
|
|
6312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6313
|
-
switch (errorCode) {
|
|
6314
|
-
case "AccessDeniedException":
|
|
6315
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6316
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6317
|
-
case "BadRequestException":
|
|
6318
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6319
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6320
|
-
case "ForbiddenException":
|
|
6321
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6322
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6323
|
-
case "ServiceFailureException":
|
|
6324
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6325
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6326
|
-
case "ServiceUnavailableException":
|
|
6327
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6328
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6329
|
-
case "ThrottledClientException":
|
|
6330
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6331
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6332
|
-
case "UnauthorizedClientException":
|
|
6333
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6334
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6335
|
-
default:
|
|
6336
|
-
const parsedBody = parsedOutput.body;
|
|
6337
|
-
return throwDefaultError({
|
|
6338
|
-
output,
|
|
6339
|
-
parsedBody,
|
|
6340
|
-
errorCode
|
|
6341
|
-
});
|
|
6342
|
-
}
|
|
6343
|
-
}, "de_SearchAvailablePhoneNumbersCommandError");
|
|
6344
3497
|
var de_StartSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6345
3498
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
6346
|
-
return
|
|
3499
|
+
return de_CommandError(output, context);
|
|
6347
3500
|
}
|
|
6348
3501
|
const contents = (0, import_smithy_client.map)({
|
|
6349
3502
|
$metadata: deserializeMetadata(output)
|
|
@@ -6355,61 +3508,9 @@ var de_StartSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
6355
3508
|
Object.assign(contents, doc);
|
|
6356
3509
|
return contents;
|
|
6357
3510
|
}, "de_StartSpeakerSearchTaskCommand");
|
|
6358
|
-
var de_StartSpeakerSearchTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6359
|
-
const parsedOutput = {
|
|
6360
|
-
...output,
|
|
6361
|
-
body: await parseErrorBody(output.body, context)
|
|
6362
|
-
};
|
|
6363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6364
|
-
switch (errorCode) {
|
|
6365
|
-
case "AccessDeniedException":
|
|
6366
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6367
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6368
|
-
case "BadRequestException":
|
|
6369
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6370
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6371
|
-
case "ConflictException":
|
|
6372
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6373
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6374
|
-
case "ForbiddenException":
|
|
6375
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6376
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6377
|
-
case "GoneException":
|
|
6378
|
-
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
6379
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
6380
|
-
case "NotFoundException":
|
|
6381
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6382
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6383
|
-
case "ResourceLimitExceededException":
|
|
6384
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6385
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
6386
|
-
case "ServiceFailureException":
|
|
6387
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6388
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6389
|
-
case "ServiceUnavailableException":
|
|
6390
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6391
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6392
|
-
case "ThrottledClientException":
|
|
6393
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6394
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6395
|
-
case "UnauthorizedClientException":
|
|
6396
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6397
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6398
|
-
case "UnprocessableEntityException":
|
|
6399
|
-
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6400
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
6401
|
-
default:
|
|
6402
|
-
const parsedBody = parsedOutput.body;
|
|
6403
|
-
return throwDefaultError({
|
|
6404
|
-
output,
|
|
6405
|
-
parsedBody,
|
|
6406
|
-
errorCode
|
|
6407
|
-
});
|
|
6408
|
-
}
|
|
6409
|
-
}, "de_StartSpeakerSearchTaskCommandError");
|
|
6410
3511
|
var de_StartVoiceToneAnalysisTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6411
3512
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
6412
|
-
return
|
|
3513
|
+
return de_CommandError(output, context);
|
|
6413
3514
|
}
|
|
6414
3515
|
const contents = (0, import_smithy_client.map)({
|
|
6415
3516
|
$metadata: deserializeMetadata(output)
|
|
@@ -6421,61 +3522,9 @@ var de_StartVoiceToneAnalysisTaskCommand = /* @__PURE__ */ __name(async (output,
|
|
|
6421
3522
|
Object.assign(contents, doc);
|
|
6422
3523
|
return contents;
|
|
6423
3524
|
}, "de_StartVoiceToneAnalysisTaskCommand");
|
|
6424
|
-
var de_StartVoiceToneAnalysisTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6425
|
-
const parsedOutput = {
|
|
6426
|
-
...output,
|
|
6427
|
-
body: await parseErrorBody(output.body, context)
|
|
6428
|
-
};
|
|
6429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6430
|
-
switch (errorCode) {
|
|
6431
|
-
case "AccessDeniedException":
|
|
6432
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6434
|
-
case "BadRequestException":
|
|
6435
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6436
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6437
|
-
case "ConflictException":
|
|
6438
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6440
|
-
case "ForbiddenException":
|
|
6441
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6442
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6443
|
-
case "GoneException":
|
|
6444
|
-
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
6445
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
6446
|
-
case "NotFoundException":
|
|
6447
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6448
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6449
|
-
case "ResourceLimitExceededException":
|
|
6450
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6451
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
6452
|
-
case "ServiceFailureException":
|
|
6453
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6454
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6455
|
-
case "ServiceUnavailableException":
|
|
6456
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6457
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6458
|
-
case "ThrottledClientException":
|
|
6459
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6460
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6461
|
-
case "UnauthorizedClientException":
|
|
6462
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6463
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6464
|
-
case "UnprocessableEntityException":
|
|
6465
|
-
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6466
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
6467
|
-
default:
|
|
6468
|
-
const parsedBody = parsedOutput.body;
|
|
6469
|
-
return throwDefaultError({
|
|
6470
|
-
output,
|
|
6471
|
-
parsedBody,
|
|
6472
|
-
errorCode
|
|
6473
|
-
});
|
|
6474
|
-
}
|
|
6475
|
-
}, "de_StartVoiceToneAnalysisTaskCommandError");
|
|
6476
3525
|
var de_StopSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6477
3526
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6478
|
-
return
|
|
3527
|
+
return de_CommandError(output, context);
|
|
6479
3528
|
}
|
|
6480
3529
|
const contents = (0, import_smithy_client.map)({
|
|
6481
3530
|
$metadata: deserializeMetadata(output)
|
|
@@ -6483,111 +3532,19 @@ var de_StopSpeakerSearchTaskCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
6483
3532
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
6484
3533
|
return contents;
|
|
6485
3534
|
}, "de_StopSpeakerSearchTaskCommand");
|
|
6486
|
-
var de_StopSpeakerSearchTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6487
|
-
const parsedOutput = {
|
|
6488
|
-
...output,
|
|
6489
|
-
body: await parseErrorBody(output.body, context)
|
|
6490
|
-
};
|
|
6491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6492
|
-
switch (errorCode) {
|
|
6493
|
-
case "AccessDeniedException":
|
|
6494
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6496
|
-
case "BadRequestException":
|
|
6497
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6498
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6499
|
-
case "ConflictException":
|
|
6500
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6501
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6502
|
-
case "ForbiddenException":
|
|
6503
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6504
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6505
|
-
case "NotFoundException":
|
|
6506
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6507
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6508
|
-
case "ServiceFailureException":
|
|
6509
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6510
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6511
|
-
case "ServiceUnavailableException":
|
|
6512
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6513
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6514
|
-
case "ThrottledClientException":
|
|
6515
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6516
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6517
|
-
case "UnauthorizedClientException":
|
|
6518
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6519
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6520
|
-
case "UnprocessableEntityException":
|
|
6521
|
-
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6522
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
6523
|
-
default:
|
|
6524
|
-
const parsedBody = parsedOutput.body;
|
|
6525
|
-
return throwDefaultError({
|
|
6526
|
-
output,
|
|
6527
|
-
parsedBody,
|
|
6528
|
-
errorCode
|
|
6529
|
-
});
|
|
6530
|
-
}
|
|
6531
|
-
}, "de_StopSpeakerSearchTaskCommandError");
|
|
6532
3535
|
var de_StopVoiceToneAnalysisTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6533
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6534
|
-
return
|
|
6535
|
-
}
|
|
6536
|
-
const contents = (0, import_smithy_client.map)({
|
|
6537
|
-
$metadata: deserializeMetadata(output)
|
|
6538
|
-
});
|
|
6539
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
6540
|
-
return contents;
|
|
6541
|
-
}, "de_StopVoiceToneAnalysisTaskCommand");
|
|
6542
|
-
var de_StopVoiceToneAnalysisTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6543
|
-
const parsedOutput = {
|
|
6544
|
-
...output,
|
|
6545
|
-
body: await parseErrorBody(output.body, context)
|
|
6546
|
-
};
|
|
6547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6548
|
-
switch (errorCode) {
|
|
6549
|
-
case "AccessDeniedException":
|
|
6550
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
6551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6552
|
-
case "BadRequestException":
|
|
6553
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6554
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6555
|
-
case "ConflictException":
|
|
6556
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6557
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6558
|
-
case "ForbiddenException":
|
|
6559
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6560
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6561
|
-
case "NotFoundException":
|
|
6562
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6563
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6564
|
-
case "ServiceFailureException":
|
|
6565
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6566
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6567
|
-
case "ServiceUnavailableException":
|
|
6568
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6569
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6570
|
-
case "ThrottledClientException":
|
|
6571
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6572
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6573
|
-
case "UnauthorizedClientException":
|
|
6574
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6575
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6576
|
-
case "UnprocessableEntityException":
|
|
6577
|
-
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
6578
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
6579
|
-
default:
|
|
6580
|
-
const parsedBody = parsedOutput.body;
|
|
6581
|
-
return throwDefaultError({
|
|
6582
|
-
output,
|
|
6583
|
-
parsedBody,
|
|
6584
|
-
errorCode
|
|
6585
|
-
});
|
|
3536
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3537
|
+
return de_CommandError(output, context);
|
|
6586
3538
|
}
|
|
6587
|
-
|
|
3539
|
+
const contents = (0, import_smithy_client.map)({
|
|
3540
|
+
$metadata: deserializeMetadata(output)
|
|
3541
|
+
});
|
|
3542
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3543
|
+
return contents;
|
|
3544
|
+
}, "de_StopVoiceToneAnalysisTaskCommand");
|
|
6588
3545
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6589
3546
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6590
|
-
return
|
|
3547
|
+
return de_CommandError(output, context);
|
|
6591
3548
|
}
|
|
6592
3549
|
const contents = (0, import_smithy_client.map)({
|
|
6593
3550
|
$metadata: deserializeMetadata(output)
|
|
@@ -6595,46 +3552,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
6595
3552
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
6596
3553
|
return contents;
|
|
6597
3554
|
}, "de_TagResourceCommand");
|
|
6598
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6599
|
-
const parsedOutput = {
|
|
6600
|
-
...output,
|
|
6601
|
-
body: await parseErrorBody(output.body, context)
|
|
6602
|
-
};
|
|
6603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6604
|
-
switch (errorCode) {
|
|
6605
|
-
case "BadRequestException":
|
|
6606
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6607
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6608
|
-
case "ForbiddenException":
|
|
6609
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6610
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6611
|
-
case "NotFoundException":
|
|
6612
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6613
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6614
|
-
case "ResourceLimitExceededException":
|
|
6615
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6616
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
6617
|
-
case "ServiceFailureException":
|
|
6618
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6619
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6620
|
-
case "ServiceUnavailableException":
|
|
6621
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6622
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6623
|
-
case "UnauthorizedClientException":
|
|
6624
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6625
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6626
|
-
default:
|
|
6627
|
-
const parsedBody = parsedOutput.body;
|
|
6628
|
-
return throwDefaultError({
|
|
6629
|
-
output,
|
|
6630
|
-
parsedBody,
|
|
6631
|
-
errorCode
|
|
6632
|
-
});
|
|
6633
|
-
}
|
|
6634
|
-
}, "de_TagResourceCommandError");
|
|
6635
3555
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6636
3556
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6637
|
-
return
|
|
3557
|
+
return de_CommandError(output, context);
|
|
6638
3558
|
}
|
|
6639
3559
|
const contents = (0, import_smithy_client.map)({
|
|
6640
3560
|
$metadata: deserializeMetadata(output)
|
|
@@ -6642,43 +3562,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
6642
3562
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
6643
3563
|
return contents;
|
|
6644
3564
|
}, "de_UntagResourceCommand");
|
|
6645
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6646
|
-
const parsedOutput = {
|
|
6647
|
-
...output,
|
|
6648
|
-
body: await parseErrorBody(output.body, context)
|
|
6649
|
-
};
|
|
6650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6651
|
-
switch (errorCode) {
|
|
6652
|
-
case "BadRequestException":
|
|
6653
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6654
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6655
|
-
case "ForbiddenException":
|
|
6656
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6657
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6658
|
-
case "NotFoundException":
|
|
6659
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6660
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6661
|
-
case "ServiceFailureException":
|
|
6662
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6663
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6664
|
-
case "ServiceUnavailableException":
|
|
6665
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6666
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6667
|
-
case "UnauthorizedClientException":
|
|
6668
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6669
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6670
|
-
default:
|
|
6671
|
-
const parsedBody = parsedOutput.body;
|
|
6672
|
-
return throwDefaultError({
|
|
6673
|
-
output,
|
|
6674
|
-
parsedBody,
|
|
6675
|
-
errorCode
|
|
6676
|
-
});
|
|
6677
|
-
}
|
|
6678
|
-
}, "de_UntagResourceCommandError");
|
|
6679
3565
|
var de_UpdateGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6680
3566
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6681
|
-
return
|
|
3567
|
+
return de_CommandError(output, context);
|
|
6682
3568
|
}
|
|
6683
3569
|
const contents = (0, import_smithy_client.map)({
|
|
6684
3570
|
$metadata: deserializeMetadata(output)
|
|
@@ -6686,43 +3572,9 @@ var de_UpdateGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
6686
3572
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
6687
3573
|
return contents;
|
|
6688
3574
|
}, "de_UpdateGlobalSettingsCommand");
|
|
6689
|
-
var de_UpdateGlobalSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6690
|
-
const parsedOutput = {
|
|
6691
|
-
...output,
|
|
6692
|
-
body: await parseErrorBody(output.body, context)
|
|
6693
|
-
};
|
|
6694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6695
|
-
switch (errorCode) {
|
|
6696
|
-
case "BadRequestException":
|
|
6697
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6698
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6699
|
-
case "ForbiddenException":
|
|
6700
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6701
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6702
|
-
case "ServiceFailureException":
|
|
6703
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6704
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6705
|
-
case "ServiceUnavailableException":
|
|
6706
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6707
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6708
|
-
case "ThrottledClientException":
|
|
6709
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6710
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6711
|
-
case "UnauthorizedClientException":
|
|
6712
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6713
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6714
|
-
default:
|
|
6715
|
-
const parsedBody = parsedOutput.body;
|
|
6716
|
-
return throwDefaultError({
|
|
6717
|
-
output,
|
|
6718
|
-
parsedBody,
|
|
6719
|
-
errorCode
|
|
6720
|
-
});
|
|
6721
|
-
}
|
|
6722
|
-
}, "de_UpdateGlobalSettingsCommandError");
|
|
6723
3575
|
var de_UpdatePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6724
3576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6725
|
-
return
|
|
3577
|
+
return de_CommandError(output, context);
|
|
6726
3578
|
}
|
|
6727
3579
|
const contents = (0, import_smithy_client.map)({
|
|
6728
3580
|
$metadata: deserializeMetadata(output)
|
|
@@ -6734,49 +3586,9 @@ var de_UpdatePhoneNumberCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
6734
3586
|
Object.assign(contents, doc);
|
|
6735
3587
|
return contents;
|
|
6736
3588
|
}, "de_UpdatePhoneNumberCommand");
|
|
6737
|
-
var de_UpdatePhoneNumberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6738
|
-
const parsedOutput = {
|
|
6739
|
-
...output,
|
|
6740
|
-
body: await parseErrorBody(output.body, context)
|
|
6741
|
-
};
|
|
6742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6743
|
-
switch (errorCode) {
|
|
6744
|
-
case "BadRequestException":
|
|
6745
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6746
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6747
|
-
case "ConflictException":
|
|
6748
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6749
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6750
|
-
case "ForbiddenException":
|
|
6751
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6752
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6753
|
-
case "NotFoundException":
|
|
6754
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6755
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6756
|
-
case "ServiceFailureException":
|
|
6757
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6758
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6759
|
-
case "ServiceUnavailableException":
|
|
6760
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6761
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6762
|
-
case "ThrottledClientException":
|
|
6763
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6764
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6765
|
-
case "UnauthorizedClientException":
|
|
6766
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6767
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6768
|
-
default:
|
|
6769
|
-
const parsedBody = parsedOutput.body;
|
|
6770
|
-
return throwDefaultError({
|
|
6771
|
-
output,
|
|
6772
|
-
parsedBody,
|
|
6773
|
-
errorCode
|
|
6774
|
-
});
|
|
6775
|
-
}
|
|
6776
|
-
}, "de_UpdatePhoneNumberCommandError");
|
|
6777
3589
|
var de_UpdatePhoneNumberSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6778
3590
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6779
|
-
return
|
|
3591
|
+
return de_CommandError(output, context);
|
|
6780
3592
|
}
|
|
6781
3593
|
const contents = (0, import_smithy_client.map)({
|
|
6782
3594
|
$metadata: deserializeMetadata(output)
|
|
@@ -6784,43 +3596,9 @@ var de_UpdatePhoneNumberSettingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
6784
3596
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
6785
3597
|
return contents;
|
|
6786
3598
|
}, "de_UpdatePhoneNumberSettingsCommand");
|
|
6787
|
-
var de_UpdatePhoneNumberSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6788
|
-
const parsedOutput = {
|
|
6789
|
-
...output,
|
|
6790
|
-
body: await parseErrorBody(output.body, context)
|
|
6791
|
-
};
|
|
6792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6793
|
-
switch (errorCode) {
|
|
6794
|
-
case "BadRequestException":
|
|
6795
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6796
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6797
|
-
case "ForbiddenException":
|
|
6798
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6799
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6800
|
-
case "ServiceFailureException":
|
|
6801
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6802
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6803
|
-
case "ServiceUnavailableException":
|
|
6804
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6805
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6806
|
-
case "ThrottledClientException":
|
|
6807
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6808
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6809
|
-
case "UnauthorizedClientException":
|
|
6810
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6811
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6812
|
-
default:
|
|
6813
|
-
const parsedBody = parsedOutput.body;
|
|
6814
|
-
return throwDefaultError({
|
|
6815
|
-
output,
|
|
6816
|
-
parsedBody,
|
|
6817
|
-
errorCode
|
|
6818
|
-
});
|
|
6819
|
-
}
|
|
6820
|
-
}, "de_UpdatePhoneNumberSettingsCommandError");
|
|
6821
3599
|
var de_UpdateProxySessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6822
3600
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
6823
|
-
return
|
|
3601
|
+
return de_CommandError(output, context);
|
|
6824
3602
|
}
|
|
6825
3603
|
const contents = (0, import_smithy_client.map)({
|
|
6826
3604
|
$metadata: deserializeMetadata(output)
|
|
@@ -6832,100 +3610,23 @@ var de_UpdateProxySessionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
6832
3610
|
Object.assign(contents, doc);
|
|
6833
3611
|
return contents;
|
|
6834
3612
|
}, "de_UpdateProxySessionCommand");
|
|
6835
|
-
var de_UpdateProxySessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6836
|
-
const parsedOutput = {
|
|
6837
|
-
...output,
|
|
6838
|
-
body: await parseErrorBody(output.body, context)
|
|
6839
|
-
};
|
|
6840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6841
|
-
switch (errorCode) {
|
|
6842
|
-
case "BadRequestException":
|
|
6843
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6844
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6845
|
-
case "ForbiddenException":
|
|
6846
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6847
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6848
|
-
case "NotFoundException":
|
|
6849
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6850
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6851
|
-
case "ServiceFailureException":
|
|
6852
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6853
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6854
|
-
case "ServiceUnavailableException":
|
|
6855
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6856
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6857
|
-
case "ThrottledClientException":
|
|
6858
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6859
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6860
|
-
case "UnauthorizedClientException":
|
|
6861
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6862
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6863
|
-
default:
|
|
6864
|
-
const parsedBody = parsedOutput.body;
|
|
6865
|
-
return throwDefaultError({
|
|
6866
|
-
output,
|
|
6867
|
-
parsedBody,
|
|
6868
|
-
errorCode
|
|
6869
|
-
});
|
|
6870
|
-
}
|
|
6871
|
-
}, "de_UpdateProxySessionCommandError");
|
|
6872
3613
|
var de_UpdateSipMediaApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6873
3614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6874
|
-
return
|
|
3615
|
+
return de_CommandError(output, context);
|
|
6875
3616
|
}
|
|
6876
3617
|
const contents = (0, import_smithy_client.map)({
|
|
6877
3618
|
$metadata: deserializeMetadata(output)
|
|
6878
3619
|
});
|
|
6879
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
6880
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
6881
|
-
SipMediaApplication: (_) => de_SipMediaApplication(_, context)
|
|
6882
|
-
});
|
|
6883
|
-
Object.assign(contents, doc);
|
|
6884
|
-
return contents;
|
|
6885
|
-
}, "de_UpdateSipMediaApplicationCommand");
|
|
6886
|
-
var de_UpdateSipMediaApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6887
|
-
const parsedOutput = {
|
|
6888
|
-
...output,
|
|
6889
|
-
body: await parseErrorBody(output.body, context)
|
|
6890
|
-
};
|
|
6891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6892
|
-
switch (errorCode) {
|
|
6893
|
-
case "BadRequestException":
|
|
6894
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6895
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6896
|
-
case "ConflictException":
|
|
6897
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
6898
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6899
|
-
case "ForbiddenException":
|
|
6900
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6901
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6902
|
-
case "NotFoundException":
|
|
6903
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6904
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6905
|
-
case "ServiceFailureException":
|
|
6906
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6907
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6908
|
-
case "ServiceUnavailableException":
|
|
6909
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6910
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6911
|
-
case "ThrottledClientException":
|
|
6912
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6913
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6914
|
-
case "UnauthorizedClientException":
|
|
6915
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6916
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6917
|
-
default:
|
|
6918
|
-
const parsedBody = parsedOutput.body;
|
|
6919
|
-
return throwDefaultError({
|
|
6920
|
-
output,
|
|
6921
|
-
parsedBody,
|
|
6922
|
-
errorCode
|
|
6923
|
-
});
|
|
6924
|
-
}
|
|
6925
|
-
}, "de_UpdateSipMediaApplicationCommandError");
|
|
3620
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3621
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3622
|
+
SipMediaApplication: (_) => de_SipMediaApplication(_, context)
|
|
3623
|
+
});
|
|
3624
|
+
Object.assign(contents, doc);
|
|
3625
|
+
return contents;
|
|
3626
|
+
}, "de_UpdateSipMediaApplicationCommand");
|
|
6926
3627
|
var de_UpdateSipMediaApplicationCallCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6927
3628
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6928
|
-
return
|
|
3629
|
+
return de_CommandError(output, context);
|
|
6929
3630
|
}
|
|
6930
3631
|
const contents = (0, import_smithy_client.map)({
|
|
6931
3632
|
$metadata: deserializeMetadata(output)
|
|
@@ -6937,49 +3638,9 @@ var de_UpdateSipMediaApplicationCallCommand = /* @__PURE__ */ __name(async (outp
|
|
|
6937
3638
|
Object.assign(contents, doc);
|
|
6938
3639
|
return contents;
|
|
6939
3640
|
}, "de_UpdateSipMediaApplicationCallCommand");
|
|
6940
|
-
var de_UpdateSipMediaApplicationCallCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6941
|
-
const parsedOutput = {
|
|
6942
|
-
...output,
|
|
6943
|
-
body: await parseErrorBody(output.body, context)
|
|
6944
|
-
};
|
|
6945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6946
|
-
switch (errorCode) {
|
|
6947
|
-
case "BadRequestException":
|
|
6948
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
6949
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6950
|
-
case "ForbiddenException":
|
|
6951
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
6952
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6953
|
-
case "NotFoundException":
|
|
6954
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
6955
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6956
|
-
case "ResourceLimitExceededException":
|
|
6957
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
6958
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
6959
|
-
case "ServiceFailureException":
|
|
6960
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
6961
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
6962
|
-
case "ServiceUnavailableException":
|
|
6963
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
6964
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6965
|
-
case "ThrottledClientException":
|
|
6966
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
6967
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
6968
|
-
case "UnauthorizedClientException":
|
|
6969
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
6970
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
6971
|
-
default:
|
|
6972
|
-
const parsedBody = parsedOutput.body;
|
|
6973
|
-
return throwDefaultError({
|
|
6974
|
-
output,
|
|
6975
|
-
parsedBody,
|
|
6976
|
-
errorCode
|
|
6977
|
-
});
|
|
6978
|
-
}
|
|
6979
|
-
}, "de_UpdateSipMediaApplicationCallCommandError");
|
|
6980
3641
|
var de_UpdateSipRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
6981
3642
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6982
|
-
return
|
|
3643
|
+
return de_CommandError(output, context);
|
|
6983
3644
|
}
|
|
6984
3645
|
const contents = (0, import_smithy_client.map)({
|
|
6985
3646
|
$metadata: deserializeMetadata(output)
|
|
@@ -6991,52 +3652,9 @@ var de_UpdateSipRuleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
6991
3652
|
Object.assign(contents, doc);
|
|
6992
3653
|
return contents;
|
|
6993
3654
|
}, "de_UpdateSipRuleCommand");
|
|
6994
|
-
var de_UpdateSipRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
6995
|
-
const parsedOutput = {
|
|
6996
|
-
...output,
|
|
6997
|
-
body: await parseErrorBody(output.body, context)
|
|
6998
|
-
};
|
|
6999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7000
|
-
switch (errorCode) {
|
|
7001
|
-
case "BadRequestException":
|
|
7002
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
7003
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
7004
|
-
case "ConflictException":
|
|
7005
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
7006
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
7007
|
-
case "ForbiddenException":
|
|
7008
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
7009
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
7010
|
-
case "NotFoundException":
|
|
7011
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
7012
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
7013
|
-
case "ResourceLimitExceededException":
|
|
7014
|
-
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
7015
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
7016
|
-
case "ServiceFailureException":
|
|
7017
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
7018
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
7019
|
-
case "ServiceUnavailableException":
|
|
7020
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
7021
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
7022
|
-
case "ThrottledClientException":
|
|
7023
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
7024
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
7025
|
-
case "UnauthorizedClientException":
|
|
7026
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
7027
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
7028
|
-
default:
|
|
7029
|
-
const parsedBody = parsedOutput.body;
|
|
7030
|
-
return throwDefaultError({
|
|
7031
|
-
output,
|
|
7032
|
-
parsedBody,
|
|
7033
|
-
errorCode
|
|
7034
|
-
});
|
|
7035
|
-
}
|
|
7036
|
-
}, "de_UpdateSipRuleCommandError");
|
|
7037
3655
|
var de_UpdateVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
7038
3656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7039
|
-
return
|
|
3657
|
+
return de_CommandError(output, context);
|
|
7040
3658
|
}
|
|
7041
3659
|
const contents = (0, import_smithy_client.map)({
|
|
7042
3660
|
$metadata: deserializeMetadata(output)
|
|
@@ -7048,46 +3666,9 @@ var de_UpdateVoiceConnectorCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
7048
3666
|
Object.assign(contents, doc);
|
|
7049
3667
|
return contents;
|
|
7050
3668
|
}, "de_UpdateVoiceConnectorCommand");
|
|
7051
|
-
var de_UpdateVoiceConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
7052
|
-
const parsedOutput = {
|
|
7053
|
-
...output,
|
|
7054
|
-
body: await parseErrorBody(output.body, context)
|
|
7055
|
-
};
|
|
7056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7057
|
-
switch (errorCode) {
|
|
7058
|
-
case "BadRequestException":
|
|
7059
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
7060
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
7061
|
-
case "ForbiddenException":
|
|
7062
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
7063
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
7064
|
-
case "NotFoundException":
|
|
7065
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
7066
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
7067
|
-
case "ServiceFailureException":
|
|
7068
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
7069
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
7070
|
-
case "ServiceUnavailableException":
|
|
7071
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
7072
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
7073
|
-
case "ThrottledClientException":
|
|
7074
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
7075
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
7076
|
-
case "UnauthorizedClientException":
|
|
7077
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
7078
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
7079
|
-
default:
|
|
7080
|
-
const parsedBody = parsedOutput.body;
|
|
7081
|
-
return throwDefaultError({
|
|
7082
|
-
output,
|
|
7083
|
-
parsedBody,
|
|
7084
|
-
errorCode
|
|
7085
|
-
});
|
|
7086
|
-
}
|
|
7087
|
-
}, "de_UpdateVoiceConnectorCommandError");
|
|
7088
3669
|
var de_UpdateVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
7089
3670
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
7090
|
-
return
|
|
3671
|
+
return de_CommandError(output, context);
|
|
7091
3672
|
}
|
|
7092
3673
|
const contents = (0, import_smithy_client.map)({
|
|
7093
3674
|
$metadata: deserializeMetadata(output)
|
|
@@ -7099,49 +3680,9 @@ var de_UpdateVoiceConnectorGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
7099
3680
|
Object.assign(contents, doc);
|
|
7100
3681
|
return contents;
|
|
7101
3682
|
}, "de_UpdateVoiceConnectorGroupCommand");
|
|
7102
|
-
var de_UpdateVoiceConnectorGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
7103
|
-
const parsedOutput = {
|
|
7104
|
-
...output,
|
|
7105
|
-
body: await parseErrorBody(output.body, context)
|
|
7106
|
-
};
|
|
7107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7108
|
-
switch (errorCode) {
|
|
7109
|
-
case "BadRequestException":
|
|
7110
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
7111
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
7112
|
-
case "ConflictException":
|
|
7113
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
7114
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
7115
|
-
case "ForbiddenException":
|
|
7116
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
7117
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
7118
|
-
case "NotFoundException":
|
|
7119
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
7120
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
7121
|
-
case "ServiceFailureException":
|
|
7122
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
7123
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
7124
|
-
case "ServiceUnavailableException":
|
|
7125
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
7126
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
7127
|
-
case "ThrottledClientException":
|
|
7128
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
7129
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
7130
|
-
case "UnauthorizedClientException":
|
|
7131
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
7132
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
7133
|
-
default:
|
|
7134
|
-
const parsedBody = parsedOutput.body;
|
|
7135
|
-
return throwDefaultError({
|
|
7136
|
-
output,
|
|
7137
|
-
parsedBody,
|
|
7138
|
-
errorCode
|
|
7139
|
-
});
|
|
7140
|
-
}
|
|
7141
|
-
}, "de_UpdateVoiceConnectorGroupCommandError");
|
|
7142
3683
|
var de_UpdateVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
7143
3684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7144
|
-
return
|
|
3685
|
+
return de_CommandError(output, context);
|
|
7145
3686
|
}
|
|
7146
3687
|
const contents = (0, import_smithy_client.map)({
|
|
7147
3688
|
$metadata: deserializeMetadata(output)
|
|
@@ -7153,55 +3694,9 @@ var de_UpdateVoiceProfileCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
7153
3694
|
Object.assign(contents, doc);
|
|
7154
3695
|
return contents;
|
|
7155
3696
|
}, "de_UpdateVoiceProfileCommand");
|
|
7156
|
-
var de_UpdateVoiceProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
7157
|
-
const parsedOutput = {
|
|
7158
|
-
...output,
|
|
7159
|
-
body: await parseErrorBody(output.body, context)
|
|
7160
|
-
};
|
|
7161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7162
|
-
switch (errorCode) {
|
|
7163
|
-
case "AccessDeniedException":
|
|
7164
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
7165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
7166
|
-
case "BadRequestException":
|
|
7167
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
7168
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
7169
|
-
case "ConflictException":
|
|
7170
|
-
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
7171
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
7172
|
-
case "ForbiddenException":
|
|
7173
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
7174
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
7175
|
-
case "GoneException":
|
|
7176
|
-
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
7177
|
-
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
7178
|
-
case "NotFoundException":
|
|
7179
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
7180
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
7181
|
-
case "ServiceFailureException":
|
|
7182
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
7183
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
7184
|
-
case "ServiceUnavailableException":
|
|
7185
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
7186
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
7187
|
-
case "ThrottledClientException":
|
|
7188
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
7189
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
7190
|
-
case "UnauthorizedClientException":
|
|
7191
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
7192
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
7193
|
-
default:
|
|
7194
|
-
const parsedBody = parsedOutput.body;
|
|
7195
|
-
return throwDefaultError({
|
|
7196
|
-
output,
|
|
7197
|
-
parsedBody,
|
|
7198
|
-
errorCode
|
|
7199
|
-
});
|
|
7200
|
-
}
|
|
7201
|
-
}, "de_UpdateVoiceProfileCommandError");
|
|
7202
3697
|
var de_UpdateVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
7203
3698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7204
|
-
return
|
|
3699
|
+
return de_CommandError(output, context);
|
|
7205
3700
|
}
|
|
7206
3701
|
const contents = (0, import_smithy_client.map)({
|
|
7207
3702
|
$metadata: deserializeMetadata(output)
|
|
@@ -7213,49 +3708,9 @@ var de_UpdateVoiceProfileDomainCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
7213
3708
|
Object.assign(contents, doc);
|
|
7214
3709
|
return contents;
|
|
7215
3710
|
}, "de_UpdateVoiceProfileDomainCommand");
|
|
7216
|
-
var de_UpdateVoiceProfileDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
7217
|
-
const parsedOutput = {
|
|
7218
|
-
...output,
|
|
7219
|
-
body: await parseErrorBody(output.body, context)
|
|
7220
|
-
};
|
|
7221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7222
|
-
switch (errorCode) {
|
|
7223
|
-
case "AccessDeniedException":
|
|
7224
|
-
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
7225
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
7226
|
-
case "BadRequestException":
|
|
7227
|
-
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
7228
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
7229
|
-
case "ForbiddenException":
|
|
7230
|
-
case "com.amazonaws.chimesdkvoice#ForbiddenException":
|
|
7231
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
7232
|
-
case "NotFoundException":
|
|
7233
|
-
case "com.amazonaws.chimesdkvoice#NotFoundException":
|
|
7234
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
7235
|
-
case "ServiceFailureException":
|
|
7236
|
-
case "com.amazonaws.chimesdkvoice#ServiceFailureException":
|
|
7237
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
7238
|
-
case "ServiceUnavailableException":
|
|
7239
|
-
case "com.amazonaws.chimesdkvoice#ServiceUnavailableException":
|
|
7240
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
7241
|
-
case "ThrottledClientException":
|
|
7242
|
-
case "com.amazonaws.chimesdkvoice#ThrottledClientException":
|
|
7243
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
7244
|
-
case "UnauthorizedClientException":
|
|
7245
|
-
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
7246
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
7247
|
-
default:
|
|
7248
|
-
const parsedBody = parsedOutput.body;
|
|
7249
|
-
return throwDefaultError({
|
|
7250
|
-
output,
|
|
7251
|
-
parsedBody,
|
|
7252
|
-
errorCode
|
|
7253
|
-
});
|
|
7254
|
-
}
|
|
7255
|
-
}, "de_UpdateVoiceProfileDomainCommandError");
|
|
7256
3711
|
var de_ValidateE911AddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
7257
3712
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
7258
|
-
return
|
|
3713
|
+
return de_CommandError(output, context);
|
|
7259
3714
|
}
|
|
7260
3715
|
const contents = (0, import_smithy_client.map)({
|
|
7261
3716
|
$metadata: deserializeMetadata(output)
|
|
@@ -7270,13 +3725,16 @@ var de_ValidateE911AddressCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
7270
3725
|
Object.assign(contents, doc);
|
|
7271
3726
|
return contents;
|
|
7272
3727
|
}, "de_ValidateE911AddressCommand");
|
|
7273
|
-
var
|
|
3728
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
7274
3729
|
const parsedOutput = {
|
|
7275
3730
|
...output,
|
|
7276
3731
|
body: await parseErrorBody(output.body, context)
|
|
7277
3732
|
};
|
|
7278
3733
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7279
3734
|
switch (errorCode) {
|
|
3735
|
+
case "AccessDeniedException":
|
|
3736
|
+
case "com.amazonaws.chimesdkvoice#AccessDeniedException":
|
|
3737
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
7280
3738
|
case "BadRequestException":
|
|
7281
3739
|
case "com.amazonaws.chimesdkvoice#BadRequestException":
|
|
7282
3740
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
@@ -7298,6 +3756,18 @@ var de_ValidateE911AddressCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
7298
3756
|
case "UnauthorizedClientException":
|
|
7299
3757
|
case "com.amazonaws.chimesdkvoice#UnauthorizedClientException":
|
|
7300
3758
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3759
|
+
case "ResourceLimitExceededException":
|
|
3760
|
+
case "com.amazonaws.chimesdkvoice#ResourceLimitExceededException":
|
|
3761
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3762
|
+
case "ConflictException":
|
|
3763
|
+
case "com.amazonaws.chimesdkvoice#ConflictException":
|
|
3764
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3765
|
+
case "GoneException":
|
|
3766
|
+
case "com.amazonaws.chimesdkvoice#GoneException":
|
|
3767
|
+
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
3768
|
+
case "UnprocessableEntityException":
|
|
3769
|
+
case "com.amazonaws.chimesdkvoice#UnprocessableEntityException":
|
|
3770
|
+
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
7301
3771
|
default:
|
|
7302
3772
|
const parsedBody = parsedOutput.body;
|
|
7303
3773
|
return throwDefaultError({
|
|
@@ -7306,7 +3776,7 @@ var de_ValidateE911AddressCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
7306
3776
|
errorCode
|
|
7307
3777
|
});
|
|
7308
3778
|
}
|
|
7309
|
-
}, "
|
|
3779
|
+
}, "de_CommandError");
|
|
7310
3780
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ChimeSDKVoiceServiceException);
|
|
7311
3781
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
7312
3782
|
const contents = (0, import_smithy_client.map)({});
|