@aws-sdk/client-lambda 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +178 -2178
- package/dist-es/protocols/Aws_restJson1.js +189 -2189
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2392,7 +2392,7 @@ var se_UpdateFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
2392
2392
|
}, "se_UpdateFunctionUrlConfigCommand");
|
|
2393
2393
|
var de_AddLayerVersionPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2394
2394
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2395
|
-
return
|
|
2395
|
+
return de_CommandError(output, context);
|
|
2396
2396
|
}
|
|
2397
2397
|
const contents = (0, import_smithy_client.map)({
|
|
2398
2398
|
$metadata: deserializeMetadata(output)
|
|
@@ -2405,46 +2405,9 @@ var de_AddLayerVersionPermissionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2405
2405
|
Object.assign(contents, doc);
|
|
2406
2406
|
return contents;
|
|
2407
2407
|
}, "de_AddLayerVersionPermissionCommand");
|
|
2408
|
-
var de_AddLayerVersionPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2409
|
-
const parsedOutput = {
|
|
2410
|
-
...output,
|
|
2411
|
-
body: await parseErrorBody(output.body, context)
|
|
2412
|
-
};
|
|
2413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
|
-
switch (errorCode) {
|
|
2415
|
-
case "InvalidParameterValueException":
|
|
2416
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2417
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "PolicyLengthExceededException":
|
|
2419
|
-
case "com.amazonaws.lambda#PolicyLengthExceededException":
|
|
2420
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "PreconditionFailedException":
|
|
2422
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
2423
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "ResourceConflictException":
|
|
2425
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2426
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ResourceNotFoundException":
|
|
2428
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ServiceException":
|
|
2431
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2432
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "TooManyRequestsException":
|
|
2434
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2435
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2436
|
-
default:
|
|
2437
|
-
const parsedBody = parsedOutput.body;
|
|
2438
|
-
return throwDefaultError({
|
|
2439
|
-
output,
|
|
2440
|
-
parsedBody,
|
|
2441
|
-
errorCode
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
}, "de_AddLayerVersionPermissionCommandError");
|
|
2445
2408
|
var de_AddPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2446
2409
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2447
|
-
return
|
|
2410
|
+
return de_CommandError(output, context);
|
|
2448
2411
|
}
|
|
2449
2412
|
const contents = (0, import_smithy_client.map)({
|
|
2450
2413
|
$metadata: deserializeMetadata(output)
|
|
@@ -2456,46 +2419,9 @@ var de_AddPermissionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2456
2419
|
Object.assign(contents, doc);
|
|
2457
2420
|
return contents;
|
|
2458
2421
|
}, "de_AddPermissionCommand");
|
|
2459
|
-
var de_AddPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2460
|
-
const parsedOutput = {
|
|
2461
|
-
...output,
|
|
2462
|
-
body: await parseErrorBody(output.body, context)
|
|
2463
|
-
};
|
|
2464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
|
-
switch (errorCode) {
|
|
2466
|
-
case "InvalidParameterValueException":
|
|
2467
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2468
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2469
|
-
case "PolicyLengthExceededException":
|
|
2470
|
-
case "com.amazonaws.lambda#PolicyLengthExceededException":
|
|
2471
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
2472
|
-
case "PreconditionFailedException":
|
|
2473
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
2474
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "ResourceConflictException":
|
|
2476
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2477
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "ResourceNotFoundException":
|
|
2479
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "ServiceException":
|
|
2482
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2483
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "TooManyRequestsException":
|
|
2485
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2486
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2487
|
-
default:
|
|
2488
|
-
const parsedBody = parsedOutput.body;
|
|
2489
|
-
return throwDefaultError({
|
|
2490
|
-
output,
|
|
2491
|
-
parsedBody,
|
|
2492
|
-
errorCode
|
|
2493
|
-
});
|
|
2494
|
-
}
|
|
2495
|
-
}, "de_AddPermissionCommandError");
|
|
2496
2422
|
var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2497
2423
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2498
|
-
return
|
|
2424
|
+
return de_CommandError(output, context);
|
|
2499
2425
|
}
|
|
2500
2426
|
const contents = (0, import_smithy_client.map)({
|
|
2501
2427
|
$metadata: deserializeMetadata(output)
|
|
@@ -2512,40 +2438,9 @@ var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2512
2438
|
Object.assign(contents, doc);
|
|
2513
2439
|
return contents;
|
|
2514
2440
|
}, "de_CreateAliasCommand");
|
|
2515
|
-
var de_CreateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2516
|
-
const parsedOutput = {
|
|
2517
|
-
...output,
|
|
2518
|
-
body: await parseErrorBody(output.body, context)
|
|
2519
|
-
};
|
|
2520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2521
|
-
switch (errorCode) {
|
|
2522
|
-
case "InvalidParameterValueException":
|
|
2523
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2524
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "ResourceConflictException":
|
|
2526
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2527
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "ResourceNotFoundException":
|
|
2529
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2530
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ServiceException":
|
|
2532
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2533
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "TooManyRequestsException":
|
|
2535
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2536
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2537
|
-
default:
|
|
2538
|
-
const parsedBody = parsedOutput.body;
|
|
2539
|
-
return throwDefaultError({
|
|
2540
|
-
output,
|
|
2541
|
-
parsedBody,
|
|
2542
|
-
errorCode
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
}, "de_CreateAliasCommandError");
|
|
2546
2441
|
var de_CreateCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2547
2442
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2548
|
-
return
|
|
2443
|
+
return de_CommandError(output, context);
|
|
2549
2444
|
}
|
|
2550
2445
|
const contents = (0, import_smithy_client.map)({
|
|
2551
2446
|
$metadata: deserializeMetadata(output)
|
|
@@ -2557,31 +2452,9 @@ var de_CreateCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2557
2452
|
Object.assign(contents, doc);
|
|
2558
2453
|
return contents;
|
|
2559
2454
|
}, "de_CreateCodeSigningConfigCommand");
|
|
2560
|
-
var de_CreateCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2561
|
-
const parsedOutput = {
|
|
2562
|
-
...output,
|
|
2563
|
-
body: await parseErrorBody(output.body, context)
|
|
2564
|
-
};
|
|
2565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2566
|
-
switch (errorCode) {
|
|
2567
|
-
case "InvalidParameterValueException":
|
|
2568
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2569
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "ServiceException":
|
|
2571
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2572
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2573
|
-
default:
|
|
2574
|
-
const parsedBody = parsedOutput.body;
|
|
2575
|
-
return throwDefaultError({
|
|
2576
|
-
output,
|
|
2577
|
-
parsedBody,
|
|
2578
|
-
errorCode
|
|
2579
|
-
});
|
|
2580
|
-
}
|
|
2581
|
-
}, "de_CreateCodeSigningConfigCommandError");
|
|
2582
2455
|
var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2583
2456
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2584
|
-
return
|
|
2457
|
+
return de_CommandError(output, context);
|
|
2585
2458
|
}
|
|
2586
2459
|
const contents = (0, import_smithy_client.map)({
|
|
2587
2460
|
$metadata: deserializeMetadata(output)
|
|
@@ -2619,40 +2492,9 @@ var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2619
2492
|
Object.assign(contents, doc);
|
|
2620
2493
|
return contents;
|
|
2621
2494
|
}, "de_CreateEventSourceMappingCommand");
|
|
2622
|
-
var de_CreateEventSourceMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2623
|
-
const parsedOutput = {
|
|
2624
|
-
...output,
|
|
2625
|
-
body: await parseErrorBody(output.body, context)
|
|
2626
|
-
};
|
|
2627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2628
|
-
switch (errorCode) {
|
|
2629
|
-
case "InvalidParameterValueException":
|
|
2630
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2631
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "ResourceConflictException":
|
|
2633
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2634
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ResourceNotFoundException":
|
|
2636
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "ServiceException":
|
|
2639
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2640
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "TooManyRequestsException":
|
|
2642
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2643
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2644
|
-
default:
|
|
2645
|
-
const parsedBody = parsedOutput.body;
|
|
2646
|
-
return throwDefaultError({
|
|
2647
|
-
output,
|
|
2648
|
-
parsedBody,
|
|
2649
|
-
errorCode
|
|
2650
|
-
});
|
|
2651
|
-
}
|
|
2652
|
-
}, "de_CreateEventSourceMappingCommandError");
|
|
2653
2495
|
var de_CreateFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2654
2496
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2655
|
-
return
|
|
2497
|
+
return de_CommandError(output, context);
|
|
2656
2498
|
}
|
|
2657
2499
|
const contents = (0, import_smithy_client.map)({
|
|
2658
2500
|
$metadata: deserializeMetadata(output)
|
|
@@ -2699,52 +2541,9 @@ var de_CreateFunctionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2699
2541
|
Object.assign(contents, doc);
|
|
2700
2542
|
return contents;
|
|
2701
2543
|
}, "de_CreateFunctionCommand");
|
|
2702
|
-
var de_CreateFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context)
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "CodeSigningConfigNotFoundException":
|
|
2710
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
2711
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "CodeStorageExceededException":
|
|
2713
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
2714
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "CodeVerificationFailedException":
|
|
2716
|
-
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
2717
|
-
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "InvalidCodeSignatureException":
|
|
2719
|
-
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
2720
|
-
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "InvalidParameterValueException":
|
|
2722
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2723
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ResourceConflictException":
|
|
2725
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2726
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ResourceNotFoundException":
|
|
2728
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2729
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "ServiceException":
|
|
2731
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2732
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2733
|
-
case "TooManyRequestsException":
|
|
2734
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2735
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2736
|
-
default:
|
|
2737
|
-
const parsedBody = parsedOutput.body;
|
|
2738
|
-
return throwDefaultError({
|
|
2739
|
-
output,
|
|
2740
|
-
parsedBody,
|
|
2741
|
-
errorCode
|
|
2742
|
-
});
|
|
2743
|
-
}
|
|
2744
|
-
}, "de_CreateFunctionCommandError");
|
|
2745
2544
|
var de_CreateFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2746
2545
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2747
|
-
return
|
|
2546
|
+
return de_CommandError(output, context);
|
|
2748
2547
|
}
|
|
2749
2548
|
const contents = (0, import_smithy_client.map)({
|
|
2750
2549
|
$metadata: deserializeMetadata(output)
|
|
@@ -2761,40 +2560,9 @@ var de_CreateFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2761
2560
|
Object.assign(contents, doc);
|
|
2762
2561
|
return contents;
|
|
2763
2562
|
}, "de_CreateFunctionUrlConfigCommand");
|
|
2764
|
-
var de_CreateFunctionUrlConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2765
|
-
const parsedOutput = {
|
|
2766
|
-
...output,
|
|
2767
|
-
body: await parseErrorBody(output.body, context)
|
|
2768
|
-
};
|
|
2769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2770
|
-
switch (errorCode) {
|
|
2771
|
-
case "InvalidParameterValueException":
|
|
2772
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2773
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2774
|
-
case "ResourceConflictException":
|
|
2775
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2776
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2777
|
-
case "ResourceNotFoundException":
|
|
2778
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "ServiceException":
|
|
2781
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2782
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "TooManyRequestsException":
|
|
2784
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2785
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2786
|
-
default:
|
|
2787
|
-
const parsedBody = parsedOutput.body;
|
|
2788
|
-
return throwDefaultError({
|
|
2789
|
-
output,
|
|
2790
|
-
parsedBody,
|
|
2791
|
-
errorCode
|
|
2792
|
-
});
|
|
2793
|
-
}
|
|
2794
|
-
}, "de_CreateFunctionUrlConfigCommandError");
|
|
2795
2563
|
var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2796
2564
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2797
|
-
return
|
|
2565
|
+
return de_CommandError(output, context);
|
|
2798
2566
|
}
|
|
2799
2567
|
const contents = (0, import_smithy_client.map)({
|
|
2800
2568
|
$metadata: deserializeMetadata(output)
|
|
@@ -2802,37 +2570,9 @@ var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2802
2570
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2803
2571
|
return contents;
|
|
2804
2572
|
}, "de_DeleteAliasCommand");
|
|
2805
|
-
var de_DeleteAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2806
|
-
const parsedOutput = {
|
|
2807
|
-
...output,
|
|
2808
|
-
body: await parseErrorBody(output.body, context)
|
|
2809
|
-
};
|
|
2810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
|
-
switch (errorCode) {
|
|
2812
|
-
case "InvalidParameterValueException":
|
|
2813
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2814
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2815
|
-
case "ResourceConflictException":
|
|
2816
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2817
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2818
|
-
case "ServiceException":
|
|
2819
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2820
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2821
|
-
case "TooManyRequestsException":
|
|
2822
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2823
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2824
|
-
default:
|
|
2825
|
-
const parsedBody = parsedOutput.body;
|
|
2826
|
-
return throwDefaultError({
|
|
2827
|
-
output,
|
|
2828
|
-
parsedBody,
|
|
2829
|
-
errorCode
|
|
2830
|
-
});
|
|
2831
|
-
}
|
|
2832
|
-
}, "de_DeleteAliasCommandError");
|
|
2833
2573
|
var de_DeleteCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2834
2574
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2835
|
-
return
|
|
2575
|
+
return de_CommandError(output, context);
|
|
2836
2576
|
}
|
|
2837
2577
|
const contents = (0, import_smithy_client.map)({
|
|
2838
2578
|
$metadata: deserializeMetadata(output)
|
|
@@ -2840,37 +2580,9 @@ var de_DeleteCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2840
2580
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2841
2581
|
return contents;
|
|
2842
2582
|
}, "de_DeleteCodeSigningConfigCommand");
|
|
2843
|
-
var de_DeleteCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2844
|
-
const parsedOutput = {
|
|
2845
|
-
...output,
|
|
2846
|
-
body: await parseErrorBody(output.body, context)
|
|
2847
|
-
};
|
|
2848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2849
|
-
switch (errorCode) {
|
|
2850
|
-
case "InvalidParameterValueException":
|
|
2851
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2852
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2853
|
-
case "ResourceConflictException":
|
|
2854
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2855
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2856
|
-
case "ResourceNotFoundException":
|
|
2857
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2858
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2859
|
-
case "ServiceException":
|
|
2860
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2861
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2862
|
-
default:
|
|
2863
|
-
const parsedBody = parsedOutput.body;
|
|
2864
|
-
return throwDefaultError({
|
|
2865
|
-
output,
|
|
2866
|
-
parsedBody,
|
|
2867
|
-
errorCode
|
|
2868
|
-
});
|
|
2869
|
-
}
|
|
2870
|
-
}, "de_DeleteCodeSigningConfigCommandError");
|
|
2871
2583
|
var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2872
2584
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2873
|
-
return
|
|
2585
|
+
return de_CommandError(output, context);
|
|
2874
2586
|
}
|
|
2875
2587
|
const contents = (0, import_smithy_client.map)({
|
|
2876
2588
|
$metadata: deserializeMetadata(output)
|
|
@@ -2908,43 +2620,9 @@ var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2908
2620
|
Object.assign(contents, doc);
|
|
2909
2621
|
return contents;
|
|
2910
2622
|
}, "de_DeleteEventSourceMappingCommand");
|
|
2911
|
-
var de_DeleteEventSourceMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2912
|
-
const parsedOutput = {
|
|
2913
|
-
...output,
|
|
2914
|
-
body: await parseErrorBody(output.body, context)
|
|
2915
|
-
};
|
|
2916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2917
|
-
switch (errorCode) {
|
|
2918
|
-
case "InvalidParameterValueException":
|
|
2919
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2920
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "ResourceConflictException":
|
|
2922
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2923
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2924
|
-
case "ResourceInUseException":
|
|
2925
|
-
case "com.amazonaws.lambda#ResourceInUseException":
|
|
2926
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "ResourceNotFoundException":
|
|
2928
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2929
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "ServiceException":
|
|
2931
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2932
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "TooManyRequestsException":
|
|
2934
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2935
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2936
|
-
default:
|
|
2937
|
-
const parsedBody = parsedOutput.body;
|
|
2938
|
-
return throwDefaultError({
|
|
2939
|
-
output,
|
|
2940
|
-
parsedBody,
|
|
2941
|
-
errorCode
|
|
2942
|
-
});
|
|
2943
|
-
}
|
|
2944
|
-
}, "de_DeleteEventSourceMappingCommandError");
|
|
2945
2623
|
var de_DeleteFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2946
2624
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2947
|
-
return
|
|
2625
|
+
return de_CommandError(output, context);
|
|
2948
2626
|
}
|
|
2949
2627
|
const contents = (0, import_smithy_client.map)({
|
|
2950
2628
|
$metadata: deserializeMetadata(output)
|
|
@@ -2952,40 +2630,9 @@ var de_DeleteFunctionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2952
2630
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2953
2631
|
return contents;
|
|
2954
2632
|
}, "de_DeleteFunctionCommand");
|
|
2955
|
-
var de_DeleteFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2956
|
-
const parsedOutput = {
|
|
2957
|
-
...output,
|
|
2958
|
-
body: await parseErrorBody(output.body, context)
|
|
2959
|
-
};
|
|
2960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2961
|
-
switch (errorCode) {
|
|
2962
|
-
case "InvalidParameterValueException":
|
|
2963
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2964
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2965
|
-
case "ResourceConflictException":
|
|
2966
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2967
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2968
|
-
case "ResourceNotFoundException":
|
|
2969
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2970
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2971
|
-
case "ServiceException":
|
|
2972
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2973
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "TooManyRequestsException":
|
|
2975
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2976
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2977
|
-
default:
|
|
2978
|
-
const parsedBody = parsedOutput.body;
|
|
2979
|
-
return throwDefaultError({
|
|
2980
|
-
output,
|
|
2981
|
-
parsedBody,
|
|
2982
|
-
errorCode
|
|
2983
|
-
});
|
|
2984
|
-
}
|
|
2985
|
-
}, "de_DeleteFunctionCommandError");
|
|
2986
2633
|
var de_DeleteFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2987
2634
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2988
|
-
return
|
|
2635
|
+
return de_CommandError(output, context);
|
|
2989
2636
|
}
|
|
2990
2637
|
const contents = (0, import_smithy_client.map)({
|
|
2991
2638
|
$metadata: deserializeMetadata(output)
|
|
@@ -2993,43 +2640,9 @@ var de_DeleteFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2993
2640
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2994
2641
|
return contents;
|
|
2995
2642
|
}, "de_DeleteFunctionCodeSigningConfigCommand");
|
|
2996
|
-
var de_DeleteFunctionCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2997
|
-
const parsedOutput = {
|
|
2998
|
-
...output,
|
|
2999
|
-
body: await parseErrorBody(output.body, context)
|
|
3000
|
-
};
|
|
3001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
|
-
switch (errorCode) {
|
|
3003
|
-
case "CodeSigningConfigNotFoundException":
|
|
3004
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
3005
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "InvalidParameterValueException":
|
|
3007
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3008
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "ResourceConflictException":
|
|
3010
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3011
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "ResourceNotFoundException":
|
|
3013
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3014
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "ServiceException":
|
|
3016
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3017
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "TooManyRequestsException":
|
|
3019
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3020
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3021
|
-
default:
|
|
3022
|
-
const parsedBody = parsedOutput.body;
|
|
3023
|
-
return throwDefaultError({
|
|
3024
|
-
output,
|
|
3025
|
-
parsedBody,
|
|
3026
|
-
errorCode
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
}, "de_DeleteFunctionCodeSigningConfigCommandError");
|
|
3030
2643
|
var de_DeleteFunctionConcurrencyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3031
2644
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3032
|
-
return
|
|
2645
|
+
return de_CommandError(output, context);
|
|
3033
2646
|
}
|
|
3034
2647
|
const contents = (0, import_smithy_client.map)({
|
|
3035
2648
|
$metadata: deserializeMetadata(output)
|
|
@@ -3037,40 +2650,9 @@ var de_DeleteFunctionConcurrencyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3037
2650
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3038
2651
|
return contents;
|
|
3039
2652
|
}, "de_DeleteFunctionConcurrencyCommand");
|
|
3040
|
-
var de_DeleteFunctionConcurrencyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
|
-
const parsedOutput = {
|
|
3042
|
-
...output,
|
|
3043
|
-
body: await parseErrorBody(output.body, context)
|
|
3044
|
-
};
|
|
3045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3046
|
-
switch (errorCode) {
|
|
3047
|
-
case "InvalidParameterValueException":
|
|
3048
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3049
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "ResourceConflictException":
|
|
3051
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3052
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "ResourceNotFoundException":
|
|
3054
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "ServiceException":
|
|
3057
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3058
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "TooManyRequestsException":
|
|
3060
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3061
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3062
|
-
default:
|
|
3063
|
-
const parsedBody = parsedOutput.body;
|
|
3064
|
-
return throwDefaultError({
|
|
3065
|
-
output,
|
|
3066
|
-
parsedBody,
|
|
3067
|
-
errorCode
|
|
3068
|
-
});
|
|
3069
|
-
}
|
|
3070
|
-
}, "de_DeleteFunctionConcurrencyCommandError");
|
|
3071
2653
|
var de_DeleteFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3072
2654
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3073
|
-
return
|
|
2655
|
+
return de_CommandError(output, context);
|
|
3074
2656
|
}
|
|
3075
2657
|
const contents = (0, import_smithy_client.map)({
|
|
3076
2658
|
$metadata: deserializeMetadata(output)
|
|
@@ -3078,40 +2660,9 @@ var de_DeleteFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3078
2660
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3079
2661
|
return contents;
|
|
3080
2662
|
}, "de_DeleteFunctionEventInvokeConfigCommand");
|
|
3081
|
-
var de_DeleteFunctionEventInvokeConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3082
|
-
const parsedOutput = {
|
|
3083
|
-
...output,
|
|
3084
|
-
body: await parseErrorBody(output.body, context)
|
|
3085
|
-
};
|
|
3086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
|
-
switch (errorCode) {
|
|
3088
|
-
case "InvalidParameterValueException":
|
|
3089
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3090
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3091
|
-
case "ResourceConflictException":
|
|
3092
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3093
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3094
|
-
case "ResourceNotFoundException":
|
|
3095
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3096
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "ServiceException":
|
|
3098
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3099
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "TooManyRequestsException":
|
|
3101
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3102
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3103
|
-
default:
|
|
3104
|
-
const parsedBody = parsedOutput.body;
|
|
3105
|
-
return throwDefaultError({
|
|
3106
|
-
output,
|
|
3107
|
-
parsedBody,
|
|
3108
|
-
errorCode
|
|
3109
|
-
});
|
|
3110
|
-
}
|
|
3111
|
-
}, "de_DeleteFunctionEventInvokeConfigCommandError");
|
|
3112
2663
|
var de_DeleteFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3113
2664
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3114
|
-
return
|
|
2665
|
+
return de_CommandError(output, context);
|
|
3115
2666
|
}
|
|
3116
2667
|
const contents = (0, import_smithy_client.map)({
|
|
3117
2668
|
$metadata: deserializeMetadata(output)
|
|
@@ -3119,37 +2670,9 @@ var de_DeleteFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3119
2670
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3120
2671
|
return contents;
|
|
3121
2672
|
}, "de_DeleteFunctionUrlConfigCommand");
|
|
3122
|
-
var de_DeleteFunctionUrlConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3123
|
-
const parsedOutput = {
|
|
3124
|
-
...output,
|
|
3125
|
-
body: await parseErrorBody(output.body, context)
|
|
3126
|
-
};
|
|
3127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3128
|
-
switch (errorCode) {
|
|
3129
|
-
case "ResourceConflictException":
|
|
3130
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3131
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3132
|
-
case "ResourceNotFoundException":
|
|
3133
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3134
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "ServiceException":
|
|
3136
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3137
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "TooManyRequestsException":
|
|
3139
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3141
|
-
default:
|
|
3142
|
-
const parsedBody = parsedOutput.body;
|
|
3143
|
-
return throwDefaultError({
|
|
3144
|
-
output,
|
|
3145
|
-
parsedBody,
|
|
3146
|
-
errorCode
|
|
3147
|
-
});
|
|
3148
|
-
}
|
|
3149
|
-
}, "de_DeleteFunctionUrlConfigCommandError");
|
|
3150
2673
|
var de_DeleteLayerVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3151
2674
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3152
|
-
return
|
|
2675
|
+
return de_CommandError(output, context);
|
|
3153
2676
|
}
|
|
3154
2677
|
const contents = (0, import_smithy_client.map)({
|
|
3155
2678
|
$metadata: deserializeMetadata(output)
|
|
@@ -3157,31 +2680,9 @@ var de_DeleteLayerVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3157
2680
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3158
2681
|
return contents;
|
|
3159
2682
|
}, "de_DeleteLayerVersionCommand");
|
|
3160
|
-
var de_DeleteLayerVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3161
|
-
const parsedOutput = {
|
|
3162
|
-
...output,
|
|
3163
|
-
body: await parseErrorBody(output.body, context)
|
|
3164
|
-
};
|
|
3165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3166
|
-
switch (errorCode) {
|
|
3167
|
-
case "ServiceException":
|
|
3168
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3169
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "TooManyRequestsException":
|
|
3171
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3172
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3173
|
-
default:
|
|
3174
|
-
const parsedBody = parsedOutput.body;
|
|
3175
|
-
return throwDefaultError({
|
|
3176
|
-
output,
|
|
3177
|
-
parsedBody,
|
|
3178
|
-
errorCode
|
|
3179
|
-
});
|
|
3180
|
-
}
|
|
3181
|
-
}, "de_DeleteLayerVersionCommandError");
|
|
3182
2683
|
var de_DeleteProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3183
2684
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3184
|
-
return
|
|
2685
|
+
return de_CommandError(output, context);
|
|
3185
2686
|
}
|
|
3186
2687
|
const contents = (0, import_smithy_client.map)({
|
|
3187
2688
|
$metadata: deserializeMetadata(output)
|
|
@@ -3189,40 +2690,9 @@ var de_DeleteProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async
|
|
|
3189
2690
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3190
2691
|
return contents;
|
|
3191
2692
|
}, "de_DeleteProvisionedConcurrencyConfigCommand");
|
|
3192
|
-
var de_DeleteProvisionedConcurrencyConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3193
|
-
const parsedOutput = {
|
|
3194
|
-
...output,
|
|
3195
|
-
body: await parseErrorBody(output.body, context)
|
|
3196
|
-
};
|
|
3197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3198
|
-
switch (errorCode) {
|
|
3199
|
-
case "InvalidParameterValueException":
|
|
3200
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3201
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3202
|
-
case "ResourceConflictException":
|
|
3203
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
3204
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "ResourceNotFoundException":
|
|
3206
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "ServiceException":
|
|
3209
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3210
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "TooManyRequestsException":
|
|
3212
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3213
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3214
|
-
default:
|
|
3215
|
-
const parsedBody = parsedOutput.body;
|
|
3216
|
-
return throwDefaultError({
|
|
3217
|
-
output,
|
|
3218
|
-
parsedBody,
|
|
3219
|
-
errorCode
|
|
3220
|
-
});
|
|
3221
|
-
}
|
|
3222
|
-
}, "de_DeleteProvisionedConcurrencyConfigCommandError");
|
|
3223
2693
|
var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3224
2694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3225
|
-
return
|
|
2695
|
+
return de_CommandError(output, context);
|
|
3226
2696
|
}
|
|
3227
2697
|
const contents = (0, import_smithy_client.map)({
|
|
3228
2698
|
$metadata: deserializeMetadata(output)
|
|
@@ -3235,31 +2705,9 @@ var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3235
2705
|
Object.assign(contents, doc);
|
|
3236
2706
|
return contents;
|
|
3237
2707
|
}, "de_GetAccountSettingsCommand");
|
|
3238
|
-
var de_GetAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3239
|
-
const parsedOutput = {
|
|
3240
|
-
...output,
|
|
3241
|
-
body: await parseErrorBody(output.body, context)
|
|
3242
|
-
};
|
|
3243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3244
|
-
switch (errorCode) {
|
|
3245
|
-
case "ServiceException":
|
|
3246
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3247
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3248
|
-
case "TooManyRequestsException":
|
|
3249
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3250
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3251
|
-
default:
|
|
3252
|
-
const parsedBody = parsedOutput.body;
|
|
3253
|
-
return throwDefaultError({
|
|
3254
|
-
output,
|
|
3255
|
-
parsedBody,
|
|
3256
|
-
errorCode
|
|
3257
|
-
});
|
|
3258
|
-
}
|
|
3259
|
-
}, "de_GetAccountSettingsCommandError");
|
|
3260
2708
|
var de_GetAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3261
2709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3262
|
-
return
|
|
2710
|
+
return de_CommandError(output, context);
|
|
3263
2711
|
}
|
|
3264
2712
|
const contents = (0, import_smithy_client.map)({
|
|
3265
2713
|
$metadata: deserializeMetadata(output)
|
|
@@ -3276,37 +2724,9 @@ var de_GetAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3276
2724
|
Object.assign(contents, doc);
|
|
3277
2725
|
return contents;
|
|
3278
2726
|
}, "de_GetAliasCommand");
|
|
3279
|
-
var de_GetAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3280
|
-
const parsedOutput = {
|
|
3281
|
-
...output,
|
|
3282
|
-
body: await parseErrorBody(output.body, context)
|
|
3283
|
-
};
|
|
3284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3285
|
-
switch (errorCode) {
|
|
3286
|
-
case "InvalidParameterValueException":
|
|
3287
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3288
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "ResourceNotFoundException":
|
|
3290
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3292
|
-
case "ServiceException":
|
|
3293
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3294
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "TooManyRequestsException":
|
|
3296
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3297
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3298
|
-
default:
|
|
3299
|
-
const parsedBody = parsedOutput.body;
|
|
3300
|
-
return throwDefaultError({
|
|
3301
|
-
output,
|
|
3302
|
-
parsedBody,
|
|
3303
|
-
errorCode
|
|
3304
|
-
});
|
|
3305
|
-
}
|
|
3306
|
-
}, "de_GetAliasCommandError");
|
|
3307
2727
|
var de_GetCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3308
2728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3309
|
-
return
|
|
2729
|
+
return de_CommandError(output, context);
|
|
3310
2730
|
}
|
|
3311
2731
|
const contents = (0, import_smithy_client.map)({
|
|
3312
2732
|
$metadata: deserializeMetadata(output)
|
|
@@ -3318,34 +2738,9 @@ var de_GetCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3318
2738
|
Object.assign(contents, doc);
|
|
3319
2739
|
return contents;
|
|
3320
2740
|
}, "de_GetCodeSigningConfigCommand");
|
|
3321
|
-
var de_GetCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3322
|
-
const parsedOutput = {
|
|
3323
|
-
...output,
|
|
3324
|
-
body: await parseErrorBody(output.body, context)
|
|
3325
|
-
};
|
|
3326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3327
|
-
switch (errorCode) {
|
|
3328
|
-
case "InvalidParameterValueException":
|
|
3329
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3330
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "ResourceNotFoundException":
|
|
3332
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ServiceException":
|
|
3335
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3336
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3337
|
-
default:
|
|
3338
|
-
const parsedBody = parsedOutput.body;
|
|
3339
|
-
return throwDefaultError({
|
|
3340
|
-
output,
|
|
3341
|
-
parsedBody,
|
|
3342
|
-
errorCode
|
|
3343
|
-
});
|
|
3344
|
-
}
|
|
3345
|
-
}, "de_GetCodeSigningConfigCommandError");
|
|
3346
2741
|
var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3347
2742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3348
|
-
return
|
|
2743
|
+
return de_CommandError(output, context);
|
|
3349
2744
|
}
|
|
3350
2745
|
const contents = (0, import_smithy_client.map)({
|
|
3351
2746
|
$metadata: deserializeMetadata(output)
|
|
@@ -3383,37 +2778,9 @@ var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3383
2778
|
Object.assign(contents, doc);
|
|
3384
2779
|
return contents;
|
|
3385
2780
|
}, "de_GetEventSourceMappingCommand");
|
|
3386
|
-
var de_GetEventSourceMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3387
|
-
const parsedOutput = {
|
|
3388
|
-
...output,
|
|
3389
|
-
body: await parseErrorBody(output.body, context)
|
|
3390
|
-
};
|
|
3391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3392
|
-
switch (errorCode) {
|
|
3393
|
-
case "InvalidParameterValueException":
|
|
3394
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3395
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3396
|
-
case "ResourceNotFoundException":
|
|
3397
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3398
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3399
|
-
case "ServiceException":
|
|
3400
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3401
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "TooManyRequestsException":
|
|
3403
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3404
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3405
|
-
default:
|
|
3406
|
-
const parsedBody = parsedOutput.body;
|
|
3407
|
-
return throwDefaultError({
|
|
3408
|
-
output,
|
|
3409
|
-
parsedBody,
|
|
3410
|
-
errorCode
|
|
3411
|
-
});
|
|
3412
|
-
}
|
|
3413
|
-
}, "de_GetEventSourceMappingCommandError");
|
|
3414
2781
|
var de_GetFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3415
2782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3416
|
-
return
|
|
2783
|
+
return de_CommandError(output, context);
|
|
3417
2784
|
}
|
|
3418
2785
|
const contents = (0, import_smithy_client.map)({
|
|
3419
2786
|
$metadata: deserializeMetadata(output)
|
|
@@ -3428,37 +2795,9 @@ var de_GetFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3428
2795
|
Object.assign(contents, doc);
|
|
3429
2796
|
return contents;
|
|
3430
2797
|
}, "de_GetFunctionCommand");
|
|
3431
|
-
var de_GetFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3432
|
-
const parsedOutput = {
|
|
3433
|
-
...output,
|
|
3434
|
-
body: await parseErrorBody(output.body, context)
|
|
3435
|
-
};
|
|
3436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3437
|
-
switch (errorCode) {
|
|
3438
|
-
case "InvalidParameterValueException":
|
|
3439
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3440
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3441
|
-
case "ResourceNotFoundException":
|
|
3442
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3443
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "ServiceException":
|
|
3445
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3446
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "TooManyRequestsException":
|
|
3448
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3449
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3450
|
-
default:
|
|
3451
|
-
const parsedBody = parsedOutput.body;
|
|
3452
|
-
return throwDefaultError({
|
|
3453
|
-
output,
|
|
3454
|
-
parsedBody,
|
|
3455
|
-
errorCode
|
|
3456
|
-
});
|
|
3457
|
-
}
|
|
3458
|
-
}, "de_GetFunctionCommandError");
|
|
3459
2798
|
var de_GetFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3460
2799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3461
|
-
return
|
|
2800
|
+
return de_CommandError(output, context);
|
|
3462
2801
|
}
|
|
3463
2802
|
const contents = (0, import_smithy_client.map)({
|
|
3464
2803
|
$metadata: deserializeMetadata(output)
|
|
@@ -3471,37 +2810,9 @@ var de_GetFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3471
2810
|
Object.assign(contents, doc);
|
|
3472
2811
|
return contents;
|
|
3473
2812
|
}, "de_GetFunctionCodeSigningConfigCommand");
|
|
3474
|
-
var de_GetFunctionCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3475
|
-
const parsedOutput = {
|
|
3476
|
-
...output,
|
|
3477
|
-
body: await parseErrorBody(output.body, context)
|
|
3478
|
-
};
|
|
3479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
|
-
switch (errorCode) {
|
|
3481
|
-
case "InvalidParameterValueException":
|
|
3482
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3483
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3484
|
-
case "ResourceNotFoundException":
|
|
3485
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3486
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3487
|
-
case "ServiceException":
|
|
3488
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3489
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3490
|
-
case "TooManyRequestsException":
|
|
3491
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3492
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3493
|
-
default:
|
|
3494
|
-
const parsedBody = parsedOutput.body;
|
|
3495
|
-
return throwDefaultError({
|
|
3496
|
-
output,
|
|
3497
|
-
parsedBody,
|
|
3498
|
-
errorCode
|
|
3499
|
-
});
|
|
3500
|
-
}
|
|
3501
|
-
}, "de_GetFunctionCodeSigningConfigCommandError");
|
|
3502
2813
|
var de_GetFunctionConcurrencyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3503
2814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3504
|
-
return
|
|
2815
|
+
return de_CommandError(output, context);
|
|
3505
2816
|
}
|
|
3506
2817
|
const contents = (0, import_smithy_client.map)({
|
|
3507
2818
|
$metadata: deserializeMetadata(output)
|
|
@@ -3513,37 +2824,9 @@ var de_GetFunctionConcurrencyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3513
2824
|
Object.assign(contents, doc);
|
|
3514
2825
|
return contents;
|
|
3515
2826
|
}, "de_GetFunctionConcurrencyCommand");
|
|
3516
|
-
var de_GetFunctionConcurrencyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3517
|
-
const parsedOutput = {
|
|
3518
|
-
...output,
|
|
3519
|
-
body: await parseErrorBody(output.body, context)
|
|
3520
|
-
};
|
|
3521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3522
|
-
switch (errorCode) {
|
|
3523
|
-
case "InvalidParameterValueException":
|
|
3524
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3525
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "ResourceNotFoundException":
|
|
3527
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3528
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "ServiceException":
|
|
3530
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3531
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "TooManyRequestsException":
|
|
3533
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3534
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3535
|
-
default:
|
|
3536
|
-
const parsedBody = parsedOutput.body;
|
|
3537
|
-
return throwDefaultError({
|
|
3538
|
-
output,
|
|
3539
|
-
parsedBody,
|
|
3540
|
-
errorCode
|
|
3541
|
-
});
|
|
3542
|
-
}
|
|
3543
|
-
}, "de_GetFunctionConcurrencyCommandError");
|
|
3544
2827
|
var de_GetFunctionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3545
2828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3546
|
-
return
|
|
2829
|
+
return de_CommandError(output, context);
|
|
3547
2830
|
}
|
|
3548
2831
|
const contents = (0, import_smithy_client.map)({
|
|
3549
2832
|
$metadata: deserializeMetadata(output)
|
|
@@ -3590,37 +2873,9 @@ var de_GetFunctionConfigurationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3590
2873
|
Object.assign(contents, doc);
|
|
3591
2874
|
return contents;
|
|
3592
2875
|
}, "de_GetFunctionConfigurationCommand");
|
|
3593
|
-
var de_GetFunctionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3594
|
-
const parsedOutput = {
|
|
3595
|
-
...output,
|
|
3596
|
-
body: await parseErrorBody(output.body, context)
|
|
3597
|
-
};
|
|
3598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3599
|
-
switch (errorCode) {
|
|
3600
|
-
case "InvalidParameterValueException":
|
|
3601
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3602
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3603
|
-
case "ResourceNotFoundException":
|
|
3604
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3606
|
-
case "ServiceException":
|
|
3607
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3608
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3609
|
-
case "TooManyRequestsException":
|
|
3610
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3611
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3612
|
-
default:
|
|
3613
|
-
const parsedBody = parsedOutput.body;
|
|
3614
|
-
return throwDefaultError({
|
|
3615
|
-
output,
|
|
3616
|
-
parsedBody,
|
|
3617
|
-
errorCode
|
|
3618
|
-
});
|
|
3619
|
-
}
|
|
3620
|
-
}, "de_GetFunctionConfigurationCommandError");
|
|
3621
2876
|
var de_GetFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3622
2877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3623
|
-
return
|
|
2878
|
+
return de_CommandError(output, context);
|
|
3624
2879
|
}
|
|
3625
2880
|
const contents = (0, import_smithy_client.map)({
|
|
3626
2881
|
$metadata: deserializeMetadata(output)
|
|
@@ -3636,37 +2891,9 @@ var de_GetFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3636
2891
|
Object.assign(contents, doc);
|
|
3637
2892
|
return contents;
|
|
3638
2893
|
}, "de_GetFunctionEventInvokeConfigCommand");
|
|
3639
|
-
var de_GetFunctionEventInvokeConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3640
|
-
const parsedOutput = {
|
|
3641
|
-
...output,
|
|
3642
|
-
body: await parseErrorBody(output.body, context)
|
|
3643
|
-
};
|
|
3644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3645
|
-
switch (errorCode) {
|
|
3646
|
-
case "InvalidParameterValueException":
|
|
3647
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3648
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3649
|
-
case "ResourceNotFoundException":
|
|
3650
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3651
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3652
|
-
case "ServiceException":
|
|
3653
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3654
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3655
|
-
case "TooManyRequestsException":
|
|
3656
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3657
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3658
|
-
default:
|
|
3659
|
-
const parsedBody = parsedOutput.body;
|
|
3660
|
-
return throwDefaultError({
|
|
3661
|
-
output,
|
|
3662
|
-
parsedBody,
|
|
3663
|
-
errorCode
|
|
3664
|
-
});
|
|
3665
|
-
}
|
|
3666
|
-
}, "de_GetFunctionEventInvokeConfigCommandError");
|
|
3667
2894
|
var de_GetFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3668
2895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3669
|
-
return
|
|
2896
|
+
return de_CommandError(output, context);
|
|
3670
2897
|
}
|
|
3671
2898
|
const contents = (0, import_smithy_client.map)({
|
|
3672
2899
|
$metadata: deserializeMetadata(output)
|
|
@@ -3684,37 +2911,9 @@ var de_GetFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3684
2911
|
Object.assign(contents, doc);
|
|
3685
2912
|
return contents;
|
|
3686
2913
|
}, "de_GetFunctionUrlConfigCommand");
|
|
3687
|
-
var de_GetFunctionUrlConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3688
|
-
const parsedOutput = {
|
|
3689
|
-
...output,
|
|
3690
|
-
body: await parseErrorBody(output.body, context)
|
|
3691
|
-
};
|
|
3692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3693
|
-
switch (errorCode) {
|
|
3694
|
-
case "InvalidParameterValueException":
|
|
3695
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3696
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3697
|
-
case "ResourceNotFoundException":
|
|
3698
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3700
|
-
case "ServiceException":
|
|
3701
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3702
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3703
|
-
case "TooManyRequestsException":
|
|
3704
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3705
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3706
|
-
default:
|
|
3707
|
-
const parsedBody = parsedOutput.body;
|
|
3708
|
-
return throwDefaultError({
|
|
3709
|
-
output,
|
|
3710
|
-
parsedBody,
|
|
3711
|
-
errorCode
|
|
3712
|
-
});
|
|
3713
|
-
}
|
|
3714
|
-
}, "de_GetFunctionUrlConfigCommandError");
|
|
3715
2914
|
var de_GetLayerVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3716
2915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3717
|
-
return
|
|
2916
|
+
return de_CommandError(output, context);
|
|
3718
2917
|
}
|
|
3719
2918
|
const contents = (0, import_smithy_client.map)({
|
|
3720
2919
|
$metadata: deserializeMetadata(output)
|
|
@@ -3734,37 +2933,9 @@ var de_GetLayerVersionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3734
2933
|
Object.assign(contents, doc);
|
|
3735
2934
|
return contents;
|
|
3736
2935
|
}, "de_GetLayerVersionCommand");
|
|
3737
|
-
var de_GetLayerVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3738
|
-
const parsedOutput = {
|
|
3739
|
-
...output,
|
|
3740
|
-
body: await parseErrorBody(output.body, context)
|
|
3741
|
-
};
|
|
3742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3743
|
-
switch (errorCode) {
|
|
3744
|
-
case "InvalidParameterValueException":
|
|
3745
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3746
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3747
|
-
case "ResourceNotFoundException":
|
|
3748
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3750
|
-
case "ServiceException":
|
|
3751
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3752
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3753
|
-
case "TooManyRequestsException":
|
|
3754
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3755
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3756
|
-
default:
|
|
3757
|
-
const parsedBody = parsedOutput.body;
|
|
3758
|
-
return throwDefaultError({
|
|
3759
|
-
output,
|
|
3760
|
-
parsedBody,
|
|
3761
|
-
errorCode
|
|
3762
|
-
});
|
|
3763
|
-
}
|
|
3764
|
-
}, "de_GetLayerVersionCommandError");
|
|
3765
2936
|
var de_GetLayerVersionByArnCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3766
2937
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3767
|
-
return
|
|
2938
|
+
return de_CommandError(output, context);
|
|
3768
2939
|
}
|
|
3769
2940
|
const contents = (0, import_smithy_client.map)({
|
|
3770
2941
|
$metadata: deserializeMetadata(output)
|
|
@@ -3784,37 +2955,9 @@ var de_GetLayerVersionByArnCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3784
2955
|
Object.assign(contents, doc);
|
|
3785
2956
|
return contents;
|
|
3786
2957
|
}, "de_GetLayerVersionByArnCommand");
|
|
3787
|
-
var de_GetLayerVersionByArnCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3788
|
-
const parsedOutput = {
|
|
3789
|
-
...output,
|
|
3790
|
-
body: await parseErrorBody(output.body, context)
|
|
3791
|
-
};
|
|
3792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3793
|
-
switch (errorCode) {
|
|
3794
|
-
case "InvalidParameterValueException":
|
|
3795
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3796
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3797
|
-
case "ResourceNotFoundException":
|
|
3798
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3799
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "ServiceException":
|
|
3801
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3802
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3803
|
-
case "TooManyRequestsException":
|
|
3804
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3805
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3806
|
-
default:
|
|
3807
|
-
const parsedBody = parsedOutput.body;
|
|
3808
|
-
return throwDefaultError({
|
|
3809
|
-
output,
|
|
3810
|
-
parsedBody,
|
|
3811
|
-
errorCode
|
|
3812
|
-
});
|
|
3813
|
-
}
|
|
3814
|
-
}, "de_GetLayerVersionByArnCommandError");
|
|
3815
2958
|
var de_GetLayerVersionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3816
2959
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3817
|
-
return
|
|
2960
|
+
return de_CommandError(output, context);
|
|
3818
2961
|
}
|
|
3819
2962
|
const contents = (0, import_smithy_client.map)({
|
|
3820
2963
|
$metadata: deserializeMetadata(output)
|
|
@@ -3827,37 +2970,9 @@ var de_GetLayerVersionPolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3827
2970
|
Object.assign(contents, doc);
|
|
3828
2971
|
return contents;
|
|
3829
2972
|
}, "de_GetLayerVersionPolicyCommand");
|
|
3830
|
-
var de_GetLayerVersionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3831
|
-
const parsedOutput = {
|
|
3832
|
-
...output,
|
|
3833
|
-
body: await parseErrorBody(output.body, context)
|
|
3834
|
-
};
|
|
3835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3836
|
-
switch (errorCode) {
|
|
3837
|
-
case "InvalidParameterValueException":
|
|
3838
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3839
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3840
|
-
case "ResourceNotFoundException":
|
|
3841
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3843
|
-
case "ServiceException":
|
|
3844
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3845
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3846
|
-
case "TooManyRequestsException":
|
|
3847
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3848
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3849
|
-
default:
|
|
3850
|
-
const parsedBody = parsedOutput.body;
|
|
3851
|
-
return throwDefaultError({
|
|
3852
|
-
output,
|
|
3853
|
-
parsedBody,
|
|
3854
|
-
errorCode
|
|
3855
|
-
});
|
|
3856
|
-
}
|
|
3857
|
-
}, "de_GetLayerVersionPolicyCommandError");
|
|
3858
2973
|
var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3859
2974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3860
|
-
return
|
|
2975
|
+
return de_CommandError(output, context);
|
|
3861
2976
|
}
|
|
3862
2977
|
const contents = (0, import_smithy_client.map)({
|
|
3863
2978
|
$metadata: deserializeMetadata(output)
|
|
@@ -3870,37 +2985,9 @@ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3870
2985
|
Object.assign(contents, doc);
|
|
3871
2986
|
return contents;
|
|
3872
2987
|
}, "de_GetPolicyCommand");
|
|
3873
|
-
var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3874
|
-
const parsedOutput = {
|
|
3875
|
-
...output,
|
|
3876
|
-
body: await parseErrorBody(output.body, context)
|
|
3877
|
-
};
|
|
3878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3879
|
-
switch (errorCode) {
|
|
3880
|
-
case "InvalidParameterValueException":
|
|
3881
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3882
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3883
|
-
case "ResourceNotFoundException":
|
|
3884
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3886
|
-
case "ServiceException":
|
|
3887
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3888
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3889
|
-
case "TooManyRequestsException":
|
|
3890
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3891
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3892
|
-
default:
|
|
3893
|
-
const parsedBody = parsedOutput.body;
|
|
3894
|
-
return throwDefaultError({
|
|
3895
|
-
output,
|
|
3896
|
-
parsedBody,
|
|
3897
|
-
errorCode
|
|
3898
|
-
});
|
|
3899
|
-
}
|
|
3900
|
-
}, "de_GetPolicyCommandError");
|
|
3901
2988
|
var de_GetProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3902
2989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3903
|
-
return
|
|
2990
|
+
return de_CommandError(output, context);
|
|
3904
2991
|
}
|
|
3905
2992
|
const contents = (0, import_smithy_client.map)({
|
|
3906
2993
|
$metadata: deserializeMetadata(output)
|
|
@@ -3917,40 +3004,9 @@ var de_GetProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3917
3004
|
Object.assign(contents, doc);
|
|
3918
3005
|
return contents;
|
|
3919
3006
|
}, "de_GetProvisionedConcurrencyConfigCommand");
|
|
3920
|
-
var de_GetProvisionedConcurrencyConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3921
|
-
const parsedOutput = {
|
|
3922
|
-
...output,
|
|
3923
|
-
body: await parseErrorBody(output.body, context)
|
|
3924
|
-
};
|
|
3925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3926
|
-
switch (errorCode) {
|
|
3927
|
-
case "InvalidParameterValueException":
|
|
3928
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3929
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3930
|
-
case "ProvisionedConcurrencyConfigNotFoundException":
|
|
3931
|
-
case "com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":
|
|
3932
|
-
throw await de_ProvisionedConcurrencyConfigNotFoundExceptionRes(parsedOutput, context);
|
|
3933
|
-
case "ResourceNotFoundException":
|
|
3934
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3935
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3936
|
-
case "ServiceException":
|
|
3937
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3938
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3939
|
-
case "TooManyRequestsException":
|
|
3940
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3941
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3942
|
-
default:
|
|
3943
|
-
const parsedBody = parsedOutput.body;
|
|
3944
|
-
return throwDefaultError({
|
|
3945
|
-
output,
|
|
3946
|
-
parsedBody,
|
|
3947
|
-
errorCode
|
|
3948
|
-
});
|
|
3949
|
-
}
|
|
3950
|
-
}, "de_GetProvisionedConcurrencyConfigCommandError");
|
|
3951
3007
|
var de_GetRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3952
3008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3953
|
-
return
|
|
3009
|
+
return de_CommandError(output, context);
|
|
3954
3010
|
}
|
|
3955
3011
|
const contents = (0, import_smithy_client.map)({
|
|
3956
3012
|
$metadata: deserializeMetadata(output)
|
|
@@ -3964,37 +3020,9 @@ var de_GetRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3964
3020
|
Object.assign(contents, doc);
|
|
3965
3021
|
return contents;
|
|
3966
3022
|
}, "de_GetRuntimeManagementConfigCommand");
|
|
3967
|
-
var de_GetRuntimeManagementConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3968
|
-
const parsedOutput = {
|
|
3969
|
-
...output,
|
|
3970
|
-
body: await parseErrorBody(output.body, context)
|
|
3971
|
-
};
|
|
3972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3973
|
-
switch (errorCode) {
|
|
3974
|
-
case "InvalidParameterValueException":
|
|
3975
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
3976
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3977
|
-
case "ResourceNotFoundException":
|
|
3978
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
3979
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3980
|
-
case "ServiceException":
|
|
3981
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
3982
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3983
|
-
case "TooManyRequestsException":
|
|
3984
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3985
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3986
|
-
default:
|
|
3987
|
-
const parsedBody = parsedOutput.body;
|
|
3988
|
-
return throwDefaultError({
|
|
3989
|
-
output,
|
|
3990
|
-
parsedBody,
|
|
3991
|
-
errorCode
|
|
3992
|
-
});
|
|
3993
|
-
}
|
|
3994
|
-
}, "de_GetRuntimeManagementConfigCommandError");
|
|
3995
3023
|
var de_InvokeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3996
3024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3997
|
-
return
|
|
3025
|
+
return de_CommandError(output, context);
|
|
3998
3026
|
}
|
|
3999
3027
|
const contents = (0, import_smithy_client.map)({
|
|
4000
3028
|
$metadata: deserializeMetadata(output),
|
|
@@ -4009,115 +3037,9 @@ var de_InvokeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4009
3037
|
});
|
|
4010
3038
|
return contents;
|
|
4011
3039
|
}, "de_InvokeCommand");
|
|
4012
|
-
var de_InvokeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4013
|
-
const parsedOutput = {
|
|
4014
|
-
...output,
|
|
4015
|
-
body: await parseErrorBody(output.body, context)
|
|
4016
|
-
};
|
|
4017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4018
|
-
switch (errorCode) {
|
|
4019
|
-
case "EC2AccessDeniedException":
|
|
4020
|
-
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
4021
|
-
throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
|
|
4022
|
-
case "EC2ThrottledException":
|
|
4023
|
-
case "com.amazonaws.lambda#EC2ThrottledException":
|
|
4024
|
-
throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
|
|
4025
|
-
case "EC2UnexpectedException":
|
|
4026
|
-
case "com.amazonaws.lambda#EC2UnexpectedException":
|
|
4027
|
-
throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
|
|
4028
|
-
case "EFSIOException":
|
|
4029
|
-
case "com.amazonaws.lambda#EFSIOException":
|
|
4030
|
-
throw await de_EFSIOExceptionRes(parsedOutput, context);
|
|
4031
|
-
case "EFSMountConnectivityException":
|
|
4032
|
-
case "com.amazonaws.lambda#EFSMountConnectivityException":
|
|
4033
|
-
throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
|
|
4034
|
-
case "EFSMountFailureException":
|
|
4035
|
-
case "com.amazonaws.lambda#EFSMountFailureException":
|
|
4036
|
-
throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
|
|
4037
|
-
case "EFSMountTimeoutException":
|
|
4038
|
-
case "com.amazonaws.lambda#EFSMountTimeoutException":
|
|
4039
|
-
throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
|
|
4040
|
-
case "ENILimitReachedException":
|
|
4041
|
-
case "com.amazonaws.lambda#ENILimitReachedException":
|
|
4042
|
-
throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
|
|
4043
|
-
case "InvalidParameterValueException":
|
|
4044
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4045
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4046
|
-
case "InvalidRequestContentException":
|
|
4047
|
-
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
4048
|
-
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
4049
|
-
case "InvalidRuntimeException":
|
|
4050
|
-
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
4051
|
-
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
4052
|
-
case "InvalidSecurityGroupIDException":
|
|
4053
|
-
case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
|
|
4054
|
-
throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
|
|
4055
|
-
case "InvalidSubnetIDException":
|
|
4056
|
-
case "com.amazonaws.lambda#InvalidSubnetIDException":
|
|
4057
|
-
throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
|
|
4058
|
-
case "InvalidZipFileException":
|
|
4059
|
-
case "com.amazonaws.lambda#InvalidZipFileException":
|
|
4060
|
-
throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
|
|
4061
|
-
case "KMSAccessDeniedException":
|
|
4062
|
-
case "com.amazonaws.lambda#KMSAccessDeniedException":
|
|
4063
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
4064
|
-
case "KMSDisabledException":
|
|
4065
|
-
case "com.amazonaws.lambda#KMSDisabledException":
|
|
4066
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
4067
|
-
case "KMSInvalidStateException":
|
|
4068
|
-
case "com.amazonaws.lambda#KMSInvalidStateException":
|
|
4069
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
4070
|
-
case "KMSNotFoundException":
|
|
4071
|
-
case "com.amazonaws.lambda#KMSNotFoundException":
|
|
4072
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
4073
|
-
case "RecursiveInvocationException":
|
|
4074
|
-
case "com.amazonaws.lambda#RecursiveInvocationException":
|
|
4075
|
-
throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
|
|
4076
|
-
case "RequestTooLargeException":
|
|
4077
|
-
case "com.amazonaws.lambda#RequestTooLargeException":
|
|
4078
|
-
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
|
|
4079
|
-
case "ResourceConflictException":
|
|
4080
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4081
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4082
|
-
case "ResourceNotFoundException":
|
|
4083
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4084
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4085
|
-
case "ResourceNotReadyException":
|
|
4086
|
-
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
4087
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
4088
|
-
case "ServiceException":
|
|
4089
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4090
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4091
|
-
case "SnapStartException":
|
|
4092
|
-
case "com.amazonaws.lambda#SnapStartException":
|
|
4093
|
-
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
4094
|
-
case "SnapStartNotReadyException":
|
|
4095
|
-
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
4096
|
-
throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
|
|
4097
|
-
case "SnapStartTimeoutException":
|
|
4098
|
-
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
4099
|
-
throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
|
|
4100
|
-
case "SubnetIPAddressLimitReachedException":
|
|
4101
|
-
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
4102
|
-
throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
|
|
4103
|
-
case "TooManyRequestsException":
|
|
4104
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4105
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4106
|
-
case "UnsupportedMediaTypeException":
|
|
4107
|
-
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
4108
|
-
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
4109
|
-
default:
|
|
4110
|
-
const parsedBody = parsedOutput.body;
|
|
4111
|
-
return throwDefaultError({
|
|
4112
|
-
output,
|
|
4113
|
-
parsedBody,
|
|
4114
|
-
errorCode
|
|
4115
|
-
});
|
|
4116
|
-
}
|
|
4117
|
-
}, "de_InvokeCommandError");
|
|
4118
3040
|
var de_InvokeAsyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4119
3041
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4120
|
-
return
|
|
3042
|
+
return de_CommandError(output, context);
|
|
4121
3043
|
}
|
|
4122
3044
|
const contents = (0, import_smithy_client.map)({
|
|
4123
3045
|
$metadata: deserializeMetadata(output)
|
|
@@ -4128,40 +3050,9 @@ var de_InvokeAsyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4128
3050
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4129
3051
|
return contents;
|
|
4130
3052
|
}, "de_InvokeAsyncCommand");
|
|
4131
|
-
var de_InvokeAsyncCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4132
|
-
const parsedOutput = {
|
|
4133
|
-
...output,
|
|
4134
|
-
body: await parseErrorBody(output.body, context)
|
|
4135
|
-
};
|
|
4136
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4137
|
-
switch (errorCode) {
|
|
4138
|
-
case "InvalidRequestContentException":
|
|
4139
|
-
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
4140
|
-
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
4141
|
-
case "InvalidRuntimeException":
|
|
4142
|
-
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
4143
|
-
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
4144
|
-
case "ResourceConflictException":
|
|
4145
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4146
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4147
|
-
case "ResourceNotFoundException":
|
|
4148
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4149
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4150
|
-
case "ServiceException":
|
|
4151
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4152
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4153
|
-
default:
|
|
4154
|
-
const parsedBody = parsedOutput.body;
|
|
4155
|
-
return throwDefaultError({
|
|
4156
|
-
output,
|
|
4157
|
-
parsedBody,
|
|
4158
|
-
errorCode
|
|
4159
|
-
});
|
|
4160
|
-
}
|
|
4161
|
-
}, "de_InvokeAsyncCommandError");
|
|
4162
3053
|
var de_InvokeWithResponseStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4163
3054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4164
|
-
return
|
|
3055
|
+
return de_CommandError(output, context);
|
|
4165
3056
|
}
|
|
4166
3057
|
const contents = (0, import_smithy_client.map)({
|
|
4167
3058
|
$metadata: deserializeMetadata(output),
|
|
@@ -4175,115 +3066,9 @@ var de_InvokeWithResponseStreamCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4175
3066
|
});
|
|
4176
3067
|
return contents;
|
|
4177
3068
|
}, "de_InvokeWithResponseStreamCommand");
|
|
4178
|
-
var de_InvokeWithResponseStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4179
|
-
const parsedOutput = {
|
|
4180
|
-
...output,
|
|
4181
|
-
body: await parseErrorBody(output.body, context)
|
|
4182
|
-
};
|
|
4183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4184
|
-
switch (errorCode) {
|
|
4185
|
-
case "EC2AccessDeniedException":
|
|
4186
|
-
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
4187
|
-
throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
|
|
4188
|
-
case "EC2ThrottledException":
|
|
4189
|
-
case "com.amazonaws.lambda#EC2ThrottledException":
|
|
4190
|
-
throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
|
|
4191
|
-
case "EC2UnexpectedException":
|
|
4192
|
-
case "com.amazonaws.lambda#EC2UnexpectedException":
|
|
4193
|
-
throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
|
|
4194
|
-
case "EFSIOException":
|
|
4195
|
-
case "com.amazonaws.lambda#EFSIOException":
|
|
4196
|
-
throw await de_EFSIOExceptionRes(parsedOutput, context);
|
|
4197
|
-
case "EFSMountConnectivityException":
|
|
4198
|
-
case "com.amazonaws.lambda#EFSMountConnectivityException":
|
|
4199
|
-
throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
|
|
4200
|
-
case "EFSMountFailureException":
|
|
4201
|
-
case "com.amazonaws.lambda#EFSMountFailureException":
|
|
4202
|
-
throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
|
|
4203
|
-
case "EFSMountTimeoutException":
|
|
4204
|
-
case "com.amazonaws.lambda#EFSMountTimeoutException":
|
|
4205
|
-
throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
|
|
4206
|
-
case "ENILimitReachedException":
|
|
4207
|
-
case "com.amazonaws.lambda#ENILimitReachedException":
|
|
4208
|
-
throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
|
|
4209
|
-
case "InvalidParameterValueException":
|
|
4210
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4211
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4212
|
-
case "InvalidRequestContentException":
|
|
4213
|
-
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
4214
|
-
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
4215
|
-
case "InvalidRuntimeException":
|
|
4216
|
-
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
4217
|
-
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
4218
|
-
case "InvalidSecurityGroupIDException":
|
|
4219
|
-
case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
|
|
4220
|
-
throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
|
|
4221
|
-
case "InvalidSubnetIDException":
|
|
4222
|
-
case "com.amazonaws.lambda#InvalidSubnetIDException":
|
|
4223
|
-
throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
|
|
4224
|
-
case "InvalidZipFileException":
|
|
4225
|
-
case "com.amazonaws.lambda#InvalidZipFileException":
|
|
4226
|
-
throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
|
|
4227
|
-
case "KMSAccessDeniedException":
|
|
4228
|
-
case "com.amazonaws.lambda#KMSAccessDeniedException":
|
|
4229
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
4230
|
-
case "KMSDisabledException":
|
|
4231
|
-
case "com.amazonaws.lambda#KMSDisabledException":
|
|
4232
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
4233
|
-
case "KMSInvalidStateException":
|
|
4234
|
-
case "com.amazonaws.lambda#KMSInvalidStateException":
|
|
4235
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
4236
|
-
case "KMSNotFoundException":
|
|
4237
|
-
case "com.amazonaws.lambda#KMSNotFoundException":
|
|
4238
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
4239
|
-
case "RecursiveInvocationException":
|
|
4240
|
-
case "com.amazonaws.lambda#RecursiveInvocationException":
|
|
4241
|
-
throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
|
|
4242
|
-
case "RequestTooLargeException":
|
|
4243
|
-
case "com.amazonaws.lambda#RequestTooLargeException":
|
|
4244
|
-
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
|
|
4245
|
-
case "ResourceConflictException":
|
|
4246
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4247
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4248
|
-
case "ResourceNotFoundException":
|
|
4249
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4251
|
-
case "ResourceNotReadyException":
|
|
4252
|
-
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
4253
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
4254
|
-
case "ServiceException":
|
|
4255
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4256
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4257
|
-
case "SnapStartException":
|
|
4258
|
-
case "com.amazonaws.lambda#SnapStartException":
|
|
4259
|
-
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
4260
|
-
case "SnapStartNotReadyException":
|
|
4261
|
-
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
4262
|
-
throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
|
|
4263
|
-
case "SnapStartTimeoutException":
|
|
4264
|
-
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
4265
|
-
throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
|
|
4266
|
-
case "SubnetIPAddressLimitReachedException":
|
|
4267
|
-
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
4268
|
-
throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
|
|
4269
|
-
case "TooManyRequestsException":
|
|
4270
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4271
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4272
|
-
case "UnsupportedMediaTypeException":
|
|
4273
|
-
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
4274
|
-
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
4275
|
-
default:
|
|
4276
|
-
const parsedBody = parsedOutput.body;
|
|
4277
|
-
return throwDefaultError({
|
|
4278
|
-
output,
|
|
4279
|
-
parsedBody,
|
|
4280
|
-
errorCode
|
|
4281
|
-
});
|
|
4282
|
-
}
|
|
4283
|
-
}, "de_InvokeWithResponseStreamCommandError");
|
|
4284
3069
|
var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4285
3070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4286
|
-
return
|
|
3071
|
+
return de_CommandError(output, context);
|
|
4287
3072
|
}
|
|
4288
3073
|
const contents = (0, import_smithy_client.map)({
|
|
4289
3074
|
$metadata: deserializeMetadata(output)
|
|
@@ -4296,37 +3081,9 @@ var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4296
3081
|
Object.assign(contents, doc);
|
|
4297
3082
|
return contents;
|
|
4298
3083
|
}, "de_ListAliasesCommand");
|
|
4299
|
-
var de_ListAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4300
|
-
const parsedOutput = {
|
|
4301
|
-
...output,
|
|
4302
|
-
body: await parseErrorBody(output.body, context)
|
|
4303
|
-
};
|
|
4304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4305
|
-
switch (errorCode) {
|
|
4306
|
-
case "InvalidParameterValueException":
|
|
4307
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4308
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4309
|
-
case "ResourceNotFoundException":
|
|
4310
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4312
|
-
case "ServiceException":
|
|
4313
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4314
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4315
|
-
case "TooManyRequestsException":
|
|
4316
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4317
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4318
|
-
default:
|
|
4319
|
-
const parsedBody = parsedOutput.body;
|
|
4320
|
-
return throwDefaultError({
|
|
4321
|
-
output,
|
|
4322
|
-
parsedBody,
|
|
4323
|
-
errorCode
|
|
4324
|
-
});
|
|
4325
|
-
}
|
|
4326
|
-
}, "de_ListAliasesCommandError");
|
|
4327
3084
|
var de_ListCodeSigningConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4328
3085
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4329
|
-
return
|
|
3086
|
+
return de_CommandError(output, context);
|
|
4330
3087
|
}
|
|
4331
3088
|
const contents = (0, import_smithy_client.map)({
|
|
4332
3089
|
$metadata: deserializeMetadata(output)
|
|
@@ -4339,31 +3096,9 @@ var de_ListCodeSigningConfigsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4339
3096
|
Object.assign(contents, doc);
|
|
4340
3097
|
return contents;
|
|
4341
3098
|
}, "de_ListCodeSigningConfigsCommand");
|
|
4342
|
-
var de_ListCodeSigningConfigsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4343
|
-
const parsedOutput = {
|
|
4344
|
-
...output,
|
|
4345
|
-
body: await parseErrorBody(output.body, context)
|
|
4346
|
-
};
|
|
4347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4348
|
-
switch (errorCode) {
|
|
4349
|
-
case "InvalidParameterValueException":
|
|
4350
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4351
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4352
|
-
case "ServiceException":
|
|
4353
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4354
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4355
|
-
default:
|
|
4356
|
-
const parsedBody = parsedOutput.body;
|
|
4357
|
-
return throwDefaultError({
|
|
4358
|
-
output,
|
|
4359
|
-
parsedBody,
|
|
4360
|
-
errorCode
|
|
4361
|
-
});
|
|
4362
|
-
}
|
|
4363
|
-
}, "de_ListCodeSigningConfigsCommandError");
|
|
4364
3099
|
var de_ListEventSourceMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4365
3100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4366
|
-
return
|
|
3101
|
+
return de_CommandError(output, context);
|
|
4367
3102
|
}
|
|
4368
3103
|
const contents = (0, import_smithy_client.map)({
|
|
4369
3104
|
$metadata: deserializeMetadata(output)
|
|
@@ -4376,37 +3111,9 @@ var de_ListEventSourceMappingsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4376
3111
|
Object.assign(contents, doc);
|
|
4377
3112
|
return contents;
|
|
4378
3113
|
}, "de_ListEventSourceMappingsCommand");
|
|
4379
|
-
var de_ListEventSourceMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4380
|
-
const parsedOutput = {
|
|
4381
|
-
...output,
|
|
4382
|
-
body: await parseErrorBody(output.body, context)
|
|
4383
|
-
};
|
|
4384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4385
|
-
switch (errorCode) {
|
|
4386
|
-
case "InvalidParameterValueException":
|
|
4387
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4388
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4389
|
-
case "ResourceNotFoundException":
|
|
4390
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4392
|
-
case "ServiceException":
|
|
4393
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4394
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4395
|
-
case "TooManyRequestsException":
|
|
4396
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4397
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4398
|
-
default:
|
|
4399
|
-
const parsedBody = parsedOutput.body;
|
|
4400
|
-
return throwDefaultError({
|
|
4401
|
-
output,
|
|
4402
|
-
parsedBody,
|
|
4403
|
-
errorCode
|
|
4404
|
-
});
|
|
4405
|
-
}
|
|
4406
|
-
}, "de_ListEventSourceMappingsCommandError");
|
|
4407
3114
|
var de_ListFunctionEventInvokeConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4408
3115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4409
|
-
return
|
|
3116
|
+
return de_CommandError(output, context);
|
|
4410
3117
|
}
|
|
4411
3118
|
const contents = (0, import_smithy_client.map)({
|
|
4412
3119
|
$metadata: deserializeMetadata(output)
|
|
@@ -4419,37 +3126,9 @@ var de_ListFunctionEventInvokeConfigsCommand = /* @__PURE__ */ __name(async (out
|
|
|
4419
3126
|
Object.assign(contents, doc);
|
|
4420
3127
|
return contents;
|
|
4421
3128
|
}, "de_ListFunctionEventInvokeConfigsCommand");
|
|
4422
|
-
var de_ListFunctionEventInvokeConfigsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4423
|
-
const parsedOutput = {
|
|
4424
|
-
...output,
|
|
4425
|
-
body: await parseErrorBody(output.body, context)
|
|
4426
|
-
};
|
|
4427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4428
|
-
switch (errorCode) {
|
|
4429
|
-
case "InvalidParameterValueException":
|
|
4430
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4431
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4432
|
-
case "ResourceNotFoundException":
|
|
4433
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4434
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4435
|
-
case "ServiceException":
|
|
4436
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4437
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4438
|
-
case "TooManyRequestsException":
|
|
4439
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4440
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4441
|
-
default:
|
|
4442
|
-
const parsedBody = parsedOutput.body;
|
|
4443
|
-
return throwDefaultError({
|
|
4444
|
-
output,
|
|
4445
|
-
parsedBody,
|
|
4446
|
-
errorCode
|
|
4447
|
-
});
|
|
4448
|
-
}
|
|
4449
|
-
}, "de_ListFunctionEventInvokeConfigsCommandError");
|
|
4450
3129
|
var de_ListFunctionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4451
3130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4452
|
-
return
|
|
3131
|
+
return de_CommandError(output, context);
|
|
4453
3132
|
}
|
|
4454
3133
|
const contents = (0, import_smithy_client.map)({
|
|
4455
3134
|
$metadata: deserializeMetadata(output)
|
|
@@ -4462,34 +3141,9 @@ var de_ListFunctionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4462
3141
|
Object.assign(contents, doc);
|
|
4463
3142
|
return contents;
|
|
4464
3143
|
}, "de_ListFunctionsCommand");
|
|
4465
|
-
var de_ListFunctionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4466
|
-
const parsedOutput = {
|
|
4467
|
-
...output,
|
|
4468
|
-
body: await parseErrorBody(output.body, context)
|
|
4469
|
-
};
|
|
4470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4471
|
-
switch (errorCode) {
|
|
4472
|
-
case "InvalidParameterValueException":
|
|
4473
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4474
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4475
|
-
case "ServiceException":
|
|
4476
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4477
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4478
|
-
case "TooManyRequestsException":
|
|
4479
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4480
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4481
|
-
default:
|
|
4482
|
-
const parsedBody = parsedOutput.body;
|
|
4483
|
-
return throwDefaultError({
|
|
4484
|
-
output,
|
|
4485
|
-
parsedBody,
|
|
4486
|
-
errorCode
|
|
4487
|
-
});
|
|
4488
|
-
}
|
|
4489
|
-
}, "de_ListFunctionsCommandError");
|
|
4490
3144
|
var de_ListFunctionsByCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4491
3145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4492
|
-
return
|
|
3146
|
+
return de_CommandError(output, context);
|
|
4493
3147
|
}
|
|
4494
3148
|
const contents = (0, import_smithy_client.map)({
|
|
4495
3149
|
$metadata: deserializeMetadata(output)
|
|
@@ -4502,34 +3156,9 @@ var de_ListFunctionsByCodeSigningConfigCommand = /* @__PURE__ */ __name(async (o
|
|
|
4502
3156
|
Object.assign(contents, doc);
|
|
4503
3157
|
return contents;
|
|
4504
3158
|
}, "de_ListFunctionsByCodeSigningConfigCommand");
|
|
4505
|
-
var de_ListFunctionsByCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4506
|
-
const parsedOutput = {
|
|
4507
|
-
...output,
|
|
4508
|
-
body: await parseErrorBody(output.body, context)
|
|
4509
|
-
};
|
|
4510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4511
|
-
switch (errorCode) {
|
|
4512
|
-
case "InvalidParameterValueException":
|
|
4513
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4514
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4515
|
-
case "ResourceNotFoundException":
|
|
4516
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4518
|
-
case "ServiceException":
|
|
4519
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4520
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4521
|
-
default:
|
|
4522
|
-
const parsedBody = parsedOutput.body;
|
|
4523
|
-
return throwDefaultError({
|
|
4524
|
-
output,
|
|
4525
|
-
parsedBody,
|
|
4526
|
-
errorCode
|
|
4527
|
-
});
|
|
4528
|
-
}
|
|
4529
|
-
}, "de_ListFunctionsByCodeSigningConfigCommandError");
|
|
4530
3159
|
var de_ListFunctionUrlConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4531
3160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4532
|
-
return
|
|
3161
|
+
return de_CommandError(output, context);
|
|
4533
3162
|
}
|
|
4534
3163
|
const contents = (0, import_smithy_client.map)({
|
|
4535
3164
|
$metadata: deserializeMetadata(output)
|
|
@@ -4542,37 +3171,9 @@ var de_ListFunctionUrlConfigsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4542
3171
|
Object.assign(contents, doc);
|
|
4543
3172
|
return contents;
|
|
4544
3173
|
}, "de_ListFunctionUrlConfigsCommand");
|
|
4545
|
-
var de_ListFunctionUrlConfigsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4546
|
-
const parsedOutput = {
|
|
4547
|
-
...output,
|
|
4548
|
-
body: await parseErrorBody(output.body, context)
|
|
4549
|
-
};
|
|
4550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4551
|
-
switch (errorCode) {
|
|
4552
|
-
case "InvalidParameterValueException":
|
|
4553
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4554
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4555
|
-
case "ResourceNotFoundException":
|
|
4556
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4558
|
-
case "ServiceException":
|
|
4559
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4560
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4561
|
-
case "TooManyRequestsException":
|
|
4562
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4563
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4564
|
-
default:
|
|
4565
|
-
const parsedBody = parsedOutput.body;
|
|
4566
|
-
return throwDefaultError({
|
|
4567
|
-
output,
|
|
4568
|
-
parsedBody,
|
|
4569
|
-
errorCode
|
|
4570
|
-
});
|
|
4571
|
-
}
|
|
4572
|
-
}, "de_ListFunctionUrlConfigsCommandError");
|
|
4573
3174
|
var de_ListLayersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4574
3175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4575
|
-
return
|
|
3176
|
+
return de_CommandError(output, context);
|
|
4576
3177
|
}
|
|
4577
3178
|
const contents = (0, import_smithy_client.map)({
|
|
4578
3179
|
$metadata: deserializeMetadata(output)
|
|
@@ -4585,34 +3186,9 @@ var de_ListLayersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4585
3186
|
Object.assign(contents, doc);
|
|
4586
3187
|
return contents;
|
|
4587
3188
|
}, "de_ListLayersCommand");
|
|
4588
|
-
var de_ListLayersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4589
|
-
const parsedOutput = {
|
|
4590
|
-
...output,
|
|
4591
|
-
body: await parseErrorBody(output.body, context)
|
|
4592
|
-
};
|
|
4593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4594
|
-
switch (errorCode) {
|
|
4595
|
-
case "InvalidParameterValueException":
|
|
4596
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4597
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4598
|
-
case "ServiceException":
|
|
4599
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4600
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4601
|
-
case "TooManyRequestsException":
|
|
4602
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4603
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4604
|
-
default:
|
|
4605
|
-
const parsedBody = parsedOutput.body;
|
|
4606
|
-
return throwDefaultError({
|
|
4607
|
-
output,
|
|
4608
|
-
parsedBody,
|
|
4609
|
-
errorCode
|
|
4610
|
-
});
|
|
4611
|
-
}
|
|
4612
|
-
}, "de_ListLayersCommandError");
|
|
4613
3189
|
var de_ListLayerVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4614
3190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4615
|
-
return
|
|
3191
|
+
return de_CommandError(output, context);
|
|
4616
3192
|
}
|
|
4617
3193
|
const contents = (0, import_smithy_client.map)({
|
|
4618
3194
|
$metadata: deserializeMetadata(output)
|
|
@@ -4625,37 +3201,9 @@ var de_ListLayerVersionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4625
3201
|
Object.assign(contents, doc);
|
|
4626
3202
|
return contents;
|
|
4627
3203
|
}, "de_ListLayerVersionsCommand");
|
|
4628
|
-
var de_ListLayerVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4629
|
-
const parsedOutput = {
|
|
4630
|
-
...output,
|
|
4631
|
-
body: await parseErrorBody(output.body, context)
|
|
4632
|
-
};
|
|
4633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4634
|
-
switch (errorCode) {
|
|
4635
|
-
case "InvalidParameterValueException":
|
|
4636
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4637
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4638
|
-
case "ResourceNotFoundException":
|
|
4639
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4640
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4641
|
-
case "ServiceException":
|
|
4642
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4643
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4644
|
-
case "TooManyRequestsException":
|
|
4645
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4646
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4647
|
-
default:
|
|
4648
|
-
const parsedBody = parsedOutput.body;
|
|
4649
|
-
return throwDefaultError({
|
|
4650
|
-
output,
|
|
4651
|
-
parsedBody,
|
|
4652
|
-
errorCode
|
|
4653
|
-
});
|
|
4654
|
-
}
|
|
4655
|
-
}, "de_ListLayerVersionsCommandError");
|
|
4656
3204
|
var de_ListProvisionedConcurrencyConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4657
3205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4658
|
-
return
|
|
3206
|
+
return de_CommandError(output, context);
|
|
4659
3207
|
}
|
|
4660
3208
|
const contents = (0, import_smithy_client.map)({
|
|
4661
3209
|
$metadata: deserializeMetadata(output)
|
|
@@ -4668,37 +3216,9 @@ var de_ListProvisionedConcurrencyConfigsCommand = /* @__PURE__ */ __name(async (
|
|
|
4668
3216
|
Object.assign(contents, doc);
|
|
4669
3217
|
return contents;
|
|
4670
3218
|
}, "de_ListProvisionedConcurrencyConfigsCommand");
|
|
4671
|
-
var de_ListProvisionedConcurrencyConfigsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4672
|
-
const parsedOutput = {
|
|
4673
|
-
...output,
|
|
4674
|
-
body: await parseErrorBody(output.body, context)
|
|
4675
|
-
};
|
|
4676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4677
|
-
switch (errorCode) {
|
|
4678
|
-
case "InvalidParameterValueException":
|
|
4679
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4680
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4681
|
-
case "ResourceNotFoundException":
|
|
4682
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4683
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4684
|
-
case "ServiceException":
|
|
4685
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4686
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4687
|
-
case "TooManyRequestsException":
|
|
4688
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4689
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4690
|
-
default:
|
|
4691
|
-
const parsedBody = parsedOutput.body;
|
|
4692
|
-
return throwDefaultError({
|
|
4693
|
-
output,
|
|
4694
|
-
parsedBody,
|
|
4695
|
-
errorCode
|
|
4696
|
-
});
|
|
4697
|
-
}
|
|
4698
|
-
}, "de_ListProvisionedConcurrencyConfigsCommandError");
|
|
4699
3219
|
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4700
3220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4701
|
-
return
|
|
3221
|
+
return de_CommandError(output, context);
|
|
4702
3222
|
}
|
|
4703
3223
|
const contents = (0, import_smithy_client.map)({
|
|
4704
3224
|
$metadata: deserializeMetadata(output)
|
|
@@ -4710,37 +3230,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4710
3230
|
Object.assign(contents, doc);
|
|
4711
3231
|
return contents;
|
|
4712
3232
|
}, "de_ListTagsCommand");
|
|
4713
|
-
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4714
|
-
const parsedOutput = {
|
|
4715
|
-
...output,
|
|
4716
|
-
body: await parseErrorBody(output.body, context)
|
|
4717
|
-
};
|
|
4718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4719
|
-
switch (errorCode) {
|
|
4720
|
-
case "InvalidParameterValueException":
|
|
4721
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4722
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4723
|
-
case "ResourceNotFoundException":
|
|
4724
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4725
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4726
|
-
case "ServiceException":
|
|
4727
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4728
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4729
|
-
case "TooManyRequestsException":
|
|
4730
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4731
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4732
|
-
default:
|
|
4733
|
-
const parsedBody = parsedOutput.body;
|
|
4734
|
-
return throwDefaultError({
|
|
4735
|
-
output,
|
|
4736
|
-
parsedBody,
|
|
4737
|
-
errorCode
|
|
4738
|
-
});
|
|
4739
|
-
}
|
|
4740
|
-
}, "de_ListTagsCommandError");
|
|
4741
3233
|
var de_ListVersionsByFunctionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4742
3234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4743
|
-
return
|
|
3235
|
+
return de_CommandError(output, context);
|
|
4744
3236
|
}
|
|
4745
3237
|
const contents = (0, import_smithy_client.map)({
|
|
4746
3238
|
$metadata: deserializeMetadata(output)
|
|
@@ -4753,37 +3245,9 @@ var de_ListVersionsByFunctionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4753
3245
|
Object.assign(contents, doc);
|
|
4754
3246
|
return contents;
|
|
4755
3247
|
}, "de_ListVersionsByFunctionCommand");
|
|
4756
|
-
var de_ListVersionsByFunctionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4757
|
-
const parsedOutput = {
|
|
4758
|
-
...output,
|
|
4759
|
-
body: await parseErrorBody(output.body, context)
|
|
4760
|
-
};
|
|
4761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4762
|
-
switch (errorCode) {
|
|
4763
|
-
case "InvalidParameterValueException":
|
|
4764
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4765
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4766
|
-
case "ResourceNotFoundException":
|
|
4767
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4769
|
-
case "ServiceException":
|
|
4770
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4771
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4772
|
-
case "TooManyRequestsException":
|
|
4773
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4774
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4775
|
-
default:
|
|
4776
|
-
const parsedBody = parsedOutput.body;
|
|
4777
|
-
return throwDefaultError({
|
|
4778
|
-
output,
|
|
4779
|
-
parsedBody,
|
|
4780
|
-
errorCode
|
|
4781
|
-
});
|
|
4782
|
-
}
|
|
4783
|
-
}, "de_ListVersionsByFunctionCommandError");
|
|
4784
3248
|
var de_PublishLayerVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4785
3249
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4786
|
-
return
|
|
3250
|
+
return de_CommandError(output, context);
|
|
4787
3251
|
}
|
|
4788
3252
|
const contents = (0, import_smithy_client.map)({
|
|
4789
3253
|
$metadata: deserializeMetadata(output)
|
|
@@ -4803,40 +3267,9 @@ var de_PublishLayerVersionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4803
3267
|
Object.assign(contents, doc);
|
|
4804
3268
|
return contents;
|
|
4805
3269
|
}, "de_PublishLayerVersionCommand");
|
|
4806
|
-
var de_PublishLayerVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4807
|
-
const parsedOutput = {
|
|
4808
|
-
...output,
|
|
4809
|
-
body: await parseErrorBody(output.body, context)
|
|
4810
|
-
};
|
|
4811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4812
|
-
switch (errorCode) {
|
|
4813
|
-
case "CodeStorageExceededException":
|
|
4814
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
4815
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
4816
|
-
case "InvalidParameterValueException":
|
|
4817
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4818
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4819
|
-
case "ResourceNotFoundException":
|
|
4820
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4821
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4822
|
-
case "ServiceException":
|
|
4823
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4824
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4825
|
-
case "TooManyRequestsException":
|
|
4826
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4827
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4828
|
-
default:
|
|
4829
|
-
const parsedBody = parsedOutput.body;
|
|
4830
|
-
return throwDefaultError({
|
|
4831
|
-
output,
|
|
4832
|
-
parsedBody,
|
|
4833
|
-
errorCode
|
|
4834
|
-
});
|
|
4835
|
-
}
|
|
4836
|
-
}, "de_PublishLayerVersionCommandError");
|
|
4837
3270
|
var de_PublishVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4838
3271
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4839
|
-
return
|
|
3272
|
+
return de_CommandError(output, context);
|
|
4840
3273
|
}
|
|
4841
3274
|
const contents = (0, import_smithy_client.map)({
|
|
4842
3275
|
$metadata: deserializeMetadata(output)
|
|
@@ -4883,46 +3316,9 @@ var de_PublishVersionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4883
3316
|
Object.assign(contents, doc);
|
|
4884
3317
|
return contents;
|
|
4885
3318
|
}, "de_PublishVersionCommand");
|
|
4886
|
-
var de_PublishVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4887
|
-
const parsedOutput = {
|
|
4888
|
-
...output,
|
|
4889
|
-
body: await parseErrorBody(output.body, context)
|
|
4890
|
-
};
|
|
4891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4892
|
-
switch (errorCode) {
|
|
4893
|
-
case "CodeStorageExceededException":
|
|
4894
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
4895
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
4896
|
-
case "InvalidParameterValueException":
|
|
4897
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4898
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4899
|
-
case "PreconditionFailedException":
|
|
4900
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
4901
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
4902
|
-
case "ResourceConflictException":
|
|
4903
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4904
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4905
|
-
case "ResourceNotFoundException":
|
|
4906
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4908
|
-
case "ServiceException":
|
|
4909
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4910
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4911
|
-
case "TooManyRequestsException":
|
|
4912
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4913
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4914
|
-
default:
|
|
4915
|
-
const parsedBody = parsedOutput.body;
|
|
4916
|
-
return throwDefaultError({
|
|
4917
|
-
output,
|
|
4918
|
-
parsedBody,
|
|
4919
|
-
errorCode
|
|
4920
|
-
});
|
|
4921
|
-
}
|
|
4922
|
-
}, "de_PublishVersionCommandError");
|
|
4923
3319
|
var de_PutFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4924
3320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4925
|
-
return
|
|
3321
|
+
return de_CommandError(output, context);
|
|
4926
3322
|
}
|
|
4927
3323
|
const contents = (0, import_smithy_client.map)({
|
|
4928
3324
|
$metadata: deserializeMetadata(output)
|
|
@@ -4935,43 +3331,9 @@ var de_PutFunctionCodeSigningConfigCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4935
3331
|
Object.assign(contents, doc);
|
|
4936
3332
|
return contents;
|
|
4937
3333
|
}, "de_PutFunctionCodeSigningConfigCommand");
|
|
4938
|
-
var de_PutFunctionCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4939
|
-
const parsedOutput = {
|
|
4940
|
-
...output,
|
|
4941
|
-
body: await parseErrorBody(output.body, context)
|
|
4942
|
-
};
|
|
4943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4944
|
-
switch (errorCode) {
|
|
4945
|
-
case "CodeSigningConfigNotFoundException":
|
|
4946
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
4947
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
4948
|
-
case "InvalidParameterValueException":
|
|
4949
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4950
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4951
|
-
case "ResourceConflictException":
|
|
4952
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4953
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4954
|
-
case "ResourceNotFoundException":
|
|
4955
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
4956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4957
|
-
case "ServiceException":
|
|
4958
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
4959
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4960
|
-
case "TooManyRequestsException":
|
|
4961
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
4962
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4963
|
-
default:
|
|
4964
|
-
const parsedBody = parsedOutput.body;
|
|
4965
|
-
return throwDefaultError({
|
|
4966
|
-
output,
|
|
4967
|
-
parsedBody,
|
|
4968
|
-
errorCode
|
|
4969
|
-
});
|
|
4970
|
-
}
|
|
4971
|
-
}, "de_PutFunctionCodeSigningConfigCommandError");
|
|
4972
3334
|
var de_PutFunctionConcurrencyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4973
3335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4974
|
-
return
|
|
3336
|
+
return de_CommandError(output, context);
|
|
4975
3337
|
}
|
|
4976
3338
|
const contents = (0, import_smithy_client.map)({
|
|
4977
3339
|
$metadata: deserializeMetadata(output)
|
|
@@ -4983,40 +3345,9 @@ var de_PutFunctionConcurrencyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4983
3345
|
Object.assign(contents, doc);
|
|
4984
3346
|
return contents;
|
|
4985
3347
|
}, "de_PutFunctionConcurrencyCommand");
|
|
4986
|
-
var de_PutFunctionConcurrencyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4987
|
-
const parsedOutput = {
|
|
4988
|
-
...output,
|
|
4989
|
-
body: await parseErrorBody(output.body, context)
|
|
4990
|
-
};
|
|
4991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4992
|
-
switch (errorCode) {
|
|
4993
|
-
case "InvalidParameterValueException":
|
|
4994
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
4995
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4996
|
-
case "ResourceConflictException":
|
|
4997
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
4998
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
4999
|
-
case "ResourceNotFoundException":
|
|
5000
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5001
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5002
|
-
case "ServiceException":
|
|
5003
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5004
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5005
|
-
case "TooManyRequestsException":
|
|
5006
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5007
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5008
|
-
default:
|
|
5009
|
-
const parsedBody = parsedOutput.body;
|
|
5010
|
-
return throwDefaultError({
|
|
5011
|
-
output,
|
|
5012
|
-
parsedBody,
|
|
5013
|
-
errorCode
|
|
5014
|
-
});
|
|
5015
|
-
}
|
|
5016
|
-
}, "de_PutFunctionConcurrencyCommandError");
|
|
5017
3348
|
var de_PutFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5018
3349
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5019
|
-
return
|
|
3350
|
+
return de_CommandError(output, context);
|
|
5020
3351
|
}
|
|
5021
3352
|
const contents = (0, import_smithy_client.map)({
|
|
5022
3353
|
$metadata: deserializeMetadata(output)
|
|
@@ -5032,40 +3363,9 @@ var de_PutFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
5032
3363
|
Object.assign(contents, doc);
|
|
5033
3364
|
return contents;
|
|
5034
3365
|
}, "de_PutFunctionEventInvokeConfigCommand");
|
|
5035
|
-
var de_PutFunctionEventInvokeConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5036
|
-
const parsedOutput = {
|
|
5037
|
-
...output,
|
|
5038
|
-
body: await parseErrorBody(output.body, context)
|
|
5039
|
-
};
|
|
5040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5041
|
-
switch (errorCode) {
|
|
5042
|
-
case "InvalidParameterValueException":
|
|
5043
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5044
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5045
|
-
case "ResourceConflictException":
|
|
5046
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5047
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5048
|
-
case "ResourceNotFoundException":
|
|
5049
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5050
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5051
|
-
case "ServiceException":
|
|
5052
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5053
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5054
|
-
case "TooManyRequestsException":
|
|
5055
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5056
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5057
|
-
default:
|
|
5058
|
-
const parsedBody = parsedOutput.body;
|
|
5059
|
-
return throwDefaultError({
|
|
5060
|
-
output,
|
|
5061
|
-
parsedBody,
|
|
5062
|
-
errorCode
|
|
5063
|
-
});
|
|
5064
|
-
}
|
|
5065
|
-
}, "de_PutFunctionEventInvokeConfigCommandError");
|
|
5066
3366
|
var de_PutProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5067
3367
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5068
|
-
return
|
|
3368
|
+
return de_CommandError(output, context);
|
|
5069
3369
|
}
|
|
5070
3370
|
const contents = (0, import_smithy_client.map)({
|
|
5071
3371
|
$metadata: deserializeMetadata(output)
|
|
@@ -5082,40 +3382,9 @@ var de_PutProvisionedConcurrencyConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
5082
3382
|
Object.assign(contents, doc);
|
|
5083
3383
|
return contents;
|
|
5084
3384
|
}, "de_PutProvisionedConcurrencyConfigCommand");
|
|
5085
|
-
var de_PutProvisionedConcurrencyConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5086
|
-
const parsedOutput = {
|
|
5087
|
-
...output,
|
|
5088
|
-
body: await parseErrorBody(output.body, context)
|
|
5089
|
-
};
|
|
5090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5091
|
-
switch (errorCode) {
|
|
5092
|
-
case "InvalidParameterValueException":
|
|
5093
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5094
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5095
|
-
case "ResourceConflictException":
|
|
5096
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5097
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5098
|
-
case "ResourceNotFoundException":
|
|
5099
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5101
|
-
case "ServiceException":
|
|
5102
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5103
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5104
|
-
case "TooManyRequestsException":
|
|
5105
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5106
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5107
|
-
default:
|
|
5108
|
-
const parsedBody = parsedOutput.body;
|
|
5109
|
-
return throwDefaultError({
|
|
5110
|
-
output,
|
|
5111
|
-
parsedBody,
|
|
5112
|
-
errorCode
|
|
5113
|
-
});
|
|
5114
|
-
}
|
|
5115
|
-
}, "de_PutProvisionedConcurrencyConfigCommandError");
|
|
5116
3385
|
var de_PutRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5117
3386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5118
|
-
return
|
|
3387
|
+
return de_CommandError(output, context);
|
|
5119
3388
|
}
|
|
5120
3389
|
const contents = (0, import_smithy_client.map)({
|
|
5121
3390
|
$metadata: deserializeMetadata(output)
|
|
@@ -5129,40 +3398,9 @@ var de_PutRuntimeManagementConfigCommand = /* @__PURE__ */ __name(async (output,
|
|
|
5129
3398
|
Object.assign(contents, doc);
|
|
5130
3399
|
return contents;
|
|
5131
3400
|
}, "de_PutRuntimeManagementConfigCommand");
|
|
5132
|
-
var de_PutRuntimeManagementConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5133
|
-
const parsedOutput = {
|
|
5134
|
-
...output,
|
|
5135
|
-
body: await parseErrorBody(output.body, context)
|
|
5136
|
-
};
|
|
5137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5138
|
-
switch (errorCode) {
|
|
5139
|
-
case "InvalidParameterValueException":
|
|
5140
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5141
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5142
|
-
case "ResourceConflictException":
|
|
5143
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5144
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5145
|
-
case "ResourceNotFoundException":
|
|
5146
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5147
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5148
|
-
case "ServiceException":
|
|
5149
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5150
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5151
|
-
case "TooManyRequestsException":
|
|
5152
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5153
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5154
|
-
default:
|
|
5155
|
-
const parsedBody = parsedOutput.body;
|
|
5156
|
-
return throwDefaultError({
|
|
5157
|
-
output,
|
|
5158
|
-
parsedBody,
|
|
5159
|
-
errorCode
|
|
5160
|
-
});
|
|
5161
|
-
}
|
|
5162
|
-
}, "de_PutRuntimeManagementConfigCommandError");
|
|
5163
3401
|
var de_RemoveLayerVersionPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5164
3402
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5165
|
-
return
|
|
3403
|
+
return de_CommandError(output, context);
|
|
5166
3404
|
}
|
|
5167
3405
|
const contents = (0, import_smithy_client.map)({
|
|
5168
3406
|
$metadata: deserializeMetadata(output)
|
|
@@ -5170,40 +3408,9 @@ var de_RemoveLayerVersionPermissionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
5170
3408
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5171
3409
|
return contents;
|
|
5172
3410
|
}, "de_RemoveLayerVersionPermissionCommand");
|
|
5173
|
-
var de_RemoveLayerVersionPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5174
|
-
const parsedOutput = {
|
|
5175
|
-
...output,
|
|
5176
|
-
body: await parseErrorBody(output.body, context)
|
|
5177
|
-
};
|
|
5178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5179
|
-
switch (errorCode) {
|
|
5180
|
-
case "InvalidParameterValueException":
|
|
5181
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5182
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5183
|
-
case "PreconditionFailedException":
|
|
5184
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
5185
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5186
|
-
case "ResourceNotFoundException":
|
|
5187
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5188
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5189
|
-
case "ServiceException":
|
|
5190
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5191
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5192
|
-
case "TooManyRequestsException":
|
|
5193
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5194
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5195
|
-
default:
|
|
5196
|
-
const parsedBody = parsedOutput.body;
|
|
5197
|
-
return throwDefaultError({
|
|
5198
|
-
output,
|
|
5199
|
-
parsedBody,
|
|
5200
|
-
errorCode
|
|
5201
|
-
});
|
|
5202
|
-
}
|
|
5203
|
-
}, "de_RemoveLayerVersionPermissionCommandError");
|
|
5204
3411
|
var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5205
3412
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5206
|
-
return
|
|
3413
|
+
return de_CommandError(output, context);
|
|
5207
3414
|
}
|
|
5208
3415
|
const contents = (0, import_smithy_client.map)({
|
|
5209
3416
|
$metadata: deserializeMetadata(output)
|
|
@@ -5211,40 +3418,9 @@ var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5211
3418
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5212
3419
|
return contents;
|
|
5213
3420
|
}, "de_RemovePermissionCommand");
|
|
5214
|
-
var de_RemovePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5215
|
-
const parsedOutput = {
|
|
5216
|
-
...output,
|
|
5217
|
-
body: await parseErrorBody(output.body, context)
|
|
5218
|
-
};
|
|
5219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5220
|
-
switch (errorCode) {
|
|
5221
|
-
case "InvalidParameterValueException":
|
|
5222
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5223
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5224
|
-
case "PreconditionFailedException":
|
|
5225
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
5226
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5227
|
-
case "ResourceNotFoundException":
|
|
5228
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5230
|
-
case "ServiceException":
|
|
5231
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5232
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5233
|
-
case "TooManyRequestsException":
|
|
5234
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5235
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5236
|
-
default:
|
|
5237
|
-
const parsedBody = parsedOutput.body;
|
|
5238
|
-
return throwDefaultError({
|
|
5239
|
-
output,
|
|
5240
|
-
parsedBody,
|
|
5241
|
-
errorCode
|
|
5242
|
-
});
|
|
5243
|
-
}
|
|
5244
|
-
}, "de_RemovePermissionCommandError");
|
|
5245
3421
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5246
3422
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5247
|
-
return
|
|
3423
|
+
return de_CommandError(output, context);
|
|
5248
3424
|
}
|
|
5249
3425
|
const contents = (0, import_smithy_client.map)({
|
|
5250
3426
|
$metadata: deserializeMetadata(output)
|
|
@@ -5252,40 +3428,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5252
3428
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5253
3429
|
return contents;
|
|
5254
3430
|
}, "de_TagResourceCommand");
|
|
5255
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5256
|
-
const parsedOutput = {
|
|
5257
|
-
...output,
|
|
5258
|
-
body: await parseErrorBody(output.body, context)
|
|
5259
|
-
};
|
|
5260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5261
|
-
switch (errorCode) {
|
|
5262
|
-
case "InvalidParameterValueException":
|
|
5263
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5264
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5265
|
-
case "ResourceConflictException":
|
|
5266
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5267
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5268
|
-
case "ResourceNotFoundException":
|
|
5269
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5270
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5271
|
-
case "ServiceException":
|
|
5272
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5273
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5274
|
-
case "TooManyRequestsException":
|
|
5275
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5276
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5277
|
-
default:
|
|
5278
|
-
const parsedBody = parsedOutput.body;
|
|
5279
|
-
return throwDefaultError({
|
|
5280
|
-
output,
|
|
5281
|
-
parsedBody,
|
|
5282
|
-
errorCode
|
|
5283
|
-
});
|
|
5284
|
-
}
|
|
5285
|
-
}, "de_TagResourceCommandError");
|
|
5286
3431
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5287
3432
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5288
|
-
return
|
|
3433
|
+
return de_CommandError(output, context);
|
|
5289
3434
|
}
|
|
5290
3435
|
const contents = (0, import_smithy_client.map)({
|
|
5291
3436
|
$metadata: deserializeMetadata(output)
|
|
@@ -5293,40 +3438,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5293
3438
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5294
3439
|
return contents;
|
|
5295
3440
|
}, "de_UntagResourceCommand");
|
|
5296
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5297
|
-
const parsedOutput = {
|
|
5298
|
-
...output,
|
|
5299
|
-
body: await parseErrorBody(output.body, context)
|
|
5300
|
-
};
|
|
5301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5302
|
-
switch (errorCode) {
|
|
5303
|
-
case "InvalidParameterValueException":
|
|
5304
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5305
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5306
|
-
case "ResourceConflictException":
|
|
5307
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5308
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5309
|
-
case "ResourceNotFoundException":
|
|
5310
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5312
|
-
case "ServiceException":
|
|
5313
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5314
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5315
|
-
case "TooManyRequestsException":
|
|
5316
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5317
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5318
|
-
default:
|
|
5319
|
-
const parsedBody = parsedOutput.body;
|
|
5320
|
-
return throwDefaultError({
|
|
5321
|
-
output,
|
|
5322
|
-
parsedBody,
|
|
5323
|
-
errorCode
|
|
5324
|
-
});
|
|
5325
|
-
}
|
|
5326
|
-
}, "de_UntagResourceCommandError");
|
|
5327
3441
|
var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5328
3442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5329
|
-
return
|
|
3443
|
+
return de_CommandError(output, context);
|
|
5330
3444
|
}
|
|
5331
3445
|
const contents = (0, import_smithy_client.map)({
|
|
5332
3446
|
$metadata: deserializeMetadata(output)
|
|
@@ -5343,82 +3457,23 @@ var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5343
3457
|
Object.assign(contents, doc);
|
|
5344
3458
|
return contents;
|
|
5345
3459
|
}, "de_UpdateAliasCommand");
|
|
5346
|
-
var de_UpdateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5347
|
-
const parsedOutput = {
|
|
5348
|
-
...output,
|
|
5349
|
-
body: await parseErrorBody(output.body, context)
|
|
5350
|
-
};
|
|
5351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5352
|
-
switch (errorCode) {
|
|
5353
|
-
case "InvalidParameterValueException":
|
|
5354
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5355
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5356
|
-
case "PreconditionFailedException":
|
|
5357
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
5358
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5359
|
-
case "ResourceConflictException":
|
|
5360
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5361
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5362
|
-
case "ResourceNotFoundException":
|
|
5363
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5365
|
-
case "ServiceException":
|
|
5366
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5367
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5368
|
-
case "TooManyRequestsException":
|
|
5369
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5370
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5371
|
-
default:
|
|
5372
|
-
const parsedBody = parsedOutput.body;
|
|
5373
|
-
return throwDefaultError({
|
|
5374
|
-
output,
|
|
5375
|
-
parsedBody,
|
|
5376
|
-
errorCode
|
|
5377
|
-
});
|
|
5378
|
-
}
|
|
5379
|
-
}, "de_UpdateAliasCommandError");
|
|
5380
3460
|
var de_UpdateCodeSigningConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5381
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5382
|
-
return
|
|
5383
|
-
}
|
|
5384
|
-
const contents = (0, import_smithy_client.map)({
|
|
5385
|
-
$metadata: deserializeMetadata(output)
|
|
5386
|
-
});
|
|
5387
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
5388
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
5389
|
-
CodeSigningConfig: import_smithy_client._json
|
|
5390
|
-
});
|
|
5391
|
-
Object.assign(contents, doc);
|
|
5392
|
-
return contents;
|
|
5393
|
-
}, "de_UpdateCodeSigningConfigCommand");
|
|
5394
|
-
var de_UpdateCodeSigningConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5395
|
-
const parsedOutput = {
|
|
5396
|
-
...output,
|
|
5397
|
-
body: await parseErrorBody(output.body, context)
|
|
5398
|
-
};
|
|
5399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5400
|
-
switch (errorCode) {
|
|
5401
|
-
case "InvalidParameterValueException":
|
|
5402
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5403
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5404
|
-
case "ResourceNotFoundException":
|
|
5405
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5407
|
-
case "ServiceException":
|
|
5408
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5409
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5410
|
-
default:
|
|
5411
|
-
const parsedBody = parsedOutput.body;
|
|
5412
|
-
return throwDefaultError({
|
|
5413
|
-
output,
|
|
5414
|
-
parsedBody,
|
|
5415
|
-
errorCode
|
|
5416
|
-
});
|
|
3461
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3462
|
+
return de_CommandError(output, context);
|
|
5417
3463
|
}
|
|
5418
|
-
|
|
3464
|
+
const contents = (0, import_smithy_client.map)({
|
|
3465
|
+
$metadata: deserializeMetadata(output)
|
|
3466
|
+
});
|
|
3467
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3468
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3469
|
+
CodeSigningConfig: import_smithy_client._json
|
|
3470
|
+
});
|
|
3471
|
+
Object.assign(contents, doc);
|
|
3472
|
+
return contents;
|
|
3473
|
+
}, "de_UpdateCodeSigningConfigCommand");
|
|
5419
3474
|
var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5420
3475
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5421
|
-
return
|
|
3476
|
+
return de_CommandError(output, context);
|
|
5422
3477
|
}
|
|
5423
3478
|
const contents = (0, import_smithy_client.map)({
|
|
5424
3479
|
$metadata: deserializeMetadata(output)
|
|
@@ -5456,43 +3511,9 @@ var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5456
3511
|
Object.assign(contents, doc);
|
|
5457
3512
|
return contents;
|
|
5458
3513
|
}, "de_UpdateEventSourceMappingCommand");
|
|
5459
|
-
var de_UpdateEventSourceMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5460
|
-
const parsedOutput = {
|
|
5461
|
-
...output,
|
|
5462
|
-
body: await parseErrorBody(output.body, context)
|
|
5463
|
-
};
|
|
5464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5465
|
-
switch (errorCode) {
|
|
5466
|
-
case "InvalidParameterValueException":
|
|
5467
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5468
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5469
|
-
case "ResourceConflictException":
|
|
5470
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5471
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5472
|
-
case "ResourceInUseException":
|
|
5473
|
-
case "com.amazonaws.lambda#ResourceInUseException":
|
|
5474
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5475
|
-
case "ResourceNotFoundException":
|
|
5476
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5477
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5478
|
-
case "ServiceException":
|
|
5479
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5480
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5481
|
-
case "TooManyRequestsException":
|
|
5482
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5483
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5484
|
-
default:
|
|
5485
|
-
const parsedBody = parsedOutput.body;
|
|
5486
|
-
return throwDefaultError({
|
|
5487
|
-
output,
|
|
5488
|
-
parsedBody,
|
|
5489
|
-
errorCode
|
|
5490
|
-
});
|
|
5491
|
-
}
|
|
5492
|
-
}, "de_UpdateEventSourceMappingCommandError");
|
|
5493
3514
|
var de_UpdateFunctionCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5494
3515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5495
|
-
return
|
|
3516
|
+
return de_CommandError(output, context);
|
|
5496
3517
|
}
|
|
5497
3518
|
const contents = (0, import_smithy_client.map)({
|
|
5498
3519
|
$metadata: deserializeMetadata(output)
|
|
@@ -5539,55 +3560,9 @@ var de_UpdateFunctionCodeCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
5539
3560
|
Object.assign(contents, doc);
|
|
5540
3561
|
return contents;
|
|
5541
3562
|
}, "de_UpdateFunctionCodeCommand");
|
|
5542
|
-
var de_UpdateFunctionCodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5543
|
-
const parsedOutput = {
|
|
5544
|
-
...output,
|
|
5545
|
-
body: await parseErrorBody(output.body, context)
|
|
5546
|
-
};
|
|
5547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5548
|
-
switch (errorCode) {
|
|
5549
|
-
case "CodeSigningConfigNotFoundException":
|
|
5550
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
5551
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
5552
|
-
case "CodeStorageExceededException":
|
|
5553
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
5554
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
5555
|
-
case "CodeVerificationFailedException":
|
|
5556
|
-
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
5557
|
-
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
5558
|
-
case "InvalidCodeSignatureException":
|
|
5559
|
-
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
5560
|
-
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
5561
|
-
case "InvalidParameterValueException":
|
|
5562
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5563
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5564
|
-
case "PreconditionFailedException":
|
|
5565
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
5566
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5567
|
-
case "ResourceConflictException":
|
|
5568
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5569
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5570
|
-
case "ResourceNotFoundException":
|
|
5571
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5572
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5573
|
-
case "ServiceException":
|
|
5574
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5575
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5576
|
-
case "TooManyRequestsException":
|
|
5577
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5578
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5579
|
-
default:
|
|
5580
|
-
const parsedBody = parsedOutput.body;
|
|
5581
|
-
return throwDefaultError({
|
|
5582
|
-
output,
|
|
5583
|
-
parsedBody,
|
|
5584
|
-
errorCode
|
|
5585
|
-
});
|
|
5586
|
-
}
|
|
5587
|
-
}, "de_UpdateFunctionCodeCommandError");
|
|
5588
3563
|
var de_UpdateFunctionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5589
3564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5590
|
-
return
|
|
3565
|
+
return de_CommandError(output, context);
|
|
5591
3566
|
}
|
|
5592
3567
|
const contents = (0, import_smithy_client.map)({
|
|
5593
3568
|
$metadata: deserializeMetadata(output)
|
|
@@ -5634,52 +3609,9 @@ var de_UpdateFunctionConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
5634
3609
|
Object.assign(contents, doc);
|
|
5635
3610
|
return contents;
|
|
5636
3611
|
}, "de_UpdateFunctionConfigurationCommand");
|
|
5637
|
-
var de_UpdateFunctionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5638
|
-
const parsedOutput = {
|
|
5639
|
-
...output,
|
|
5640
|
-
body: await parseErrorBody(output.body, context)
|
|
5641
|
-
};
|
|
5642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5643
|
-
switch (errorCode) {
|
|
5644
|
-
case "CodeSigningConfigNotFoundException":
|
|
5645
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
5646
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
5647
|
-
case "CodeVerificationFailedException":
|
|
5648
|
-
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
5649
|
-
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
5650
|
-
case "InvalidCodeSignatureException":
|
|
5651
|
-
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
5652
|
-
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
5653
|
-
case "InvalidParameterValueException":
|
|
5654
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5655
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5656
|
-
case "PreconditionFailedException":
|
|
5657
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
5658
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5659
|
-
case "ResourceConflictException":
|
|
5660
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5661
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5662
|
-
case "ResourceNotFoundException":
|
|
5663
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5664
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5665
|
-
case "ServiceException":
|
|
5666
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5667
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5668
|
-
case "TooManyRequestsException":
|
|
5669
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5670
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5671
|
-
default:
|
|
5672
|
-
const parsedBody = parsedOutput.body;
|
|
5673
|
-
return throwDefaultError({
|
|
5674
|
-
output,
|
|
5675
|
-
parsedBody,
|
|
5676
|
-
errorCode
|
|
5677
|
-
});
|
|
5678
|
-
}
|
|
5679
|
-
}, "de_UpdateFunctionConfigurationCommandError");
|
|
5680
3612
|
var de_UpdateFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5681
3613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5682
|
-
return
|
|
3614
|
+
return de_CommandError(output, context);
|
|
5683
3615
|
}
|
|
5684
3616
|
const contents = (0, import_smithy_client.map)({
|
|
5685
3617
|
$metadata: deserializeMetadata(output)
|
|
@@ -5695,40 +3627,9 @@ var de_UpdateFunctionEventInvokeConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
5695
3627
|
Object.assign(contents, doc);
|
|
5696
3628
|
return contents;
|
|
5697
3629
|
}, "de_UpdateFunctionEventInvokeConfigCommand");
|
|
5698
|
-
var de_UpdateFunctionEventInvokeConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5699
|
-
const parsedOutput = {
|
|
5700
|
-
...output,
|
|
5701
|
-
body: await parseErrorBody(output.body, context)
|
|
5702
|
-
};
|
|
5703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5704
|
-
switch (errorCode) {
|
|
5705
|
-
case "InvalidParameterValueException":
|
|
5706
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5707
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5708
|
-
case "ResourceConflictException":
|
|
5709
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5710
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5711
|
-
case "ResourceNotFoundException":
|
|
5712
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
5713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5714
|
-
case "ServiceException":
|
|
5715
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
5716
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5717
|
-
case "TooManyRequestsException":
|
|
5718
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5719
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5720
|
-
default:
|
|
5721
|
-
const parsedBody = parsedOutput.body;
|
|
5722
|
-
return throwDefaultError({
|
|
5723
|
-
output,
|
|
5724
|
-
parsedBody,
|
|
5725
|
-
errorCode
|
|
5726
|
-
});
|
|
5727
|
-
}
|
|
5728
|
-
}, "de_UpdateFunctionEventInvokeConfigCommandError");
|
|
5729
3630
|
var de_UpdateFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5730
3631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5731
|
-
return
|
|
3632
|
+
return de_CommandError(output, context);
|
|
5732
3633
|
}
|
|
5733
3634
|
const contents = (0, import_smithy_client.map)({
|
|
5734
3635
|
$metadata: deserializeMetadata(output)
|
|
@@ -5746,7 +3647,7 @@ var de_UpdateFunctionUrlConfigCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
5746
3647
|
Object.assign(contents, doc);
|
|
5747
3648
|
return contents;
|
|
5748
3649
|
}, "de_UpdateFunctionUrlConfigCommand");
|
|
5749
|
-
var
|
|
3650
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5750
3651
|
const parsedOutput = {
|
|
5751
3652
|
...output,
|
|
5752
3653
|
body: await parseErrorBody(output.body, context)
|
|
@@ -5756,6 +3657,12 @@ var de_UpdateFunctionUrlConfigCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
5756
3657
|
case "InvalidParameterValueException":
|
|
5757
3658
|
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
5758
3659
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3660
|
+
case "PolicyLengthExceededException":
|
|
3661
|
+
case "com.amazonaws.lambda#PolicyLengthExceededException":
|
|
3662
|
+
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
3663
|
+
case "PreconditionFailedException":
|
|
3664
|
+
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
3665
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
5759
3666
|
case "ResourceConflictException":
|
|
5760
3667
|
case "com.amazonaws.lambda#ResourceConflictException":
|
|
5761
3668
|
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
@@ -5768,6 +3675,99 @@ var de_UpdateFunctionUrlConfigCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
5768
3675
|
case "TooManyRequestsException":
|
|
5769
3676
|
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
5770
3677
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3678
|
+
case "CodeSigningConfigNotFoundException":
|
|
3679
|
+
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
3680
|
+
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
3681
|
+
case "CodeStorageExceededException":
|
|
3682
|
+
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
3683
|
+
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
3684
|
+
case "CodeVerificationFailedException":
|
|
3685
|
+
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
3686
|
+
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
3687
|
+
case "InvalidCodeSignatureException":
|
|
3688
|
+
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
3689
|
+
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
3690
|
+
case "ResourceInUseException":
|
|
3691
|
+
case "com.amazonaws.lambda#ResourceInUseException":
|
|
3692
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3693
|
+
case "ProvisionedConcurrencyConfigNotFoundException":
|
|
3694
|
+
case "com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":
|
|
3695
|
+
throw await de_ProvisionedConcurrencyConfigNotFoundExceptionRes(parsedOutput, context);
|
|
3696
|
+
case "EC2AccessDeniedException":
|
|
3697
|
+
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
3698
|
+
throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
|
|
3699
|
+
case "EC2ThrottledException":
|
|
3700
|
+
case "com.amazonaws.lambda#EC2ThrottledException":
|
|
3701
|
+
throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
|
|
3702
|
+
case "EC2UnexpectedException":
|
|
3703
|
+
case "com.amazonaws.lambda#EC2UnexpectedException":
|
|
3704
|
+
throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
|
|
3705
|
+
case "EFSIOException":
|
|
3706
|
+
case "com.amazonaws.lambda#EFSIOException":
|
|
3707
|
+
throw await de_EFSIOExceptionRes(parsedOutput, context);
|
|
3708
|
+
case "EFSMountConnectivityException":
|
|
3709
|
+
case "com.amazonaws.lambda#EFSMountConnectivityException":
|
|
3710
|
+
throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
|
|
3711
|
+
case "EFSMountFailureException":
|
|
3712
|
+
case "com.amazonaws.lambda#EFSMountFailureException":
|
|
3713
|
+
throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
|
|
3714
|
+
case "EFSMountTimeoutException":
|
|
3715
|
+
case "com.amazonaws.lambda#EFSMountTimeoutException":
|
|
3716
|
+
throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
|
|
3717
|
+
case "ENILimitReachedException":
|
|
3718
|
+
case "com.amazonaws.lambda#ENILimitReachedException":
|
|
3719
|
+
throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
|
|
3720
|
+
case "InvalidRequestContentException":
|
|
3721
|
+
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
3722
|
+
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
3723
|
+
case "InvalidRuntimeException":
|
|
3724
|
+
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
3725
|
+
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
3726
|
+
case "InvalidSecurityGroupIDException":
|
|
3727
|
+
case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
|
|
3728
|
+
throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
|
|
3729
|
+
case "InvalidSubnetIDException":
|
|
3730
|
+
case "com.amazonaws.lambda#InvalidSubnetIDException":
|
|
3731
|
+
throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
|
|
3732
|
+
case "InvalidZipFileException":
|
|
3733
|
+
case "com.amazonaws.lambda#InvalidZipFileException":
|
|
3734
|
+
throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
|
|
3735
|
+
case "KMSAccessDeniedException":
|
|
3736
|
+
case "com.amazonaws.lambda#KMSAccessDeniedException":
|
|
3737
|
+
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
3738
|
+
case "KMSDisabledException":
|
|
3739
|
+
case "com.amazonaws.lambda#KMSDisabledException":
|
|
3740
|
+
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
3741
|
+
case "KMSInvalidStateException":
|
|
3742
|
+
case "com.amazonaws.lambda#KMSInvalidStateException":
|
|
3743
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3744
|
+
case "KMSNotFoundException":
|
|
3745
|
+
case "com.amazonaws.lambda#KMSNotFoundException":
|
|
3746
|
+
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
3747
|
+
case "RecursiveInvocationException":
|
|
3748
|
+
case "com.amazonaws.lambda#RecursiveInvocationException":
|
|
3749
|
+
throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
|
|
3750
|
+
case "RequestTooLargeException":
|
|
3751
|
+
case "com.amazonaws.lambda#RequestTooLargeException":
|
|
3752
|
+
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
|
|
3753
|
+
case "ResourceNotReadyException":
|
|
3754
|
+
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
3755
|
+
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
3756
|
+
case "SnapStartException":
|
|
3757
|
+
case "com.amazonaws.lambda#SnapStartException":
|
|
3758
|
+
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
3759
|
+
case "SnapStartNotReadyException":
|
|
3760
|
+
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
3761
|
+
throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
|
|
3762
|
+
case "SnapStartTimeoutException":
|
|
3763
|
+
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
3764
|
+
throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
|
|
3765
|
+
case "SubnetIPAddressLimitReachedException":
|
|
3766
|
+
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
3767
|
+
throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
|
|
3768
|
+
case "UnsupportedMediaTypeException":
|
|
3769
|
+
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
3770
|
+
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
5771
3771
|
default:
|
|
5772
3772
|
const parsedBody = parsedOutput.body;
|
|
5773
3773
|
return throwDefaultError({
|
|
@@ -5776,7 +3776,7 @@ var de_UpdateFunctionUrlConfigCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
5776
3776
|
errorCode
|
|
5777
3777
|
});
|
|
5778
3778
|
}
|
|
5779
|
-
}, "
|
|
3779
|
+
}, "de_CommandError");
|
|
5780
3780
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(LambdaServiceException);
|
|
5781
3781
|
var de_CodeSigningConfigNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5782
3782
|
const contents = (0, import_smithy_client.map)({});
|