@aws-sdk/client-elasticache 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 +380 -2626
- package/dist-es/protocols/Aws_query.js +412 -2658
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2538,7 +2538,7 @@ var se_TestMigrationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2538
2538
|
}, "se_TestMigrationCommand");
|
|
2539
2539
|
var de_AddTagsToResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2540
2540
|
if (output.statusCode >= 300) {
|
|
2541
|
-
return
|
|
2541
|
+
return de_CommandError(output, context);
|
|
2542
2542
|
}
|
|
2543
2543
|
const data = await parseBody(output.body, context);
|
|
2544
2544
|
let contents = {};
|
|
@@ -2549,73 +2549,9 @@ var de_AddTagsToResourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2549
2549
|
};
|
|
2550
2550
|
return response;
|
|
2551
2551
|
}, "de_AddTagsToResourceCommand");
|
|
2552
|
-
var de_AddTagsToResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2553
|
-
const parsedOutput = {
|
|
2554
|
-
...output,
|
|
2555
|
-
body: await parseErrorBody(output.body, context)
|
|
2556
|
-
};
|
|
2557
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2558
|
-
switch (errorCode) {
|
|
2559
|
-
case "CacheClusterNotFound":
|
|
2560
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
2561
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
2562
|
-
case "CacheParameterGroupNotFound":
|
|
2563
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
2564
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2565
|
-
case "CacheSecurityGroupNotFound":
|
|
2566
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
2567
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
2568
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
2569
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
2570
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2571
|
-
case "InvalidARN":
|
|
2572
|
-
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
2573
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
2574
|
-
case "InvalidReplicationGroupState":
|
|
2575
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
2576
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
2577
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
2578
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
2579
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
2580
|
-
case "InvalidServerlessCacheStateFault":
|
|
2581
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
2582
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
2583
|
-
case "ReplicationGroupNotFoundFault":
|
|
2584
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
2585
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2586
|
-
case "ReservedCacheNodeNotFound":
|
|
2587
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
2588
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
2589
|
-
case "ServerlessCacheNotFoundFault":
|
|
2590
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
2591
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
2592
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
2593
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
2594
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2595
|
-
case "SnapshotNotFoundFault":
|
|
2596
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
2597
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2598
|
-
case "TagQuotaPerResourceExceeded":
|
|
2599
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
2600
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
2601
|
-
case "UserGroupNotFound":
|
|
2602
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
2603
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
2604
|
-
case "UserNotFound":
|
|
2605
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
2606
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
2607
|
-
default:
|
|
2608
|
-
const parsedBody = parsedOutput.body;
|
|
2609
|
-
return throwDefaultError({
|
|
2610
|
-
output,
|
|
2611
|
-
parsedBody: parsedBody.Error,
|
|
2612
|
-
errorCode
|
|
2613
|
-
});
|
|
2614
|
-
}
|
|
2615
|
-
}, "de_AddTagsToResourceCommandError");
|
|
2616
2552
|
var de_AuthorizeCacheSecurityGroupIngressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2617
2553
|
if (output.statusCode >= 300) {
|
|
2618
|
-
return
|
|
2554
|
+
return de_CommandError(output, context);
|
|
2619
2555
|
}
|
|
2620
2556
|
const data = await parseBody(output.body, context);
|
|
2621
2557
|
let contents = {};
|
|
@@ -2626,40 +2562,9 @@ var de_AuthorizeCacheSecurityGroupIngressCommand = /* @__PURE__ */ __name(async
|
|
|
2626
2562
|
};
|
|
2627
2563
|
return response;
|
|
2628
2564
|
}, "de_AuthorizeCacheSecurityGroupIngressCommand");
|
|
2629
|
-
var de_AuthorizeCacheSecurityGroupIngressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2630
|
-
const parsedOutput = {
|
|
2631
|
-
...output,
|
|
2632
|
-
body: await parseErrorBody(output.body, context)
|
|
2633
|
-
};
|
|
2634
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2635
|
-
switch (errorCode) {
|
|
2636
|
-
case "AuthorizationAlreadyExists":
|
|
2637
|
-
case "com.amazonaws.elasticache#AuthorizationAlreadyExistsFault":
|
|
2638
|
-
throw await de_AuthorizationAlreadyExistsFaultRes(parsedOutput, context);
|
|
2639
|
-
case "CacheSecurityGroupNotFound":
|
|
2640
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
2641
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
2642
|
-
case "InvalidCacheSecurityGroupState":
|
|
2643
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
2644
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
2645
|
-
case "InvalidParameterCombination":
|
|
2646
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2647
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "InvalidParameterValue":
|
|
2649
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2650
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2651
|
-
default:
|
|
2652
|
-
const parsedBody = parsedOutput.body;
|
|
2653
|
-
return throwDefaultError({
|
|
2654
|
-
output,
|
|
2655
|
-
parsedBody: parsedBody.Error,
|
|
2656
|
-
errorCode
|
|
2657
|
-
});
|
|
2658
|
-
}
|
|
2659
|
-
}, "de_AuthorizeCacheSecurityGroupIngressCommandError");
|
|
2660
2565
|
var de_BatchApplyUpdateActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2661
2566
|
if (output.statusCode >= 300) {
|
|
2662
|
-
return
|
|
2567
|
+
return de_CommandError(output, context);
|
|
2663
2568
|
}
|
|
2664
2569
|
const data = await parseBody(output.body, context);
|
|
2665
2570
|
let contents = {};
|
|
@@ -2670,31 +2575,9 @@ var de_BatchApplyUpdateActionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2670
2575
|
};
|
|
2671
2576
|
return response;
|
|
2672
2577
|
}, "de_BatchApplyUpdateActionCommand");
|
|
2673
|
-
var de_BatchApplyUpdateActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2674
|
-
const parsedOutput = {
|
|
2675
|
-
...output,
|
|
2676
|
-
body: await parseErrorBody(output.body, context)
|
|
2677
|
-
};
|
|
2678
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2679
|
-
switch (errorCode) {
|
|
2680
|
-
case "InvalidParameterValue":
|
|
2681
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2682
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ServiceUpdateNotFoundFault":
|
|
2684
|
-
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
2685
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
2686
|
-
default:
|
|
2687
|
-
const parsedBody = parsedOutput.body;
|
|
2688
|
-
return throwDefaultError({
|
|
2689
|
-
output,
|
|
2690
|
-
parsedBody: parsedBody.Error,
|
|
2691
|
-
errorCode
|
|
2692
|
-
});
|
|
2693
|
-
}
|
|
2694
|
-
}, "de_BatchApplyUpdateActionCommandError");
|
|
2695
2578
|
var de_BatchStopUpdateActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2696
2579
|
if (output.statusCode >= 300) {
|
|
2697
|
-
return
|
|
2580
|
+
return de_CommandError(output, context);
|
|
2698
2581
|
}
|
|
2699
2582
|
const data = await parseBody(output.body, context);
|
|
2700
2583
|
let contents = {};
|
|
@@ -2705,31 +2588,9 @@ var de_BatchStopUpdateActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2705
2588
|
};
|
|
2706
2589
|
return response;
|
|
2707
2590
|
}, "de_BatchStopUpdateActionCommand");
|
|
2708
|
-
var de_BatchStopUpdateActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2709
|
-
const parsedOutput = {
|
|
2710
|
-
...output,
|
|
2711
|
-
body: await parseErrorBody(output.body, context)
|
|
2712
|
-
};
|
|
2713
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2714
|
-
switch (errorCode) {
|
|
2715
|
-
case "InvalidParameterValue":
|
|
2716
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2717
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ServiceUpdateNotFoundFault":
|
|
2719
|
-
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
2720
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
2721
|
-
default:
|
|
2722
|
-
const parsedBody = parsedOutput.body;
|
|
2723
|
-
return throwDefaultError({
|
|
2724
|
-
output,
|
|
2725
|
-
parsedBody: parsedBody.Error,
|
|
2726
|
-
errorCode
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
}, "de_BatchStopUpdateActionCommandError");
|
|
2730
2591
|
var de_CompleteMigrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2731
2592
|
if (output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
2593
|
+
return de_CommandError(output, context);
|
|
2733
2594
|
}
|
|
2734
2595
|
const data = await parseBody(output.body, context);
|
|
2735
2596
|
let contents = {};
|
|
@@ -2740,34 +2601,9 @@ var de_CompleteMigrationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2740
2601
|
};
|
|
2741
2602
|
return response;
|
|
2742
2603
|
}, "de_CompleteMigrationCommand");
|
|
2743
|
-
var de_CompleteMigrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2744
|
-
const parsedOutput = {
|
|
2745
|
-
...output,
|
|
2746
|
-
body: await parseErrorBody(output.body, context)
|
|
2747
|
-
};
|
|
2748
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2749
|
-
switch (errorCode) {
|
|
2750
|
-
case "InvalidReplicationGroupState":
|
|
2751
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
2752
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
2753
|
-
case "ReplicationGroupNotFoundFault":
|
|
2754
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
2755
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2756
|
-
case "ReplicationGroupNotUnderMigrationFault":
|
|
2757
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotUnderMigrationFault":
|
|
2758
|
-
throw await de_ReplicationGroupNotUnderMigrationFaultRes(parsedOutput, context);
|
|
2759
|
-
default:
|
|
2760
|
-
const parsedBody = parsedOutput.body;
|
|
2761
|
-
return throwDefaultError({
|
|
2762
|
-
output,
|
|
2763
|
-
parsedBody: parsedBody.Error,
|
|
2764
|
-
errorCode
|
|
2765
|
-
});
|
|
2766
|
-
}
|
|
2767
|
-
}, "de_CompleteMigrationCommandError");
|
|
2768
2604
|
var de_CopyServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2769
2605
|
if (output.statusCode >= 300) {
|
|
2770
|
-
return
|
|
2606
|
+
return de_CommandError(output, context);
|
|
2771
2607
|
}
|
|
2772
2608
|
const data = await parseBody(output.body, context);
|
|
2773
2609
|
let contents = {};
|
|
@@ -2778,49 +2614,9 @@ var de_CopyServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (output
|
|
|
2778
2614
|
};
|
|
2779
2615
|
return response;
|
|
2780
2616
|
}, "de_CopyServerlessCacheSnapshotCommand");
|
|
2781
|
-
var de_CopyServerlessCacheSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2782
|
-
const parsedOutput = {
|
|
2783
|
-
...output,
|
|
2784
|
-
body: await parseErrorBody(output.body, context)
|
|
2785
|
-
};
|
|
2786
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2787
|
-
switch (errorCode) {
|
|
2788
|
-
case "InvalidParameterCombination":
|
|
2789
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2790
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "InvalidParameterValue":
|
|
2792
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2793
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
2795
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
2796
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
2797
|
-
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
2798
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
2799
|
-
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
2800
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
2801
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
2802
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2803
|
-
case "ServerlessCacheSnapshotQuotaExceededFault":
|
|
2804
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotQuotaExceededFault":
|
|
2805
|
-
throw await de_ServerlessCacheSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
2806
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
2807
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
2808
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
2809
|
-
case "TagQuotaPerResourceExceeded":
|
|
2810
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
2811
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
2812
|
-
default:
|
|
2813
|
-
const parsedBody = parsedOutput.body;
|
|
2814
|
-
return throwDefaultError({
|
|
2815
|
-
output,
|
|
2816
|
-
parsedBody: parsedBody.Error,
|
|
2817
|
-
errorCode
|
|
2818
|
-
});
|
|
2819
|
-
}
|
|
2820
|
-
}, "de_CopyServerlessCacheSnapshotCommandError");
|
|
2821
2617
|
var de_CopySnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2822
2618
|
if (output.statusCode >= 300) {
|
|
2823
|
-
return
|
|
2619
|
+
return de_CommandError(output, context);
|
|
2824
2620
|
}
|
|
2825
2621
|
const data = await parseBody(output.body, context);
|
|
2826
2622
|
let contents = {};
|
|
@@ -2831,46 +2627,9 @@ var de_CopySnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2831
2627
|
};
|
|
2832
2628
|
return response;
|
|
2833
2629
|
}, "de_CopySnapshotCommand");
|
|
2834
|
-
var de_CopySnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2835
|
-
const parsedOutput = {
|
|
2836
|
-
...output,
|
|
2837
|
-
body: await parseErrorBody(output.body, context)
|
|
2838
|
-
};
|
|
2839
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2840
|
-
switch (errorCode) {
|
|
2841
|
-
case "InvalidParameterCombination":
|
|
2842
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2843
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "InvalidParameterValue":
|
|
2845
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2846
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "InvalidSnapshotState":
|
|
2848
|
-
case "com.amazonaws.elasticache#InvalidSnapshotStateFault":
|
|
2849
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
2850
|
-
case "SnapshotAlreadyExistsFault":
|
|
2851
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
2852
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
2853
|
-
case "SnapshotNotFoundFault":
|
|
2854
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
2855
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
2856
|
-
case "SnapshotQuotaExceededFault":
|
|
2857
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
2858
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
2859
|
-
case "TagQuotaPerResourceExceeded":
|
|
2860
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
2861
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
2862
|
-
default:
|
|
2863
|
-
const parsedBody = parsedOutput.body;
|
|
2864
|
-
return throwDefaultError({
|
|
2865
|
-
output,
|
|
2866
|
-
parsedBody: parsedBody.Error,
|
|
2867
|
-
errorCode
|
|
2868
|
-
});
|
|
2869
|
-
}
|
|
2870
|
-
}, "de_CopySnapshotCommandError");
|
|
2871
2630
|
var de_CreateCacheClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2872
2631
|
if (output.statusCode >= 300) {
|
|
2873
|
-
return
|
|
2632
|
+
return de_CommandError(output, context);
|
|
2874
2633
|
}
|
|
2875
2634
|
const data = await parseBody(output.body, context);
|
|
2876
2635
|
let contents = {};
|
|
@@ -2881,114 +2640,22 @@ var de_CreateCacheClusterCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2881
2640
|
};
|
|
2882
2641
|
return response;
|
|
2883
2642
|
}, "de_CreateCacheClusterCommand");
|
|
2884
|
-
var
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
case "CacheParameterGroupNotFound":
|
|
2895
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
2896
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
2897
|
-
case "CacheSecurityGroupNotFound":
|
|
2898
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
2899
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
2900
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
2901
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
2902
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2903
|
-
case "ClusterQuotaForCustomerExceeded":
|
|
2904
|
-
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
2905
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
2906
|
-
case "InsufficientCacheClusterCapacity":
|
|
2907
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
2908
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
2909
|
-
case "InvalidParameterCombination":
|
|
2910
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2911
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "InvalidParameterValue":
|
|
2913
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2914
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2915
|
-
case "InvalidReplicationGroupState":
|
|
2916
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
2917
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
2918
|
-
case "InvalidVPCNetworkStateFault":
|
|
2919
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
2920
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
2921
|
-
case "NodeQuotaForClusterExceeded":
|
|
2922
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
2923
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
2924
|
-
case "NodeQuotaForCustomerExceeded":
|
|
2925
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
2926
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
2927
|
-
case "ReplicationGroupNotFoundFault":
|
|
2928
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
2929
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
2930
|
-
case "TagQuotaPerResourceExceeded":
|
|
2931
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
2932
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
2933
|
-
default:
|
|
2934
|
-
const parsedBody = parsedOutput.body;
|
|
2935
|
-
return throwDefaultError({
|
|
2936
|
-
output,
|
|
2937
|
-
parsedBody: parsedBody.Error,
|
|
2938
|
-
errorCode
|
|
2939
|
-
});
|
|
2940
|
-
}
|
|
2941
|
-
}, "de_CreateCacheClusterCommandError");
|
|
2942
|
-
var de_CreateCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2943
|
-
if (output.statusCode >= 300) {
|
|
2944
|
-
return de_CreateCacheParameterGroupCommandError(output, context);
|
|
2945
|
-
}
|
|
2946
|
-
const data = await parseBody(output.body, context);
|
|
2947
|
-
let contents = {};
|
|
2948
|
-
contents = de_CreateCacheParameterGroupResult(data.CreateCacheParameterGroupResult, context);
|
|
2949
|
-
const response = {
|
|
2950
|
-
$metadata: deserializeMetadata(output),
|
|
2951
|
-
...contents
|
|
2643
|
+
var de_CreateCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2644
|
+
if (output.statusCode >= 300) {
|
|
2645
|
+
return de_CommandError(output, context);
|
|
2646
|
+
}
|
|
2647
|
+
const data = await parseBody(output.body, context);
|
|
2648
|
+
let contents = {};
|
|
2649
|
+
contents = de_CreateCacheParameterGroupResult(data.CreateCacheParameterGroupResult, context);
|
|
2650
|
+
const response = {
|
|
2651
|
+
$metadata: deserializeMetadata(output),
|
|
2652
|
+
...contents
|
|
2952
2653
|
};
|
|
2953
2654
|
return response;
|
|
2954
2655
|
}, "de_CreateCacheParameterGroupCommand");
|
|
2955
|
-
var de_CreateCacheParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2956
|
-
const parsedOutput = {
|
|
2957
|
-
...output,
|
|
2958
|
-
body: await parseErrorBody(output.body, context)
|
|
2959
|
-
};
|
|
2960
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2961
|
-
switch (errorCode) {
|
|
2962
|
-
case "CacheParameterGroupAlreadyExists":
|
|
2963
|
-
case "com.amazonaws.elasticache#CacheParameterGroupAlreadyExistsFault":
|
|
2964
|
-
throw await de_CacheParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
2965
|
-
case "CacheParameterGroupQuotaExceeded":
|
|
2966
|
-
case "com.amazonaws.elasticache#CacheParameterGroupQuotaExceededFault":
|
|
2967
|
-
throw await de_CacheParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
2968
|
-
case "InvalidCacheParameterGroupState":
|
|
2969
|
-
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
2970
|
-
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
2971
|
-
case "InvalidParameterCombination":
|
|
2972
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
2973
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "InvalidParameterValue":
|
|
2975
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
2976
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "TagQuotaPerResourceExceeded":
|
|
2978
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
2979
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
2980
|
-
default:
|
|
2981
|
-
const parsedBody = parsedOutput.body;
|
|
2982
|
-
return throwDefaultError({
|
|
2983
|
-
output,
|
|
2984
|
-
parsedBody: parsedBody.Error,
|
|
2985
|
-
errorCode
|
|
2986
|
-
});
|
|
2987
|
-
}
|
|
2988
|
-
}, "de_CreateCacheParameterGroupCommandError");
|
|
2989
2656
|
var de_CreateCacheSecurityGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2990
2657
|
if (output.statusCode >= 300) {
|
|
2991
|
-
return
|
|
2658
|
+
return de_CommandError(output, context);
|
|
2992
2659
|
}
|
|
2993
2660
|
const data = await parseBody(output.body, context);
|
|
2994
2661
|
let contents = {};
|
|
@@ -2999,40 +2666,9 @@ var de_CreateCacheSecurityGroupCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2999
2666
|
};
|
|
3000
2667
|
return response;
|
|
3001
2668
|
}, "de_CreateCacheSecurityGroupCommand");
|
|
3002
|
-
var de_CreateCacheSecurityGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3003
|
-
const parsedOutput = {
|
|
3004
|
-
...output,
|
|
3005
|
-
body: await parseErrorBody(output.body, context)
|
|
3006
|
-
};
|
|
3007
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3008
|
-
switch (errorCode) {
|
|
3009
|
-
case "CacheSecurityGroupAlreadyExists":
|
|
3010
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupAlreadyExistsFault":
|
|
3011
|
-
throw await de_CacheSecurityGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3012
|
-
case "InvalidParameterCombination":
|
|
3013
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3014
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "InvalidParameterValue":
|
|
3016
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3017
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "QuotaExceeded.CacheSecurityGroup":
|
|
3019
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupQuotaExceededFault":
|
|
3020
|
-
throw await de_CacheSecurityGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3021
|
-
case "TagQuotaPerResourceExceeded":
|
|
3022
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3023
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3024
|
-
default:
|
|
3025
|
-
const parsedBody = parsedOutput.body;
|
|
3026
|
-
return throwDefaultError({
|
|
3027
|
-
output,
|
|
3028
|
-
parsedBody: parsedBody.Error,
|
|
3029
|
-
errorCode
|
|
3030
|
-
});
|
|
3031
|
-
}
|
|
3032
|
-
}, "de_CreateCacheSecurityGroupCommandError");
|
|
3033
2669
|
var de_CreateCacheSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3034
2670
|
if (output.statusCode >= 300) {
|
|
3035
|
-
return
|
|
2671
|
+
return de_CommandError(output, context);
|
|
3036
2672
|
}
|
|
3037
2673
|
const data = await parseBody(output.body, context);
|
|
3038
2674
|
let contents = {};
|
|
@@ -3043,43 +2679,9 @@ var de_CreateCacheSubnetGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3043
2679
|
};
|
|
3044
2680
|
return response;
|
|
3045
2681
|
}, "de_CreateCacheSubnetGroupCommand");
|
|
3046
|
-
var de_CreateCacheSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3047
|
-
const parsedOutput = {
|
|
3048
|
-
...output,
|
|
3049
|
-
body: await parseErrorBody(output.body, context)
|
|
3050
|
-
};
|
|
3051
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3052
|
-
switch (errorCode) {
|
|
3053
|
-
case "CacheSubnetGroupAlreadyExists":
|
|
3054
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupAlreadyExistsFault":
|
|
3055
|
-
throw await de_CacheSubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3056
|
-
case "CacheSubnetGroupQuotaExceeded":
|
|
3057
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupQuotaExceededFault":
|
|
3058
|
-
throw await de_CacheSubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3059
|
-
case "CacheSubnetQuotaExceededFault":
|
|
3060
|
-
case "com.amazonaws.elasticache#CacheSubnetQuotaExceededFault":
|
|
3061
|
-
throw await de_CacheSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
3062
|
-
case "InvalidSubnet":
|
|
3063
|
-
case "com.amazonaws.elasticache#InvalidSubnet":
|
|
3064
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
3065
|
-
case "SubnetNotAllowedFault":
|
|
3066
|
-
case "com.amazonaws.elasticache#SubnetNotAllowedFault":
|
|
3067
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
3068
|
-
case "TagQuotaPerResourceExceeded":
|
|
3069
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3070
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3071
|
-
default:
|
|
3072
|
-
const parsedBody = parsedOutput.body;
|
|
3073
|
-
return throwDefaultError({
|
|
3074
|
-
output,
|
|
3075
|
-
parsedBody: parsedBody.Error,
|
|
3076
|
-
errorCode
|
|
3077
|
-
});
|
|
3078
|
-
}
|
|
3079
|
-
}, "de_CreateCacheSubnetGroupCommandError");
|
|
3080
2682
|
var de_CreateGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3081
2683
|
if (output.statusCode >= 300) {
|
|
3082
|
-
return
|
|
2684
|
+
return de_CommandError(output, context);
|
|
3083
2685
|
}
|
|
3084
2686
|
const data = await parseBody(output.body, context);
|
|
3085
2687
|
let contents = {};
|
|
@@ -3090,40 +2692,9 @@ var de_CreateGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3090
2692
|
};
|
|
3091
2693
|
return response;
|
|
3092
2694
|
}, "de_CreateGlobalReplicationGroupCommand");
|
|
3093
|
-
var de_CreateGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3094
|
-
const parsedOutput = {
|
|
3095
|
-
...output,
|
|
3096
|
-
body: await parseErrorBody(output.body, context)
|
|
3097
|
-
};
|
|
3098
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3099
|
-
switch (errorCode) {
|
|
3100
|
-
case "GlobalReplicationGroupAlreadyExistsFault":
|
|
3101
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupAlreadyExistsFault":
|
|
3102
|
-
throw await de_GlobalReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3103
|
-
case "InvalidParameterValue":
|
|
3104
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3105
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "InvalidReplicationGroupState":
|
|
3107
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3108
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3109
|
-
case "ReplicationGroupNotFoundFault":
|
|
3110
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3111
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3112
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3113
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3114
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3115
|
-
default:
|
|
3116
|
-
const parsedBody = parsedOutput.body;
|
|
3117
|
-
return throwDefaultError({
|
|
3118
|
-
output,
|
|
3119
|
-
parsedBody: parsedBody.Error,
|
|
3120
|
-
errorCode
|
|
3121
|
-
});
|
|
3122
|
-
}
|
|
3123
|
-
}, "de_CreateGlobalReplicationGroupCommandError");
|
|
3124
2695
|
var de_CreateReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3125
2696
|
if (output.statusCode >= 300) {
|
|
3126
|
-
return
|
|
2697
|
+
return de_CommandError(output, context);
|
|
3127
2698
|
}
|
|
3128
2699
|
const data = await parseBody(output.body, context);
|
|
3129
2700
|
let contents = {};
|
|
@@ -3134,82 +2705,9 @@ var de_CreateReplicationGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3134
2705
|
};
|
|
3135
2706
|
return response;
|
|
3136
2707
|
}, "de_CreateReplicationGroupCommand");
|
|
3137
|
-
var de_CreateReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3138
|
-
const parsedOutput = {
|
|
3139
|
-
...output,
|
|
3140
|
-
body: await parseErrorBody(output.body, context)
|
|
3141
|
-
};
|
|
3142
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3143
|
-
switch (errorCode) {
|
|
3144
|
-
case "CacheClusterNotFound":
|
|
3145
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3146
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3147
|
-
case "CacheParameterGroupNotFound":
|
|
3148
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3149
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3150
|
-
case "CacheSecurityGroupNotFound":
|
|
3151
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
3152
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
3153
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
3154
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
3155
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
3156
|
-
case "ClusterQuotaForCustomerExceeded":
|
|
3157
|
-
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
3158
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3159
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
3160
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
3161
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3162
|
-
case "InsufficientCacheClusterCapacity":
|
|
3163
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
3164
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
3165
|
-
case "InvalidCacheClusterState":
|
|
3166
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3167
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3168
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3169
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3170
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3171
|
-
case "InvalidParameterCombination":
|
|
3172
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3173
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "InvalidParameterValue":
|
|
3175
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3176
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "InvalidUserGroupState":
|
|
3178
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
3179
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
3180
|
-
case "InvalidVPCNetworkStateFault":
|
|
3181
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
3182
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
3183
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
3184
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
3185
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3186
|
-
case "NodeQuotaForClusterExceeded":
|
|
3187
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
3188
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
3189
|
-
case "NodeQuotaForCustomerExceeded":
|
|
3190
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
3191
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3192
|
-
case "ReplicationGroupAlreadyExists":
|
|
3193
|
-
case "com.amazonaws.elasticache#ReplicationGroupAlreadyExistsFault":
|
|
3194
|
-
throw await de_ReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3195
|
-
case "TagQuotaPerResourceExceeded":
|
|
3196
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3197
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3198
|
-
case "UserGroupNotFound":
|
|
3199
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
3200
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3201
|
-
default:
|
|
3202
|
-
const parsedBody = parsedOutput.body;
|
|
3203
|
-
return throwDefaultError({
|
|
3204
|
-
output,
|
|
3205
|
-
parsedBody: parsedBody.Error,
|
|
3206
|
-
errorCode
|
|
3207
|
-
});
|
|
3208
|
-
}
|
|
3209
|
-
}, "de_CreateReplicationGroupCommandError");
|
|
3210
2708
|
var de_CreateServerlessCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3211
2709
|
if (output.statusCode >= 300) {
|
|
3212
|
-
return
|
|
2710
|
+
return de_CommandError(output, context);
|
|
3213
2711
|
}
|
|
3214
2712
|
const data = await parseBody(output.body, context);
|
|
3215
2713
|
let contents = {};
|
|
@@ -3220,111 +2718,22 @@ var de_CreateServerlessCacheCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3220
2718
|
};
|
|
3221
2719
|
return response;
|
|
3222
2720
|
}, "de_CreateServerlessCacheCommand");
|
|
3223
|
-
var
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
case "InvalidParameterCombination":
|
|
3234
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3235
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "InvalidParameterValue":
|
|
3237
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3238
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "InvalidServerlessCacheStateFault":
|
|
3240
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
3241
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
3242
|
-
case "InvalidUserGroupState":
|
|
3243
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
3244
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
3245
|
-
case "ServerlessCacheAlreadyExistsFault":
|
|
3246
|
-
case "com.amazonaws.elasticache#ServerlessCacheAlreadyExistsFault":
|
|
3247
|
-
throw await de_ServerlessCacheAlreadyExistsFaultRes(parsedOutput, context);
|
|
3248
|
-
case "ServerlessCacheNotFoundFault":
|
|
3249
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
3250
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
3251
|
-
case "ServerlessCacheQuotaForCustomerExceededFault":
|
|
3252
|
-
case "com.amazonaws.elasticache#ServerlessCacheQuotaForCustomerExceededFault":
|
|
3253
|
-
throw await de_ServerlessCacheQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3254
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3255
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3256
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3257
|
-
case "TagQuotaPerResourceExceeded":
|
|
3258
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3259
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3260
|
-
case "UserGroupNotFound":
|
|
3261
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
3262
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3263
|
-
default:
|
|
3264
|
-
const parsedBody = parsedOutput.body;
|
|
3265
|
-
return throwDefaultError({
|
|
3266
|
-
output,
|
|
3267
|
-
parsedBody: parsedBody.Error,
|
|
3268
|
-
errorCode
|
|
3269
|
-
});
|
|
3270
|
-
}
|
|
3271
|
-
}, "de_CreateServerlessCacheCommandError");
|
|
3272
|
-
var de_CreateServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3273
|
-
if (output.statusCode >= 300) {
|
|
3274
|
-
return de_CreateServerlessCacheSnapshotCommandError(output, context);
|
|
3275
|
-
}
|
|
3276
|
-
const data = await parseBody(output.body, context);
|
|
3277
|
-
let contents = {};
|
|
3278
|
-
contents = de_CreateServerlessCacheSnapshotResponse(data.CreateServerlessCacheSnapshotResult, context);
|
|
3279
|
-
const response = {
|
|
3280
|
-
$metadata: deserializeMetadata(output),
|
|
3281
|
-
...contents
|
|
2721
|
+
var de_CreateServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2722
|
+
if (output.statusCode >= 300) {
|
|
2723
|
+
return de_CommandError(output, context);
|
|
2724
|
+
}
|
|
2725
|
+
const data = await parseBody(output.body, context);
|
|
2726
|
+
let contents = {};
|
|
2727
|
+
contents = de_CreateServerlessCacheSnapshotResponse(data.CreateServerlessCacheSnapshotResult, context);
|
|
2728
|
+
const response = {
|
|
2729
|
+
$metadata: deserializeMetadata(output),
|
|
2730
|
+
...contents
|
|
3282
2731
|
};
|
|
3283
2732
|
return response;
|
|
3284
2733
|
}, "de_CreateServerlessCacheSnapshotCommand");
|
|
3285
|
-
var de_CreateServerlessCacheSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3286
|
-
const parsedOutput = {
|
|
3287
|
-
...output,
|
|
3288
|
-
body: await parseErrorBody(output.body, context)
|
|
3289
|
-
};
|
|
3290
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3291
|
-
switch (errorCode) {
|
|
3292
|
-
case "InvalidParameterCombination":
|
|
3293
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3294
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "InvalidParameterValue":
|
|
3296
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3297
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "InvalidServerlessCacheStateFault":
|
|
3299
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
3300
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
3301
|
-
case "ServerlessCacheNotFoundFault":
|
|
3302
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
3303
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
3304
|
-
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
3305
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
3306
|
-
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
3307
|
-
case "ServerlessCacheSnapshotQuotaExceededFault":
|
|
3308
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotQuotaExceededFault":
|
|
3309
|
-
throw await de_ServerlessCacheSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
3310
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3311
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3312
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3313
|
-
case "TagQuotaPerResourceExceeded":
|
|
3314
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3315
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3316
|
-
default:
|
|
3317
|
-
const parsedBody = parsedOutput.body;
|
|
3318
|
-
return throwDefaultError({
|
|
3319
|
-
output,
|
|
3320
|
-
parsedBody: parsedBody.Error,
|
|
3321
|
-
errorCode
|
|
3322
|
-
});
|
|
3323
|
-
}
|
|
3324
|
-
}, "de_CreateServerlessCacheSnapshotCommandError");
|
|
3325
2734
|
var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3326
2735
|
if (output.statusCode >= 300) {
|
|
3327
|
-
return
|
|
2736
|
+
return de_CommandError(output, context);
|
|
3328
2737
|
}
|
|
3329
2738
|
const data = await parseBody(output.body, context);
|
|
3330
2739
|
let contents = {};
|
|
@@ -3335,55 +2744,9 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3335
2744
|
};
|
|
3336
2745
|
return response;
|
|
3337
2746
|
}, "de_CreateSnapshotCommand");
|
|
3338
|
-
var de_CreateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3339
|
-
const parsedOutput = {
|
|
3340
|
-
...output,
|
|
3341
|
-
body: await parseErrorBody(output.body, context)
|
|
3342
|
-
};
|
|
3343
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3344
|
-
switch (errorCode) {
|
|
3345
|
-
case "CacheClusterNotFound":
|
|
3346
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3347
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3348
|
-
case "InvalidCacheClusterState":
|
|
3349
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3350
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3351
|
-
case "InvalidParameterCombination":
|
|
3352
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3353
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "InvalidParameterValue":
|
|
3355
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3356
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "InvalidReplicationGroupState":
|
|
3358
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3359
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3360
|
-
case "ReplicationGroupNotFoundFault":
|
|
3361
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3362
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3363
|
-
case "SnapshotAlreadyExistsFault":
|
|
3364
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
3365
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
3366
|
-
case "SnapshotFeatureNotSupportedFault":
|
|
3367
|
-
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
3368
|
-
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
3369
|
-
case "SnapshotQuotaExceededFault":
|
|
3370
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
3371
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
3372
|
-
case "TagQuotaPerResourceExceeded":
|
|
3373
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3374
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3375
|
-
default:
|
|
3376
|
-
const parsedBody = parsedOutput.body;
|
|
3377
|
-
return throwDefaultError({
|
|
3378
|
-
output,
|
|
3379
|
-
parsedBody: parsedBody.Error,
|
|
3380
|
-
errorCode
|
|
3381
|
-
});
|
|
3382
|
-
}
|
|
3383
|
-
}, "de_CreateSnapshotCommandError");
|
|
3384
2747
|
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3385
2748
|
if (output.statusCode >= 300) {
|
|
3386
|
-
return
|
|
2749
|
+
return de_CommandError(output, context);
|
|
3387
2750
|
}
|
|
3388
2751
|
const data = await parseBody(output.body, context);
|
|
3389
2752
|
let contents = {};
|
|
@@ -3394,46 +2757,9 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3394
2757
|
};
|
|
3395
2758
|
return response;
|
|
3396
2759
|
}, "de_CreateUserCommand");
|
|
3397
|
-
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3398
|
-
const parsedOutput = {
|
|
3399
|
-
...output,
|
|
3400
|
-
body: await parseErrorBody(output.body, context)
|
|
3401
|
-
};
|
|
3402
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3403
|
-
switch (errorCode) {
|
|
3404
|
-
case "DuplicateUserName":
|
|
3405
|
-
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
3406
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
3407
|
-
case "InvalidParameterCombination":
|
|
3408
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3409
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3410
|
-
case "InvalidParameterValue":
|
|
3411
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3412
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3413
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3414
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3415
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3416
|
-
case "TagQuotaPerResourceExceeded":
|
|
3417
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3418
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3419
|
-
case "UserAlreadyExists":
|
|
3420
|
-
case "com.amazonaws.elasticache#UserAlreadyExistsFault":
|
|
3421
|
-
throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
|
|
3422
|
-
case "UserQuotaExceeded":
|
|
3423
|
-
case "com.amazonaws.elasticache#UserQuotaExceededFault":
|
|
3424
|
-
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
3425
|
-
default:
|
|
3426
|
-
const parsedBody = parsedOutput.body;
|
|
3427
|
-
return throwDefaultError({
|
|
3428
|
-
output,
|
|
3429
|
-
parsedBody: parsedBody.Error,
|
|
3430
|
-
errorCode
|
|
3431
|
-
});
|
|
3432
|
-
}
|
|
3433
|
-
}, "de_CreateUserCommandError");
|
|
3434
2760
|
var de_CreateUserGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3435
2761
|
if (output.statusCode >= 300) {
|
|
3436
|
-
return
|
|
2762
|
+
return de_CommandError(output, context);
|
|
3437
2763
|
}
|
|
3438
2764
|
const data = await parseBody(output.body, context);
|
|
3439
2765
|
let contents = {};
|
|
@@ -3444,49 +2770,9 @@ var de_CreateUserGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3444
2770
|
};
|
|
3445
2771
|
return response;
|
|
3446
2772
|
}, "de_CreateUserGroupCommand");
|
|
3447
|
-
var de_CreateUserGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3448
|
-
const parsedOutput = {
|
|
3449
|
-
...output,
|
|
3450
|
-
body: await parseErrorBody(output.body, context)
|
|
3451
|
-
};
|
|
3452
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3453
|
-
switch (errorCode) {
|
|
3454
|
-
case "DefaultUserRequired":
|
|
3455
|
-
case "com.amazonaws.elasticache#DefaultUserRequired":
|
|
3456
|
-
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
3457
|
-
case "DuplicateUserName":
|
|
3458
|
-
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
3459
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
3460
|
-
case "InvalidParameterValue":
|
|
3461
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3462
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3463
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3464
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3465
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3466
|
-
case "TagQuotaPerResourceExceeded":
|
|
3467
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3468
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3469
|
-
case "UserGroupAlreadyExists":
|
|
3470
|
-
case "com.amazonaws.elasticache#UserGroupAlreadyExistsFault":
|
|
3471
|
-
throw await de_UserGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3472
|
-
case "UserGroupQuotaExceeded":
|
|
3473
|
-
case "com.amazonaws.elasticache#UserGroupQuotaExceededFault":
|
|
3474
|
-
throw await de_UserGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3475
|
-
case "UserNotFound":
|
|
3476
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
3477
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3478
|
-
default:
|
|
3479
|
-
const parsedBody = parsedOutput.body;
|
|
3480
|
-
return throwDefaultError({
|
|
3481
|
-
output,
|
|
3482
|
-
parsedBody: parsedBody.Error,
|
|
3483
|
-
errorCode
|
|
3484
|
-
});
|
|
3485
|
-
}
|
|
3486
|
-
}, "de_CreateUserGroupCommandError");
|
|
3487
2773
|
var de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3488
2774
|
if (output.statusCode >= 300) {
|
|
3489
|
-
return
|
|
2775
|
+
return de_CommandError(output, context);
|
|
3490
2776
|
}
|
|
3491
2777
|
const data = await parseBody(output.body, context);
|
|
3492
2778
|
let contents = {};
|
|
@@ -3500,37 +2786,9 @@ var de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = /* @__PURE__ */ __nam
|
|
|
3500
2786
|
};
|
|
3501
2787
|
return response;
|
|
3502
2788
|
}, "de_DecreaseNodeGroupsInGlobalReplicationGroupCommand");
|
|
3503
|
-
var de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3504
|
-
const parsedOutput = {
|
|
3505
|
-
...output,
|
|
3506
|
-
body: await parseErrorBody(output.body, context)
|
|
3507
|
-
};
|
|
3508
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3509
|
-
switch (errorCode) {
|
|
3510
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
3511
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
3512
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3513
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3514
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3515
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3516
|
-
case "InvalidParameterCombination":
|
|
3517
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3518
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3519
|
-
case "InvalidParameterValue":
|
|
3520
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3521
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3522
|
-
default:
|
|
3523
|
-
const parsedBody = parsedOutput.body;
|
|
3524
|
-
return throwDefaultError({
|
|
3525
|
-
output,
|
|
3526
|
-
parsedBody: parsedBody.Error,
|
|
3527
|
-
errorCode
|
|
3528
|
-
});
|
|
3529
|
-
}
|
|
3530
|
-
}, "de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError");
|
|
3531
2789
|
var de_DecreaseReplicaCountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3532
2790
|
if (output.statusCode >= 300) {
|
|
3533
|
-
return
|
|
2791
|
+
return de_CommandError(output, context);
|
|
3534
2792
|
}
|
|
3535
2793
|
const data = await parseBody(output.body, context);
|
|
3536
2794
|
let contents = {};
|
|
@@ -3541,111 +2799,22 @@ var de_DecreaseReplicaCountCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3541
2799
|
};
|
|
3542
2800
|
return response;
|
|
3543
2801
|
}, "de_DecreaseReplicaCountCommand");
|
|
3544
|
-
var
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
case "InsufficientCacheClusterCapacity":
|
|
3555
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
3556
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
3557
|
-
case "InvalidCacheClusterState":
|
|
3558
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3559
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3560
|
-
case "InvalidParameterCombination":
|
|
3561
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3562
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3563
|
-
case "InvalidParameterValue":
|
|
3564
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3565
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3566
|
-
case "InvalidReplicationGroupState":
|
|
3567
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3568
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3569
|
-
case "InvalidVPCNetworkStateFault":
|
|
3570
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
3571
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
3572
|
-
case "NoOperationFault":
|
|
3573
|
-
case "com.amazonaws.elasticache#NoOperationFault":
|
|
3574
|
-
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
3575
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
3576
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
3577
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3578
|
-
case "NodeQuotaForCustomerExceeded":
|
|
3579
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
3580
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3581
|
-
case "ReplicationGroupNotFoundFault":
|
|
3582
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3583
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3584
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3585
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3586
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3587
|
-
default:
|
|
3588
|
-
const parsedBody = parsedOutput.body;
|
|
3589
|
-
return throwDefaultError({
|
|
3590
|
-
output,
|
|
3591
|
-
parsedBody: parsedBody.Error,
|
|
3592
|
-
errorCode
|
|
3593
|
-
});
|
|
3594
|
-
}
|
|
3595
|
-
}, "de_DecreaseReplicaCountCommandError");
|
|
3596
|
-
var de_DeleteCacheClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3597
|
-
if (output.statusCode >= 300) {
|
|
3598
|
-
return de_DeleteCacheClusterCommandError(output, context);
|
|
3599
|
-
}
|
|
3600
|
-
const data = await parseBody(output.body, context);
|
|
3601
|
-
let contents = {};
|
|
3602
|
-
contents = de_DeleteCacheClusterResult(data.DeleteCacheClusterResult, context);
|
|
3603
|
-
const response = {
|
|
3604
|
-
$metadata: deserializeMetadata(output),
|
|
3605
|
-
...contents
|
|
2802
|
+
var de_DeleteCacheClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2803
|
+
if (output.statusCode >= 300) {
|
|
2804
|
+
return de_CommandError(output, context);
|
|
2805
|
+
}
|
|
2806
|
+
const data = await parseBody(output.body, context);
|
|
2807
|
+
let contents = {};
|
|
2808
|
+
contents = de_DeleteCacheClusterResult(data.DeleteCacheClusterResult, context);
|
|
2809
|
+
const response = {
|
|
2810
|
+
$metadata: deserializeMetadata(output),
|
|
2811
|
+
...contents
|
|
3606
2812
|
};
|
|
3607
2813
|
return response;
|
|
3608
2814
|
}, "de_DeleteCacheClusterCommand");
|
|
3609
|
-
var de_DeleteCacheClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3610
|
-
const parsedOutput = {
|
|
3611
|
-
...output,
|
|
3612
|
-
body: await parseErrorBody(output.body, context)
|
|
3613
|
-
};
|
|
3614
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3615
|
-
switch (errorCode) {
|
|
3616
|
-
case "CacheClusterNotFound":
|
|
3617
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3618
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3619
|
-
case "InvalidCacheClusterState":
|
|
3620
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3621
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3622
|
-
case "InvalidParameterCombination":
|
|
3623
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3624
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "InvalidParameterValue":
|
|
3626
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3627
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "SnapshotAlreadyExistsFault":
|
|
3629
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
3630
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
3631
|
-
case "SnapshotFeatureNotSupportedFault":
|
|
3632
|
-
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
3633
|
-
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
3634
|
-
case "SnapshotQuotaExceededFault":
|
|
3635
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
3636
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
3637
|
-
default:
|
|
3638
|
-
const parsedBody = parsedOutput.body;
|
|
3639
|
-
return throwDefaultError({
|
|
3640
|
-
output,
|
|
3641
|
-
parsedBody: parsedBody.Error,
|
|
3642
|
-
errorCode
|
|
3643
|
-
});
|
|
3644
|
-
}
|
|
3645
|
-
}, "de_DeleteCacheClusterCommandError");
|
|
3646
2815
|
var de_DeleteCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3647
2816
|
if (output.statusCode >= 300) {
|
|
3648
|
-
return
|
|
2817
|
+
return de_CommandError(output, context);
|
|
3649
2818
|
}
|
|
3650
2819
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3651
2820
|
const response = {
|
|
@@ -3653,37 +2822,9 @@ var de_DeleteCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3653
2822
|
};
|
|
3654
2823
|
return response;
|
|
3655
2824
|
}, "de_DeleteCacheParameterGroupCommand");
|
|
3656
|
-
var de_DeleteCacheParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3657
|
-
const parsedOutput = {
|
|
3658
|
-
...output,
|
|
3659
|
-
body: await parseErrorBody(output.body, context)
|
|
3660
|
-
};
|
|
3661
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3662
|
-
switch (errorCode) {
|
|
3663
|
-
case "CacheParameterGroupNotFound":
|
|
3664
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3665
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3666
|
-
case "InvalidCacheParameterGroupState":
|
|
3667
|
-
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
3668
|
-
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
3669
|
-
case "InvalidParameterCombination":
|
|
3670
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3671
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3672
|
-
case "InvalidParameterValue":
|
|
3673
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3674
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3675
|
-
default:
|
|
3676
|
-
const parsedBody = parsedOutput.body;
|
|
3677
|
-
return throwDefaultError({
|
|
3678
|
-
output,
|
|
3679
|
-
parsedBody: parsedBody.Error,
|
|
3680
|
-
errorCode
|
|
3681
|
-
});
|
|
3682
|
-
}
|
|
3683
|
-
}, "de_DeleteCacheParameterGroupCommandError");
|
|
3684
2825
|
var de_DeleteCacheSecurityGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3685
2826
|
if (output.statusCode >= 300) {
|
|
3686
|
-
return
|
|
2827
|
+
return de_CommandError(output, context);
|
|
3687
2828
|
}
|
|
3688
2829
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3689
2830
|
const response = {
|
|
@@ -3691,37 +2832,9 @@ var de_DeleteCacheSecurityGroupCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3691
2832
|
};
|
|
3692
2833
|
return response;
|
|
3693
2834
|
}, "de_DeleteCacheSecurityGroupCommand");
|
|
3694
|
-
var de_DeleteCacheSecurityGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3695
|
-
const parsedOutput = {
|
|
3696
|
-
...output,
|
|
3697
|
-
body: await parseErrorBody(output.body, context)
|
|
3698
|
-
};
|
|
3699
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3700
|
-
switch (errorCode) {
|
|
3701
|
-
case "CacheSecurityGroupNotFound":
|
|
3702
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
3703
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
3704
|
-
case "InvalidCacheSecurityGroupState":
|
|
3705
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
3706
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
3707
|
-
case "InvalidParameterCombination":
|
|
3708
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3709
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3710
|
-
case "InvalidParameterValue":
|
|
3711
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3712
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3713
|
-
default:
|
|
3714
|
-
const parsedBody = parsedOutput.body;
|
|
3715
|
-
return throwDefaultError({
|
|
3716
|
-
output,
|
|
3717
|
-
parsedBody: parsedBody.Error,
|
|
3718
|
-
errorCode
|
|
3719
|
-
});
|
|
3720
|
-
}
|
|
3721
|
-
}, "de_DeleteCacheSecurityGroupCommandError");
|
|
3722
2835
|
var de_DeleteCacheSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3723
2836
|
if (output.statusCode >= 300) {
|
|
3724
|
-
return
|
|
2837
|
+
return de_CommandError(output, context);
|
|
3725
2838
|
}
|
|
3726
2839
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3727
2840
|
const response = {
|
|
@@ -3729,31 +2842,9 @@ var de_DeleteCacheSubnetGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3729
2842
|
};
|
|
3730
2843
|
return response;
|
|
3731
2844
|
}, "de_DeleteCacheSubnetGroupCommand");
|
|
3732
|
-
var de_DeleteCacheSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3733
|
-
const parsedOutput = {
|
|
3734
|
-
...output,
|
|
3735
|
-
body: await parseErrorBody(output.body, context)
|
|
3736
|
-
};
|
|
3737
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3738
|
-
switch (errorCode) {
|
|
3739
|
-
case "CacheSubnetGroupInUse":
|
|
3740
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupInUse":
|
|
3741
|
-
throw await de_CacheSubnetGroupInUseRes(parsedOutput, context);
|
|
3742
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
3743
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
3744
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
3745
|
-
default:
|
|
3746
|
-
const parsedBody = parsedOutput.body;
|
|
3747
|
-
return throwDefaultError({
|
|
3748
|
-
output,
|
|
3749
|
-
parsedBody: parsedBody.Error,
|
|
3750
|
-
errorCode
|
|
3751
|
-
});
|
|
3752
|
-
}
|
|
3753
|
-
}, "de_DeleteCacheSubnetGroupCommandError");
|
|
3754
2845
|
var de_DeleteGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3755
2846
|
if (output.statusCode >= 300) {
|
|
3756
|
-
return
|
|
2847
|
+
return de_CommandError(output, context);
|
|
3757
2848
|
}
|
|
3758
2849
|
const data = await parseBody(output.body, context);
|
|
3759
2850
|
let contents = {};
|
|
@@ -3764,34 +2855,9 @@ var de_DeleteGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3764
2855
|
};
|
|
3765
2856
|
return response;
|
|
3766
2857
|
}, "de_DeleteGlobalReplicationGroupCommand");
|
|
3767
|
-
var de_DeleteGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3768
|
-
const parsedOutput = {
|
|
3769
|
-
...output,
|
|
3770
|
-
body: await parseErrorBody(output.body, context)
|
|
3771
|
-
};
|
|
3772
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3773
|
-
switch (errorCode) {
|
|
3774
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
3775
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
3776
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3777
|
-
case "InvalidGlobalReplicationGroupState":
|
|
3778
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3779
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3780
|
-
case "InvalidParameterValue":
|
|
3781
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3782
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3783
|
-
default:
|
|
3784
|
-
const parsedBody = parsedOutput.body;
|
|
3785
|
-
return throwDefaultError({
|
|
3786
|
-
output,
|
|
3787
|
-
parsedBody: parsedBody.Error,
|
|
3788
|
-
errorCode
|
|
3789
|
-
});
|
|
3790
|
-
}
|
|
3791
|
-
}, "de_DeleteGlobalReplicationGroupCommandError");
|
|
3792
2858
|
var de_DeleteReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3793
2859
|
if (output.statusCode >= 300) {
|
|
3794
|
-
return
|
|
2860
|
+
return de_CommandError(output, context);
|
|
3795
2861
|
}
|
|
3796
2862
|
const data = await parseBody(output.body, context);
|
|
3797
2863
|
let contents = {};
|
|
@@ -3802,46 +2868,9 @@ var de_DeleteReplicationGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3802
2868
|
};
|
|
3803
2869
|
return response;
|
|
3804
2870
|
}, "de_DeleteReplicationGroupCommand");
|
|
3805
|
-
var de_DeleteReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3806
|
-
const parsedOutput = {
|
|
3807
|
-
...output,
|
|
3808
|
-
body: await parseErrorBody(output.body, context)
|
|
3809
|
-
};
|
|
3810
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3811
|
-
switch (errorCode) {
|
|
3812
|
-
case "InvalidParameterCombination":
|
|
3813
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3814
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3815
|
-
case "InvalidParameterValue":
|
|
3816
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3817
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3818
|
-
case "InvalidReplicationGroupState":
|
|
3819
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3820
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3821
|
-
case "ReplicationGroupNotFoundFault":
|
|
3822
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3823
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3824
|
-
case "SnapshotAlreadyExistsFault":
|
|
3825
|
-
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
3826
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
3827
|
-
case "SnapshotFeatureNotSupportedFault":
|
|
3828
|
-
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
3829
|
-
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
3830
|
-
case "SnapshotQuotaExceededFault":
|
|
3831
|
-
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
3832
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
3833
|
-
default:
|
|
3834
|
-
const parsedBody = parsedOutput.body;
|
|
3835
|
-
return throwDefaultError({
|
|
3836
|
-
output,
|
|
3837
|
-
parsedBody: parsedBody.Error,
|
|
3838
|
-
errorCode
|
|
3839
|
-
});
|
|
3840
|
-
}
|
|
3841
|
-
}, "de_DeleteReplicationGroupCommandError");
|
|
3842
2871
|
var de_DeleteServerlessCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3843
2872
|
if (output.statusCode >= 300) {
|
|
3844
|
-
return
|
|
2873
|
+
return de_CommandError(output, context);
|
|
3845
2874
|
}
|
|
3846
2875
|
const data = await parseBody(output.body, context);
|
|
3847
2876
|
let contents = {};
|
|
@@ -3852,46 +2881,9 @@ var de_DeleteServerlessCacheCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3852
2881
|
};
|
|
3853
2882
|
return response;
|
|
3854
2883
|
}, "de_DeleteServerlessCacheCommand");
|
|
3855
|
-
var de_DeleteServerlessCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3856
|
-
const parsedOutput = {
|
|
3857
|
-
...output,
|
|
3858
|
-
body: await parseErrorBody(output.body, context)
|
|
3859
|
-
};
|
|
3860
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3861
|
-
switch (errorCode) {
|
|
3862
|
-
case "InvalidCredentialsException":
|
|
3863
|
-
case "com.amazonaws.elasticache#InvalidCredentialsException":
|
|
3864
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
3865
|
-
case "InvalidParameterCombination":
|
|
3866
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3867
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3868
|
-
case "InvalidParameterValue":
|
|
3869
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3870
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3871
|
-
case "InvalidServerlessCacheStateFault":
|
|
3872
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
3873
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
3874
|
-
case "ServerlessCacheNotFoundFault":
|
|
3875
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
3876
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
3877
|
-
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
3878
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
3879
|
-
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
3880
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3881
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3882
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3883
|
-
default:
|
|
3884
|
-
const parsedBody = parsedOutput.body;
|
|
3885
|
-
return throwDefaultError({
|
|
3886
|
-
output,
|
|
3887
|
-
parsedBody: parsedBody.Error,
|
|
3888
|
-
errorCode
|
|
3889
|
-
});
|
|
3890
|
-
}
|
|
3891
|
-
}, "de_DeleteServerlessCacheCommandError");
|
|
3892
2884
|
var de_DeleteServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3893
2885
|
if (output.statusCode >= 300) {
|
|
3894
|
-
return
|
|
2886
|
+
return de_CommandError(output, context);
|
|
3895
2887
|
}
|
|
3896
2888
|
const data = await parseBody(output.body, context);
|
|
3897
2889
|
let contents = {};
|
|
@@ -3902,78 +2894,22 @@ var de_DeleteServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3902
2894
|
};
|
|
3903
2895
|
return response;
|
|
3904
2896
|
}, "de_DeleteServerlessCacheSnapshotCommand");
|
|
3905
|
-
var
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
3916
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
3917
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
3918
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
3919
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
3920
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3921
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
3922
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3923
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3924
|
-
default:
|
|
3925
|
-
const parsedBody = parsedOutput.body;
|
|
3926
|
-
return throwDefaultError({
|
|
3927
|
-
output,
|
|
3928
|
-
parsedBody: parsedBody.Error,
|
|
3929
|
-
errorCode
|
|
3930
|
-
});
|
|
3931
|
-
}
|
|
3932
|
-
}, "de_DeleteServerlessCacheSnapshotCommandError");
|
|
3933
|
-
var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3934
|
-
if (output.statusCode >= 300) {
|
|
3935
|
-
return de_DeleteSnapshotCommandError(output, context);
|
|
3936
|
-
}
|
|
3937
|
-
const data = await parseBody(output.body, context);
|
|
3938
|
-
let contents = {};
|
|
3939
|
-
contents = de_DeleteSnapshotResult(data.DeleteSnapshotResult, context);
|
|
3940
|
-
const response = {
|
|
3941
|
-
$metadata: deserializeMetadata(output),
|
|
3942
|
-
...contents
|
|
2897
|
+
var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2898
|
+
if (output.statusCode >= 300) {
|
|
2899
|
+
return de_CommandError(output, context);
|
|
2900
|
+
}
|
|
2901
|
+
const data = await parseBody(output.body, context);
|
|
2902
|
+
let contents = {};
|
|
2903
|
+
contents = de_DeleteSnapshotResult(data.DeleteSnapshotResult, context);
|
|
2904
|
+
const response = {
|
|
2905
|
+
$metadata: deserializeMetadata(output),
|
|
2906
|
+
...contents
|
|
3943
2907
|
};
|
|
3944
2908
|
return response;
|
|
3945
2909
|
}, "de_DeleteSnapshotCommand");
|
|
3946
|
-
var de_DeleteSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3947
|
-
const parsedOutput = {
|
|
3948
|
-
...output,
|
|
3949
|
-
body: await parseErrorBody(output.body, context)
|
|
3950
|
-
};
|
|
3951
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3952
|
-
switch (errorCode) {
|
|
3953
|
-
case "InvalidParameterCombination":
|
|
3954
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3955
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3956
|
-
case "InvalidParameterValue":
|
|
3957
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3958
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3959
|
-
case "InvalidSnapshotState":
|
|
3960
|
-
case "com.amazonaws.elasticache#InvalidSnapshotStateFault":
|
|
3961
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
3962
|
-
case "SnapshotNotFoundFault":
|
|
3963
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
3964
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3965
|
-
default:
|
|
3966
|
-
const parsedBody = parsedOutput.body;
|
|
3967
|
-
return throwDefaultError({
|
|
3968
|
-
output,
|
|
3969
|
-
parsedBody: parsedBody.Error,
|
|
3970
|
-
errorCode
|
|
3971
|
-
});
|
|
3972
|
-
}
|
|
3973
|
-
}, "de_DeleteSnapshotCommandError");
|
|
3974
2910
|
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3975
2911
|
if (output.statusCode >= 300) {
|
|
3976
|
-
return
|
|
2912
|
+
return de_CommandError(output, context);
|
|
3977
2913
|
}
|
|
3978
2914
|
const data = await parseBody(output.body, context);
|
|
3979
2915
|
let contents = {};
|
|
@@ -3984,40 +2920,9 @@ var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3984
2920
|
};
|
|
3985
2921
|
return response;
|
|
3986
2922
|
}, "de_DeleteUserCommand");
|
|
3987
|
-
var de_DeleteUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3988
|
-
const parsedOutput = {
|
|
3989
|
-
...output,
|
|
3990
|
-
body: await parseErrorBody(output.body, context)
|
|
3991
|
-
};
|
|
3992
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3993
|
-
switch (errorCode) {
|
|
3994
|
-
case "DefaultUserAssociatedToUserGroup":
|
|
3995
|
-
case "com.amazonaws.elasticache#DefaultUserAssociatedToUserGroupFault":
|
|
3996
|
-
throw await de_DefaultUserAssociatedToUserGroupFaultRes(parsedOutput, context);
|
|
3997
|
-
case "InvalidParameterValue":
|
|
3998
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3999
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4000
|
-
case "InvalidUserState":
|
|
4001
|
-
case "com.amazonaws.elasticache#InvalidUserStateFault":
|
|
4002
|
-
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
4003
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
4004
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
4005
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
4006
|
-
case "UserNotFound":
|
|
4007
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
4008
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
4009
|
-
default:
|
|
4010
|
-
const parsedBody = parsedOutput.body;
|
|
4011
|
-
return throwDefaultError({
|
|
4012
|
-
output,
|
|
4013
|
-
parsedBody: parsedBody.Error,
|
|
4014
|
-
errorCode
|
|
4015
|
-
});
|
|
4016
|
-
}
|
|
4017
|
-
}, "de_DeleteUserCommandError");
|
|
4018
2923
|
var de_DeleteUserGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4019
2924
|
if (output.statusCode >= 300) {
|
|
4020
|
-
return
|
|
2925
|
+
return de_CommandError(output, context);
|
|
4021
2926
|
}
|
|
4022
2927
|
const data = await parseBody(output.body, context);
|
|
4023
2928
|
let contents = {};
|
|
@@ -4028,37 +2933,9 @@ var de_DeleteUserGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4028
2933
|
};
|
|
4029
2934
|
return response;
|
|
4030
2935
|
}, "de_DeleteUserGroupCommand");
|
|
4031
|
-
var de_DeleteUserGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4032
|
-
const parsedOutput = {
|
|
4033
|
-
...output,
|
|
4034
|
-
body: await parseErrorBody(output.body, context)
|
|
4035
|
-
};
|
|
4036
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4037
|
-
switch (errorCode) {
|
|
4038
|
-
case "InvalidParameterValue":
|
|
4039
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4040
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4041
|
-
case "InvalidUserGroupState":
|
|
4042
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
4043
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
4044
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
4045
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
4046
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
4047
|
-
case "UserGroupNotFound":
|
|
4048
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
4049
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
4050
|
-
default:
|
|
4051
|
-
const parsedBody = parsedOutput.body;
|
|
4052
|
-
return throwDefaultError({
|
|
4053
|
-
output,
|
|
4054
|
-
parsedBody: parsedBody.Error,
|
|
4055
|
-
errorCode
|
|
4056
|
-
});
|
|
4057
|
-
}
|
|
4058
|
-
}, "de_DeleteUserGroupCommandError");
|
|
4059
2936
|
var de_DescribeCacheClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4060
2937
|
if (output.statusCode >= 300) {
|
|
4061
|
-
return
|
|
2938
|
+
return de_CommandError(output, context);
|
|
4062
2939
|
}
|
|
4063
2940
|
const data = await parseBody(output.body, context);
|
|
4064
2941
|
let contents = {};
|
|
@@ -4069,34 +2946,9 @@ var de_DescribeCacheClustersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4069
2946
|
};
|
|
4070
2947
|
return response;
|
|
4071
2948
|
}, "de_DescribeCacheClustersCommand");
|
|
4072
|
-
var de_DescribeCacheClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4073
|
-
const parsedOutput = {
|
|
4074
|
-
...output,
|
|
4075
|
-
body: await parseErrorBody(output.body, context)
|
|
4076
|
-
};
|
|
4077
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4078
|
-
switch (errorCode) {
|
|
4079
|
-
case "CacheClusterNotFound":
|
|
4080
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
4081
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
4082
|
-
case "InvalidParameterCombination":
|
|
4083
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4084
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4085
|
-
case "InvalidParameterValue":
|
|
4086
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4087
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4088
|
-
default:
|
|
4089
|
-
const parsedBody = parsedOutput.body;
|
|
4090
|
-
return throwDefaultError({
|
|
4091
|
-
output,
|
|
4092
|
-
parsedBody: parsedBody.Error,
|
|
4093
|
-
errorCode
|
|
4094
|
-
});
|
|
4095
|
-
}
|
|
4096
|
-
}, "de_DescribeCacheClustersCommandError");
|
|
4097
2949
|
var de_DescribeCacheEngineVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4098
2950
|
if (output.statusCode >= 300) {
|
|
4099
|
-
return
|
|
2951
|
+
return de_CommandError(output, context);
|
|
4100
2952
|
}
|
|
4101
2953
|
const data = await parseBody(output.body, context);
|
|
4102
2954
|
let contents = {};
|
|
@@ -4107,22 +2959,9 @@ var de_DescribeCacheEngineVersionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
4107
2959
|
};
|
|
4108
2960
|
return response;
|
|
4109
2961
|
}, "de_DescribeCacheEngineVersionsCommand");
|
|
4110
|
-
var de_DescribeCacheEngineVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4111
|
-
const parsedOutput = {
|
|
4112
|
-
...output,
|
|
4113
|
-
body: await parseErrorBody(output.body, context)
|
|
4114
|
-
};
|
|
4115
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4116
|
-
const parsedBody = parsedOutput.body;
|
|
4117
|
-
return throwDefaultError({
|
|
4118
|
-
output,
|
|
4119
|
-
parsedBody: parsedBody.Error,
|
|
4120
|
-
errorCode
|
|
4121
|
-
});
|
|
4122
|
-
}, "de_DescribeCacheEngineVersionsCommandError");
|
|
4123
2962
|
var de_DescribeCacheParameterGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4124
2963
|
if (output.statusCode >= 300) {
|
|
4125
|
-
return
|
|
2964
|
+
return de_CommandError(output, context);
|
|
4126
2965
|
}
|
|
4127
2966
|
const data = await parseBody(output.body, context);
|
|
4128
2967
|
let contents = {};
|
|
@@ -4133,34 +2972,9 @@ var de_DescribeCacheParameterGroupsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4133
2972
|
};
|
|
4134
2973
|
return response;
|
|
4135
2974
|
}, "de_DescribeCacheParameterGroupsCommand");
|
|
4136
|
-
var de_DescribeCacheParameterGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4137
|
-
const parsedOutput = {
|
|
4138
|
-
...output,
|
|
4139
|
-
body: await parseErrorBody(output.body, context)
|
|
4140
|
-
};
|
|
4141
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4142
|
-
switch (errorCode) {
|
|
4143
|
-
case "CacheParameterGroupNotFound":
|
|
4144
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
4145
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
4146
|
-
case "InvalidParameterCombination":
|
|
4147
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4148
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4149
|
-
case "InvalidParameterValue":
|
|
4150
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4151
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4152
|
-
default:
|
|
4153
|
-
const parsedBody = parsedOutput.body;
|
|
4154
|
-
return throwDefaultError({
|
|
4155
|
-
output,
|
|
4156
|
-
parsedBody: parsedBody.Error,
|
|
4157
|
-
errorCode
|
|
4158
|
-
});
|
|
4159
|
-
}
|
|
4160
|
-
}, "de_DescribeCacheParameterGroupsCommandError");
|
|
4161
2975
|
var de_DescribeCacheParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4162
2976
|
if (output.statusCode >= 300) {
|
|
4163
|
-
return
|
|
2977
|
+
return de_CommandError(output, context);
|
|
4164
2978
|
}
|
|
4165
2979
|
const data = await parseBody(output.body, context);
|
|
4166
2980
|
let contents = {};
|
|
@@ -4171,34 +2985,9 @@ var de_DescribeCacheParametersCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4171
2985
|
};
|
|
4172
2986
|
return response;
|
|
4173
2987
|
}, "de_DescribeCacheParametersCommand");
|
|
4174
|
-
var de_DescribeCacheParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4175
|
-
const parsedOutput = {
|
|
4176
|
-
...output,
|
|
4177
|
-
body: await parseErrorBody(output.body, context)
|
|
4178
|
-
};
|
|
4179
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4180
|
-
switch (errorCode) {
|
|
4181
|
-
case "CacheParameterGroupNotFound":
|
|
4182
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
4183
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
4184
|
-
case "InvalidParameterCombination":
|
|
4185
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4186
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4187
|
-
case "InvalidParameterValue":
|
|
4188
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4189
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4190
|
-
default:
|
|
4191
|
-
const parsedBody = parsedOutput.body;
|
|
4192
|
-
return throwDefaultError({
|
|
4193
|
-
output,
|
|
4194
|
-
parsedBody: parsedBody.Error,
|
|
4195
|
-
errorCode
|
|
4196
|
-
});
|
|
4197
|
-
}
|
|
4198
|
-
}, "de_DescribeCacheParametersCommandError");
|
|
4199
2988
|
var de_DescribeCacheSecurityGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4200
2989
|
if (output.statusCode >= 300) {
|
|
4201
|
-
return
|
|
2990
|
+
return de_CommandError(output, context);
|
|
4202
2991
|
}
|
|
4203
2992
|
const data = await parseBody(output.body, context);
|
|
4204
2993
|
let contents = {};
|
|
@@ -4209,34 +2998,9 @@ var de_DescribeCacheSecurityGroupsCommand = /* @__PURE__ */ __name(async (output
|
|
|
4209
2998
|
};
|
|
4210
2999
|
return response;
|
|
4211
3000
|
}, "de_DescribeCacheSecurityGroupsCommand");
|
|
4212
|
-
var de_DescribeCacheSecurityGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4213
|
-
const parsedOutput = {
|
|
4214
|
-
...output,
|
|
4215
|
-
body: await parseErrorBody(output.body, context)
|
|
4216
|
-
};
|
|
4217
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4218
|
-
switch (errorCode) {
|
|
4219
|
-
case "CacheSecurityGroupNotFound":
|
|
4220
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
4221
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
4222
|
-
case "InvalidParameterCombination":
|
|
4223
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4224
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4225
|
-
case "InvalidParameterValue":
|
|
4226
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4227
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4228
|
-
default:
|
|
4229
|
-
const parsedBody = parsedOutput.body;
|
|
4230
|
-
return throwDefaultError({
|
|
4231
|
-
output,
|
|
4232
|
-
parsedBody: parsedBody.Error,
|
|
4233
|
-
errorCode
|
|
4234
|
-
});
|
|
4235
|
-
}
|
|
4236
|
-
}, "de_DescribeCacheSecurityGroupsCommandError");
|
|
4237
3001
|
var de_DescribeCacheSubnetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4238
3002
|
if (output.statusCode >= 300) {
|
|
4239
|
-
return
|
|
3003
|
+
return de_CommandError(output, context);
|
|
4240
3004
|
}
|
|
4241
3005
|
const data = await parseBody(output.body, context);
|
|
4242
3006
|
let contents = {};
|
|
@@ -4247,28 +3011,9 @@ var de_DescribeCacheSubnetGroupsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4247
3011
|
};
|
|
4248
3012
|
return response;
|
|
4249
3013
|
}, "de_DescribeCacheSubnetGroupsCommand");
|
|
4250
|
-
var de_DescribeCacheSubnetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4251
|
-
const parsedOutput = {
|
|
4252
|
-
...output,
|
|
4253
|
-
body: await parseErrorBody(output.body, context)
|
|
4254
|
-
};
|
|
4255
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4256
|
-
switch (errorCode) {
|
|
4257
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
4258
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
4259
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
4260
|
-
default:
|
|
4261
|
-
const parsedBody = parsedOutput.body;
|
|
4262
|
-
return throwDefaultError({
|
|
4263
|
-
output,
|
|
4264
|
-
parsedBody: parsedBody.Error,
|
|
4265
|
-
errorCode
|
|
4266
|
-
});
|
|
4267
|
-
}
|
|
4268
|
-
}, "de_DescribeCacheSubnetGroupsCommandError");
|
|
4269
3014
|
var de_DescribeEngineDefaultParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4270
3015
|
if (output.statusCode >= 300) {
|
|
4271
|
-
return
|
|
3016
|
+
return de_CommandError(output, context);
|
|
4272
3017
|
}
|
|
4273
3018
|
const data = await parseBody(output.body, context);
|
|
4274
3019
|
let contents = {};
|
|
@@ -4279,31 +3024,9 @@ var de_DescribeEngineDefaultParametersCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4279
3024
|
};
|
|
4280
3025
|
return response;
|
|
4281
3026
|
}, "de_DescribeEngineDefaultParametersCommand");
|
|
4282
|
-
var de_DescribeEngineDefaultParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4283
|
-
const parsedOutput = {
|
|
4284
|
-
...output,
|
|
4285
|
-
body: await parseErrorBody(output.body, context)
|
|
4286
|
-
};
|
|
4287
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4288
|
-
switch (errorCode) {
|
|
4289
|
-
case "InvalidParameterCombination":
|
|
4290
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4291
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4292
|
-
case "InvalidParameterValue":
|
|
4293
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4294
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4295
|
-
default:
|
|
4296
|
-
const parsedBody = parsedOutput.body;
|
|
4297
|
-
return throwDefaultError({
|
|
4298
|
-
output,
|
|
4299
|
-
parsedBody: parsedBody.Error,
|
|
4300
|
-
errorCode
|
|
4301
|
-
});
|
|
4302
|
-
}
|
|
4303
|
-
}, "de_DescribeEngineDefaultParametersCommandError");
|
|
4304
3027
|
var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4305
3028
|
if (output.statusCode >= 300) {
|
|
4306
|
-
return
|
|
3029
|
+
return de_CommandError(output, context);
|
|
4307
3030
|
}
|
|
4308
3031
|
const data = await parseBody(output.body, context);
|
|
4309
3032
|
let contents = {};
|
|
@@ -4314,69 +3037,22 @@ var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4314
3037
|
};
|
|
4315
3038
|
return response;
|
|
4316
3039
|
}, "de_DescribeEventsCommand");
|
|
4317
|
-
var
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
case "InvalidParameterValue":
|
|
4328
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4329
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4330
|
-
default:
|
|
4331
|
-
const parsedBody = parsedOutput.body;
|
|
4332
|
-
return throwDefaultError({
|
|
4333
|
-
output,
|
|
4334
|
-
parsedBody: parsedBody.Error,
|
|
4335
|
-
errorCode
|
|
4336
|
-
});
|
|
4337
|
-
}
|
|
4338
|
-
}, "de_DescribeEventsCommandError");
|
|
4339
|
-
var de_DescribeGlobalReplicationGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4340
|
-
if (output.statusCode >= 300) {
|
|
4341
|
-
return de_DescribeGlobalReplicationGroupsCommandError(output, context);
|
|
4342
|
-
}
|
|
4343
|
-
const data = await parseBody(output.body, context);
|
|
4344
|
-
let contents = {};
|
|
4345
|
-
contents = de_DescribeGlobalReplicationGroupsResult(data.DescribeGlobalReplicationGroupsResult, context);
|
|
4346
|
-
const response = {
|
|
4347
|
-
$metadata: deserializeMetadata(output),
|
|
4348
|
-
...contents
|
|
3040
|
+
var de_DescribeGlobalReplicationGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
|
+
if (output.statusCode >= 300) {
|
|
3042
|
+
return de_CommandError(output, context);
|
|
3043
|
+
}
|
|
3044
|
+
const data = await parseBody(output.body, context);
|
|
3045
|
+
let contents = {};
|
|
3046
|
+
contents = de_DescribeGlobalReplicationGroupsResult(data.DescribeGlobalReplicationGroupsResult, context);
|
|
3047
|
+
const response = {
|
|
3048
|
+
$metadata: deserializeMetadata(output),
|
|
3049
|
+
...contents
|
|
4349
3050
|
};
|
|
4350
3051
|
return response;
|
|
4351
3052
|
}, "de_DescribeGlobalReplicationGroupsCommand");
|
|
4352
|
-
var de_DescribeGlobalReplicationGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4353
|
-
const parsedOutput = {
|
|
4354
|
-
...output,
|
|
4355
|
-
body: await parseErrorBody(output.body, context)
|
|
4356
|
-
};
|
|
4357
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4358
|
-
switch (errorCode) {
|
|
4359
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
4360
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
4361
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4362
|
-
case "InvalidParameterCombination":
|
|
4363
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4364
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4365
|
-
case "InvalidParameterValue":
|
|
4366
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4367
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4368
|
-
default:
|
|
4369
|
-
const parsedBody = parsedOutput.body;
|
|
4370
|
-
return throwDefaultError({
|
|
4371
|
-
output,
|
|
4372
|
-
parsedBody: parsedBody.Error,
|
|
4373
|
-
errorCode
|
|
4374
|
-
});
|
|
4375
|
-
}
|
|
4376
|
-
}, "de_DescribeGlobalReplicationGroupsCommandError");
|
|
4377
3053
|
var de_DescribeReplicationGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4378
3054
|
if (output.statusCode >= 300) {
|
|
4379
|
-
return
|
|
3055
|
+
return de_CommandError(output, context);
|
|
4380
3056
|
}
|
|
4381
3057
|
const data = await parseBody(output.body, context);
|
|
4382
3058
|
let contents = {};
|
|
@@ -4387,34 +3063,9 @@ var de_DescribeReplicationGroupsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4387
3063
|
};
|
|
4388
3064
|
return response;
|
|
4389
3065
|
}, "de_DescribeReplicationGroupsCommand");
|
|
4390
|
-
var de_DescribeReplicationGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4391
|
-
const parsedOutput = {
|
|
4392
|
-
...output,
|
|
4393
|
-
body: await parseErrorBody(output.body, context)
|
|
4394
|
-
};
|
|
4395
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4396
|
-
switch (errorCode) {
|
|
4397
|
-
case "InvalidParameterCombination":
|
|
4398
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4399
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4400
|
-
case "InvalidParameterValue":
|
|
4401
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4402
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4403
|
-
case "ReplicationGroupNotFoundFault":
|
|
4404
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
4405
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4406
|
-
default:
|
|
4407
|
-
const parsedBody = parsedOutput.body;
|
|
4408
|
-
return throwDefaultError({
|
|
4409
|
-
output,
|
|
4410
|
-
parsedBody: parsedBody.Error,
|
|
4411
|
-
errorCode
|
|
4412
|
-
});
|
|
4413
|
-
}
|
|
4414
|
-
}, "de_DescribeReplicationGroupsCommandError");
|
|
4415
3066
|
var de_DescribeReservedCacheNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4416
3067
|
if (output.statusCode >= 300) {
|
|
4417
|
-
return
|
|
3068
|
+
return de_CommandError(output, context);
|
|
4418
3069
|
}
|
|
4419
3070
|
const data = await parseBody(output.body, context);
|
|
4420
3071
|
let contents = {};
|
|
@@ -4425,34 +3076,9 @@ var de_DescribeReservedCacheNodesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4425
3076
|
};
|
|
4426
3077
|
return response;
|
|
4427
3078
|
}, "de_DescribeReservedCacheNodesCommand");
|
|
4428
|
-
var de_DescribeReservedCacheNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4429
|
-
const parsedOutput = {
|
|
4430
|
-
...output,
|
|
4431
|
-
body: await parseErrorBody(output.body, context)
|
|
4432
|
-
};
|
|
4433
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4434
|
-
switch (errorCode) {
|
|
4435
|
-
case "InvalidParameterCombination":
|
|
4436
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4437
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4438
|
-
case "InvalidParameterValue":
|
|
4439
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4440
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4441
|
-
case "ReservedCacheNodeNotFound":
|
|
4442
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
4443
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
4444
|
-
default:
|
|
4445
|
-
const parsedBody = parsedOutput.body;
|
|
4446
|
-
return throwDefaultError({
|
|
4447
|
-
output,
|
|
4448
|
-
parsedBody: parsedBody.Error,
|
|
4449
|
-
errorCode
|
|
4450
|
-
});
|
|
4451
|
-
}
|
|
4452
|
-
}, "de_DescribeReservedCacheNodesCommandError");
|
|
4453
3079
|
var de_DescribeReservedCacheNodesOfferingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4454
3080
|
if (output.statusCode >= 300) {
|
|
4455
|
-
return
|
|
3081
|
+
return de_CommandError(output, context);
|
|
4456
3082
|
}
|
|
4457
3083
|
const data = await parseBody(output.body, context);
|
|
4458
3084
|
let contents = {};
|
|
@@ -4463,34 +3089,9 @@ var de_DescribeReservedCacheNodesOfferingsCommand = /* @__PURE__ */ __name(async
|
|
|
4463
3089
|
};
|
|
4464
3090
|
return response;
|
|
4465
3091
|
}, "de_DescribeReservedCacheNodesOfferingsCommand");
|
|
4466
|
-
var de_DescribeReservedCacheNodesOfferingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4467
|
-
const parsedOutput = {
|
|
4468
|
-
...output,
|
|
4469
|
-
body: await parseErrorBody(output.body, context)
|
|
4470
|
-
};
|
|
4471
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4472
|
-
switch (errorCode) {
|
|
4473
|
-
case "InvalidParameterCombination":
|
|
4474
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4475
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4476
|
-
case "InvalidParameterValue":
|
|
4477
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4478
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4479
|
-
case "ReservedCacheNodesOfferingNotFound":
|
|
4480
|
-
case "com.amazonaws.elasticache#ReservedCacheNodesOfferingNotFoundFault":
|
|
4481
|
-
throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
4482
|
-
default:
|
|
4483
|
-
const parsedBody = parsedOutput.body;
|
|
4484
|
-
return throwDefaultError({
|
|
4485
|
-
output,
|
|
4486
|
-
parsedBody: parsedBody.Error,
|
|
4487
|
-
errorCode
|
|
4488
|
-
});
|
|
4489
|
-
}
|
|
4490
|
-
}, "de_DescribeReservedCacheNodesOfferingsCommandError");
|
|
4491
3092
|
var de_DescribeServerlessCachesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4492
3093
|
if (output.statusCode >= 300) {
|
|
4493
|
-
return
|
|
3094
|
+
return de_CommandError(output, context);
|
|
4494
3095
|
}
|
|
4495
3096
|
const data = await parseBody(output.body, context);
|
|
4496
3097
|
let contents = {};
|
|
@@ -4501,34 +3102,9 @@ var de_DescribeServerlessCachesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4501
3102
|
};
|
|
4502
3103
|
return response;
|
|
4503
3104
|
}, "de_DescribeServerlessCachesCommand");
|
|
4504
|
-
var de_DescribeServerlessCachesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4505
|
-
const parsedOutput = {
|
|
4506
|
-
...output,
|
|
4507
|
-
body: await parseErrorBody(output.body, context)
|
|
4508
|
-
};
|
|
4509
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4510
|
-
switch (errorCode) {
|
|
4511
|
-
case "InvalidParameterCombination":
|
|
4512
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4513
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4514
|
-
case "InvalidParameterValue":
|
|
4515
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4516
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4517
|
-
case "ServerlessCacheNotFoundFault":
|
|
4518
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
4519
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
4520
|
-
default:
|
|
4521
|
-
const parsedBody = parsedOutput.body;
|
|
4522
|
-
return throwDefaultError({
|
|
4523
|
-
output,
|
|
4524
|
-
parsedBody: parsedBody.Error,
|
|
4525
|
-
errorCode
|
|
4526
|
-
});
|
|
4527
|
-
}
|
|
4528
|
-
}, "de_DescribeServerlessCachesCommandError");
|
|
4529
3105
|
var de_DescribeServerlessCacheSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4530
3106
|
if (output.statusCode >= 300) {
|
|
4531
|
-
return
|
|
3107
|
+
return de_CommandError(output, context);
|
|
4532
3108
|
}
|
|
4533
3109
|
const data = await parseBody(output.body, context);
|
|
4534
3110
|
let contents = {};
|
|
@@ -4539,37 +3115,9 @@ var de_DescribeServerlessCacheSnapshotsCommand = /* @__PURE__ */ __name(async (o
|
|
|
4539
3115
|
};
|
|
4540
3116
|
return response;
|
|
4541
3117
|
}, "de_DescribeServerlessCacheSnapshotsCommand");
|
|
4542
|
-
var de_DescribeServerlessCacheSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4543
|
-
const parsedOutput = {
|
|
4544
|
-
...output,
|
|
4545
|
-
body: await parseErrorBody(output.body, context)
|
|
4546
|
-
};
|
|
4547
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4548
|
-
switch (errorCode) {
|
|
4549
|
-
case "InvalidParameterCombination":
|
|
4550
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4551
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4552
|
-
case "InvalidParameterValue":
|
|
4553
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4554
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4555
|
-
case "ServerlessCacheNotFoundFault":
|
|
4556
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
4557
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
4558
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
4559
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
4560
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
4561
|
-
default:
|
|
4562
|
-
const parsedBody = parsedOutput.body;
|
|
4563
|
-
return throwDefaultError({
|
|
4564
|
-
output,
|
|
4565
|
-
parsedBody: parsedBody.Error,
|
|
4566
|
-
errorCode
|
|
4567
|
-
});
|
|
4568
|
-
}
|
|
4569
|
-
}, "de_DescribeServerlessCacheSnapshotsCommandError");
|
|
4570
3118
|
var de_DescribeServiceUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4571
3119
|
if (output.statusCode >= 300) {
|
|
4572
|
-
return
|
|
3120
|
+
return de_CommandError(output, context);
|
|
4573
3121
|
}
|
|
4574
3122
|
const data = await parseBody(output.body, context);
|
|
4575
3123
|
let contents = {};
|
|
@@ -4580,34 +3128,9 @@ var de_DescribeServiceUpdatesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4580
3128
|
};
|
|
4581
3129
|
return response;
|
|
4582
3130
|
}, "de_DescribeServiceUpdatesCommand");
|
|
4583
|
-
var de_DescribeServiceUpdatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4584
|
-
const parsedOutput = {
|
|
4585
|
-
...output,
|
|
4586
|
-
body: await parseErrorBody(output.body, context)
|
|
4587
|
-
};
|
|
4588
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4589
|
-
switch (errorCode) {
|
|
4590
|
-
case "InvalidParameterCombination":
|
|
4591
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4592
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4593
|
-
case "InvalidParameterValue":
|
|
4594
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4595
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4596
|
-
case "ServiceUpdateNotFoundFault":
|
|
4597
|
-
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
4598
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
4599
|
-
default:
|
|
4600
|
-
const parsedBody = parsedOutput.body;
|
|
4601
|
-
return throwDefaultError({
|
|
4602
|
-
output,
|
|
4603
|
-
parsedBody: parsedBody.Error,
|
|
4604
|
-
errorCode
|
|
4605
|
-
});
|
|
4606
|
-
}
|
|
4607
|
-
}, "de_DescribeServiceUpdatesCommandError");
|
|
4608
3131
|
var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4609
3132
|
if (output.statusCode >= 300) {
|
|
4610
|
-
return
|
|
3133
|
+
return de_CommandError(output, context);
|
|
4611
3134
|
}
|
|
4612
3135
|
const data = await parseBody(output.body, context);
|
|
4613
3136
|
let contents = {};
|
|
@@ -4618,37 +3141,9 @@ var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4618
3141
|
};
|
|
4619
3142
|
return response;
|
|
4620
3143
|
}, "de_DescribeSnapshotsCommand");
|
|
4621
|
-
var de_DescribeSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4622
|
-
const parsedOutput = {
|
|
4623
|
-
...output,
|
|
4624
|
-
body: await parseErrorBody(output.body, context)
|
|
4625
|
-
};
|
|
4626
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4627
|
-
switch (errorCode) {
|
|
4628
|
-
case "CacheClusterNotFound":
|
|
4629
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
4630
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
4631
|
-
case "InvalidParameterCombination":
|
|
4632
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4633
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4634
|
-
case "InvalidParameterValue":
|
|
4635
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4636
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4637
|
-
case "SnapshotNotFoundFault":
|
|
4638
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
4639
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
4640
|
-
default:
|
|
4641
|
-
const parsedBody = parsedOutput.body;
|
|
4642
|
-
return throwDefaultError({
|
|
4643
|
-
output,
|
|
4644
|
-
parsedBody: parsedBody.Error,
|
|
4645
|
-
errorCode
|
|
4646
|
-
});
|
|
4647
|
-
}
|
|
4648
|
-
}, "de_DescribeSnapshotsCommandError");
|
|
4649
3144
|
var de_DescribeUpdateActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4650
3145
|
if (output.statusCode >= 300) {
|
|
4651
|
-
return
|
|
3146
|
+
return de_CommandError(output, context);
|
|
4652
3147
|
}
|
|
4653
3148
|
const data = await parseBody(output.body, context);
|
|
4654
3149
|
let contents = {};
|
|
@@ -4659,31 +3154,9 @@ var de_DescribeUpdateActionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4659
3154
|
};
|
|
4660
3155
|
return response;
|
|
4661
3156
|
}, "de_DescribeUpdateActionsCommand");
|
|
4662
|
-
var de_DescribeUpdateActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4663
|
-
const parsedOutput = {
|
|
4664
|
-
...output,
|
|
4665
|
-
body: await parseErrorBody(output.body, context)
|
|
4666
|
-
};
|
|
4667
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4668
|
-
switch (errorCode) {
|
|
4669
|
-
case "InvalidParameterCombination":
|
|
4670
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4671
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4672
|
-
case "InvalidParameterValue":
|
|
4673
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4674
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4675
|
-
default:
|
|
4676
|
-
const parsedBody = parsedOutput.body;
|
|
4677
|
-
return throwDefaultError({
|
|
4678
|
-
output,
|
|
4679
|
-
parsedBody: parsedBody.Error,
|
|
4680
|
-
errorCode
|
|
4681
|
-
});
|
|
4682
|
-
}
|
|
4683
|
-
}, "de_DescribeUpdateActionsCommandError");
|
|
4684
3157
|
var de_DescribeUserGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4685
3158
|
if (output.statusCode >= 300) {
|
|
4686
|
-
return
|
|
3159
|
+
return de_CommandError(output, context);
|
|
4687
3160
|
}
|
|
4688
3161
|
const data = await parseBody(output.body, context);
|
|
4689
3162
|
let contents = {};
|
|
@@ -4694,72 +3167,22 @@ var de_DescribeUserGroupsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4694
3167
|
};
|
|
4695
3168
|
return response;
|
|
4696
3169
|
}, "de_DescribeUserGroupsCommand");
|
|
4697
|
-
var
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
4708
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
4709
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
4710
|
-
case "UserGroupNotFound":
|
|
4711
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
4712
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
4713
|
-
default:
|
|
4714
|
-
const parsedBody = parsedOutput.body;
|
|
4715
|
-
return throwDefaultError({
|
|
4716
|
-
output,
|
|
4717
|
-
parsedBody: parsedBody.Error,
|
|
4718
|
-
errorCode
|
|
4719
|
-
});
|
|
4720
|
-
}
|
|
4721
|
-
}, "de_DescribeUserGroupsCommandError");
|
|
4722
|
-
var de_DescribeUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4723
|
-
if (output.statusCode >= 300) {
|
|
4724
|
-
return de_DescribeUsersCommandError(output, context);
|
|
4725
|
-
}
|
|
4726
|
-
const data = await parseBody(output.body, context);
|
|
4727
|
-
let contents = {};
|
|
4728
|
-
contents = de_DescribeUsersResult(data.DescribeUsersResult, context);
|
|
4729
|
-
const response = {
|
|
4730
|
-
$metadata: deserializeMetadata(output),
|
|
4731
|
-
...contents
|
|
3170
|
+
var de_DescribeUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3171
|
+
if (output.statusCode >= 300) {
|
|
3172
|
+
return de_CommandError(output, context);
|
|
3173
|
+
}
|
|
3174
|
+
const data = await parseBody(output.body, context);
|
|
3175
|
+
let contents = {};
|
|
3176
|
+
contents = de_DescribeUsersResult(data.DescribeUsersResult, context);
|
|
3177
|
+
const response = {
|
|
3178
|
+
$metadata: deserializeMetadata(output),
|
|
3179
|
+
...contents
|
|
4732
3180
|
};
|
|
4733
3181
|
return response;
|
|
4734
3182
|
}, "de_DescribeUsersCommand");
|
|
4735
|
-
var de_DescribeUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4736
|
-
const parsedOutput = {
|
|
4737
|
-
...output,
|
|
4738
|
-
body: await parseErrorBody(output.body, context)
|
|
4739
|
-
};
|
|
4740
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4741
|
-
switch (errorCode) {
|
|
4742
|
-
case "InvalidParameterCombination":
|
|
4743
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4744
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4745
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
4746
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
4747
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
4748
|
-
case "UserNotFound":
|
|
4749
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
4750
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
4751
|
-
default:
|
|
4752
|
-
const parsedBody = parsedOutput.body;
|
|
4753
|
-
return throwDefaultError({
|
|
4754
|
-
output,
|
|
4755
|
-
parsedBody: parsedBody.Error,
|
|
4756
|
-
errorCode
|
|
4757
|
-
});
|
|
4758
|
-
}
|
|
4759
|
-
}, "de_DescribeUsersCommandError");
|
|
4760
3183
|
var de_DisassociateGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4761
3184
|
if (output.statusCode >= 300) {
|
|
4762
|
-
return
|
|
3185
|
+
return de_CommandError(output, context);
|
|
4763
3186
|
}
|
|
4764
3187
|
const data = await parseBody(output.body, context);
|
|
4765
3188
|
let contents = {};
|
|
@@ -4770,37 +3193,9 @@ var de_DisassociateGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async
|
|
|
4770
3193
|
};
|
|
4771
3194
|
return response;
|
|
4772
3195
|
}, "de_DisassociateGlobalReplicationGroupCommand");
|
|
4773
|
-
var de_DisassociateGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4774
|
-
const parsedOutput = {
|
|
4775
|
-
...output,
|
|
4776
|
-
body: await parseErrorBody(output.body, context)
|
|
4777
|
-
};
|
|
4778
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4779
|
-
switch (errorCode) {
|
|
4780
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
4781
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
4782
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4783
|
-
case "InvalidGlobalReplicationGroupState":
|
|
4784
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
4785
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4786
|
-
case "InvalidParameterCombination":
|
|
4787
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4788
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4789
|
-
case "InvalidParameterValue":
|
|
4790
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4791
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4792
|
-
default:
|
|
4793
|
-
const parsedBody = parsedOutput.body;
|
|
4794
|
-
return throwDefaultError({
|
|
4795
|
-
output,
|
|
4796
|
-
parsedBody: parsedBody.Error,
|
|
4797
|
-
errorCode
|
|
4798
|
-
});
|
|
4799
|
-
}
|
|
4800
|
-
}, "de_DisassociateGlobalReplicationGroupCommandError");
|
|
4801
3196
|
var de_ExportServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4802
3197
|
if (output.statusCode >= 300) {
|
|
4803
|
-
return
|
|
3198
|
+
return de_CommandError(output, context);
|
|
4804
3199
|
}
|
|
4805
3200
|
const data = await parseBody(output.body, context);
|
|
4806
3201
|
let contents = {};
|
|
@@ -4811,37 +3206,9 @@ var de_ExportServerlessCacheSnapshotCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4811
3206
|
};
|
|
4812
3207
|
return response;
|
|
4813
3208
|
}, "de_ExportServerlessCacheSnapshotCommand");
|
|
4814
|
-
var de_ExportServerlessCacheSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4815
|
-
const parsedOutput = {
|
|
4816
|
-
...output,
|
|
4817
|
-
body: await parseErrorBody(output.body, context)
|
|
4818
|
-
};
|
|
4819
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4820
|
-
switch (errorCode) {
|
|
4821
|
-
case "InvalidParameterValue":
|
|
4822
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4823
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4824
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
4825
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
4826
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
4827
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
4828
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
4829
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
4830
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
4831
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
4832
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
4833
|
-
default:
|
|
4834
|
-
const parsedBody = parsedOutput.body;
|
|
4835
|
-
return throwDefaultError({
|
|
4836
|
-
output,
|
|
4837
|
-
parsedBody: parsedBody.Error,
|
|
4838
|
-
errorCode
|
|
4839
|
-
});
|
|
4840
|
-
}
|
|
4841
|
-
}, "de_ExportServerlessCacheSnapshotCommandError");
|
|
4842
3209
|
var de_FailoverGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4843
3210
|
if (output.statusCode >= 300) {
|
|
4844
|
-
return
|
|
3211
|
+
return de_CommandError(output, context);
|
|
4845
3212
|
}
|
|
4846
3213
|
const data = await parseBody(output.body, context);
|
|
4847
3214
|
let contents = {};
|
|
@@ -4852,37 +3219,9 @@ var de_FailoverGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (out
|
|
|
4852
3219
|
};
|
|
4853
3220
|
return response;
|
|
4854
3221
|
}, "de_FailoverGlobalReplicationGroupCommand");
|
|
4855
|
-
var de_FailoverGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4856
|
-
const parsedOutput = {
|
|
4857
|
-
...output,
|
|
4858
|
-
body: await parseErrorBody(output.body, context)
|
|
4859
|
-
};
|
|
4860
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4861
|
-
switch (errorCode) {
|
|
4862
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
4863
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
4864
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4865
|
-
case "InvalidGlobalReplicationGroupState":
|
|
4866
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
4867
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4868
|
-
case "InvalidParameterCombination":
|
|
4869
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4870
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4871
|
-
case "InvalidParameterValue":
|
|
4872
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4873
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4874
|
-
default:
|
|
4875
|
-
const parsedBody = parsedOutput.body;
|
|
4876
|
-
return throwDefaultError({
|
|
4877
|
-
output,
|
|
4878
|
-
parsedBody: parsedBody.Error,
|
|
4879
|
-
errorCode
|
|
4880
|
-
});
|
|
4881
|
-
}
|
|
4882
|
-
}, "de_FailoverGlobalReplicationGroupCommandError");
|
|
4883
3222
|
var de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4884
3223
|
if (output.statusCode >= 300) {
|
|
4885
|
-
return
|
|
3224
|
+
return de_CommandError(output, context);
|
|
4886
3225
|
}
|
|
4887
3226
|
const data = await parseBody(output.body, context);
|
|
4888
3227
|
let contents = {};
|
|
@@ -4896,34 +3235,9 @@ var de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = /* @__PURE__ */ __nam
|
|
|
4896
3235
|
};
|
|
4897
3236
|
return response;
|
|
4898
3237
|
}, "de_IncreaseNodeGroupsInGlobalReplicationGroupCommand");
|
|
4899
|
-
var de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4900
|
-
const parsedOutput = {
|
|
4901
|
-
...output,
|
|
4902
|
-
body: await parseErrorBody(output.body, context)
|
|
4903
|
-
};
|
|
4904
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4905
|
-
switch (errorCode) {
|
|
4906
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
4907
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
4908
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4909
|
-
case "InvalidGlobalReplicationGroupState":
|
|
4910
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
4911
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4912
|
-
case "InvalidParameterValue":
|
|
4913
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4914
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4915
|
-
default:
|
|
4916
|
-
const parsedBody = parsedOutput.body;
|
|
4917
|
-
return throwDefaultError({
|
|
4918
|
-
output,
|
|
4919
|
-
parsedBody: parsedBody.Error,
|
|
4920
|
-
errorCode
|
|
4921
|
-
});
|
|
4922
|
-
}
|
|
4923
|
-
}, "de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError");
|
|
4924
3238
|
var de_IncreaseReplicaCountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4925
3239
|
if (output.statusCode >= 300) {
|
|
4926
|
-
return
|
|
3240
|
+
return de_CommandError(output, context);
|
|
4927
3241
|
}
|
|
4928
3242
|
const data = await parseBody(output.body, context);
|
|
4929
3243
|
let contents = {};
|
|
@@ -4934,61 +3248,9 @@ var de_IncreaseReplicaCountCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4934
3248
|
};
|
|
4935
3249
|
return response;
|
|
4936
3250
|
}, "de_IncreaseReplicaCountCommand");
|
|
4937
|
-
var de_IncreaseReplicaCountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4938
|
-
const parsedOutput = {
|
|
4939
|
-
...output,
|
|
4940
|
-
body: await parseErrorBody(output.body, context)
|
|
4941
|
-
};
|
|
4942
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4943
|
-
switch (errorCode) {
|
|
4944
|
-
case "ClusterQuotaForCustomerExceeded":
|
|
4945
|
-
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
4946
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
4947
|
-
case "InsufficientCacheClusterCapacity":
|
|
4948
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
4949
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
4950
|
-
case "InvalidCacheClusterState":
|
|
4951
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
4952
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
4953
|
-
case "InvalidKMSKeyFault":
|
|
4954
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
4955
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
4956
|
-
case "InvalidParameterCombination":
|
|
4957
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
4958
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4959
|
-
case "InvalidParameterValue":
|
|
4960
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
4961
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4962
|
-
case "InvalidReplicationGroupState":
|
|
4963
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
4964
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
4965
|
-
case "InvalidVPCNetworkStateFault":
|
|
4966
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
4967
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
4968
|
-
case "NoOperationFault":
|
|
4969
|
-
case "com.amazonaws.elasticache#NoOperationFault":
|
|
4970
|
-
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
4971
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
4972
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
4973
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
4974
|
-
case "NodeQuotaForCustomerExceeded":
|
|
4975
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
4976
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
4977
|
-
case "ReplicationGroupNotFoundFault":
|
|
4978
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
4979
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
4980
|
-
default:
|
|
4981
|
-
const parsedBody = parsedOutput.body;
|
|
4982
|
-
return throwDefaultError({
|
|
4983
|
-
output,
|
|
4984
|
-
parsedBody: parsedBody.Error,
|
|
4985
|
-
errorCode
|
|
4986
|
-
});
|
|
4987
|
-
}
|
|
4988
|
-
}, "de_IncreaseReplicaCountCommandError");
|
|
4989
3251
|
var de_ListAllowedNodeTypeModificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4990
3252
|
if (output.statusCode >= 300) {
|
|
4991
|
-
return
|
|
3253
|
+
return de_CommandError(output, context);
|
|
4992
3254
|
}
|
|
4993
3255
|
const data = await parseBody(output.body, context);
|
|
4994
3256
|
let contents = {};
|
|
@@ -4999,37 +3261,9 @@ var de_ListAllowedNodeTypeModificationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
4999
3261
|
};
|
|
5000
3262
|
return response;
|
|
5001
3263
|
}, "de_ListAllowedNodeTypeModificationsCommand");
|
|
5002
|
-
var de_ListAllowedNodeTypeModificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5003
|
-
const parsedOutput = {
|
|
5004
|
-
...output,
|
|
5005
|
-
body: await parseErrorBody(output.body, context)
|
|
5006
|
-
};
|
|
5007
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5008
|
-
switch (errorCode) {
|
|
5009
|
-
case "CacheClusterNotFound":
|
|
5010
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
5011
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
5012
|
-
case "InvalidParameterCombination":
|
|
5013
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5014
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5015
|
-
case "InvalidParameterValue":
|
|
5016
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5017
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5018
|
-
case "ReplicationGroupNotFoundFault":
|
|
5019
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5020
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5021
|
-
default:
|
|
5022
|
-
const parsedBody = parsedOutput.body;
|
|
5023
|
-
return throwDefaultError({
|
|
5024
|
-
output,
|
|
5025
|
-
parsedBody: parsedBody.Error,
|
|
5026
|
-
errorCode
|
|
5027
|
-
});
|
|
5028
|
-
}
|
|
5029
|
-
}, "de_ListAllowedNodeTypeModificationsCommandError");
|
|
5030
3264
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5031
3265
|
if (output.statusCode >= 300) {
|
|
5032
|
-
return
|
|
3266
|
+
return de_CommandError(output, context);
|
|
5033
3267
|
}
|
|
5034
3268
|
const data = await parseBody(output.body, context);
|
|
5035
3269
|
let contents = {};
|
|
@@ -5040,132 +3274,22 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5040
3274
|
};
|
|
5041
3275
|
return response;
|
|
5042
3276
|
}, "de_ListTagsForResourceCommand");
|
|
5043
|
-
var
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
case "CacheParameterGroupNotFound":
|
|
5054
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
5055
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
5056
|
-
case "CacheSecurityGroupNotFound":
|
|
5057
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
5058
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
5059
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
5060
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
5061
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
5062
|
-
case "InvalidARN":
|
|
5063
|
-
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
5064
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
5065
|
-
case "InvalidReplicationGroupState":
|
|
5066
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
5067
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5068
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
5069
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
5070
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
5071
|
-
case "InvalidServerlessCacheStateFault":
|
|
5072
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
5073
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
5074
|
-
case "ReplicationGroupNotFoundFault":
|
|
5075
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5076
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5077
|
-
case "ReservedCacheNodeNotFound":
|
|
5078
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
5079
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
5080
|
-
case "ServerlessCacheNotFoundFault":
|
|
5081
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
5082
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
5083
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
5084
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
5085
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
5086
|
-
case "SnapshotNotFoundFault":
|
|
5087
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
5088
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
5089
|
-
case "UserGroupNotFound":
|
|
5090
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
5091
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
5092
|
-
case "UserNotFound":
|
|
5093
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
5094
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
5095
|
-
default:
|
|
5096
|
-
const parsedBody = parsedOutput.body;
|
|
5097
|
-
return throwDefaultError({
|
|
5098
|
-
output,
|
|
5099
|
-
parsedBody: parsedBody.Error,
|
|
5100
|
-
errorCode
|
|
5101
|
-
});
|
|
5102
|
-
}
|
|
5103
|
-
}, "de_ListTagsForResourceCommandError");
|
|
5104
|
-
var de_ModifyCacheClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5105
|
-
if (output.statusCode >= 300) {
|
|
5106
|
-
return de_ModifyCacheClusterCommandError(output, context);
|
|
5107
|
-
}
|
|
5108
|
-
const data = await parseBody(output.body, context);
|
|
5109
|
-
let contents = {};
|
|
5110
|
-
contents = de_ModifyCacheClusterResult(data.ModifyCacheClusterResult, context);
|
|
5111
|
-
const response = {
|
|
5112
|
-
$metadata: deserializeMetadata(output),
|
|
5113
|
-
...contents
|
|
3277
|
+
var de_ModifyCacheClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3278
|
+
if (output.statusCode >= 300) {
|
|
3279
|
+
return de_CommandError(output, context);
|
|
3280
|
+
}
|
|
3281
|
+
const data = await parseBody(output.body, context);
|
|
3282
|
+
let contents = {};
|
|
3283
|
+
contents = de_ModifyCacheClusterResult(data.ModifyCacheClusterResult, context);
|
|
3284
|
+
const response = {
|
|
3285
|
+
$metadata: deserializeMetadata(output),
|
|
3286
|
+
...contents
|
|
5114
3287
|
};
|
|
5115
3288
|
return response;
|
|
5116
3289
|
}, "de_ModifyCacheClusterCommand");
|
|
5117
|
-
var de_ModifyCacheClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5118
|
-
const parsedOutput = {
|
|
5119
|
-
...output,
|
|
5120
|
-
body: await parseErrorBody(output.body, context)
|
|
5121
|
-
};
|
|
5122
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5123
|
-
switch (errorCode) {
|
|
5124
|
-
case "CacheClusterNotFound":
|
|
5125
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
5126
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
5127
|
-
case "CacheParameterGroupNotFound":
|
|
5128
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
5129
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
5130
|
-
case "CacheSecurityGroupNotFound":
|
|
5131
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
5132
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
5133
|
-
case "InsufficientCacheClusterCapacity":
|
|
5134
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
5135
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
5136
|
-
case "InvalidCacheClusterState":
|
|
5137
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
5138
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
5139
|
-
case "InvalidCacheSecurityGroupState":
|
|
5140
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
5141
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
5142
|
-
case "InvalidParameterCombination":
|
|
5143
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5144
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5145
|
-
case "InvalidParameterValue":
|
|
5146
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5147
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5148
|
-
case "InvalidVPCNetworkStateFault":
|
|
5149
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
5150
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
5151
|
-
case "NodeQuotaForClusterExceeded":
|
|
5152
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
5153
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
5154
|
-
case "NodeQuotaForCustomerExceeded":
|
|
5155
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
5156
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
5157
|
-
default:
|
|
5158
|
-
const parsedBody = parsedOutput.body;
|
|
5159
|
-
return throwDefaultError({
|
|
5160
|
-
output,
|
|
5161
|
-
parsedBody: parsedBody.Error,
|
|
5162
|
-
errorCode
|
|
5163
|
-
});
|
|
5164
|
-
}
|
|
5165
|
-
}, "de_ModifyCacheClusterCommandError");
|
|
5166
3290
|
var de_ModifyCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5167
3291
|
if (output.statusCode >= 300) {
|
|
5168
|
-
return
|
|
3292
|
+
return de_CommandError(output, context);
|
|
5169
3293
|
}
|
|
5170
3294
|
const data = await parseBody(output.body, context);
|
|
5171
3295
|
let contents = {};
|
|
@@ -5176,40 +3300,9 @@ var de_ModifyCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
5176
3300
|
};
|
|
5177
3301
|
return response;
|
|
5178
3302
|
}, "de_ModifyCacheParameterGroupCommand");
|
|
5179
|
-
var de_ModifyCacheParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5180
|
-
const parsedOutput = {
|
|
5181
|
-
...output,
|
|
5182
|
-
body: await parseErrorBody(output.body, context)
|
|
5183
|
-
};
|
|
5184
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5185
|
-
switch (errorCode) {
|
|
5186
|
-
case "CacheParameterGroupNotFound":
|
|
5187
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
5188
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
5189
|
-
case "InvalidCacheParameterGroupState":
|
|
5190
|
-
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
5191
|
-
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
5192
|
-
case "InvalidGlobalReplicationGroupState":
|
|
5193
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
5194
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5195
|
-
case "InvalidParameterCombination":
|
|
5196
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5197
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5198
|
-
case "InvalidParameterValue":
|
|
5199
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5200
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5201
|
-
default:
|
|
5202
|
-
const parsedBody = parsedOutput.body;
|
|
5203
|
-
return throwDefaultError({
|
|
5204
|
-
output,
|
|
5205
|
-
parsedBody: parsedBody.Error,
|
|
5206
|
-
errorCode
|
|
5207
|
-
});
|
|
5208
|
-
}
|
|
5209
|
-
}, "de_ModifyCacheParameterGroupCommandError");
|
|
5210
3303
|
var de_ModifyCacheSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5211
3304
|
if (output.statusCode >= 300) {
|
|
5212
|
-
return
|
|
3305
|
+
return de_CommandError(output, context);
|
|
5213
3306
|
}
|
|
5214
3307
|
const data = await parseBody(output.body, context);
|
|
5215
3308
|
let contents = {};
|
|
@@ -5220,40 +3313,9 @@ var de_ModifyCacheSubnetGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
5220
3313
|
};
|
|
5221
3314
|
return response;
|
|
5222
3315
|
}, "de_ModifyCacheSubnetGroupCommand");
|
|
5223
|
-
var de_ModifyCacheSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5224
|
-
const parsedOutput = {
|
|
5225
|
-
...output,
|
|
5226
|
-
body: await parseErrorBody(output.body, context)
|
|
5227
|
-
};
|
|
5228
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5229
|
-
switch (errorCode) {
|
|
5230
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
5231
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
5232
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
5233
|
-
case "CacheSubnetQuotaExceededFault":
|
|
5234
|
-
case "com.amazonaws.elasticache#CacheSubnetQuotaExceededFault":
|
|
5235
|
-
throw await de_CacheSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
5236
|
-
case "InvalidSubnet":
|
|
5237
|
-
case "com.amazonaws.elasticache#InvalidSubnet":
|
|
5238
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
5239
|
-
case "SubnetInUse":
|
|
5240
|
-
case "com.amazonaws.elasticache#SubnetInUse":
|
|
5241
|
-
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
5242
|
-
case "SubnetNotAllowedFault":
|
|
5243
|
-
case "com.amazonaws.elasticache#SubnetNotAllowedFault":
|
|
5244
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
5245
|
-
default:
|
|
5246
|
-
const parsedBody = parsedOutput.body;
|
|
5247
|
-
return throwDefaultError({
|
|
5248
|
-
output,
|
|
5249
|
-
parsedBody: parsedBody.Error,
|
|
5250
|
-
errorCode
|
|
5251
|
-
});
|
|
5252
|
-
}
|
|
5253
|
-
}, "de_ModifyCacheSubnetGroupCommandError");
|
|
5254
3316
|
var de_ModifyGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5255
3317
|
if (output.statusCode >= 300) {
|
|
5256
|
-
return
|
|
3318
|
+
return de_CommandError(output, context);
|
|
5257
3319
|
}
|
|
5258
3320
|
const data = await parseBody(output.body, context);
|
|
5259
3321
|
let contents = {};
|
|
@@ -5264,34 +3326,9 @@ var de_ModifyGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
5264
3326
|
};
|
|
5265
3327
|
return response;
|
|
5266
3328
|
}, "de_ModifyGlobalReplicationGroupCommand");
|
|
5267
|
-
var de_ModifyGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5268
|
-
const parsedOutput = {
|
|
5269
|
-
...output,
|
|
5270
|
-
body: await parseErrorBody(output.body, context)
|
|
5271
|
-
};
|
|
5272
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5273
|
-
switch (errorCode) {
|
|
5274
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
5275
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
5276
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5277
|
-
case "InvalidGlobalReplicationGroupState":
|
|
5278
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
5279
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5280
|
-
case "InvalidParameterValue":
|
|
5281
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5282
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5283
|
-
default:
|
|
5284
|
-
const parsedBody = parsedOutput.body;
|
|
5285
|
-
return throwDefaultError({
|
|
5286
|
-
output,
|
|
5287
|
-
parsedBody: parsedBody.Error,
|
|
5288
|
-
errorCode
|
|
5289
|
-
});
|
|
5290
|
-
}
|
|
5291
|
-
}, "de_ModifyGlobalReplicationGroupCommandError");
|
|
5292
3329
|
var de_ModifyReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5293
3330
|
if (output.statusCode >= 300) {
|
|
5294
|
-
return
|
|
3331
|
+
return de_CommandError(output, context);
|
|
5295
3332
|
}
|
|
5296
3333
|
const data = await parseBody(output.body, context);
|
|
5297
3334
|
let contents = {};
|
|
@@ -5302,73 +3339,9 @@ var de_ModifyReplicationGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
5302
3339
|
};
|
|
5303
3340
|
return response;
|
|
5304
3341
|
}, "de_ModifyReplicationGroupCommand");
|
|
5305
|
-
var de_ModifyReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5306
|
-
const parsedOutput = {
|
|
5307
|
-
...output,
|
|
5308
|
-
body: await parseErrorBody(output.body, context)
|
|
5309
|
-
};
|
|
5310
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5311
|
-
switch (errorCode) {
|
|
5312
|
-
case "CacheClusterNotFound":
|
|
5313
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
5314
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
5315
|
-
case "CacheParameterGroupNotFound":
|
|
5316
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
5317
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
5318
|
-
case "CacheSecurityGroupNotFound":
|
|
5319
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
5320
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
5321
|
-
case "InsufficientCacheClusterCapacity":
|
|
5322
|
-
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
5323
|
-
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
5324
|
-
case "InvalidCacheClusterState":
|
|
5325
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
5326
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
5327
|
-
case "InvalidCacheSecurityGroupState":
|
|
5328
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
5329
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
5330
|
-
case "InvalidKMSKeyFault":
|
|
5331
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
5332
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
5333
|
-
case "InvalidParameterCombination":
|
|
5334
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5335
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5336
|
-
case "InvalidParameterValue":
|
|
5337
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5338
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5339
|
-
case "InvalidReplicationGroupState":
|
|
5340
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
5341
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5342
|
-
case "InvalidUserGroupState":
|
|
5343
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
5344
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
5345
|
-
case "InvalidVPCNetworkStateFault":
|
|
5346
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
5347
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
5348
|
-
case "NodeQuotaForClusterExceeded":
|
|
5349
|
-
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
5350
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
5351
|
-
case "NodeQuotaForCustomerExceeded":
|
|
5352
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
5353
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
5354
|
-
case "ReplicationGroupNotFoundFault":
|
|
5355
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5356
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5357
|
-
case "UserGroupNotFound":
|
|
5358
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
5359
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
5360
|
-
default:
|
|
5361
|
-
const parsedBody = parsedOutput.body;
|
|
5362
|
-
return throwDefaultError({
|
|
5363
|
-
output,
|
|
5364
|
-
parsedBody: parsedBody.Error,
|
|
5365
|
-
errorCode
|
|
5366
|
-
});
|
|
5367
|
-
}
|
|
5368
|
-
}, "de_ModifyReplicationGroupCommandError");
|
|
5369
3342
|
var de_ModifyReplicationGroupShardConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5370
3343
|
if (output.statusCode >= 300) {
|
|
5371
|
-
return
|
|
3344
|
+
return de_CommandError(output, context);
|
|
5372
3345
|
}
|
|
5373
3346
|
const data = await parseBody(output.body, context);
|
|
5374
3347
|
let contents = {};
|
|
@@ -5382,108 +3355,22 @@ var de_ModifyReplicationGroupShardConfigurationCommand = /* @__PURE__ */ __name(
|
|
|
5382
3355
|
};
|
|
5383
3356
|
return response;
|
|
5384
3357
|
}, "de_ModifyReplicationGroupShardConfigurationCommand");
|
|
5385
|
-
var
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
case "InvalidCacheClusterState":
|
|
5396
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
5397
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
5398
|
-
case "InvalidKMSKeyFault":
|
|
5399
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
5400
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
5401
|
-
case "InvalidParameterCombination":
|
|
5402
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5403
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5404
|
-
case "InvalidParameterValue":
|
|
5405
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5406
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5407
|
-
case "InvalidReplicationGroupState":
|
|
5408
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
5409
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5410
|
-
case "InvalidVPCNetworkStateFault":
|
|
5411
|
-
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
5412
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
5413
|
-
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
5414
|
-
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
5415
|
-
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
5416
|
-
case "NodeQuotaForCustomerExceeded":
|
|
5417
|
-
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
5418
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
5419
|
-
case "ReplicationGroupNotFoundFault":
|
|
5420
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5421
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5422
|
-
default:
|
|
5423
|
-
const parsedBody = parsedOutput.body;
|
|
5424
|
-
return throwDefaultError({
|
|
5425
|
-
output,
|
|
5426
|
-
parsedBody: parsedBody.Error,
|
|
5427
|
-
errorCode
|
|
5428
|
-
});
|
|
5429
|
-
}
|
|
5430
|
-
}, "de_ModifyReplicationGroupShardConfigurationCommandError");
|
|
5431
|
-
var de_ModifyServerlessCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5432
|
-
if (output.statusCode >= 300) {
|
|
5433
|
-
return de_ModifyServerlessCacheCommandError(output, context);
|
|
5434
|
-
}
|
|
5435
|
-
const data = await parseBody(output.body, context);
|
|
5436
|
-
let contents = {};
|
|
5437
|
-
contents = de_ModifyServerlessCacheResponse(data.ModifyServerlessCacheResult, context);
|
|
5438
|
-
const response = {
|
|
5439
|
-
$metadata: deserializeMetadata(output),
|
|
5440
|
-
...contents
|
|
3358
|
+
var de_ModifyServerlessCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3359
|
+
if (output.statusCode >= 300) {
|
|
3360
|
+
return de_CommandError(output, context);
|
|
3361
|
+
}
|
|
3362
|
+
const data = await parseBody(output.body, context);
|
|
3363
|
+
let contents = {};
|
|
3364
|
+
contents = de_ModifyServerlessCacheResponse(data.ModifyServerlessCacheResult, context);
|
|
3365
|
+
const response = {
|
|
3366
|
+
$metadata: deserializeMetadata(output),
|
|
3367
|
+
...contents
|
|
5441
3368
|
};
|
|
5442
3369
|
return response;
|
|
5443
3370
|
}, "de_ModifyServerlessCacheCommand");
|
|
5444
|
-
var de_ModifyServerlessCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5445
|
-
const parsedOutput = {
|
|
5446
|
-
...output,
|
|
5447
|
-
body: await parseErrorBody(output.body, context)
|
|
5448
|
-
};
|
|
5449
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5450
|
-
switch (errorCode) {
|
|
5451
|
-
case "InvalidCredentialsException":
|
|
5452
|
-
case "com.amazonaws.elasticache#InvalidCredentialsException":
|
|
5453
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
5454
|
-
case "InvalidParameterCombination":
|
|
5455
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5456
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5457
|
-
case "InvalidParameterValue":
|
|
5458
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5459
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5460
|
-
case "InvalidServerlessCacheStateFault":
|
|
5461
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
5462
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
5463
|
-
case "InvalidUserGroupState":
|
|
5464
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
5465
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
5466
|
-
case "ServerlessCacheNotFoundFault":
|
|
5467
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
5468
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
5469
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
5470
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
5471
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
5472
|
-
case "UserGroupNotFound":
|
|
5473
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
5474
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
5475
|
-
default:
|
|
5476
|
-
const parsedBody = parsedOutput.body;
|
|
5477
|
-
return throwDefaultError({
|
|
5478
|
-
output,
|
|
5479
|
-
parsedBody: parsedBody.Error,
|
|
5480
|
-
errorCode
|
|
5481
|
-
});
|
|
5482
|
-
}
|
|
5483
|
-
}, "de_ModifyServerlessCacheCommandError");
|
|
5484
3371
|
var de_ModifyUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5485
3372
|
if (output.statusCode >= 300) {
|
|
5486
|
-
return
|
|
3373
|
+
return de_CommandError(output, context);
|
|
5487
3374
|
}
|
|
5488
3375
|
const data = await parseBody(output.body, context);
|
|
5489
3376
|
let contents = {};
|
|
@@ -5494,40 +3381,9 @@ var de_ModifyUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5494
3381
|
};
|
|
5495
3382
|
return response;
|
|
5496
3383
|
}, "de_ModifyUserCommand");
|
|
5497
|
-
var de_ModifyUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5498
|
-
const parsedOutput = {
|
|
5499
|
-
...output,
|
|
5500
|
-
body: await parseErrorBody(output.body, context)
|
|
5501
|
-
};
|
|
5502
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5503
|
-
switch (errorCode) {
|
|
5504
|
-
case "InvalidParameterCombination":
|
|
5505
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5506
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5507
|
-
case "InvalidParameterValue":
|
|
5508
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5509
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5510
|
-
case "InvalidUserState":
|
|
5511
|
-
case "com.amazonaws.elasticache#InvalidUserStateFault":
|
|
5512
|
-
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
5513
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
5514
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
5515
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
5516
|
-
case "UserNotFound":
|
|
5517
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
5518
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
5519
|
-
default:
|
|
5520
|
-
const parsedBody = parsedOutput.body;
|
|
5521
|
-
return throwDefaultError({
|
|
5522
|
-
output,
|
|
5523
|
-
parsedBody: parsedBody.Error,
|
|
5524
|
-
errorCode
|
|
5525
|
-
});
|
|
5526
|
-
}
|
|
5527
|
-
}, "de_ModifyUserCommandError");
|
|
5528
3384
|
var de_ModifyUserGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5529
3385
|
if (output.statusCode >= 300) {
|
|
5530
|
-
return
|
|
3386
|
+
return de_CommandError(output, context);
|
|
5531
3387
|
}
|
|
5532
3388
|
const data = await parseBody(output.body, context);
|
|
5533
3389
|
let contents = {};
|
|
@@ -5538,49 +3394,9 @@ var de_ModifyUserGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
5538
3394
|
};
|
|
5539
3395
|
return response;
|
|
5540
3396
|
}, "de_ModifyUserGroupCommand");
|
|
5541
|
-
var de_ModifyUserGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5542
|
-
const parsedOutput = {
|
|
5543
|
-
...output,
|
|
5544
|
-
body: await parseErrorBody(output.body, context)
|
|
5545
|
-
};
|
|
5546
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5547
|
-
switch (errorCode) {
|
|
5548
|
-
case "DefaultUserRequired":
|
|
5549
|
-
case "com.amazonaws.elasticache#DefaultUserRequired":
|
|
5550
|
-
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
5551
|
-
case "DuplicateUserName":
|
|
5552
|
-
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
5553
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
5554
|
-
case "InvalidParameterCombination":
|
|
5555
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5556
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5557
|
-
case "InvalidParameterValue":
|
|
5558
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5559
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5560
|
-
case "InvalidUserGroupState":
|
|
5561
|
-
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
5562
|
-
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
5563
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
5564
|
-
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
5565
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
5566
|
-
case "UserGroupNotFound":
|
|
5567
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
5568
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
5569
|
-
case "UserNotFound":
|
|
5570
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
5571
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
5572
|
-
default:
|
|
5573
|
-
const parsedBody = parsedOutput.body;
|
|
5574
|
-
return throwDefaultError({
|
|
5575
|
-
output,
|
|
5576
|
-
parsedBody: parsedBody.Error,
|
|
5577
|
-
errorCode
|
|
5578
|
-
});
|
|
5579
|
-
}
|
|
5580
|
-
}, "de_ModifyUserGroupCommandError");
|
|
5581
3397
|
var de_PurchaseReservedCacheNodesOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5582
3398
|
if (output.statusCode >= 300) {
|
|
5583
|
-
return
|
|
3399
|
+
return de_CommandError(output, context);
|
|
5584
3400
|
}
|
|
5585
3401
|
const data = await parseBody(output.body, context);
|
|
5586
3402
|
let contents = {};
|
|
@@ -5591,43 +3407,9 @@ var de_PurchaseReservedCacheNodesOfferingCommand = /* @__PURE__ */ __name(async
|
|
|
5591
3407
|
};
|
|
5592
3408
|
return response;
|
|
5593
3409
|
}, "de_PurchaseReservedCacheNodesOfferingCommand");
|
|
5594
|
-
var de_PurchaseReservedCacheNodesOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5595
|
-
const parsedOutput = {
|
|
5596
|
-
...output,
|
|
5597
|
-
body: await parseErrorBody(output.body, context)
|
|
5598
|
-
};
|
|
5599
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5600
|
-
switch (errorCode) {
|
|
5601
|
-
case "InvalidParameterCombination":
|
|
5602
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5603
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5604
|
-
case "InvalidParameterValue":
|
|
5605
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5606
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5607
|
-
case "ReservedCacheNodeAlreadyExists":
|
|
5608
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeAlreadyExistsFault":
|
|
5609
|
-
throw await de_ReservedCacheNodeAlreadyExistsFaultRes(parsedOutput, context);
|
|
5610
|
-
case "ReservedCacheNodeQuotaExceeded":
|
|
5611
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeQuotaExceededFault":
|
|
5612
|
-
throw await de_ReservedCacheNodeQuotaExceededFaultRes(parsedOutput, context);
|
|
5613
|
-
case "ReservedCacheNodesOfferingNotFound":
|
|
5614
|
-
case "com.amazonaws.elasticache#ReservedCacheNodesOfferingNotFoundFault":
|
|
5615
|
-
throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
5616
|
-
case "TagQuotaPerResourceExceeded":
|
|
5617
|
-
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
5618
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
5619
|
-
default:
|
|
5620
|
-
const parsedBody = parsedOutput.body;
|
|
5621
|
-
return throwDefaultError({
|
|
5622
|
-
output,
|
|
5623
|
-
parsedBody: parsedBody.Error,
|
|
5624
|
-
errorCode
|
|
5625
|
-
});
|
|
5626
|
-
}
|
|
5627
|
-
}, "de_PurchaseReservedCacheNodesOfferingCommandError");
|
|
5628
3410
|
var de_RebalanceSlotsInGlobalReplicationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5629
3411
|
if (output.statusCode >= 300) {
|
|
5630
|
-
return
|
|
3412
|
+
return de_CommandError(output, context);
|
|
5631
3413
|
}
|
|
5632
3414
|
const data = await parseBody(output.body, context);
|
|
5633
3415
|
let contents = {};
|
|
@@ -5641,34 +3423,9 @@ var de_RebalanceSlotsInGlobalReplicationGroupCommand = /* @__PURE__ */ __name(as
|
|
|
5641
3423
|
};
|
|
5642
3424
|
return response;
|
|
5643
3425
|
}, "de_RebalanceSlotsInGlobalReplicationGroupCommand");
|
|
5644
|
-
var de_RebalanceSlotsInGlobalReplicationGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5645
|
-
const parsedOutput = {
|
|
5646
|
-
...output,
|
|
5647
|
-
body: await parseErrorBody(output.body, context)
|
|
5648
|
-
};
|
|
5649
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5650
|
-
switch (errorCode) {
|
|
5651
|
-
case "GlobalReplicationGroupNotFoundFault":
|
|
5652
|
-
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
5653
|
-
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5654
|
-
case "InvalidGlobalReplicationGroupState":
|
|
5655
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
5656
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5657
|
-
case "InvalidParameterValue":
|
|
5658
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5659
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5660
|
-
default:
|
|
5661
|
-
const parsedBody = parsedOutput.body;
|
|
5662
|
-
return throwDefaultError({
|
|
5663
|
-
output,
|
|
5664
|
-
parsedBody: parsedBody.Error,
|
|
5665
|
-
errorCode
|
|
5666
|
-
});
|
|
5667
|
-
}
|
|
5668
|
-
}, "de_RebalanceSlotsInGlobalReplicationGroupCommandError");
|
|
5669
3426
|
var de_RebootCacheClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5670
3427
|
if (output.statusCode >= 300) {
|
|
5671
|
-
return
|
|
3428
|
+
return de_CommandError(output, context);
|
|
5672
3429
|
}
|
|
5673
3430
|
const data = await parseBody(output.body, context);
|
|
5674
3431
|
let contents = {};
|
|
@@ -5679,31 +3436,9 @@ var de_RebootCacheClusterCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
5679
3436
|
};
|
|
5680
3437
|
return response;
|
|
5681
3438
|
}, "de_RebootCacheClusterCommand");
|
|
5682
|
-
var de_RebootCacheClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5683
|
-
const parsedOutput = {
|
|
5684
|
-
...output,
|
|
5685
|
-
body: await parseErrorBody(output.body, context)
|
|
5686
|
-
};
|
|
5687
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5688
|
-
switch (errorCode) {
|
|
5689
|
-
case "CacheClusterNotFound":
|
|
5690
|
-
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
5691
|
-
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
5692
|
-
case "InvalidCacheClusterState":
|
|
5693
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
5694
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
5695
|
-
default:
|
|
5696
|
-
const parsedBody = parsedOutput.body;
|
|
5697
|
-
return throwDefaultError({
|
|
5698
|
-
output,
|
|
5699
|
-
parsedBody: parsedBody.Error,
|
|
5700
|
-
errorCode
|
|
5701
|
-
});
|
|
5702
|
-
}
|
|
5703
|
-
}, "de_RebootCacheClusterCommandError");
|
|
5704
3439
|
var de_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5705
3440
|
if (output.statusCode >= 300) {
|
|
5706
|
-
return
|
|
3441
|
+
return de_CommandError(output, context);
|
|
5707
3442
|
}
|
|
5708
3443
|
const data = await parseBody(output.body, context);
|
|
5709
3444
|
let contents = {};
|
|
@@ -5714,117 +3449,22 @@ var de_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
5714
3449
|
};
|
|
5715
3450
|
return response;
|
|
5716
3451
|
}, "de_RemoveTagsFromResourceCommand");
|
|
5717
|
-
var
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
case "CacheParameterGroupNotFound":
|
|
5728
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
5729
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
5730
|
-
case "CacheSecurityGroupNotFound":
|
|
5731
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
5732
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
5733
|
-
case "CacheSubnetGroupNotFoundFault":
|
|
5734
|
-
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
5735
|
-
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
5736
|
-
case "InvalidARN":
|
|
5737
|
-
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
5738
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
5739
|
-
case "InvalidReplicationGroupState":
|
|
5740
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
5741
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5742
|
-
case "InvalidServerlessCacheSnapshotStateFault":
|
|
5743
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
5744
|
-
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
5745
|
-
case "InvalidServerlessCacheStateFault":
|
|
5746
|
-
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
5747
|
-
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
5748
|
-
case "ReplicationGroupNotFoundFault":
|
|
5749
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5750
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5751
|
-
case "ReservedCacheNodeNotFound":
|
|
5752
|
-
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
5753
|
-
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
5754
|
-
case "ServerlessCacheNotFoundFault":
|
|
5755
|
-
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
5756
|
-
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
5757
|
-
case "ServerlessCacheSnapshotNotFoundFault":
|
|
5758
|
-
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
5759
|
-
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
5760
|
-
case "SnapshotNotFoundFault":
|
|
5761
|
-
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
5762
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
5763
|
-
case "TagNotFound":
|
|
5764
|
-
case "com.amazonaws.elasticache#TagNotFoundFault":
|
|
5765
|
-
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
5766
|
-
case "UserGroupNotFound":
|
|
5767
|
-
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
5768
|
-
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
5769
|
-
case "UserNotFound":
|
|
5770
|
-
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
5771
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
5772
|
-
default:
|
|
5773
|
-
const parsedBody = parsedOutput.body;
|
|
5774
|
-
return throwDefaultError({
|
|
5775
|
-
output,
|
|
5776
|
-
parsedBody: parsedBody.Error,
|
|
5777
|
-
errorCode
|
|
5778
|
-
});
|
|
5779
|
-
}
|
|
5780
|
-
}, "de_RemoveTagsFromResourceCommandError");
|
|
5781
|
-
var de_ResetCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5782
|
-
if (output.statusCode >= 300) {
|
|
5783
|
-
return de_ResetCacheParameterGroupCommandError(output, context);
|
|
5784
|
-
}
|
|
5785
|
-
const data = await parseBody(output.body, context);
|
|
5786
|
-
let contents = {};
|
|
5787
|
-
contents = de_CacheParameterGroupNameMessage(data.ResetCacheParameterGroupResult, context);
|
|
5788
|
-
const response = {
|
|
5789
|
-
$metadata: deserializeMetadata(output),
|
|
5790
|
-
...contents
|
|
3452
|
+
var de_ResetCacheParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3453
|
+
if (output.statusCode >= 300) {
|
|
3454
|
+
return de_CommandError(output, context);
|
|
3455
|
+
}
|
|
3456
|
+
const data = await parseBody(output.body, context);
|
|
3457
|
+
let contents = {};
|
|
3458
|
+
contents = de_CacheParameterGroupNameMessage(data.ResetCacheParameterGroupResult, context);
|
|
3459
|
+
const response = {
|
|
3460
|
+
$metadata: deserializeMetadata(output),
|
|
3461
|
+
...contents
|
|
5791
3462
|
};
|
|
5792
3463
|
return response;
|
|
5793
3464
|
}, "de_ResetCacheParameterGroupCommand");
|
|
5794
|
-
var de_ResetCacheParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5795
|
-
const parsedOutput = {
|
|
5796
|
-
...output,
|
|
5797
|
-
body: await parseErrorBody(output.body, context)
|
|
5798
|
-
};
|
|
5799
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5800
|
-
switch (errorCode) {
|
|
5801
|
-
case "CacheParameterGroupNotFound":
|
|
5802
|
-
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
5803
|
-
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
5804
|
-
case "InvalidCacheParameterGroupState":
|
|
5805
|
-
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
5806
|
-
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
5807
|
-
case "InvalidGlobalReplicationGroupState":
|
|
5808
|
-
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
5809
|
-
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5810
|
-
case "InvalidParameterCombination":
|
|
5811
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5812
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5813
|
-
case "InvalidParameterValue":
|
|
5814
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5815
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5816
|
-
default:
|
|
5817
|
-
const parsedBody = parsedOutput.body;
|
|
5818
|
-
return throwDefaultError({
|
|
5819
|
-
output,
|
|
5820
|
-
parsedBody: parsedBody.Error,
|
|
5821
|
-
errorCode
|
|
5822
|
-
});
|
|
5823
|
-
}
|
|
5824
|
-
}, "de_ResetCacheParameterGroupCommandError");
|
|
5825
3465
|
var de_RevokeCacheSecurityGroupIngressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5826
3466
|
if (output.statusCode >= 300) {
|
|
5827
|
-
return
|
|
3467
|
+
return de_CommandError(output, context);
|
|
5828
3468
|
}
|
|
5829
3469
|
const data = await parseBody(output.body, context);
|
|
5830
3470
|
let contents = {};
|
|
@@ -5835,40 +3475,9 @@ var de_RevokeCacheSecurityGroupIngressCommand = /* @__PURE__ */ __name(async (ou
|
|
|
5835
3475
|
};
|
|
5836
3476
|
return response;
|
|
5837
3477
|
}, "de_RevokeCacheSecurityGroupIngressCommand");
|
|
5838
|
-
var de_RevokeCacheSecurityGroupIngressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5839
|
-
const parsedOutput = {
|
|
5840
|
-
...output,
|
|
5841
|
-
body: await parseErrorBody(output.body, context)
|
|
5842
|
-
};
|
|
5843
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5844
|
-
switch (errorCode) {
|
|
5845
|
-
case "AuthorizationNotFound":
|
|
5846
|
-
case "com.amazonaws.elasticache#AuthorizationNotFoundFault":
|
|
5847
|
-
throw await de_AuthorizationNotFoundFaultRes(parsedOutput, context);
|
|
5848
|
-
case "CacheSecurityGroupNotFound":
|
|
5849
|
-
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
5850
|
-
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
5851
|
-
case "InvalidCacheSecurityGroupState":
|
|
5852
|
-
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
5853
|
-
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
5854
|
-
case "InvalidParameterCombination":
|
|
5855
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5856
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5857
|
-
case "InvalidParameterValue":
|
|
5858
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5859
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5860
|
-
default:
|
|
5861
|
-
const parsedBody = parsedOutput.body;
|
|
5862
|
-
return throwDefaultError({
|
|
5863
|
-
output,
|
|
5864
|
-
parsedBody: parsedBody.Error,
|
|
5865
|
-
errorCode
|
|
5866
|
-
});
|
|
5867
|
-
}
|
|
5868
|
-
}, "de_RevokeCacheSecurityGroupIngressCommandError");
|
|
5869
3478
|
var de_StartMigrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5870
3479
|
if (output.statusCode >= 300) {
|
|
5871
|
-
return
|
|
3480
|
+
return de_CommandError(output, context);
|
|
5872
3481
|
}
|
|
5873
3482
|
const data = await parseBody(output.body, context);
|
|
5874
3483
|
let contents = {};
|
|
@@ -5879,37 +3488,9 @@ var de_StartMigrationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5879
3488
|
};
|
|
5880
3489
|
return response;
|
|
5881
3490
|
}, "de_StartMigrationCommand");
|
|
5882
|
-
var de_StartMigrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5883
|
-
const parsedOutput = {
|
|
5884
|
-
...output,
|
|
5885
|
-
body: await parseErrorBody(output.body, context)
|
|
5886
|
-
};
|
|
5887
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5888
|
-
switch (errorCode) {
|
|
5889
|
-
case "InvalidParameterValue":
|
|
5890
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5891
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5892
|
-
case "InvalidReplicationGroupState":
|
|
5893
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
5894
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5895
|
-
case "ReplicationGroupAlreadyUnderMigrationFault":
|
|
5896
|
-
case "com.amazonaws.elasticache#ReplicationGroupAlreadyUnderMigrationFault":
|
|
5897
|
-
throw await de_ReplicationGroupAlreadyUnderMigrationFaultRes(parsedOutput, context);
|
|
5898
|
-
case "ReplicationGroupNotFoundFault":
|
|
5899
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5900
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5901
|
-
default:
|
|
5902
|
-
const parsedBody = parsedOutput.body;
|
|
5903
|
-
return throwDefaultError({
|
|
5904
|
-
output,
|
|
5905
|
-
parsedBody: parsedBody.Error,
|
|
5906
|
-
errorCode
|
|
5907
|
-
});
|
|
5908
|
-
}
|
|
5909
|
-
}, "de_StartMigrationCommandError");
|
|
5910
3491
|
var de_TestFailoverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5911
3492
|
if (output.statusCode >= 300) {
|
|
5912
|
-
return
|
|
3493
|
+
return de_CommandError(output, context);
|
|
5913
3494
|
}
|
|
5914
3495
|
const data = await parseBody(output.body, context);
|
|
5915
3496
|
let contents = {};
|
|
@@ -5920,52 +3501,9 @@ var de_TestFailoverCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5920
3501
|
};
|
|
5921
3502
|
return response;
|
|
5922
3503
|
}, "de_TestFailoverCommand");
|
|
5923
|
-
var de_TestFailoverCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5924
|
-
const parsedOutput = {
|
|
5925
|
-
...output,
|
|
5926
|
-
body: await parseErrorBody(output.body, context)
|
|
5927
|
-
};
|
|
5928
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5929
|
-
switch (errorCode) {
|
|
5930
|
-
case "APICallRateForCustomerExceeded":
|
|
5931
|
-
case "com.amazonaws.elasticache#APICallRateForCustomerExceededFault":
|
|
5932
|
-
throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
|
|
5933
|
-
case "InvalidCacheClusterState":
|
|
5934
|
-
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
5935
|
-
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
5936
|
-
case "InvalidKMSKeyFault":
|
|
5937
|
-
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
5938
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
5939
|
-
case "InvalidParameterCombination":
|
|
5940
|
-
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
5941
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5942
|
-
case "InvalidParameterValue":
|
|
5943
|
-
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
5944
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5945
|
-
case "InvalidReplicationGroupState":
|
|
5946
|
-
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
5947
|
-
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5948
|
-
case "NodeGroupNotFoundFault":
|
|
5949
|
-
case "com.amazonaws.elasticache#NodeGroupNotFoundFault":
|
|
5950
|
-
throw await de_NodeGroupNotFoundFaultRes(parsedOutput, context);
|
|
5951
|
-
case "ReplicationGroupNotFoundFault":
|
|
5952
|
-
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5953
|
-
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
5954
|
-
case "TestFailoverNotAvailableFault":
|
|
5955
|
-
case "com.amazonaws.elasticache#TestFailoverNotAvailableFault":
|
|
5956
|
-
throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
|
|
5957
|
-
default:
|
|
5958
|
-
const parsedBody = parsedOutput.body;
|
|
5959
|
-
return throwDefaultError({
|
|
5960
|
-
output,
|
|
5961
|
-
parsedBody: parsedBody.Error,
|
|
5962
|
-
errorCode
|
|
5963
|
-
});
|
|
5964
|
-
}
|
|
5965
|
-
}, "de_TestFailoverCommandError");
|
|
5966
3504
|
var de_TestMigrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5967
3505
|
if (output.statusCode >= 300) {
|
|
5968
|
-
return
|
|
3506
|
+
return de_CommandError(output, context);
|
|
5969
3507
|
}
|
|
5970
3508
|
const data = await parseBody(output.body, context);
|
|
5971
3509
|
let contents = {};
|
|
@@ -5976,25 +3514,241 @@ var de_TestMigrationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5976
3514
|
};
|
|
5977
3515
|
return response;
|
|
5978
3516
|
}, "de_TestMigrationCommand");
|
|
5979
|
-
var
|
|
3517
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5980
3518
|
const parsedOutput = {
|
|
5981
3519
|
...output,
|
|
5982
3520
|
body: await parseErrorBody(output.body, context)
|
|
5983
3521
|
};
|
|
5984
3522
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5985
3523
|
switch (errorCode) {
|
|
5986
|
-
case "
|
|
5987
|
-
case "com.amazonaws.elasticache#
|
|
5988
|
-
throw await
|
|
3524
|
+
case "CacheClusterNotFound":
|
|
3525
|
+
case "com.amazonaws.elasticache#CacheClusterNotFoundFault":
|
|
3526
|
+
throw await de_CacheClusterNotFoundFaultRes(parsedOutput, context);
|
|
3527
|
+
case "CacheParameterGroupNotFound":
|
|
3528
|
+
case "com.amazonaws.elasticache#CacheParameterGroupNotFoundFault":
|
|
3529
|
+
throw await de_CacheParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3530
|
+
case "CacheSecurityGroupNotFound":
|
|
3531
|
+
case "com.amazonaws.elasticache#CacheSecurityGroupNotFoundFault":
|
|
3532
|
+
throw await de_CacheSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
3533
|
+
case "CacheSubnetGroupNotFoundFault":
|
|
3534
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupNotFoundFault":
|
|
3535
|
+
throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
3536
|
+
case "InvalidARN":
|
|
3537
|
+
case "com.amazonaws.elasticache#InvalidARNFault":
|
|
3538
|
+
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
5989
3539
|
case "InvalidReplicationGroupState":
|
|
5990
3540
|
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
5991
3541
|
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
5992
|
-
case "
|
|
5993
|
-
case "com.amazonaws.elasticache#
|
|
5994
|
-
throw await
|
|
3542
|
+
case "InvalidServerlessCacheSnapshotStateFault":
|
|
3543
|
+
case "com.amazonaws.elasticache#InvalidServerlessCacheSnapshotStateFault":
|
|
3544
|
+
throw await de_InvalidServerlessCacheSnapshotStateFaultRes(parsedOutput, context);
|
|
3545
|
+
case "InvalidServerlessCacheStateFault":
|
|
3546
|
+
case "com.amazonaws.elasticache#InvalidServerlessCacheStateFault":
|
|
3547
|
+
throw await de_InvalidServerlessCacheStateFaultRes(parsedOutput, context);
|
|
5995
3548
|
case "ReplicationGroupNotFoundFault":
|
|
5996
3549
|
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
5997
3550
|
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3551
|
+
case "ReservedCacheNodeNotFound":
|
|
3552
|
+
case "com.amazonaws.elasticache#ReservedCacheNodeNotFoundFault":
|
|
3553
|
+
throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
|
|
3554
|
+
case "ServerlessCacheNotFoundFault":
|
|
3555
|
+
case "com.amazonaws.elasticache#ServerlessCacheNotFoundFault":
|
|
3556
|
+
throw await de_ServerlessCacheNotFoundFaultRes(parsedOutput, context);
|
|
3557
|
+
case "ServerlessCacheSnapshotNotFoundFault":
|
|
3558
|
+
case "com.amazonaws.elasticache#ServerlessCacheSnapshotNotFoundFault":
|
|
3559
|
+
throw await de_ServerlessCacheSnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3560
|
+
case "SnapshotNotFoundFault":
|
|
3561
|
+
case "com.amazonaws.elasticache#SnapshotNotFoundFault":
|
|
3562
|
+
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
3563
|
+
case "TagQuotaPerResourceExceeded":
|
|
3564
|
+
case "com.amazonaws.elasticache#TagQuotaPerResourceExceeded":
|
|
3565
|
+
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
3566
|
+
case "UserGroupNotFound":
|
|
3567
|
+
case "com.amazonaws.elasticache#UserGroupNotFoundFault":
|
|
3568
|
+
throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
|
|
3569
|
+
case "UserNotFound":
|
|
3570
|
+
case "com.amazonaws.elasticache#UserNotFoundFault":
|
|
3571
|
+
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
3572
|
+
case "AuthorizationAlreadyExists":
|
|
3573
|
+
case "com.amazonaws.elasticache#AuthorizationAlreadyExistsFault":
|
|
3574
|
+
throw await de_AuthorizationAlreadyExistsFaultRes(parsedOutput, context);
|
|
3575
|
+
case "InvalidCacheSecurityGroupState":
|
|
3576
|
+
case "com.amazonaws.elasticache#InvalidCacheSecurityGroupStateFault":
|
|
3577
|
+
throw await de_InvalidCacheSecurityGroupStateFaultRes(parsedOutput, context);
|
|
3578
|
+
case "InvalidParameterCombination":
|
|
3579
|
+
case "com.amazonaws.elasticache#InvalidParameterCombinationException":
|
|
3580
|
+
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3581
|
+
case "InvalidParameterValue":
|
|
3582
|
+
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3583
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3584
|
+
case "ServiceUpdateNotFoundFault":
|
|
3585
|
+
case "com.amazonaws.elasticache#ServiceUpdateNotFoundFault":
|
|
3586
|
+
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
3587
|
+
case "ReplicationGroupNotUnderMigrationFault":
|
|
3588
|
+
case "com.amazonaws.elasticache#ReplicationGroupNotUnderMigrationFault":
|
|
3589
|
+
throw await de_ReplicationGroupNotUnderMigrationFaultRes(parsedOutput, context);
|
|
3590
|
+
case "ServerlessCacheSnapshotAlreadyExistsFault":
|
|
3591
|
+
case "com.amazonaws.elasticache#ServerlessCacheSnapshotAlreadyExistsFault":
|
|
3592
|
+
throw await de_ServerlessCacheSnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
3593
|
+
case "ServerlessCacheSnapshotQuotaExceededFault":
|
|
3594
|
+
case "com.amazonaws.elasticache#ServerlessCacheSnapshotQuotaExceededFault":
|
|
3595
|
+
throw await de_ServerlessCacheSnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
3596
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
3597
|
+
case "com.amazonaws.elasticache#ServiceLinkedRoleNotFoundFault":
|
|
3598
|
+
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
3599
|
+
case "InvalidSnapshotState":
|
|
3600
|
+
case "com.amazonaws.elasticache#InvalidSnapshotStateFault":
|
|
3601
|
+
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
3602
|
+
case "SnapshotAlreadyExistsFault":
|
|
3603
|
+
case "com.amazonaws.elasticache#SnapshotAlreadyExistsFault":
|
|
3604
|
+
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
3605
|
+
case "SnapshotQuotaExceededFault":
|
|
3606
|
+
case "com.amazonaws.elasticache#SnapshotQuotaExceededFault":
|
|
3607
|
+
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
3608
|
+
case "CacheClusterAlreadyExists":
|
|
3609
|
+
case "com.amazonaws.elasticache#CacheClusterAlreadyExistsFault":
|
|
3610
|
+
throw await de_CacheClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
3611
|
+
case "ClusterQuotaForCustomerExceeded":
|
|
3612
|
+
case "com.amazonaws.elasticache#ClusterQuotaForCustomerExceededFault":
|
|
3613
|
+
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3614
|
+
case "InsufficientCacheClusterCapacity":
|
|
3615
|
+
case "com.amazonaws.elasticache#InsufficientCacheClusterCapacityFault":
|
|
3616
|
+
throw await de_InsufficientCacheClusterCapacityFaultRes(parsedOutput, context);
|
|
3617
|
+
case "InvalidVPCNetworkStateFault":
|
|
3618
|
+
case "com.amazonaws.elasticache#InvalidVPCNetworkStateFault":
|
|
3619
|
+
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
3620
|
+
case "NodeQuotaForClusterExceeded":
|
|
3621
|
+
case "com.amazonaws.elasticache#NodeQuotaForClusterExceededFault":
|
|
3622
|
+
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
3623
|
+
case "NodeQuotaForCustomerExceeded":
|
|
3624
|
+
case "com.amazonaws.elasticache#NodeQuotaForCustomerExceededFault":
|
|
3625
|
+
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3626
|
+
case "CacheParameterGroupAlreadyExists":
|
|
3627
|
+
case "com.amazonaws.elasticache#CacheParameterGroupAlreadyExistsFault":
|
|
3628
|
+
throw await de_CacheParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3629
|
+
case "CacheParameterGroupQuotaExceeded":
|
|
3630
|
+
case "com.amazonaws.elasticache#CacheParameterGroupQuotaExceededFault":
|
|
3631
|
+
throw await de_CacheParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3632
|
+
case "InvalidCacheParameterGroupState":
|
|
3633
|
+
case "com.amazonaws.elasticache#InvalidCacheParameterGroupStateFault":
|
|
3634
|
+
throw await de_InvalidCacheParameterGroupStateFaultRes(parsedOutput, context);
|
|
3635
|
+
case "CacheSecurityGroupAlreadyExists":
|
|
3636
|
+
case "com.amazonaws.elasticache#CacheSecurityGroupAlreadyExistsFault":
|
|
3637
|
+
throw await de_CacheSecurityGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3638
|
+
case "QuotaExceeded.CacheSecurityGroup":
|
|
3639
|
+
case "com.amazonaws.elasticache#CacheSecurityGroupQuotaExceededFault":
|
|
3640
|
+
throw await de_CacheSecurityGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3641
|
+
case "CacheSubnetGroupAlreadyExists":
|
|
3642
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupAlreadyExistsFault":
|
|
3643
|
+
throw await de_CacheSubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3644
|
+
case "CacheSubnetGroupQuotaExceeded":
|
|
3645
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupQuotaExceededFault":
|
|
3646
|
+
throw await de_CacheSubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3647
|
+
case "CacheSubnetQuotaExceededFault":
|
|
3648
|
+
case "com.amazonaws.elasticache#CacheSubnetQuotaExceededFault":
|
|
3649
|
+
throw await de_CacheSubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
3650
|
+
case "InvalidSubnet":
|
|
3651
|
+
case "com.amazonaws.elasticache#InvalidSubnet":
|
|
3652
|
+
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
3653
|
+
case "SubnetNotAllowedFault":
|
|
3654
|
+
case "com.amazonaws.elasticache#SubnetNotAllowedFault":
|
|
3655
|
+
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
3656
|
+
case "GlobalReplicationGroupAlreadyExistsFault":
|
|
3657
|
+
case "com.amazonaws.elasticache#GlobalReplicationGroupAlreadyExistsFault":
|
|
3658
|
+
throw await de_GlobalReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3659
|
+
case "GlobalReplicationGroupNotFoundFault":
|
|
3660
|
+
case "com.amazonaws.elasticache#GlobalReplicationGroupNotFoundFault":
|
|
3661
|
+
throw await de_GlobalReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3662
|
+
case "InvalidCacheClusterState":
|
|
3663
|
+
case "com.amazonaws.elasticache#InvalidCacheClusterStateFault":
|
|
3664
|
+
throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
|
|
3665
|
+
case "InvalidGlobalReplicationGroupState":
|
|
3666
|
+
case "com.amazonaws.elasticache#InvalidGlobalReplicationGroupStateFault":
|
|
3667
|
+
throw await de_InvalidGlobalReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3668
|
+
case "InvalidUserGroupState":
|
|
3669
|
+
case "com.amazonaws.elasticache#InvalidUserGroupStateFault":
|
|
3670
|
+
throw await de_InvalidUserGroupStateFaultRes(parsedOutput, context);
|
|
3671
|
+
case "NodeGroupsPerReplicationGroupQuotaExceeded":
|
|
3672
|
+
case "com.amazonaws.elasticache#NodeGroupsPerReplicationGroupQuotaExceededFault":
|
|
3673
|
+
throw await de_NodeGroupsPerReplicationGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3674
|
+
case "ReplicationGroupAlreadyExists":
|
|
3675
|
+
case "com.amazonaws.elasticache#ReplicationGroupAlreadyExistsFault":
|
|
3676
|
+
throw await de_ReplicationGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3677
|
+
case "InvalidCredentialsException":
|
|
3678
|
+
case "com.amazonaws.elasticache#InvalidCredentialsException":
|
|
3679
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
3680
|
+
case "ServerlessCacheAlreadyExistsFault":
|
|
3681
|
+
case "com.amazonaws.elasticache#ServerlessCacheAlreadyExistsFault":
|
|
3682
|
+
throw await de_ServerlessCacheAlreadyExistsFaultRes(parsedOutput, context);
|
|
3683
|
+
case "ServerlessCacheQuotaForCustomerExceededFault":
|
|
3684
|
+
case "com.amazonaws.elasticache#ServerlessCacheQuotaForCustomerExceededFault":
|
|
3685
|
+
throw await de_ServerlessCacheQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
3686
|
+
case "SnapshotFeatureNotSupportedFault":
|
|
3687
|
+
case "com.amazonaws.elasticache#SnapshotFeatureNotSupportedFault":
|
|
3688
|
+
throw await de_SnapshotFeatureNotSupportedFaultRes(parsedOutput, context);
|
|
3689
|
+
case "DuplicateUserName":
|
|
3690
|
+
case "com.amazonaws.elasticache#DuplicateUserNameFault":
|
|
3691
|
+
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
3692
|
+
case "UserAlreadyExists":
|
|
3693
|
+
case "com.amazonaws.elasticache#UserAlreadyExistsFault":
|
|
3694
|
+
throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
|
|
3695
|
+
case "UserQuotaExceeded":
|
|
3696
|
+
case "com.amazonaws.elasticache#UserQuotaExceededFault":
|
|
3697
|
+
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
3698
|
+
case "DefaultUserRequired":
|
|
3699
|
+
case "com.amazonaws.elasticache#DefaultUserRequired":
|
|
3700
|
+
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
3701
|
+
case "UserGroupAlreadyExists":
|
|
3702
|
+
case "com.amazonaws.elasticache#UserGroupAlreadyExistsFault":
|
|
3703
|
+
throw await de_UserGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
3704
|
+
case "UserGroupQuotaExceeded":
|
|
3705
|
+
case "com.amazonaws.elasticache#UserGroupQuotaExceededFault":
|
|
3706
|
+
throw await de_UserGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
3707
|
+
case "NoOperationFault":
|
|
3708
|
+
case "com.amazonaws.elasticache#NoOperationFault":
|
|
3709
|
+
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
3710
|
+
case "CacheSubnetGroupInUse":
|
|
3711
|
+
case "com.amazonaws.elasticache#CacheSubnetGroupInUse":
|
|
3712
|
+
throw await de_CacheSubnetGroupInUseRes(parsedOutput, context);
|
|
3713
|
+
case "DefaultUserAssociatedToUserGroup":
|
|
3714
|
+
case "com.amazonaws.elasticache#DefaultUserAssociatedToUserGroupFault":
|
|
3715
|
+
throw await de_DefaultUserAssociatedToUserGroupFaultRes(parsedOutput, context);
|
|
3716
|
+
case "InvalidUserState":
|
|
3717
|
+
case "com.amazonaws.elasticache#InvalidUserStateFault":
|
|
3718
|
+
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
3719
|
+
case "ReservedCacheNodesOfferingNotFound":
|
|
3720
|
+
case "com.amazonaws.elasticache#ReservedCacheNodesOfferingNotFoundFault":
|
|
3721
|
+
throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
3722
|
+
case "InvalidKMSKeyFault":
|
|
3723
|
+
case "com.amazonaws.elasticache#InvalidKMSKeyFault":
|
|
3724
|
+
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
3725
|
+
case "SubnetInUse":
|
|
3726
|
+
case "com.amazonaws.elasticache#SubnetInUse":
|
|
3727
|
+
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
3728
|
+
case "ReservedCacheNodeAlreadyExists":
|
|
3729
|
+
case "com.amazonaws.elasticache#ReservedCacheNodeAlreadyExistsFault":
|
|
3730
|
+
throw await de_ReservedCacheNodeAlreadyExistsFaultRes(parsedOutput, context);
|
|
3731
|
+
case "ReservedCacheNodeQuotaExceeded":
|
|
3732
|
+
case "com.amazonaws.elasticache#ReservedCacheNodeQuotaExceededFault":
|
|
3733
|
+
throw await de_ReservedCacheNodeQuotaExceededFaultRes(parsedOutput, context);
|
|
3734
|
+
case "TagNotFound":
|
|
3735
|
+
case "com.amazonaws.elasticache#TagNotFoundFault":
|
|
3736
|
+
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
3737
|
+
case "AuthorizationNotFound":
|
|
3738
|
+
case "com.amazonaws.elasticache#AuthorizationNotFoundFault":
|
|
3739
|
+
throw await de_AuthorizationNotFoundFaultRes(parsedOutput, context);
|
|
3740
|
+
case "ReplicationGroupAlreadyUnderMigrationFault":
|
|
3741
|
+
case "com.amazonaws.elasticache#ReplicationGroupAlreadyUnderMigrationFault":
|
|
3742
|
+
throw await de_ReplicationGroupAlreadyUnderMigrationFaultRes(parsedOutput, context);
|
|
3743
|
+
case "APICallRateForCustomerExceeded":
|
|
3744
|
+
case "com.amazonaws.elasticache#APICallRateForCustomerExceededFault":
|
|
3745
|
+
throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
|
|
3746
|
+
case "NodeGroupNotFoundFault":
|
|
3747
|
+
case "com.amazonaws.elasticache#NodeGroupNotFoundFault":
|
|
3748
|
+
throw await de_NodeGroupNotFoundFaultRes(parsedOutput, context);
|
|
3749
|
+
case "TestFailoverNotAvailableFault":
|
|
3750
|
+
case "com.amazonaws.elasticache#TestFailoverNotAvailableFault":
|
|
3751
|
+
throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
|
|
5998
3752
|
default:
|
|
5999
3753
|
const parsedBody = parsedOutput.body;
|
|
6000
3754
|
return throwDefaultError({
|
|
@@ -6003,7 +3757,7 @@ var de_TestMigrationCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
6003
3757
|
errorCode
|
|
6004
3758
|
});
|
|
6005
3759
|
}
|
|
6006
|
-
}, "
|
|
3760
|
+
}, "de_CommandError");
|
|
6007
3761
|
var de_APICallRateForCustomerExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
6008
3762
|
const body = parsedOutput.body;
|
|
6009
3763
|
const deserialized = de_APICallRateForCustomerExceededFault(body.Error, context);
|