@aws-sdk/client-s3-control 3.118.0 → 3.127.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restXml.js +460 -404
- package/dist-es/protocols/Aws_restXml.js +460 -404
- package/package.json +31 -31
|
@@ -2453,15 +2453,16 @@ const deserializeAws_restXmlCreateAccessPointCommandError = async (output, conte
|
|
|
2453
2453
|
body: await parseBody(output.body, context),
|
|
2454
2454
|
};
|
|
2455
2455
|
let response;
|
|
2456
|
-
|
|
2457
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2456
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2458
2457
|
switch (errorCode) {
|
|
2459
2458
|
default:
|
|
2460
2459
|
const parsedBody = parsedOutput.body;
|
|
2460
|
+
const $metadata = deserializeMetadata(output);
|
|
2461
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2461
2462
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2462
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2463
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2463
2464
|
$fault: "client",
|
|
2464
|
-
$metadata
|
|
2465
|
+
$metadata,
|
|
2465
2466
|
});
|
|
2466
2467
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2467
2468
|
}
|
|
@@ -2487,15 +2488,16 @@ const deserializeAws_restXmlCreateAccessPointForObjectLambdaCommandError = async
|
|
|
2487
2488
|
body: await parseBody(output.body, context),
|
|
2488
2489
|
};
|
|
2489
2490
|
let response;
|
|
2490
|
-
|
|
2491
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2491
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2492
2492
|
switch (errorCode) {
|
|
2493
2493
|
default:
|
|
2494
2494
|
const parsedBody = parsedOutput.body;
|
|
2495
|
+
const $metadata = deserializeMetadata(output);
|
|
2496
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2495
2497
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2496
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2498
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2497
2499
|
$fault: "client",
|
|
2498
|
-
$metadata
|
|
2500
|
+
$metadata,
|
|
2499
2501
|
});
|
|
2500
2502
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2501
2503
|
}
|
|
@@ -2525,8 +2527,7 @@ const deserializeAws_restXmlCreateBucketCommandError = async (output, context) =
|
|
|
2525
2527
|
body: await parseBody(output.body, context),
|
|
2526
2528
|
};
|
|
2527
2529
|
let response;
|
|
2528
|
-
|
|
2529
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2530
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2530
2531
|
switch (errorCode) {
|
|
2531
2532
|
case "BucketAlreadyExists":
|
|
2532
2533
|
case "com.amazonaws.s3control#BucketAlreadyExists":
|
|
@@ -2536,10 +2537,12 @@ const deserializeAws_restXmlCreateBucketCommandError = async (output, context) =
|
|
|
2536
2537
|
throw await deserializeAws_restXmlBucketAlreadyOwnedByYouResponse(parsedOutput, context);
|
|
2537
2538
|
default:
|
|
2538
2539
|
const parsedBody = parsedOutput.body;
|
|
2540
|
+
const $metadata = deserializeMetadata(output);
|
|
2541
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2539
2542
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2540
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2543
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2541
2544
|
$fault: "client",
|
|
2542
|
-
$metadata
|
|
2545
|
+
$metadata,
|
|
2543
2546
|
});
|
|
2544
2547
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2545
2548
|
}
|
|
@@ -2565,8 +2568,7 @@ const deserializeAws_restXmlCreateJobCommandError = async (output, context) => {
|
|
|
2565
2568
|
body: await parseBody(output.body, context),
|
|
2566
2569
|
};
|
|
2567
2570
|
let response;
|
|
2568
|
-
|
|
2569
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2571
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2570
2572
|
switch (errorCode) {
|
|
2571
2573
|
case "BadRequestException":
|
|
2572
2574
|
case "com.amazonaws.s3control#BadRequestException":
|
|
@@ -2582,10 +2584,12 @@ const deserializeAws_restXmlCreateJobCommandError = async (output, context) => {
|
|
|
2582
2584
|
throw await deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2583
2585
|
default:
|
|
2584
2586
|
const parsedBody = parsedOutput.body;
|
|
2587
|
+
const $metadata = deserializeMetadata(output);
|
|
2588
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2585
2589
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2586
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2590
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2587
2591
|
$fault: "client",
|
|
2588
|
-
$metadata
|
|
2592
|
+
$metadata,
|
|
2589
2593
|
});
|
|
2590
2594
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2591
2595
|
}
|
|
@@ -2611,15 +2615,16 @@ const deserializeAws_restXmlCreateMultiRegionAccessPointCommandError = async (ou
|
|
|
2611
2615
|
body: await parseBody(output.body, context),
|
|
2612
2616
|
};
|
|
2613
2617
|
let response;
|
|
2614
|
-
|
|
2615
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2618
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2616
2619
|
switch (errorCode) {
|
|
2617
2620
|
default:
|
|
2618
2621
|
const parsedBody = parsedOutput.body;
|
|
2622
|
+
const $metadata = deserializeMetadata(output);
|
|
2623
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2619
2624
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2620
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2625
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2621
2626
|
$fault: "client",
|
|
2622
|
-
$metadata
|
|
2627
|
+
$metadata,
|
|
2623
2628
|
});
|
|
2624
2629
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2625
2630
|
}
|
|
@@ -2641,15 +2646,16 @@ const deserializeAws_restXmlDeleteAccessPointCommandError = async (output, conte
|
|
|
2641
2646
|
body: await parseBody(output.body, context),
|
|
2642
2647
|
};
|
|
2643
2648
|
let response;
|
|
2644
|
-
|
|
2645
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2649
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2646
2650
|
switch (errorCode) {
|
|
2647
2651
|
default:
|
|
2648
2652
|
const parsedBody = parsedOutput.body;
|
|
2653
|
+
const $metadata = deserializeMetadata(output);
|
|
2654
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2649
2655
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2650
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2656
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2651
2657
|
$fault: "client",
|
|
2652
|
-
$metadata
|
|
2658
|
+
$metadata,
|
|
2653
2659
|
});
|
|
2654
2660
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2655
2661
|
}
|
|
@@ -2671,15 +2677,16 @@ const deserializeAws_restXmlDeleteAccessPointForObjectLambdaCommandError = async
|
|
|
2671
2677
|
body: await parseBody(output.body, context),
|
|
2672
2678
|
};
|
|
2673
2679
|
let response;
|
|
2674
|
-
|
|
2675
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2680
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2676
2681
|
switch (errorCode) {
|
|
2677
2682
|
default:
|
|
2678
2683
|
const parsedBody = parsedOutput.body;
|
|
2684
|
+
const $metadata = deserializeMetadata(output);
|
|
2685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2679
2686
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2680
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2687
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2681
2688
|
$fault: "client",
|
|
2682
|
-
$metadata
|
|
2689
|
+
$metadata,
|
|
2683
2690
|
});
|
|
2684
2691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2685
2692
|
}
|
|
@@ -2701,15 +2708,16 @@ const deserializeAws_restXmlDeleteAccessPointPolicyCommandError = async (output,
|
|
|
2701
2708
|
body: await parseBody(output.body, context),
|
|
2702
2709
|
};
|
|
2703
2710
|
let response;
|
|
2704
|
-
|
|
2705
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2711
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2706
2712
|
switch (errorCode) {
|
|
2707
2713
|
default:
|
|
2708
2714
|
const parsedBody = parsedOutput.body;
|
|
2715
|
+
const $metadata = deserializeMetadata(output);
|
|
2716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2709
2717
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2710
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2718
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2711
2719
|
$fault: "client",
|
|
2712
|
-
$metadata
|
|
2720
|
+
$metadata,
|
|
2713
2721
|
});
|
|
2714
2722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2715
2723
|
}
|
|
@@ -2731,15 +2739,16 @@ const deserializeAws_restXmlDeleteAccessPointPolicyForObjectLambdaCommandError =
|
|
|
2731
2739
|
body: await parseBody(output.body, context),
|
|
2732
2740
|
};
|
|
2733
2741
|
let response;
|
|
2734
|
-
|
|
2735
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2742
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2736
2743
|
switch (errorCode) {
|
|
2737
2744
|
default:
|
|
2738
2745
|
const parsedBody = parsedOutput.body;
|
|
2746
|
+
const $metadata = deserializeMetadata(output);
|
|
2747
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2739
2748
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2740
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2749
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2741
2750
|
$fault: "client",
|
|
2742
|
-
$metadata
|
|
2751
|
+
$metadata,
|
|
2743
2752
|
});
|
|
2744
2753
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2745
2754
|
}
|
|
@@ -2761,15 +2770,16 @@ const deserializeAws_restXmlDeleteBucketCommandError = async (output, context) =
|
|
|
2761
2770
|
body: await parseBody(output.body, context),
|
|
2762
2771
|
};
|
|
2763
2772
|
let response;
|
|
2764
|
-
|
|
2765
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2773
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2766
2774
|
switch (errorCode) {
|
|
2767
2775
|
default:
|
|
2768
2776
|
const parsedBody = parsedOutput.body;
|
|
2777
|
+
const $metadata = deserializeMetadata(output);
|
|
2778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2769
2779
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2770
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2780
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2771
2781
|
$fault: "client",
|
|
2772
|
-
$metadata
|
|
2782
|
+
$metadata,
|
|
2773
2783
|
});
|
|
2774
2784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2775
2785
|
}
|
|
@@ -2791,15 +2801,16 @@ const deserializeAws_restXmlDeleteBucketLifecycleConfigurationCommandError = asy
|
|
|
2791
2801
|
body: await parseBody(output.body, context),
|
|
2792
2802
|
};
|
|
2793
2803
|
let response;
|
|
2794
|
-
|
|
2795
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2804
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2796
2805
|
switch (errorCode) {
|
|
2797
2806
|
default:
|
|
2798
2807
|
const parsedBody = parsedOutput.body;
|
|
2808
|
+
const $metadata = deserializeMetadata(output);
|
|
2809
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2799
2810
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2800
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2811
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2801
2812
|
$fault: "client",
|
|
2802
|
-
$metadata
|
|
2813
|
+
$metadata,
|
|
2803
2814
|
});
|
|
2804
2815
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2805
2816
|
}
|
|
@@ -2821,15 +2832,16 @@ const deserializeAws_restXmlDeleteBucketPolicyCommandError = async (output, cont
|
|
|
2821
2832
|
body: await parseBody(output.body, context),
|
|
2822
2833
|
};
|
|
2823
2834
|
let response;
|
|
2824
|
-
|
|
2825
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2835
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2826
2836
|
switch (errorCode) {
|
|
2827
2837
|
default:
|
|
2828
2838
|
const parsedBody = parsedOutput.body;
|
|
2839
|
+
const $metadata = deserializeMetadata(output);
|
|
2840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2829
2841
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2830
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2842
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2831
2843
|
$fault: "client",
|
|
2832
|
-
$metadata
|
|
2844
|
+
$metadata,
|
|
2833
2845
|
});
|
|
2834
2846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2835
2847
|
}
|
|
@@ -2851,15 +2863,16 @@ const deserializeAws_restXmlDeleteBucketTaggingCommandError = async (output, con
|
|
|
2851
2863
|
body: await parseBody(output.body, context),
|
|
2852
2864
|
};
|
|
2853
2865
|
let response;
|
|
2854
|
-
|
|
2855
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2866
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2856
2867
|
switch (errorCode) {
|
|
2857
2868
|
default:
|
|
2858
2869
|
const parsedBody = parsedOutput.body;
|
|
2870
|
+
const $metadata = deserializeMetadata(output);
|
|
2871
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2859
2872
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2860
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2873
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2861
2874
|
$fault: "client",
|
|
2862
|
-
$metadata
|
|
2875
|
+
$metadata,
|
|
2863
2876
|
});
|
|
2864
2877
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2865
2878
|
}
|
|
@@ -2881,8 +2894,7 @@ const deserializeAws_restXmlDeleteJobTaggingCommandError = async (output, contex
|
|
|
2881
2894
|
body: await parseBody(output.body, context),
|
|
2882
2895
|
};
|
|
2883
2896
|
let response;
|
|
2884
|
-
|
|
2885
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2897
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2886
2898
|
switch (errorCode) {
|
|
2887
2899
|
case "InternalServiceException":
|
|
2888
2900
|
case "com.amazonaws.s3control#InternalServiceException":
|
|
@@ -2895,10 +2907,12 @@ const deserializeAws_restXmlDeleteJobTaggingCommandError = async (output, contex
|
|
|
2895
2907
|
throw await deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2896
2908
|
default:
|
|
2897
2909
|
const parsedBody = parsedOutput.body;
|
|
2910
|
+
const $metadata = deserializeMetadata(output);
|
|
2911
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2898
2912
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2899
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2913
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2900
2914
|
$fault: "client",
|
|
2901
|
-
$metadata
|
|
2915
|
+
$metadata,
|
|
2902
2916
|
});
|
|
2903
2917
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2904
2918
|
}
|
|
@@ -2924,15 +2938,16 @@ const deserializeAws_restXmlDeleteMultiRegionAccessPointCommandError = async (ou
|
|
|
2924
2938
|
body: await parseBody(output.body, context),
|
|
2925
2939
|
};
|
|
2926
2940
|
let response;
|
|
2927
|
-
|
|
2928
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2941
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2929
2942
|
switch (errorCode) {
|
|
2930
2943
|
default:
|
|
2931
2944
|
const parsedBody = parsedOutput.body;
|
|
2945
|
+
const $metadata = deserializeMetadata(output);
|
|
2946
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2932
2947
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2933
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2948
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2934
2949
|
$fault: "client",
|
|
2935
|
-
$metadata
|
|
2950
|
+
$metadata,
|
|
2936
2951
|
});
|
|
2937
2952
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2938
2953
|
}
|
|
@@ -2954,15 +2969,16 @@ const deserializeAws_restXmlDeletePublicAccessBlockCommandError = async (output,
|
|
|
2954
2969
|
body: await parseBody(output.body, context),
|
|
2955
2970
|
};
|
|
2956
2971
|
let response;
|
|
2957
|
-
|
|
2958
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2972
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2959
2973
|
switch (errorCode) {
|
|
2960
2974
|
default:
|
|
2961
2975
|
const parsedBody = parsedOutput.body;
|
|
2976
|
+
const $metadata = deserializeMetadata(output);
|
|
2977
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2962
2978
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2963
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2979
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2964
2980
|
$fault: "client",
|
|
2965
|
-
$metadata
|
|
2981
|
+
$metadata,
|
|
2966
2982
|
});
|
|
2967
2983
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2968
2984
|
}
|
|
@@ -2984,15 +3000,16 @@ const deserializeAws_restXmlDeleteStorageLensConfigurationCommandError = async (
|
|
|
2984
3000
|
body: await parseBody(output.body, context),
|
|
2985
3001
|
};
|
|
2986
3002
|
let response;
|
|
2987
|
-
|
|
2988
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3003
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2989
3004
|
switch (errorCode) {
|
|
2990
3005
|
default:
|
|
2991
3006
|
const parsedBody = parsedOutput.body;
|
|
3007
|
+
const $metadata = deserializeMetadata(output);
|
|
3008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2992
3009
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
2993
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3010
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2994
3011
|
$fault: "client",
|
|
2995
|
-
$metadata
|
|
3012
|
+
$metadata,
|
|
2996
3013
|
});
|
|
2997
3014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2998
3015
|
}
|
|
@@ -3014,15 +3031,16 @@ const deserializeAws_restXmlDeleteStorageLensConfigurationTaggingCommandError =
|
|
|
3014
3031
|
body: await parseBody(output.body, context),
|
|
3015
3032
|
};
|
|
3016
3033
|
let response;
|
|
3017
|
-
|
|
3018
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3034
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3019
3035
|
switch (errorCode) {
|
|
3020
3036
|
default:
|
|
3021
3037
|
const parsedBody = parsedOutput.body;
|
|
3038
|
+
const $metadata = deserializeMetadata(output);
|
|
3039
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3022
3040
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3023
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3041
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3024
3042
|
$fault: "client",
|
|
3025
|
-
$metadata
|
|
3043
|
+
$metadata,
|
|
3026
3044
|
});
|
|
3027
3045
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3028
3046
|
}
|
|
@@ -3048,8 +3066,7 @@ const deserializeAws_restXmlDescribeJobCommandError = async (output, context) =>
|
|
|
3048
3066
|
body: await parseBody(output.body, context),
|
|
3049
3067
|
};
|
|
3050
3068
|
let response;
|
|
3051
|
-
|
|
3052
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3069
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3053
3070
|
switch (errorCode) {
|
|
3054
3071
|
case "BadRequestException":
|
|
3055
3072
|
case "com.amazonaws.s3control#BadRequestException":
|
|
@@ -3065,10 +3082,12 @@ const deserializeAws_restXmlDescribeJobCommandError = async (output, context) =>
|
|
|
3065
3082
|
throw await deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3066
3083
|
default:
|
|
3067
3084
|
const parsedBody = parsedOutput.body;
|
|
3085
|
+
const $metadata = deserializeMetadata(output);
|
|
3086
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3068
3087
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3069
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3088
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3070
3089
|
$fault: "client",
|
|
3071
|
-
$metadata
|
|
3090
|
+
$metadata,
|
|
3072
3091
|
});
|
|
3073
3092
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3074
3093
|
}
|
|
@@ -3094,15 +3113,16 @@ const deserializeAws_restXmlDescribeMultiRegionAccessPointOperationCommandError
|
|
|
3094
3113
|
body: await parseBody(output.body, context),
|
|
3095
3114
|
};
|
|
3096
3115
|
let response;
|
|
3097
|
-
|
|
3098
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3116
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3099
3117
|
switch (errorCode) {
|
|
3100
3118
|
default:
|
|
3101
3119
|
const parsedBody = parsedOutput.body;
|
|
3120
|
+
const $metadata = deserializeMetadata(output);
|
|
3121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3102
3122
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3103
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3123
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3104
3124
|
$fault: "client",
|
|
3105
|
-
$metadata
|
|
3125
|
+
$metadata,
|
|
3106
3126
|
});
|
|
3107
3127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3108
3128
|
}
|
|
@@ -3163,15 +3183,16 @@ const deserializeAws_restXmlGetAccessPointCommandError = async (output, context)
|
|
|
3163
3183
|
body: await parseBody(output.body, context),
|
|
3164
3184
|
};
|
|
3165
3185
|
let response;
|
|
3166
|
-
|
|
3167
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3186
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3168
3187
|
switch (errorCode) {
|
|
3169
3188
|
default:
|
|
3170
3189
|
const parsedBody = parsedOutput.body;
|
|
3190
|
+
const $metadata = deserializeMetadata(output);
|
|
3191
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3171
3192
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3172
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3193
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3173
3194
|
$fault: "client",
|
|
3174
|
-
$metadata
|
|
3195
|
+
$metadata,
|
|
3175
3196
|
});
|
|
3176
3197
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3177
3198
|
}
|
|
@@ -3197,15 +3218,16 @@ const deserializeAws_restXmlGetAccessPointConfigurationForObjectLambdaCommandErr
|
|
|
3197
3218
|
body: await parseBody(output.body, context),
|
|
3198
3219
|
};
|
|
3199
3220
|
let response;
|
|
3200
|
-
|
|
3201
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3221
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3202
3222
|
switch (errorCode) {
|
|
3203
3223
|
default:
|
|
3204
3224
|
const parsedBody = parsedOutput.body;
|
|
3225
|
+
const $metadata = deserializeMetadata(output);
|
|
3226
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3205
3227
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3206
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3228
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3207
3229
|
$fault: "client",
|
|
3208
|
-
$metadata
|
|
3230
|
+
$metadata,
|
|
3209
3231
|
});
|
|
3210
3232
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3211
3233
|
}
|
|
@@ -3239,15 +3261,16 @@ const deserializeAws_restXmlGetAccessPointForObjectLambdaCommandError = async (o
|
|
|
3239
3261
|
body: await parseBody(output.body, context),
|
|
3240
3262
|
};
|
|
3241
3263
|
let response;
|
|
3242
|
-
|
|
3243
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3264
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3244
3265
|
switch (errorCode) {
|
|
3245
3266
|
default:
|
|
3246
3267
|
const parsedBody = parsedOutput.body;
|
|
3268
|
+
const $metadata = deserializeMetadata(output);
|
|
3269
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3247
3270
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3248
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3271
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3249
3272
|
$fault: "client",
|
|
3250
|
-
$metadata
|
|
3273
|
+
$metadata,
|
|
3251
3274
|
});
|
|
3252
3275
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3253
3276
|
}
|
|
@@ -3273,15 +3296,16 @@ const deserializeAws_restXmlGetAccessPointPolicyCommandError = async (output, co
|
|
|
3273
3296
|
body: await parseBody(output.body, context),
|
|
3274
3297
|
};
|
|
3275
3298
|
let response;
|
|
3276
|
-
|
|
3277
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3299
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3278
3300
|
switch (errorCode) {
|
|
3279
3301
|
default:
|
|
3280
3302
|
const parsedBody = parsedOutput.body;
|
|
3303
|
+
const $metadata = deserializeMetadata(output);
|
|
3304
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3281
3305
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3282
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3306
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3283
3307
|
$fault: "client",
|
|
3284
|
-
$metadata
|
|
3308
|
+
$metadata,
|
|
3285
3309
|
});
|
|
3286
3310
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3287
3311
|
}
|
|
@@ -3307,15 +3331,16 @@ const deserializeAws_restXmlGetAccessPointPolicyForObjectLambdaCommandError = as
|
|
|
3307
3331
|
body: await parseBody(output.body, context),
|
|
3308
3332
|
};
|
|
3309
3333
|
let response;
|
|
3310
|
-
|
|
3311
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3334
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3312
3335
|
switch (errorCode) {
|
|
3313
3336
|
default:
|
|
3314
3337
|
const parsedBody = parsedOutput.body;
|
|
3338
|
+
const $metadata = deserializeMetadata(output);
|
|
3339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3315
3340
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3316
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3341
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3317
3342
|
$fault: "client",
|
|
3318
|
-
$metadata
|
|
3343
|
+
$metadata,
|
|
3319
3344
|
});
|
|
3320
3345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3321
3346
|
}
|
|
@@ -3341,15 +3366,16 @@ const deserializeAws_restXmlGetAccessPointPolicyStatusCommandError = async (outp
|
|
|
3341
3366
|
body: await parseBody(output.body, context),
|
|
3342
3367
|
};
|
|
3343
3368
|
let response;
|
|
3344
|
-
|
|
3345
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3369
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3346
3370
|
switch (errorCode) {
|
|
3347
3371
|
default:
|
|
3348
3372
|
const parsedBody = parsedOutput.body;
|
|
3373
|
+
const $metadata = deserializeMetadata(output);
|
|
3374
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3349
3375
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3350
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3376
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3351
3377
|
$fault: "client",
|
|
3352
|
-
$metadata
|
|
3378
|
+
$metadata,
|
|
3353
3379
|
});
|
|
3354
3380
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3355
3381
|
}
|
|
@@ -3375,15 +3401,16 @@ const deserializeAws_restXmlGetAccessPointPolicyStatusForObjectLambdaCommandErro
|
|
|
3375
3401
|
body: await parseBody(output.body, context),
|
|
3376
3402
|
};
|
|
3377
3403
|
let response;
|
|
3378
|
-
|
|
3379
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3404
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3380
3405
|
switch (errorCode) {
|
|
3381
3406
|
default:
|
|
3382
3407
|
const parsedBody = parsedOutput.body;
|
|
3408
|
+
const $metadata = deserializeMetadata(output);
|
|
3409
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3383
3410
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3384
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3411
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3385
3412
|
$fault: "client",
|
|
3386
|
-
$metadata
|
|
3413
|
+
$metadata,
|
|
3387
3414
|
});
|
|
3388
3415
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3389
3416
|
}
|
|
@@ -3417,15 +3444,16 @@ const deserializeAws_restXmlGetBucketCommandError = async (output, context) => {
|
|
|
3417
3444
|
body: await parseBody(output.body, context),
|
|
3418
3445
|
};
|
|
3419
3446
|
let response;
|
|
3420
|
-
|
|
3421
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3447
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3422
3448
|
switch (errorCode) {
|
|
3423
3449
|
default:
|
|
3424
3450
|
const parsedBody = parsedOutput.body;
|
|
3451
|
+
const $metadata = deserializeMetadata(output);
|
|
3452
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3425
3453
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3426
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3454
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3427
3455
|
$fault: "client",
|
|
3428
|
-
$metadata
|
|
3456
|
+
$metadata,
|
|
3429
3457
|
});
|
|
3430
3458
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3431
3459
|
}
|
|
@@ -3454,15 +3482,16 @@ const deserializeAws_restXmlGetBucketLifecycleConfigurationCommandError = async
|
|
|
3454
3482
|
body: await parseBody(output.body, context),
|
|
3455
3483
|
};
|
|
3456
3484
|
let response;
|
|
3457
|
-
|
|
3458
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3485
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3459
3486
|
switch (errorCode) {
|
|
3460
3487
|
default:
|
|
3461
3488
|
const parsedBody = parsedOutput.body;
|
|
3489
|
+
const $metadata = deserializeMetadata(output);
|
|
3490
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3462
3491
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3463
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3492
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3464
3493
|
$fault: "client",
|
|
3465
|
-
$metadata
|
|
3494
|
+
$metadata,
|
|
3466
3495
|
});
|
|
3467
3496
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3468
3497
|
}
|
|
@@ -3488,15 +3517,16 @@ const deserializeAws_restXmlGetBucketPolicyCommandError = async (output, context
|
|
|
3488
3517
|
body: await parseBody(output.body, context),
|
|
3489
3518
|
};
|
|
3490
3519
|
let response;
|
|
3491
|
-
|
|
3492
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3520
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3493
3521
|
switch (errorCode) {
|
|
3494
3522
|
default:
|
|
3495
3523
|
const parsedBody = parsedOutput.body;
|
|
3524
|
+
const $metadata = deserializeMetadata(output);
|
|
3525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3496
3526
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3497
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3527
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3498
3528
|
$fault: "client",
|
|
3499
|
-
$metadata
|
|
3529
|
+
$metadata,
|
|
3500
3530
|
});
|
|
3501
3531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3502
3532
|
}
|
|
@@ -3525,15 +3555,16 @@ const deserializeAws_restXmlGetBucketTaggingCommandError = async (output, contex
|
|
|
3525
3555
|
body: await parseBody(output.body, context),
|
|
3526
3556
|
};
|
|
3527
3557
|
let response;
|
|
3528
|
-
|
|
3529
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3558
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3530
3559
|
switch (errorCode) {
|
|
3531
3560
|
default:
|
|
3532
3561
|
const parsedBody = parsedOutput.body;
|
|
3562
|
+
const $metadata = deserializeMetadata(output);
|
|
3563
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3533
3564
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3534
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3565
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3535
3566
|
$fault: "client",
|
|
3536
|
-
$metadata
|
|
3567
|
+
$metadata,
|
|
3537
3568
|
});
|
|
3538
3569
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3539
3570
|
}
|
|
@@ -3562,8 +3593,7 @@ const deserializeAws_restXmlGetJobTaggingCommandError = async (output, context)
|
|
|
3562
3593
|
body: await parseBody(output.body, context),
|
|
3563
3594
|
};
|
|
3564
3595
|
let response;
|
|
3565
|
-
|
|
3566
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3596
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3567
3597
|
switch (errorCode) {
|
|
3568
3598
|
case "InternalServiceException":
|
|
3569
3599
|
case "com.amazonaws.s3control#InternalServiceException":
|
|
@@ -3576,10 +3606,12 @@ const deserializeAws_restXmlGetJobTaggingCommandError = async (output, context)
|
|
|
3576
3606
|
throw await deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3577
3607
|
default:
|
|
3578
3608
|
const parsedBody = parsedOutput.body;
|
|
3609
|
+
const $metadata = deserializeMetadata(output);
|
|
3610
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3579
3611
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3580
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3612
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3581
3613
|
$fault: "client",
|
|
3582
|
-
$metadata
|
|
3614
|
+
$metadata,
|
|
3583
3615
|
});
|
|
3584
3616
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3585
3617
|
}
|
|
@@ -3605,15 +3637,16 @@ const deserializeAws_restXmlGetMultiRegionAccessPointCommandError = async (outpu
|
|
|
3605
3637
|
body: await parseBody(output.body, context),
|
|
3606
3638
|
};
|
|
3607
3639
|
let response;
|
|
3608
|
-
|
|
3609
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3640
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3610
3641
|
switch (errorCode) {
|
|
3611
3642
|
default:
|
|
3612
3643
|
const parsedBody = parsedOutput.body;
|
|
3644
|
+
const $metadata = deserializeMetadata(output);
|
|
3645
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3613
3646
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3614
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3647
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3615
3648
|
$fault: "client",
|
|
3616
|
-
$metadata
|
|
3649
|
+
$metadata,
|
|
3617
3650
|
});
|
|
3618
3651
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3619
3652
|
}
|
|
@@ -3639,15 +3672,16 @@ const deserializeAws_restXmlGetMultiRegionAccessPointPolicyCommandError = async
|
|
|
3639
3672
|
body: await parseBody(output.body, context),
|
|
3640
3673
|
};
|
|
3641
3674
|
let response;
|
|
3642
|
-
|
|
3643
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3675
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3644
3676
|
switch (errorCode) {
|
|
3645
3677
|
default:
|
|
3646
3678
|
const parsedBody = parsedOutput.body;
|
|
3679
|
+
const $metadata = deserializeMetadata(output);
|
|
3680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3647
3681
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3648
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3682
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3649
3683
|
$fault: "client",
|
|
3650
|
-
$metadata
|
|
3684
|
+
$metadata,
|
|
3651
3685
|
});
|
|
3652
3686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3653
3687
|
}
|
|
@@ -3673,15 +3707,16 @@ const deserializeAws_restXmlGetMultiRegionAccessPointPolicyStatusCommandError =
|
|
|
3673
3707
|
body: await parseBody(output.body, context),
|
|
3674
3708
|
};
|
|
3675
3709
|
let response;
|
|
3676
|
-
|
|
3677
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3710
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3678
3711
|
switch (errorCode) {
|
|
3679
3712
|
default:
|
|
3680
3713
|
const parsedBody = parsedOutput.body;
|
|
3714
|
+
const $metadata = deserializeMetadata(output);
|
|
3715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3681
3716
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3682
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3717
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3683
3718
|
$fault: "client",
|
|
3684
|
-
$metadata
|
|
3719
|
+
$metadata,
|
|
3685
3720
|
});
|
|
3686
3721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3687
3722
|
}
|
|
@@ -3705,18 +3740,19 @@ const deserializeAws_restXmlGetPublicAccessBlockCommandError = async (output, co
|
|
|
3705
3740
|
body: await parseBody(output.body, context),
|
|
3706
3741
|
};
|
|
3707
3742
|
let response;
|
|
3708
|
-
|
|
3709
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3743
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3710
3744
|
switch (errorCode) {
|
|
3711
3745
|
case "NoSuchPublicAccessBlockConfiguration":
|
|
3712
3746
|
case "com.amazonaws.s3control#NoSuchPublicAccessBlockConfiguration":
|
|
3713
3747
|
throw await deserializeAws_restXmlNoSuchPublicAccessBlockConfigurationResponse(parsedOutput, context);
|
|
3714
3748
|
default:
|
|
3715
3749
|
const parsedBody = parsedOutput.body;
|
|
3750
|
+
const $metadata = deserializeMetadata(output);
|
|
3751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3716
3752
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3717
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3753
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3718
3754
|
$fault: "client",
|
|
3719
|
-
$metadata
|
|
3755
|
+
$metadata,
|
|
3720
3756
|
});
|
|
3721
3757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3722
3758
|
}
|
|
@@ -3740,15 +3776,16 @@ const deserializeAws_restXmlGetStorageLensConfigurationCommandError = async (out
|
|
|
3740
3776
|
body: await parseBody(output.body, context),
|
|
3741
3777
|
};
|
|
3742
3778
|
let response;
|
|
3743
|
-
|
|
3744
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3779
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3745
3780
|
switch (errorCode) {
|
|
3746
3781
|
default:
|
|
3747
3782
|
const parsedBody = parsedOutput.body;
|
|
3783
|
+
const $metadata = deserializeMetadata(output);
|
|
3784
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3748
3785
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3749
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3786
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3750
3787
|
$fault: "client",
|
|
3751
|
-
$metadata
|
|
3788
|
+
$metadata,
|
|
3752
3789
|
});
|
|
3753
3790
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3754
3791
|
}
|
|
@@ -3777,15 +3814,16 @@ const deserializeAws_restXmlGetStorageLensConfigurationTaggingCommandError = asy
|
|
|
3777
3814
|
body: await parseBody(output.body, context),
|
|
3778
3815
|
};
|
|
3779
3816
|
let response;
|
|
3780
|
-
|
|
3781
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3817
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3782
3818
|
switch (errorCode) {
|
|
3783
3819
|
default:
|
|
3784
3820
|
const parsedBody = parsedOutput.body;
|
|
3821
|
+
const $metadata = deserializeMetadata(output);
|
|
3822
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3785
3823
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3786
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3824
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3787
3825
|
$fault: "client",
|
|
3788
|
-
$metadata
|
|
3826
|
+
$metadata,
|
|
3789
3827
|
});
|
|
3790
3828
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3791
3829
|
}
|
|
@@ -3818,15 +3856,16 @@ const deserializeAws_restXmlListAccessPointsCommandError = async (output, contex
|
|
|
3818
3856
|
body: await parseBody(output.body, context),
|
|
3819
3857
|
};
|
|
3820
3858
|
let response;
|
|
3821
|
-
|
|
3822
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3859
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3823
3860
|
switch (errorCode) {
|
|
3824
3861
|
default:
|
|
3825
3862
|
const parsedBody = parsedOutput.body;
|
|
3863
|
+
const $metadata = deserializeMetadata(output);
|
|
3864
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3826
3865
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3827
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3866
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3828
3867
|
$fault: "client",
|
|
3829
|
-
$metadata
|
|
3868
|
+
$metadata,
|
|
3830
3869
|
});
|
|
3831
3870
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3832
3871
|
}
|
|
@@ -3860,15 +3899,16 @@ const deserializeAws_restXmlListAccessPointsForObjectLambdaCommandError = async
|
|
|
3860
3899
|
body: await parseBody(output.body, context),
|
|
3861
3900
|
};
|
|
3862
3901
|
let response;
|
|
3863
|
-
|
|
3864
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3902
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3865
3903
|
switch (errorCode) {
|
|
3866
3904
|
default:
|
|
3867
3905
|
const parsedBody = parsedOutput.body;
|
|
3906
|
+
const $metadata = deserializeMetadata(output);
|
|
3907
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3868
3908
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3869
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3909
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3870
3910
|
$fault: "client",
|
|
3871
|
-
$metadata
|
|
3911
|
+
$metadata,
|
|
3872
3912
|
});
|
|
3873
3913
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3874
3914
|
}
|
|
@@ -3901,8 +3941,7 @@ const deserializeAws_restXmlListJobsCommandError = async (output, context) => {
|
|
|
3901
3941
|
body: await parseBody(output.body, context),
|
|
3902
3942
|
};
|
|
3903
3943
|
let response;
|
|
3904
|
-
|
|
3905
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3944
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3906
3945
|
switch (errorCode) {
|
|
3907
3946
|
case "InternalServiceException":
|
|
3908
3947
|
case "com.amazonaws.s3control#InternalServiceException":
|
|
@@ -3915,10 +3954,12 @@ const deserializeAws_restXmlListJobsCommandError = async (output, context) => {
|
|
|
3915
3954
|
throw await deserializeAws_restXmlInvalidRequestExceptionResponse(parsedOutput, context);
|
|
3916
3955
|
default:
|
|
3917
3956
|
const parsedBody = parsedOutput.body;
|
|
3957
|
+
const $metadata = deserializeMetadata(output);
|
|
3958
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3918
3959
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3919
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3960
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3920
3961
|
$fault: "client",
|
|
3921
|
-
$metadata
|
|
3962
|
+
$metadata,
|
|
3922
3963
|
});
|
|
3923
3964
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3924
3965
|
}
|
|
@@ -3951,15 +3992,16 @@ const deserializeAws_restXmlListMultiRegionAccessPointsCommandError = async (out
|
|
|
3951
3992
|
body: await parseBody(output.body, context),
|
|
3952
3993
|
};
|
|
3953
3994
|
let response;
|
|
3954
|
-
|
|
3955
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3995
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3956
3996
|
switch (errorCode) {
|
|
3957
3997
|
default:
|
|
3958
3998
|
const parsedBody = parsedOutput.body;
|
|
3999
|
+
const $metadata = deserializeMetadata(output);
|
|
4000
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3959
4001
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
3960
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4002
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3961
4003
|
$fault: "client",
|
|
3962
|
-
$metadata
|
|
4004
|
+
$metadata,
|
|
3963
4005
|
});
|
|
3964
4006
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3965
4007
|
}
|
|
@@ -3992,15 +4034,16 @@ const deserializeAws_restXmlListRegionalBucketsCommandError = async (output, con
|
|
|
3992
4034
|
body: await parseBody(output.body, context),
|
|
3993
4035
|
};
|
|
3994
4036
|
let response;
|
|
3995
|
-
|
|
3996
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4037
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3997
4038
|
switch (errorCode) {
|
|
3998
4039
|
default:
|
|
3999
4040
|
const parsedBody = parsedOutput.body;
|
|
4041
|
+
const $metadata = deserializeMetadata(output);
|
|
4042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4000
4043
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4001
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4044
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4002
4045
|
$fault: "client",
|
|
4003
|
-
$metadata
|
|
4046
|
+
$metadata,
|
|
4004
4047
|
});
|
|
4005
4048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4006
4049
|
}
|
|
@@ -4033,15 +4076,16 @@ const deserializeAws_restXmlListStorageLensConfigurationsCommandError = async (o
|
|
|
4033
4076
|
body: await parseBody(output.body, context),
|
|
4034
4077
|
};
|
|
4035
4078
|
let response;
|
|
4036
|
-
|
|
4037
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4079
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4038
4080
|
switch (errorCode) {
|
|
4039
4081
|
default:
|
|
4040
4082
|
const parsedBody = parsedOutput.body;
|
|
4083
|
+
const $metadata = deserializeMetadata(output);
|
|
4084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4041
4085
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4042
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4086
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4043
4087
|
$fault: "client",
|
|
4044
|
-
$metadata
|
|
4088
|
+
$metadata,
|
|
4045
4089
|
});
|
|
4046
4090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4047
4091
|
}
|
|
@@ -4063,15 +4107,16 @@ const deserializeAws_restXmlPutAccessPointConfigurationForObjectLambdaCommandErr
|
|
|
4063
4107
|
body: await parseBody(output.body, context),
|
|
4064
4108
|
};
|
|
4065
4109
|
let response;
|
|
4066
|
-
|
|
4067
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4110
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4068
4111
|
switch (errorCode) {
|
|
4069
4112
|
default:
|
|
4070
4113
|
const parsedBody = parsedOutput.body;
|
|
4114
|
+
const $metadata = deserializeMetadata(output);
|
|
4115
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4071
4116
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4072
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4117
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4073
4118
|
$fault: "client",
|
|
4074
|
-
$metadata
|
|
4119
|
+
$metadata,
|
|
4075
4120
|
});
|
|
4076
4121
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4077
4122
|
}
|
|
@@ -4093,15 +4138,16 @@ const deserializeAws_restXmlPutAccessPointPolicyCommandError = async (output, co
|
|
|
4093
4138
|
body: await parseBody(output.body, context),
|
|
4094
4139
|
};
|
|
4095
4140
|
let response;
|
|
4096
|
-
|
|
4097
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4141
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4098
4142
|
switch (errorCode) {
|
|
4099
4143
|
default:
|
|
4100
4144
|
const parsedBody = parsedOutput.body;
|
|
4145
|
+
const $metadata = deserializeMetadata(output);
|
|
4146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4101
4147
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4102
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4148
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4103
4149
|
$fault: "client",
|
|
4104
|
-
$metadata
|
|
4150
|
+
$metadata,
|
|
4105
4151
|
});
|
|
4106
4152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4107
4153
|
}
|
|
@@ -4123,15 +4169,16 @@ const deserializeAws_restXmlPutAccessPointPolicyForObjectLambdaCommandError = as
|
|
|
4123
4169
|
body: await parseBody(output.body, context),
|
|
4124
4170
|
};
|
|
4125
4171
|
let response;
|
|
4126
|
-
|
|
4127
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4172
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4128
4173
|
switch (errorCode) {
|
|
4129
4174
|
default:
|
|
4130
4175
|
const parsedBody = parsedOutput.body;
|
|
4176
|
+
const $metadata = deserializeMetadata(output);
|
|
4177
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4131
4178
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4132
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4179
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4133
4180
|
$fault: "client",
|
|
4134
|
-
$metadata
|
|
4181
|
+
$metadata,
|
|
4135
4182
|
});
|
|
4136
4183
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4137
4184
|
}
|
|
@@ -4153,15 +4200,16 @@ const deserializeAws_restXmlPutBucketLifecycleConfigurationCommandError = async
|
|
|
4153
4200
|
body: await parseBody(output.body, context),
|
|
4154
4201
|
};
|
|
4155
4202
|
let response;
|
|
4156
|
-
|
|
4157
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4203
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4158
4204
|
switch (errorCode) {
|
|
4159
4205
|
default:
|
|
4160
4206
|
const parsedBody = parsedOutput.body;
|
|
4207
|
+
const $metadata = deserializeMetadata(output);
|
|
4208
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4161
4209
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4162
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4210
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4163
4211
|
$fault: "client",
|
|
4164
|
-
$metadata
|
|
4212
|
+
$metadata,
|
|
4165
4213
|
});
|
|
4166
4214
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4167
4215
|
}
|
|
@@ -4183,15 +4231,16 @@ const deserializeAws_restXmlPutBucketPolicyCommandError = async (output, context
|
|
|
4183
4231
|
body: await parseBody(output.body, context),
|
|
4184
4232
|
};
|
|
4185
4233
|
let response;
|
|
4186
|
-
|
|
4187
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4234
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4188
4235
|
switch (errorCode) {
|
|
4189
4236
|
default:
|
|
4190
4237
|
const parsedBody = parsedOutput.body;
|
|
4238
|
+
const $metadata = deserializeMetadata(output);
|
|
4239
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4191
4240
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4192
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4241
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4193
4242
|
$fault: "client",
|
|
4194
|
-
$metadata
|
|
4243
|
+
$metadata,
|
|
4195
4244
|
});
|
|
4196
4245
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4197
4246
|
}
|
|
@@ -4213,15 +4262,16 @@ const deserializeAws_restXmlPutBucketTaggingCommandError = async (output, contex
|
|
|
4213
4262
|
body: await parseBody(output.body, context),
|
|
4214
4263
|
};
|
|
4215
4264
|
let response;
|
|
4216
|
-
|
|
4217
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4265
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4218
4266
|
switch (errorCode) {
|
|
4219
4267
|
default:
|
|
4220
4268
|
const parsedBody = parsedOutput.body;
|
|
4269
|
+
const $metadata = deserializeMetadata(output);
|
|
4270
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4221
4271
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4222
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4272
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4223
4273
|
$fault: "client",
|
|
4224
|
-
$metadata
|
|
4274
|
+
$metadata,
|
|
4225
4275
|
});
|
|
4226
4276
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4227
4277
|
}
|
|
@@ -4243,8 +4293,7 @@ const deserializeAws_restXmlPutJobTaggingCommandError = async (output, context)
|
|
|
4243
4293
|
body: await parseBody(output.body, context),
|
|
4244
4294
|
};
|
|
4245
4295
|
let response;
|
|
4246
|
-
|
|
4247
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4296
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4248
4297
|
switch (errorCode) {
|
|
4249
4298
|
case "InternalServiceException":
|
|
4250
4299
|
case "com.amazonaws.s3control#InternalServiceException":
|
|
@@ -4260,10 +4309,12 @@ const deserializeAws_restXmlPutJobTaggingCommandError = async (output, context)
|
|
|
4260
4309
|
throw await deserializeAws_restXmlTooManyTagsExceptionResponse(parsedOutput, context);
|
|
4261
4310
|
default:
|
|
4262
4311
|
const parsedBody = parsedOutput.body;
|
|
4312
|
+
const $metadata = deserializeMetadata(output);
|
|
4313
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4263
4314
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4264
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4315
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4265
4316
|
$fault: "client",
|
|
4266
|
-
$metadata
|
|
4317
|
+
$metadata,
|
|
4267
4318
|
});
|
|
4268
4319
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4269
4320
|
}
|
|
@@ -4289,15 +4340,16 @@ const deserializeAws_restXmlPutMultiRegionAccessPointPolicyCommandError = async
|
|
|
4289
4340
|
body: await parseBody(output.body, context),
|
|
4290
4341
|
};
|
|
4291
4342
|
let response;
|
|
4292
|
-
|
|
4293
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4343
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4294
4344
|
switch (errorCode) {
|
|
4295
4345
|
default:
|
|
4296
4346
|
const parsedBody = parsedOutput.body;
|
|
4347
|
+
const $metadata = deserializeMetadata(output);
|
|
4348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4297
4349
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4298
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4350
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4299
4351
|
$fault: "client",
|
|
4300
|
-
$metadata
|
|
4352
|
+
$metadata,
|
|
4301
4353
|
});
|
|
4302
4354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4303
4355
|
}
|
|
@@ -4319,15 +4371,16 @@ const deserializeAws_restXmlPutPublicAccessBlockCommandError = async (output, co
|
|
|
4319
4371
|
body: await parseBody(output.body, context),
|
|
4320
4372
|
};
|
|
4321
4373
|
let response;
|
|
4322
|
-
|
|
4323
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4374
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4324
4375
|
switch (errorCode) {
|
|
4325
4376
|
default:
|
|
4326
4377
|
const parsedBody = parsedOutput.body;
|
|
4378
|
+
const $metadata = deserializeMetadata(output);
|
|
4379
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4327
4380
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4328
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4381
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4329
4382
|
$fault: "client",
|
|
4330
|
-
$metadata
|
|
4383
|
+
$metadata,
|
|
4331
4384
|
});
|
|
4332
4385
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4333
4386
|
}
|
|
@@ -4349,15 +4402,16 @@ const deserializeAws_restXmlPutStorageLensConfigurationCommandError = async (out
|
|
|
4349
4402
|
body: await parseBody(output.body, context),
|
|
4350
4403
|
};
|
|
4351
4404
|
let response;
|
|
4352
|
-
|
|
4353
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4405
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4354
4406
|
switch (errorCode) {
|
|
4355
4407
|
default:
|
|
4356
4408
|
const parsedBody = parsedOutput.body;
|
|
4409
|
+
const $metadata = deserializeMetadata(output);
|
|
4410
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4357
4411
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4358
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4412
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4359
4413
|
$fault: "client",
|
|
4360
|
-
$metadata
|
|
4414
|
+
$metadata,
|
|
4361
4415
|
});
|
|
4362
4416
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4363
4417
|
}
|
|
@@ -4379,15 +4433,16 @@ const deserializeAws_restXmlPutStorageLensConfigurationTaggingCommandError = asy
|
|
|
4379
4433
|
body: await parseBody(output.body, context),
|
|
4380
4434
|
};
|
|
4381
4435
|
let response;
|
|
4382
|
-
|
|
4383
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4436
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4384
4437
|
switch (errorCode) {
|
|
4385
4438
|
default:
|
|
4386
4439
|
const parsedBody = parsedOutput.body;
|
|
4440
|
+
const $metadata = deserializeMetadata(output);
|
|
4441
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4387
4442
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4388
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4443
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4389
4444
|
$fault: "client",
|
|
4390
|
-
$metadata
|
|
4445
|
+
$metadata,
|
|
4391
4446
|
});
|
|
4392
4447
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4393
4448
|
}
|
|
@@ -4417,8 +4472,7 @@ const deserializeAws_restXmlUpdateJobPriorityCommandError = async (output, conte
|
|
|
4417
4472
|
body: await parseBody(output.body, context),
|
|
4418
4473
|
};
|
|
4419
4474
|
let response;
|
|
4420
|
-
|
|
4421
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4475
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4422
4476
|
switch (errorCode) {
|
|
4423
4477
|
case "BadRequestException":
|
|
4424
4478
|
case "com.amazonaws.s3control#BadRequestException":
|
|
@@ -4434,10 +4488,12 @@ const deserializeAws_restXmlUpdateJobPriorityCommandError = async (output, conte
|
|
|
4434
4488
|
throw await deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4435
4489
|
default:
|
|
4436
4490
|
const parsedBody = parsedOutput.body;
|
|
4491
|
+
const $metadata = deserializeMetadata(output);
|
|
4492
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4437
4493
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4438
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4494
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4439
4495
|
$fault: "client",
|
|
4440
|
-
$metadata
|
|
4496
|
+
$metadata,
|
|
4441
4497
|
});
|
|
4442
4498
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4443
4499
|
}
|
|
@@ -4471,8 +4527,7 @@ const deserializeAws_restXmlUpdateJobStatusCommandError = async (output, context
|
|
|
4471
4527
|
body: await parseBody(output.body, context),
|
|
4472
4528
|
};
|
|
4473
4529
|
let response;
|
|
4474
|
-
|
|
4475
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4530
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4476
4531
|
switch (errorCode) {
|
|
4477
4532
|
case "BadRequestException":
|
|
4478
4533
|
case "com.amazonaws.s3control#BadRequestException":
|
|
@@ -4491,10 +4546,12 @@ const deserializeAws_restXmlUpdateJobStatusCommandError = async (output, context
|
|
|
4491
4546
|
throw await deserializeAws_restXmlTooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4492
4547
|
default:
|
|
4493
4548
|
const parsedBody = parsedOutput.body;
|
|
4549
|
+
const $metadata = deserializeMetadata(output);
|
|
4550
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4494
4551
|
response = new S3ControlServiceException_1.S3ControlServiceException({
|
|
4495
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4552
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4496
4553
|
$fault: "client",
|
|
4497
|
-
$metadata
|
|
4554
|
+
$metadata,
|
|
4498
4555
|
});
|
|
4499
4556
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4500
4557
|
}
|
|
@@ -4639,7 +4696,7 @@ const deserializeAws_restXmlTooManyTagsExceptionResponse = async (parsedOutput,
|
|
|
4639
4696
|
};
|
|
4640
4697
|
const serializeAws_restXmlAbortIncompleteMultipartUpload = (input, context) => {
|
|
4641
4698
|
const bodyNode = new xml_builder_1.XmlNode("AbortIncompleteMultipartUpload");
|
|
4642
|
-
if (input.DaysAfterInitiation
|
|
4699
|
+
if (input.DaysAfterInitiation != null) {
|
|
4643
4700
|
const node = new xml_builder_1.XmlNode("DaysAfterInitiation")
|
|
4644
4701
|
.addChildNode(new xml_builder_1.XmlText(String(input.DaysAfterInitiation)))
|
|
4645
4702
|
.withName("DaysAfterInitiation");
|
|
@@ -4649,11 +4706,11 @@ const serializeAws_restXmlAbortIncompleteMultipartUpload = (input, context) => {
|
|
|
4649
4706
|
};
|
|
4650
4707
|
const serializeAws_restXmlAccountLevel = (input, context) => {
|
|
4651
4708
|
const bodyNode = new xml_builder_1.XmlNode("AccountLevel");
|
|
4652
|
-
if (input.ActivityMetrics
|
|
4709
|
+
if (input.ActivityMetrics != null) {
|
|
4653
4710
|
const node = serializeAws_restXmlActivityMetrics(input.ActivityMetrics, context).withName("ActivityMetrics");
|
|
4654
4711
|
bodyNode.addChildNode(node);
|
|
4655
4712
|
}
|
|
4656
|
-
if (input.BucketLevel
|
|
4713
|
+
if (input.BucketLevel != null) {
|
|
4657
4714
|
const node = serializeAws_restXmlBucketLevel(input.BucketLevel, context).withName("BucketLevel");
|
|
4658
4715
|
bodyNode.addChildNode(node);
|
|
4659
4716
|
}
|
|
@@ -4661,7 +4718,7 @@ const serializeAws_restXmlAccountLevel = (input, context) => {
|
|
|
4661
4718
|
};
|
|
4662
4719
|
const serializeAws_restXmlActivityMetrics = (input, context) => {
|
|
4663
4720
|
const bodyNode = new xml_builder_1.XmlNode("ActivityMetrics");
|
|
4664
|
-
if (input.IsEnabled
|
|
4721
|
+
if (input.IsEnabled != null) {
|
|
4665
4722
|
const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
|
|
4666
4723
|
bodyNode.addChildNode(node);
|
|
4667
4724
|
}
|
|
@@ -4669,13 +4726,13 @@ const serializeAws_restXmlActivityMetrics = (input, context) => {
|
|
|
4669
4726
|
};
|
|
4670
4727
|
const serializeAws_restXmlAwsLambdaTransformation = (input, context) => {
|
|
4671
4728
|
const bodyNode = new xml_builder_1.XmlNode("AwsLambdaTransformation");
|
|
4672
|
-
if (input.FunctionArn
|
|
4729
|
+
if (input.FunctionArn != null) {
|
|
4673
4730
|
const node = new xml_builder_1.XmlNode("FunctionArnString")
|
|
4674
4731
|
.addChildNode(new xml_builder_1.XmlText(input.FunctionArn))
|
|
4675
4732
|
.withName("FunctionArn");
|
|
4676
4733
|
bodyNode.addChildNode(node);
|
|
4677
4734
|
}
|
|
4678
|
-
if (input.FunctionPayload
|
|
4735
|
+
if (input.FunctionPayload != null) {
|
|
4679
4736
|
const node = new xml_builder_1.XmlNode("AwsLambdaTransformationPayload")
|
|
4680
4737
|
.addChildNode(new xml_builder_1.XmlText(input.FunctionPayload))
|
|
4681
4738
|
.withName("FunctionPayload");
|
|
@@ -4685,11 +4742,11 @@ const serializeAws_restXmlAwsLambdaTransformation = (input, context) => {
|
|
|
4685
4742
|
};
|
|
4686
4743
|
const serializeAws_restXmlBucketLevel = (input, context) => {
|
|
4687
4744
|
const bodyNode = new xml_builder_1.XmlNode("BucketLevel");
|
|
4688
|
-
if (input.ActivityMetrics
|
|
4745
|
+
if (input.ActivityMetrics != null) {
|
|
4689
4746
|
const node = serializeAws_restXmlActivityMetrics(input.ActivityMetrics, context).withName("ActivityMetrics");
|
|
4690
4747
|
bodyNode.addChildNode(node);
|
|
4691
4748
|
}
|
|
4692
|
-
if (input.PrefixLevel
|
|
4749
|
+
if (input.PrefixLevel != null) {
|
|
4693
4750
|
const node = serializeAws_restXmlPrefixLevel(input.PrefixLevel, context).withName("PrefixLevel");
|
|
4694
4751
|
bodyNode.addChildNode(node);
|
|
4695
4752
|
}
|
|
@@ -4708,7 +4765,7 @@ const serializeAws_restXmlBuckets = (input, context) => {
|
|
|
4708
4765
|
};
|
|
4709
4766
|
const serializeAws_restXmlCloudWatchMetrics = (input, context) => {
|
|
4710
4767
|
const bodyNode = new xml_builder_1.XmlNode("CloudWatchMetrics");
|
|
4711
|
-
if (input.IsEnabled
|
|
4768
|
+
if (input.IsEnabled != null) {
|
|
4712
4769
|
const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
|
|
4713
4770
|
bodyNode.addChildNode(node);
|
|
4714
4771
|
}
|
|
@@ -4716,7 +4773,7 @@ const serializeAws_restXmlCloudWatchMetrics = (input, context) => {
|
|
|
4716
4773
|
};
|
|
4717
4774
|
const serializeAws_restXmlCreateBucketConfiguration = (input, context) => {
|
|
4718
4775
|
const bodyNode = new xml_builder_1.XmlNode("CreateBucketConfiguration");
|
|
4719
|
-
if (input.LocationConstraint
|
|
4776
|
+
if (input.LocationConstraint != null) {
|
|
4720
4777
|
const node = new xml_builder_1.XmlNode("BucketLocationConstraint")
|
|
4721
4778
|
.addChildNode(new xml_builder_1.XmlText(input.LocationConstraint))
|
|
4722
4779
|
.withName("LocationConstraint");
|
|
@@ -4726,15 +4783,15 @@ const serializeAws_restXmlCreateBucketConfiguration = (input, context) => {
|
|
|
4726
4783
|
};
|
|
4727
4784
|
const serializeAws_restXmlCreateMultiRegionAccessPointInput = (input, context) => {
|
|
4728
4785
|
const bodyNode = new xml_builder_1.XmlNode("CreateMultiRegionAccessPointInput");
|
|
4729
|
-
if (input.Name
|
|
4786
|
+
if (input.Name != null) {
|
|
4730
4787
|
const node = new xml_builder_1.XmlNode("MultiRegionAccessPointName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
4731
4788
|
bodyNode.addChildNode(node);
|
|
4732
4789
|
}
|
|
4733
|
-
if (input.PublicAccessBlock
|
|
4790
|
+
if (input.PublicAccessBlock != null) {
|
|
4734
4791
|
const node = serializeAws_restXmlPublicAccessBlockConfiguration(input.PublicAccessBlock, context).withName("PublicAccessBlock");
|
|
4735
4792
|
bodyNode.addChildNode(node);
|
|
4736
4793
|
}
|
|
4737
|
-
if (input.Regions
|
|
4794
|
+
if (input.Regions != null) {
|
|
4738
4795
|
const nodes = serializeAws_restXmlRegionCreationList(input.Regions, context);
|
|
4739
4796
|
const containerNode = new xml_builder_1.XmlNode("Regions");
|
|
4740
4797
|
nodes.map((node) => {
|
|
@@ -4746,7 +4803,7 @@ const serializeAws_restXmlCreateMultiRegionAccessPointInput = (input, context) =
|
|
|
4746
4803
|
};
|
|
4747
4804
|
const serializeAws_restXmlDeleteMultiRegionAccessPointInput = (input, context) => {
|
|
4748
4805
|
const bodyNode = new xml_builder_1.XmlNode("DeleteMultiRegionAccessPointInput");
|
|
4749
|
-
if (input.Name
|
|
4806
|
+
if (input.Name != null) {
|
|
4750
4807
|
const node = new xml_builder_1.XmlNode("MultiRegionAccessPointName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
4751
4808
|
bodyNode.addChildNode(node);
|
|
4752
4809
|
}
|
|
@@ -4754,7 +4811,7 @@ const serializeAws_restXmlDeleteMultiRegionAccessPointInput = (input, context) =
|
|
|
4754
4811
|
};
|
|
4755
4812
|
const serializeAws_restXml_Exclude = (input, context) => {
|
|
4756
4813
|
const bodyNode = new xml_builder_1.XmlNode("Exclude");
|
|
4757
|
-
if (input.Buckets
|
|
4814
|
+
if (input.Buckets != null) {
|
|
4758
4815
|
const nodes = serializeAws_restXmlBuckets(input.Buckets, context);
|
|
4759
4816
|
const containerNode = new xml_builder_1.XmlNode("Buckets");
|
|
4760
4817
|
nodes.map((node) => {
|
|
@@ -4762,7 +4819,7 @@ const serializeAws_restXml_Exclude = (input, context) => {
|
|
|
4762
4819
|
});
|
|
4763
4820
|
bodyNode.addChildNode(containerNode);
|
|
4764
4821
|
}
|
|
4765
|
-
if (input.Regions
|
|
4822
|
+
if (input.Regions != null) {
|
|
4766
4823
|
const nodes = serializeAws_restXmlRegions(input.Regions, context);
|
|
4767
4824
|
const containerNode = new xml_builder_1.XmlNode("Regions");
|
|
4768
4825
|
nodes.map((node) => {
|
|
@@ -4774,11 +4831,11 @@ const serializeAws_restXml_Exclude = (input, context) => {
|
|
|
4774
4831
|
};
|
|
4775
4832
|
const serializeAws_restXmlGeneratedManifestEncryption = (input, context) => {
|
|
4776
4833
|
const bodyNode = new xml_builder_1.XmlNode("GeneratedManifestEncryption");
|
|
4777
|
-
if (input.SSES3
|
|
4834
|
+
if (input.SSES3 != null) {
|
|
4778
4835
|
const node = serializeAws_restXmlSSES3Encryption(input.SSES3, context).withName("SSE-S3");
|
|
4779
4836
|
bodyNode.addChildNode(node);
|
|
4780
4837
|
}
|
|
4781
|
-
if (input.SSEKMS
|
|
4838
|
+
if (input.SSEKMS != null) {
|
|
4782
4839
|
const node = serializeAws_restXmlSSEKMSEncryption(input.SSEKMS, context).withName("SSE-KMS");
|
|
4783
4840
|
bodyNode.addChildNode(node);
|
|
4784
4841
|
}
|
|
@@ -4786,7 +4843,7 @@ const serializeAws_restXmlGeneratedManifestEncryption = (input, context) => {
|
|
|
4786
4843
|
};
|
|
4787
4844
|
const serializeAws_restXmlInclude = (input, context) => {
|
|
4788
4845
|
const bodyNode = new xml_builder_1.XmlNode("Include");
|
|
4789
|
-
if (input.Buckets
|
|
4846
|
+
if (input.Buckets != null) {
|
|
4790
4847
|
const nodes = serializeAws_restXmlBuckets(input.Buckets, context);
|
|
4791
4848
|
const containerNode = new xml_builder_1.XmlNode("Buckets");
|
|
4792
4849
|
nodes.map((node) => {
|
|
@@ -4794,7 +4851,7 @@ const serializeAws_restXmlInclude = (input, context) => {
|
|
|
4794
4851
|
});
|
|
4795
4852
|
bodyNode.addChildNode(containerNode);
|
|
4796
4853
|
}
|
|
4797
|
-
if (input.Regions
|
|
4854
|
+
if (input.Regions != null) {
|
|
4798
4855
|
const nodes = serializeAws_restXmlRegions(input.Regions, context);
|
|
4799
4856
|
const containerNode = new xml_builder_1.XmlNode("Regions");
|
|
4800
4857
|
nodes.map((node) => {
|
|
@@ -4806,11 +4863,11 @@ const serializeAws_restXmlInclude = (input, context) => {
|
|
|
4806
4863
|
};
|
|
4807
4864
|
const serializeAws_restXmlJobManifest = (input, context) => {
|
|
4808
4865
|
const bodyNode = new xml_builder_1.XmlNode("JobManifest");
|
|
4809
|
-
if (input.Spec
|
|
4866
|
+
if (input.Spec != null) {
|
|
4810
4867
|
const node = serializeAws_restXmlJobManifestSpec(input.Spec, context).withName("Spec");
|
|
4811
4868
|
bodyNode.addChildNode(node);
|
|
4812
4869
|
}
|
|
4813
|
-
if (input.Location
|
|
4870
|
+
if (input.Location != null) {
|
|
4814
4871
|
const node = serializeAws_restXmlJobManifestLocation(input.Location, context).withName("Location");
|
|
4815
4872
|
bodyNode.addChildNode(node);
|
|
4816
4873
|
}
|
|
@@ -4845,25 +4902,25 @@ const serializeAws_restXmlJobManifestGenerator = (input, context) => {
|
|
|
4845
4902
|
};
|
|
4846
4903
|
const serializeAws_restXmlJobManifestGeneratorFilter = (input, context) => {
|
|
4847
4904
|
const bodyNode = new xml_builder_1.XmlNode("JobManifestGeneratorFilter");
|
|
4848
|
-
if (input.EligibleForReplication
|
|
4905
|
+
if (input.EligibleForReplication != null) {
|
|
4849
4906
|
const node = new xml_builder_1.XmlNode("Boolean")
|
|
4850
4907
|
.addChildNode(new xml_builder_1.XmlText(String(input.EligibleForReplication)))
|
|
4851
4908
|
.withName("EligibleForReplication");
|
|
4852
4909
|
bodyNode.addChildNode(node);
|
|
4853
4910
|
}
|
|
4854
|
-
if (input.CreatedAfter
|
|
4911
|
+
if (input.CreatedAfter != null) {
|
|
4855
4912
|
const node = new xml_builder_1.XmlNode("ObjectCreationTime")
|
|
4856
4913
|
.addChildNode(new xml_builder_1.XmlText(input.CreatedAfter.toISOString().split(".")[0] + "Z"))
|
|
4857
4914
|
.withName("CreatedAfter");
|
|
4858
4915
|
bodyNode.addChildNode(node);
|
|
4859
4916
|
}
|
|
4860
|
-
if (input.CreatedBefore
|
|
4917
|
+
if (input.CreatedBefore != null) {
|
|
4861
4918
|
const node = new xml_builder_1.XmlNode("ObjectCreationTime")
|
|
4862
4919
|
.addChildNode(new xml_builder_1.XmlText(input.CreatedBefore.toISOString().split(".")[0] + "Z"))
|
|
4863
4920
|
.withName("CreatedBefore");
|
|
4864
4921
|
bodyNode.addChildNode(node);
|
|
4865
4922
|
}
|
|
4866
|
-
if (input.ObjectReplicationStatuses
|
|
4923
|
+
if (input.ObjectReplicationStatuses != null) {
|
|
4867
4924
|
const nodes = serializeAws_restXmlReplicationStatusFilterList(input.ObjectReplicationStatuses, context);
|
|
4868
4925
|
const containerNode = new xml_builder_1.XmlNode("ObjectReplicationStatuses");
|
|
4869
4926
|
nodes.map((node) => {
|
|
@@ -4875,17 +4932,17 @@ const serializeAws_restXmlJobManifestGeneratorFilter = (input, context) => {
|
|
|
4875
4932
|
};
|
|
4876
4933
|
const serializeAws_restXmlJobManifestLocation = (input, context) => {
|
|
4877
4934
|
const bodyNode = new xml_builder_1.XmlNode("JobManifestLocation");
|
|
4878
|
-
if (input.ObjectArn
|
|
4935
|
+
if (input.ObjectArn != null) {
|
|
4879
4936
|
const node = new xml_builder_1.XmlNode("S3KeyArnString").addChildNode(new xml_builder_1.XmlText(input.ObjectArn)).withName("ObjectArn");
|
|
4880
4937
|
bodyNode.addChildNode(node);
|
|
4881
4938
|
}
|
|
4882
|
-
if (input.ObjectVersionId
|
|
4939
|
+
if (input.ObjectVersionId != null) {
|
|
4883
4940
|
const node = new xml_builder_1.XmlNode("S3ObjectVersionId")
|
|
4884
4941
|
.addChildNode(new xml_builder_1.XmlText(input.ObjectVersionId))
|
|
4885
4942
|
.withName("ObjectVersionId");
|
|
4886
4943
|
bodyNode.addChildNode(node);
|
|
4887
4944
|
}
|
|
4888
|
-
if (input.ETag
|
|
4945
|
+
if (input.ETag != null) {
|
|
4889
4946
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String").addChildNode(new xml_builder_1.XmlText(input.ETag)).withName("ETag");
|
|
4890
4947
|
bodyNode.addChildNode(node);
|
|
4891
4948
|
}
|
|
@@ -4893,11 +4950,11 @@ const serializeAws_restXmlJobManifestLocation = (input, context) => {
|
|
|
4893
4950
|
};
|
|
4894
4951
|
const serializeAws_restXmlJobManifestSpec = (input, context) => {
|
|
4895
4952
|
const bodyNode = new xml_builder_1.XmlNode("JobManifestSpec");
|
|
4896
|
-
if (input.Format
|
|
4953
|
+
if (input.Format != null) {
|
|
4897
4954
|
const node = new xml_builder_1.XmlNode("JobManifestFormat").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
|
|
4898
4955
|
bodyNode.addChildNode(node);
|
|
4899
4956
|
}
|
|
4900
|
-
if (input.Fields
|
|
4957
|
+
if (input.Fields != null) {
|
|
4901
4958
|
const nodes = serializeAws_restXmlJobManifestFieldList(input.Fields, context);
|
|
4902
4959
|
const containerNode = new xml_builder_1.XmlNode("Fields");
|
|
4903
4960
|
nodes.map((node) => {
|
|
@@ -4909,39 +4966,39 @@ const serializeAws_restXmlJobManifestSpec = (input, context) => {
|
|
|
4909
4966
|
};
|
|
4910
4967
|
const serializeAws_restXmlJobOperation = (input, context) => {
|
|
4911
4968
|
const bodyNode = new xml_builder_1.XmlNode("JobOperation");
|
|
4912
|
-
if (input.LambdaInvoke
|
|
4969
|
+
if (input.LambdaInvoke != null) {
|
|
4913
4970
|
const node = serializeAws_restXmlLambdaInvokeOperation(input.LambdaInvoke, context).withName("LambdaInvoke");
|
|
4914
4971
|
bodyNode.addChildNode(node);
|
|
4915
4972
|
}
|
|
4916
|
-
if (input.S3PutObjectCopy
|
|
4973
|
+
if (input.S3PutObjectCopy != null) {
|
|
4917
4974
|
const node = serializeAws_restXmlS3CopyObjectOperation(input.S3PutObjectCopy, context).withName("S3PutObjectCopy");
|
|
4918
4975
|
bodyNode.addChildNode(node);
|
|
4919
4976
|
}
|
|
4920
|
-
if (input.S3PutObjectAcl
|
|
4977
|
+
if (input.S3PutObjectAcl != null) {
|
|
4921
4978
|
const node = serializeAws_restXmlS3SetObjectAclOperation(input.S3PutObjectAcl, context).withName("S3PutObjectAcl");
|
|
4922
4979
|
bodyNode.addChildNode(node);
|
|
4923
4980
|
}
|
|
4924
|
-
if (input.S3PutObjectTagging
|
|
4981
|
+
if (input.S3PutObjectTagging != null) {
|
|
4925
4982
|
const node = serializeAws_restXmlS3SetObjectTaggingOperation(input.S3PutObjectTagging, context).withName("S3PutObjectTagging");
|
|
4926
4983
|
bodyNode.addChildNode(node);
|
|
4927
4984
|
}
|
|
4928
|
-
if (input.S3DeleteObjectTagging
|
|
4985
|
+
if (input.S3DeleteObjectTagging != null) {
|
|
4929
4986
|
const node = serializeAws_restXmlS3DeleteObjectTaggingOperation(input.S3DeleteObjectTagging, context).withName("S3DeleteObjectTagging");
|
|
4930
4987
|
bodyNode.addChildNode(node);
|
|
4931
4988
|
}
|
|
4932
|
-
if (input.S3InitiateRestoreObject
|
|
4989
|
+
if (input.S3InitiateRestoreObject != null) {
|
|
4933
4990
|
const node = serializeAws_restXmlS3InitiateRestoreObjectOperation(input.S3InitiateRestoreObject, context).withName("S3InitiateRestoreObject");
|
|
4934
4991
|
bodyNode.addChildNode(node);
|
|
4935
4992
|
}
|
|
4936
|
-
if (input.S3PutObjectLegalHold
|
|
4993
|
+
if (input.S3PutObjectLegalHold != null) {
|
|
4937
4994
|
const node = serializeAws_restXmlS3SetObjectLegalHoldOperation(input.S3PutObjectLegalHold, context).withName("S3PutObjectLegalHold");
|
|
4938
4995
|
bodyNode.addChildNode(node);
|
|
4939
4996
|
}
|
|
4940
|
-
if (input.S3PutObjectRetention
|
|
4997
|
+
if (input.S3PutObjectRetention != null) {
|
|
4941
4998
|
const node = serializeAws_restXmlS3SetObjectRetentionOperation(input.S3PutObjectRetention, context).withName("S3PutObjectRetention");
|
|
4942
4999
|
bodyNode.addChildNode(node);
|
|
4943
5000
|
}
|
|
4944
|
-
if (input.S3ReplicateObject
|
|
5001
|
+
if (input.S3ReplicateObject != null) {
|
|
4945
5002
|
const node = serializeAws_restXmlS3ReplicateObjectOperation(input.S3ReplicateObject, context).withName("S3ReplicateObject");
|
|
4946
5003
|
bodyNode.addChildNode(node);
|
|
4947
5004
|
}
|
|
@@ -4949,23 +5006,23 @@ const serializeAws_restXmlJobOperation = (input, context) => {
|
|
|
4949
5006
|
};
|
|
4950
5007
|
const serializeAws_restXmlJobReport = (input, context) => {
|
|
4951
5008
|
const bodyNode = new xml_builder_1.XmlNode("JobReport");
|
|
4952
|
-
if (input.Bucket
|
|
5009
|
+
if (input.Bucket != null) {
|
|
4953
5010
|
const node = new xml_builder_1.XmlNode("S3BucketArnString").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
|
|
4954
5011
|
bodyNode.addChildNode(node);
|
|
4955
5012
|
}
|
|
4956
|
-
if (input.Format
|
|
5013
|
+
if (input.Format != null) {
|
|
4957
5014
|
const node = new xml_builder_1.XmlNode("JobReportFormat").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
|
|
4958
5015
|
bodyNode.addChildNode(node);
|
|
4959
5016
|
}
|
|
4960
|
-
if (input.Enabled
|
|
5017
|
+
if (input.Enabled != null) {
|
|
4961
5018
|
const node = new xml_builder_1.XmlNode("Boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
4962
5019
|
bodyNode.addChildNode(node);
|
|
4963
5020
|
}
|
|
4964
|
-
if (input.Prefix
|
|
5021
|
+
if (input.Prefix != null) {
|
|
4965
5022
|
const node = new xml_builder_1.XmlNode("ReportPrefixString").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
4966
5023
|
bodyNode.addChildNode(node);
|
|
4967
5024
|
}
|
|
4968
|
-
if (input.ReportScope
|
|
5025
|
+
if (input.ReportScope != null) {
|
|
4969
5026
|
const node = new xml_builder_1.XmlNode("JobReportScope").addChildNode(new xml_builder_1.XmlText(input.ReportScope)).withName("ReportScope");
|
|
4970
5027
|
bodyNode.addChildNode(node);
|
|
4971
5028
|
}
|
|
@@ -4973,7 +5030,7 @@ const serializeAws_restXmlJobReport = (input, context) => {
|
|
|
4973
5030
|
};
|
|
4974
5031
|
const serializeAws_restXmlLambdaInvokeOperation = (input, context) => {
|
|
4975
5032
|
const bodyNode = new xml_builder_1.XmlNode("LambdaInvokeOperation");
|
|
4976
|
-
if (input.FunctionArn
|
|
5033
|
+
if (input.FunctionArn != null) {
|
|
4977
5034
|
const node = new xml_builder_1.XmlNode("FunctionArnString")
|
|
4978
5035
|
.addChildNode(new xml_builder_1.XmlText(input.FunctionArn))
|
|
4979
5036
|
.withName("FunctionArn");
|
|
@@ -4983,7 +5040,7 @@ const serializeAws_restXmlLambdaInvokeOperation = (input, context) => {
|
|
|
4983
5040
|
};
|
|
4984
5041
|
const serializeAws_restXmlLifecycleConfiguration = (input, context) => {
|
|
4985
5042
|
const bodyNode = new xml_builder_1.XmlNode("LifecycleConfiguration");
|
|
4986
|
-
if (input.Rules
|
|
5043
|
+
if (input.Rules != null) {
|
|
4987
5044
|
const nodes = serializeAws_restXmlLifecycleRules(input.Rules, context);
|
|
4988
5045
|
const containerNode = new xml_builder_1.XmlNode("Rules");
|
|
4989
5046
|
nodes.map((node) => {
|
|
@@ -4995,17 +5052,17 @@ const serializeAws_restXmlLifecycleConfiguration = (input, context) => {
|
|
|
4995
5052
|
};
|
|
4996
5053
|
const serializeAws_restXmlLifecycleExpiration = (input, context) => {
|
|
4997
5054
|
const bodyNode = new xml_builder_1.XmlNode("LifecycleExpiration");
|
|
4998
|
-
if (input.Date
|
|
5055
|
+
if (input.Date != null) {
|
|
4999
5056
|
const node = new xml_builder_1.XmlNode("Date")
|
|
5000
5057
|
.addChildNode(new xml_builder_1.XmlText(input.Date.toISOString().split(".")[0] + "Z"))
|
|
5001
5058
|
.withName("Date");
|
|
5002
5059
|
bodyNode.addChildNode(node);
|
|
5003
5060
|
}
|
|
5004
|
-
if (input.Days
|
|
5061
|
+
if (input.Days != null) {
|
|
5005
5062
|
const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
|
|
5006
5063
|
bodyNode.addChildNode(node);
|
|
5007
5064
|
}
|
|
5008
|
-
if (input.ExpiredObjectDeleteMarker
|
|
5065
|
+
if (input.ExpiredObjectDeleteMarker != null) {
|
|
5009
5066
|
const node = new xml_builder_1.XmlNode("ExpiredObjectDeleteMarker")
|
|
5010
5067
|
.addChildNode(new xml_builder_1.XmlText(String(input.ExpiredObjectDeleteMarker)))
|
|
5011
5068
|
.withName("ExpiredObjectDeleteMarker");
|
|
@@ -5015,23 +5072,23 @@ const serializeAws_restXmlLifecycleExpiration = (input, context) => {
|
|
|
5015
5072
|
};
|
|
5016
5073
|
const serializeAws_restXmlLifecycleRule = (input, context) => {
|
|
5017
5074
|
const bodyNode = new xml_builder_1.XmlNode("LifecycleRule");
|
|
5018
|
-
if (input.Expiration
|
|
5075
|
+
if (input.Expiration != null) {
|
|
5019
5076
|
const node = serializeAws_restXmlLifecycleExpiration(input.Expiration, context).withName("Expiration");
|
|
5020
5077
|
bodyNode.addChildNode(node);
|
|
5021
5078
|
}
|
|
5022
|
-
if (input.ID
|
|
5079
|
+
if (input.ID != null) {
|
|
5023
5080
|
const node = new xml_builder_1.XmlNode("ID").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
|
|
5024
5081
|
bodyNode.addChildNode(node);
|
|
5025
5082
|
}
|
|
5026
|
-
if (input.Filter
|
|
5083
|
+
if (input.Filter != null) {
|
|
5027
5084
|
const node = serializeAws_restXmlLifecycleRuleFilter(input.Filter, context).withName("Filter");
|
|
5028
5085
|
bodyNode.addChildNode(node);
|
|
5029
5086
|
}
|
|
5030
|
-
if (input.Status
|
|
5087
|
+
if (input.Status != null) {
|
|
5031
5088
|
const node = new xml_builder_1.XmlNode("ExpirationStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
|
|
5032
5089
|
bodyNode.addChildNode(node);
|
|
5033
5090
|
}
|
|
5034
|
-
if (input.Transitions
|
|
5091
|
+
if (input.Transitions != null) {
|
|
5035
5092
|
const nodes = serializeAws_restXmlTransitionList(input.Transitions, context);
|
|
5036
5093
|
const containerNode = new xml_builder_1.XmlNode("Transitions");
|
|
5037
5094
|
nodes.map((node) => {
|
|
@@ -5039,7 +5096,7 @@ const serializeAws_restXmlLifecycleRule = (input, context) => {
|
|
|
5039
5096
|
});
|
|
5040
5097
|
bodyNode.addChildNode(containerNode);
|
|
5041
5098
|
}
|
|
5042
|
-
if (input.NoncurrentVersionTransitions
|
|
5099
|
+
if (input.NoncurrentVersionTransitions != null) {
|
|
5043
5100
|
const nodes = serializeAws_restXmlNoncurrentVersionTransitionList(input.NoncurrentVersionTransitions, context);
|
|
5044
5101
|
const containerNode = new xml_builder_1.XmlNode("NoncurrentVersionTransitions");
|
|
5045
5102
|
nodes.map((node) => {
|
|
@@ -5047,11 +5104,11 @@ const serializeAws_restXmlLifecycleRule = (input, context) => {
|
|
|
5047
5104
|
});
|
|
5048
5105
|
bodyNode.addChildNode(containerNode);
|
|
5049
5106
|
}
|
|
5050
|
-
if (input.NoncurrentVersionExpiration
|
|
5107
|
+
if (input.NoncurrentVersionExpiration != null) {
|
|
5051
5108
|
const node = serializeAws_restXmlNoncurrentVersionExpiration(input.NoncurrentVersionExpiration, context).withName("NoncurrentVersionExpiration");
|
|
5052
5109
|
bodyNode.addChildNode(node);
|
|
5053
5110
|
}
|
|
5054
|
-
if (input.AbortIncompleteMultipartUpload
|
|
5111
|
+
if (input.AbortIncompleteMultipartUpload != null) {
|
|
5055
5112
|
const node = serializeAws_restXmlAbortIncompleteMultipartUpload(input.AbortIncompleteMultipartUpload, context).withName("AbortIncompleteMultipartUpload");
|
|
5056
5113
|
bodyNode.addChildNode(node);
|
|
5057
5114
|
}
|
|
@@ -5059,11 +5116,11 @@ const serializeAws_restXmlLifecycleRule = (input, context) => {
|
|
|
5059
5116
|
};
|
|
5060
5117
|
const serializeAws_restXmlLifecycleRuleAndOperator = (input, context) => {
|
|
5061
5118
|
const bodyNode = new xml_builder_1.XmlNode("LifecycleRuleAndOperator");
|
|
5062
|
-
if (input.Prefix
|
|
5119
|
+
if (input.Prefix != null) {
|
|
5063
5120
|
const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
5064
5121
|
bodyNode.addChildNode(node);
|
|
5065
5122
|
}
|
|
5066
|
-
if (input.Tags
|
|
5123
|
+
if (input.Tags != null) {
|
|
5067
5124
|
const nodes = serializeAws_restXmlS3TagSet(input.Tags, context);
|
|
5068
5125
|
const containerNode = new xml_builder_1.XmlNode("Tags");
|
|
5069
5126
|
nodes.map((node) => {
|
|
@@ -5075,15 +5132,15 @@ const serializeAws_restXmlLifecycleRuleAndOperator = (input, context) => {
|
|
|
5075
5132
|
};
|
|
5076
5133
|
const serializeAws_restXmlLifecycleRuleFilter = (input, context) => {
|
|
5077
5134
|
const bodyNode = new xml_builder_1.XmlNode("LifecycleRuleFilter");
|
|
5078
|
-
if (input.Prefix
|
|
5135
|
+
if (input.Prefix != null) {
|
|
5079
5136
|
const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
5080
5137
|
bodyNode.addChildNode(node);
|
|
5081
5138
|
}
|
|
5082
|
-
if (input.Tag
|
|
5139
|
+
if (input.Tag != null) {
|
|
5083
5140
|
const node = serializeAws_restXmlS3Tag(input.Tag, context).withName("Tag");
|
|
5084
5141
|
bodyNode.addChildNode(node);
|
|
5085
5142
|
}
|
|
5086
|
-
if (input.And
|
|
5143
|
+
if (input.And != null) {
|
|
5087
5144
|
const node = serializeAws_restXmlLifecycleRuleAndOperator(input.And, context).withName("And");
|
|
5088
5145
|
bodyNode.addChildNode(node);
|
|
5089
5146
|
}
|
|
@@ -5102,7 +5159,7 @@ const serializeAws_restXmlLifecycleRules = (input, context) => {
|
|
|
5102
5159
|
};
|
|
5103
5160
|
const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
|
|
5104
5161
|
const bodyNode = new xml_builder_1.XmlNode("NoncurrentVersionExpiration");
|
|
5105
|
-
if (input.NoncurrentDays
|
|
5162
|
+
if (input.NoncurrentDays != null) {
|
|
5106
5163
|
const node = new xml_builder_1.XmlNode("Days")
|
|
5107
5164
|
.addChildNode(new xml_builder_1.XmlText(String(input.NoncurrentDays)))
|
|
5108
5165
|
.withName("NoncurrentDays");
|
|
@@ -5112,13 +5169,13 @@ const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
|
|
|
5112
5169
|
};
|
|
5113
5170
|
const serializeAws_restXmlNoncurrentVersionTransition = (input, context) => {
|
|
5114
5171
|
const bodyNode = new xml_builder_1.XmlNode("NoncurrentVersionTransition");
|
|
5115
|
-
if (input.NoncurrentDays
|
|
5172
|
+
if (input.NoncurrentDays != null) {
|
|
5116
5173
|
const node = new xml_builder_1.XmlNode("Days")
|
|
5117
5174
|
.addChildNode(new xml_builder_1.XmlText(String(input.NoncurrentDays)))
|
|
5118
5175
|
.withName("NoncurrentDays");
|
|
5119
5176
|
bodyNode.addChildNode(node);
|
|
5120
5177
|
}
|
|
5121
|
-
if (input.StorageClass
|
|
5178
|
+
if (input.StorageClass != null) {
|
|
5122
5179
|
const node = new xml_builder_1.XmlNode("TransitionStorageClass")
|
|
5123
5180
|
.addChildNode(new xml_builder_1.XmlText(input.StorageClass))
|
|
5124
5181
|
.withName("StorageClass");
|
|
@@ -5150,19 +5207,19 @@ const serializeAws_restXmlObjectLambdaAllowedFeaturesList = (input, context) =>
|
|
|
5150
5207
|
};
|
|
5151
5208
|
const serializeAws_restXmlObjectLambdaConfiguration = (input, context) => {
|
|
5152
5209
|
const bodyNode = new xml_builder_1.XmlNode("ObjectLambdaConfiguration");
|
|
5153
|
-
if (input.SupportingAccessPoint
|
|
5210
|
+
if (input.SupportingAccessPoint != null) {
|
|
5154
5211
|
const node = new xml_builder_1.XmlNode("ObjectLambdaSupportingAccessPointArn")
|
|
5155
5212
|
.addChildNode(new xml_builder_1.XmlText(input.SupportingAccessPoint))
|
|
5156
5213
|
.withName("SupportingAccessPoint");
|
|
5157
5214
|
bodyNode.addChildNode(node);
|
|
5158
5215
|
}
|
|
5159
|
-
if (input.CloudWatchMetricsEnabled
|
|
5216
|
+
if (input.CloudWatchMetricsEnabled != null) {
|
|
5160
5217
|
const node = new xml_builder_1.XmlNode("Boolean")
|
|
5161
5218
|
.addChildNode(new xml_builder_1.XmlText(String(input.CloudWatchMetricsEnabled)))
|
|
5162
5219
|
.withName("CloudWatchMetricsEnabled");
|
|
5163
5220
|
bodyNode.addChildNode(node);
|
|
5164
5221
|
}
|
|
5165
|
-
if (input.AllowedFeatures
|
|
5222
|
+
if (input.AllowedFeatures != null) {
|
|
5166
5223
|
const nodes = serializeAws_restXmlObjectLambdaAllowedFeaturesList(input.AllowedFeatures, context);
|
|
5167
5224
|
const containerNode = new xml_builder_1.XmlNode("AllowedFeatures");
|
|
5168
5225
|
nodes.map((node) => {
|
|
@@ -5170,7 +5227,7 @@ const serializeAws_restXmlObjectLambdaConfiguration = (input, context) => {
|
|
|
5170
5227
|
});
|
|
5171
5228
|
bodyNode.addChildNode(containerNode);
|
|
5172
5229
|
}
|
|
5173
|
-
if (input.TransformationConfigurations
|
|
5230
|
+
if (input.TransformationConfigurations != null) {
|
|
5174
5231
|
const nodes = serializeAws_restXmlObjectLambdaTransformationConfigurationsList(input.TransformationConfigurations, context);
|
|
5175
5232
|
const containerNode = new xml_builder_1.XmlNode("TransformationConfigurations");
|
|
5176
5233
|
nodes.map((node) => {
|
|
@@ -5198,7 +5255,7 @@ const serializeAws_restXmlObjectLambdaContentTransformation = (input, context) =
|
|
|
5198
5255
|
};
|
|
5199
5256
|
const serializeAws_restXmlObjectLambdaTransformationConfiguration = (input, context) => {
|
|
5200
5257
|
const bodyNode = new xml_builder_1.XmlNode("ObjectLambdaTransformationConfiguration");
|
|
5201
|
-
if (input.Actions
|
|
5258
|
+
if (input.Actions != null) {
|
|
5202
5259
|
const nodes = serializeAws_restXmlObjectLambdaTransformationConfigurationActionsList(input.Actions, context);
|
|
5203
5260
|
const containerNode = new xml_builder_1.XmlNode("Actions");
|
|
5204
5261
|
nodes.map((node) => {
|
|
@@ -5206,7 +5263,7 @@ const serializeAws_restXmlObjectLambdaTransformationConfiguration = (input, cont
|
|
|
5206
5263
|
});
|
|
5207
5264
|
bodyNode.addChildNode(containerNode);
|
|
5208
5265
|
}
|
|
5209
|
-
if (input.ContentTransformation
|
|
5266
|
+
if (input.ContentTransformation != null) {
|
|
5210
5267
|
const node = serializeAws_restXmlObjectLambdaContentTransformation(input.ContentTransformation, context).withName("ContentTransformation");
|
|
5211
5268
|
bodyNode.addChildNode(node);
|
|
5212
5269
|
}
|
|
@@ -5236,7 +5293,7 @@ const serializeAws_restXmlObjectLambdaTransformationConfigurationsList = (input,
|
|
|
5236
5293
|
};
|
|
5237
5294
|
const serializeAws_restXmlPrefixLevel = (input, context) => {
|
|
5238
5295
|
const bodyNode = new xml_builder_1.XmlNode("PrefixLevel");
|
|
5239
|
-
if (input.StorageMetrics
|
|
5296
|
+
if (input.StorageMetrics != null) {
|
|
5240
5297
|
const node = serializeAws_restXmlPrefixLevelStorageMetrics(input.StorageMetrics, context).withName("StorageMetrics");
|
|
5241
5298
|
bodyNode.addChildNode(node);
|
|
5242
5299
|
}
|
|
@@ -5244,11 +5301,11 @@ const serializeAws_restXmlPrefixLevel = (input, context) => {
|
|
|
5244
5301
|
};
|
|
5245
5302
|
const serializeAws_restXmlPrefixLevelStorageMetrics = (input, context) => {
|
|
5246
5303
|
const bodyNode = new xml_builder_1.XmlNode("PrefixLevelStorageMetrics");
|
|
5247
|
-
if (input.IsEnabled
|
|
5304
|
+
if (input.IsEnabled != null) {
|
|
5248
5305
|
const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
|
|
5249
5306
|
bodyNode.addChildNode(node);
|
|
5250
5307
|
}
|
|
5251
|
-
if (input.SelectionCriteria
|
|
5308
|
+
if (input.SelectionCriteria != null) {
|
|
5252
5309
|
const node = serializeAws_restXmlSelectionCriteria(input.SelectionCriteria, context).withName("SelectionCriteria");
|
|
5253
5310
|
bodyNode.addChildNode(node);
|
|
5254
5311
|
}
|
|
@@ -5256,25 +5313,25 @@ const serializeAws_restXmlPrefixLevelStorageMetrics = (input, context) => {
|
|
|
5256
5313
|
};
|
|
5257
5314
|
const serializeAws_restXmlPublicAccessBlockConfiguration = (input, context) => {
|
|
5258
5315
|
const bodyNode = new xml_builder_1.XmlNode("PublicAccessBlockConfiguration");
|
|
5259
|
-
if (input.BlockPublicAcls
|
|
5316
|
+
if (input.BlockPublicAcls != null) {
|
|
5260
5317
|
const node = new xml_builder_1.XmlNode("Setting")
|
|
5261
5318
|
.addChildNode(new xml_builder_1.XmlText(String(input.BlockPublicAcls)))
|
|
5262
5319
|
.withName("BlockPublicAcls");
|
|
5263
5320
|
bodyNode.addChildNode(node);
|
|
5264
5321
|
}
|
|
5265
|
-
if (input.IgnorePublicAcls
|
|
5322
|
+
if (input.IgnorePublicAcls != null) {
|
|
5266
5323
|
const node = new xml_builder_1.XmlNode("Setting")
|
|
5267
5324
|
.addChildNode(new xml_builder_1.XmlText(String(input.IgnorePublicAcls)))
|
|
5268
5325
|
.withName("IgnorePublicAcls");
|
|
5269
5326
|
bodyNode.addChildNode(node);
|
|
5270
5327
|
}
|
|
5271
|
-
if (input.BlockPublicPolicy
|
|
5328
|
+
if (input.BlockPublicPolicy != null) {
|
|
5272
5329
|
const node = new xml_builder_1.XmlNode("Setting")
|
|
5273
5330
|
.addChildNode(new xml_builder_1.XmlText(String(input.BlockPublicPolicy)))
|
|
5274
5331
|
.withName("BlockPublicPolicy");
|
|
5275
5332
|
bodyNode.addChildNode(node);
|
|
5276
5333
|
}
|
|
5277
|
-
if (input.RestrictPublicBuckets
|
|
5334
|
+
if (input.RestrictPublicBuckets != null) {
|
|
5278
5335
|
const node = new xml_builder_1.XmlNode("Setting")
|
|
5279
5336
|
.addChildNode(new xml_builder_1.XmlText(String(input.RestrictPublicBuckets)))
|
|
5280
5337
|
.withName("RestrictPublicBuckets");
|
|
@@ -5284,11 +5341,11 @@ const serializeAws_restXmlPublicAccessBlockConfiguration = (input, context) => {
|
|
|
5284
5341
|
};
|
|
5285
5342
|
const serializeAws_restXmlPutMultiRegionAccessPointPolicyInput = (input, context) => {
|
|
5286
5343
|
const bodyNode = new xml_builder_1.XmlNode("PutMultiRegionAccessPointPolicyInput");
|
|
5287
|
-
if (input.Name
|
|
5344
|
+
if (input.Name != null) {
|
|
5288
5345
|
const node = new xml_builder_1.XmlNode("MultiRegionAccessPointName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
5289
5346
|
bodyNode.addChildNode(node);
|
|
5290
5347
|
}
|
|
5291
|
-
if (input.Policy
|
|
5348
|
+
if (input.Policy != null) {
|
|
5292
5349
|
const node = new xml_builder_1.XmlNode("Policy").addChildNode(new xml_builder_1.XmlText(input.Policy)).withName("Policy");
|
|
5293
5350
|
bodyNode.addChildNode(node);
|
|
5294
5351
|
}
|
|
@@ -5296,7 +5353,7 @@ const serializeAws_restXmlPutMultiRegionAccessPointPolicyInput = (input, context
|
|
|
5296
5353
|
};
|
|
5297
5354
|
const serializeAws_restXmlRegion = (input, context) => {
|
|
5298
5355
|
const bodyNode = new xml_builder_1.XmlNode("Region");
|
|
5299
|
-
if (input.Bucket
|
|
5356
|
+
if (input.Bucket != null) {
|
|
5300
5357
|
const node = new xml_builder_1.XmlNode("BucketName").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
|
|
5301
5358
|
bodyNode.addChildNode(node);
|
|
5302
5359
|
}
|
|
@@ -5337,11 +5394,11 @@ const serializeAws_restXmlReplicationStatusFilterList = (input, context) => {
|
|
|
5337
5394
|
};
|
|
5338
5395
|
const serializeAws_restXmlS3AccessControlList = (input, context) => {
|
|
5339
5396
|
const bodyNode = new xml_builder_1.XmlNode("S3AccessControlList");
|
|
5340
|
-
if (input.Owner
|
|
5397
|
+
if (input.Owner != null) {
|
|
5341
5398
|
const node = serializeAws_restXmlS3ObjectOwner(input.Owner, context).withName("Owner");
|
|
5342
5399
|
bodyNode.addChildNode(node);
|
|
5343
5400
|
}
|
|
5344
|
-
if (input.Grants
|
|
5401
|
+
if (input.Grants != null) {
|
|
5345
5402
|
const nodes = serializeAws_restXmlS3GrantList(input.Grants, context);
|
|
5346
5403
|
const containerNode = new xml_builder_1.XmlNode("Grants");
|
|
5347
5404
|
nodes.map((node) => {
|
|
@@ -5353,11 +5410,11 @@ const serializeAws_restXmlS3AccessControlList = (input, context) => {
|
|
|
5353
5410
|
};
|
|
5354
5411
|
const serializeAws_restXmlS3AccessControlPolicy = (input, context) => {
|
|
5355
5412
|
const bodyNode = new xml_builder_1.XmlNode("S3AccessControlPolicy");
|
|
5356
|
-
if (input.AccessControlList
|
|
5413
|
+
if (input.AccessControlList != null) {
|
|
5357
5414
|
const node = serializeAws_restXmlS3AccessControlList(input.AccessControlList, context).withName("AccessControlList");
|
|
5358
5415
|
bodyNode.addChildNode(node);
|
|
5359
5416
|
}
|
|
5360
|
-
if (input.CannedAccessControlList
|
|
5417
|
+
if (input.CannedAccessControlList != null) {
|
|
5361
5418
|
const node = new xml_builder_1.XmlNode("S3CannedAccessControlList")
|
|
5362
5419
|
.addChildNode(new xml_builder_1.XmlText(input.CannedAccessControlList))
|
|
5363
5420
|
.withName("CannedAccessControlList");
|
|
@@ -5367,29 +5424,29 @@ const serializeAws_restXmlS3AccessControlPolicy = (input, context) => {
|
|
|
5367
5424
|
};
|
|
5368
5425
|
const serializeAws_restXmlS3BucketDestination = (input, context) => {
|
|
5369
5426
|
const bodyNode = new xml_builder_1.XmlNode("S3BucketDestination");
|
|
5370
|
-
if (input.Format
|
|
5427
|
+
if (input.Format != null) {
|
|
5371
5428
|
const node = new xml_builder_1.XmlNode("Format").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
|
|
5372
5429
|
bodyNode.addChildNode(node);
|
|
5373
5430
|
}
|
|
5374
|
-
if (input.OutputSchemaVersion
|
|
5431
|
+
if (input.OutputSchemaVersion != null) {
|
|
5375
5432
|
const node = new xml_builder_1.XmlNode("OutputSchemaVersion")
|
|
5376
5433
|
.addChildNode(new xml_builder_1.XmlText(input.OutputSchemaVersion))
|
|
5377
5434
|
.withName("OutputSchemaVersion");
|
|
5378
5435
|
bodyNode.addChildNode(node);
|
|
5379
5436
|
}
|
|
5380
|
-
if (input.AccountId
|
|
5437
|
+
if (input.AccountId != null) {
|
|
5381
5438
|
const node = new xml_builder_1.XmlNode("AccountId").addChildNode(new xml_builder_1.XmlText(input.AccountId)).withName("AccountId");
|
|
5382
5439
|
bodyNode.addChildNode(node);
|
|
5383
5440
|
}
|
|
5384
|
-
if (input.Arn
|
|
5441
|
+
if (input.Arn != null) {
|
|
5385
5442
|
const node = new xml_builder_1.XmlNode("S3BucketArnString").addChildNode(new xml_builder_1.XmlText(input.Arn)).withName("Arn");
|
|
5386
5443
|
bodyNode.addChildNode(node);
|
|
5387
5444
|
}
|
|
5388
|
-
if (input.Prefix
|
|
5445
|
+
if (input.Prefix != null) {
|
|
5389
5446
|
const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
5390
5447
|
bodyNode.addChildNode(node);
|
|
5391
5448
|
}
|
|
5392
|
-
if (input.Encryption
|
|
5449
|
+
if (input.Encryption != null) {
|
|
5393
5450
|
const node = serializeAws_restXmlStorageLensDataExportEncryption(input.Encryption, context).withName("Encryption");
|
|
5394
5451
|
bodyNode.addChildNode(node);
|
|
5395
5452
|
}
|
|
@@ -5397,19 +5454,19 @@ const serializeAws_restXmlS3BucketDestination = (input, context) => {
|
|
|
5397
5454
|
};
|
|
5398
5455
|
const serializeAws_restXmlS3CopyObjectOperation = (input, context) => {
|
|
5399
5456
|
const bodyNode = new xml_builder_1.XmlNode("S3CopyObjectOperation");
|
|
5400
|
-
if (input.TargetResource
|
|
5457
|
+
if (input.TargetResource != null) {
|
|
5401
5458
|
const node = new xml_builder_1.XmlNode("S3BucketArnString")
|
|
5402
5459
|
.addChildNode(new xml_builder_1.XmlText(input.TargetResource))
|
|
5403
5460
|
.withName("TargetResource");
|
|
5404
5461
|
bodyNode.addChildNode(node);
|
|
5405
5462
|
}
|
|
5406
|
-
if (input.CannedAccessControlList
|
|
5463
|
+
if (input.CannedAccessControlList != null) {
|
|
5407
5464
|
const node = new xml_builder_1.XmlNode("S3CannedAccessControlList")
|
|
5408
5465
|
.addChildNode(new xml_builder_1.XmlText(input.CannedAccessControlList))
|
|
5409
5466
|
.withName("CannedAccessControlList");
|
|
5410
5467
|
bodyNode.addChildNode(node);
|
|
5411
5468
|
}
|
|
5412
|
-
if (input.AccessControlGrants
|
|
5469
|
+
if (input.AccessControlGrants != null) {
|
|
5413
5470
|
const nodes = serializeAws_restXmlS3GrantList(input.AccessControlGrants, context);
|
|
5414
5471
|
const containerNode = new xml_builder_1.XmlNode("AccessControlGrants");
|
|
5415
5472
|
nodes.map((node) => {
|
|
@@ -5417,23 +5474,23 @@ const serializeAws_restXmlS3CopyObjectOperation = (input, context) => {
|
|
|
5417
5474
|
});
|
|
5418
5475
|
bodyNode.addChildNode(containerNode);
|
|
5419
5476
|
}
|
|
5420
|
-
if (input.MetadataDirective
|
|
5477
|
+
if (input.MetadataDirective != null) {
|
|
5421
5478
|
const node = new xml_builder_1.XmlNode("S3MetadataDirective")
|
|
5422
5479
|
.addChildNode(new xml_builder_1.XmlText(input.MetadataDirective))
|
|
5423
5480
|
.withName("MetadataDirective");
|
|
5424
5481
|
bodyNode.addChildNode(node);
|
|
5425
5482
|
}
|
|
5426
|
-
if (input.ModifiedSinceConstraint
|
|
5483
|
+
if (input.ModifiedSinceConstraint != null) {
|
|
5427
5484
|
const node = new xml_builder_1.XmlNode("TimeStamp")
|
|
5428
5485
|
.addChildNode(new xml_builder_1.XmlText(input.ModifiedSinceConstraint.toISOString().split(".")[0] + "Z"))
|
|
5429
5486
|
.withName("ModifiedSinceConstraint");
|
|
5430
5487
|
bodyNode.addChildNode(node);
|
|
5431
5488
|
}
|
|
5432
|
-
if (input.NewObjectMetadata
|
|
5489
|
+
if (input.NewObjectMetadata != null) {
|
|
5433
5490
|
const node = serializeAws_restXmlS3ObjectMetadata(input.NewObjectMetadata, context).withName("NewObjectMetadata");
|
|
5434
5491
|
bodyNode.addChildNode(node);
|
|
5435
5492
|
}
|
|
5436
|
-
if (input.NewObjectTagging
|
|
5493
|
+
if (input.NewObjectTagging != null) {
|
|
5437
5494
|
const nodes = serializeAws_restXmlS3TagSet(input.NewObjectTagging, context);
|
|
5438
5495
|
const containerNode = new xml_builder_1.XmlNode("NewObjectTagging");
|
|
5439
5496
|
nodes.map((node) => {
|
|
@@ -5441,67 +5498,67 @@ const serializeAws_restXmlS3CopyObjectOperation = (input, context) => {
|
|
|
5441
5498
|
});
|
|
5442
5499
|
bodyNode.addChildNode(containerNode);
|
|
5443
5500
|
}
|
|
5444
|
-
if (input.RedirectLocation
|
|
5501
|
+
if (input.RedirectLocation != null) {
|
|
5445
5502
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength2048String")
|
|
5446
5503
|
.addChildNode(new xml_builder_1.XmlText(input.RedirectLocation))
|
|
5447
5504
|
.withName("RedirectLocation");
|
|
5448
5505
|
bodyNode.addChildNode(node);
|
|
5449
5506
|
}
|
|
5450
|
-
if (input.RequesterPays
|
|
5507
|
+
if (input.RequesterPays != null) {
|
|
5451
5508
|
const node = new xml_builder_1.XmlNode("Boolean")
|
|
5452
5509
|
.addChildNode(new xml_builder_1.XmlText(String(input.RequesterPays)))
|
|
5453
5510
|
.withName("RequesterPays");
|
|
5454
5511
|
bodyNode.addChildNode(node);
|
|
5455
5512
|
}
|
|
5456
|
-
if (input.StorageClass
|
|
5513
|
+
if (input.StorageClass != null) {
|
|
5457
5514
|
const node = new xml_builder_1.XmlNode("S3StorageClass")
|
|
5458
5515
|
.addChildNode(new xml_builder_1.XmlText(input.StorageClass))
|
|
5459
5516
|
.withName("StorageClass");
|
|
5460
5517
|
bodyNode.addChildNode(node);
|
|
5461
5518
|
}
|
|
5462
|
-
if (input.UnModifiedSinceConstraint
|
|
5519
|
+
if (input.UnModifiedSinceConstraint != null) {
|
|
5463
5520
|
const node = new xml_builder_1.XmlNode("TimeStamp")
|
|
5464
5521
|
.addChildNode(new xml_builder_1.XmlText(input.UnModifiedSinceConstraint.toISOString().split(".")[0] + "Z"))
|
|
5465
5522
|
.withName("UnModifiedSinceConstraint");
|
|
5466
5523
|
bodyNode.addChildNode(node);
|
|
5467
5524
|
}
|
|
5468
|
-
if (input.SSEAwsKmsKeyId
|
|
5525
|
+
if (input.SSEAwsKmsKeyId != null) {
|
|
5469
5526
|
const node = new xml_builder_1.XmlNode("KmsKeyArnString")
|
|
5470
5527
|
.addChildNode(new xml_builder_1.XmlText(input.SSEAwsKmsKeyId))
|
|
5471
5528
|
.withName("SSEAwsKmsKeyId");
|
|
5472
5529
|
bodyNode.addChildNode(node);
|
|
5473
5530
|
}
|
|
5474
|
-
if (input.TargetKeyPrefix
|
|
5531
|
+
if (input.TargetKeyPrefix != null) {
|
|
5475
5532
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5476
5533
|
.addChildNode(new xml_builder_1.XmlText(input.TargetKeyPrefix))
|
|
5477
5534
|
.withName("TargetKeyPrefix");
|
|
5478
5535
|
bodyNode.addChildNode(node);
|
|
5479
5536
|
}
|
|
5480
|
-
if (input.ObjectLockLegalHoldStatus
|
|
5537
|
+
if (input.ObjectLockLegalHoldStatus != null) {
|
|
5481
5538
|
const node = new xml_builder_1.XmlNode("S3ObjectLockLegalHoldStatus")
|
|
5482
5539
|
.addChildNode(new xml_builder_1.XmlText(input.ObjectLockLegalHoldStatus))
|
|
5483
5540
|
.withName("ObjectLockLegalHoldStatus");
|
|
5484
5541
|
bodyNode.addChildNode(node);
|
|
5485
5542
|
}
|
|
5486
|
-
if (input.ObjectLockMode
|
|
5543
|
+
if (input.ObjectLockMode != null) {
|
|
5487
5544
|
const node = new xml_builder_1.XmlNode("S3ObjectLockMode")
|
|
5488
5545
|
.addChildNode(new xml_builder_1.XmlText(input.ObjectLockMode))
|
|
5489
5546
|
.withName("ObjectLockMode");
|
|
5490
5547
|
bodyNode.addChildNode(node);
|
|
5491
5548
|
}
|
|
5492
|
-
if (input.ObjectLockRetainUntilDate
|
|
5549
|
+
if (input.ObjectLockRetainUntilDate != null) {
|
|
5493
5550
|
const node = new xml_builder_1.XmlNode("TimeStamp")
|
|
5494
5551
|
.addChildNode(new xml_builder_1.XmlText(input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z"))
|
|
5495
5552
|
.withName("ObjectLockRetainUntilDate");
|
|
5496
5553
|
bodyNode.addChildNode(node);
|
|
5497
5554
|
}
|
|
5498
|
-
if (input.BucketKeyEnabled
|
|
5555
|
+
if (input.BucketKeyEnabled != null) {
|
|
5499
5556
|
const node = new xml_builder_1.XmlNode("Boolean")
|
|
5500
5557
|
.addChildNode(new xml_builder_1.XmlText(String(input.BucketKeyEnabled)))
|
|
5501
5558
|
.withName("BucketKeyEnabled");
|
|
5502
5559
|
bodyNode.addChildNode(node);
|
|
5503
5560
|
}
|
|
5504
|
-
if (input.ChecksumAlgorithm
|
|
5561
|
+
if (input.ChecksumAlgorithm != null) {
|
|
5505
5562
|
const node = new xml_builder_1.XmlNode("S3ChecksumAlgorithm")
|
|
5506
5563
|
.addChildNode(new xml_builder_1.XmlText(input.ChecksumAlgorithm))
|
|
5507
5564
|
.withName("ChecksumAlgorithm");
|
|
@@ -5515,11 +5572,11 @@ const serializeAws_restXmlS3DeleteObjectTaggingOperation = (input, context) => {
|
|
|
5515
5572
|
};
|
|
5516
5573
|
const serializeAws_restXmlS3Grant = (input, context) => {
|
|
5517
5574
|
const bodyNode = new xml_builder_1.XmlNode("S3Grant");
|
|
5518
|
-
if (input.Grantee
|
|
5575
|
+
if (input.Grantee != null) {
|
|
5519
5576
|
const node = serializeAws_restXmlS3Grantee(input.Grantee, context).withName("Grantee");
|
|
5520
5577
|
bodyNode.addChildNode(node);
|
|
5521
5578
|
}
|
|
5522
|
-
if (input.Permission
|
|
5579
|
+
if (input.Permission != null) {
|
|
5523
5580
|
const node = new xml_builder_1.XmlNode("S3Permission").addChildNode(new xml_builder_1.XmlText(input.Permission)).withName("Permission");
|
|
5524
5581
|
bodyNode.addChildNode(node);
|
|
5525
5582
|
}
|
|
@@ -5527,19 +5584,19 @@ const serializeAws_restXmlS3Grant = (input, context) => {
|
|
|
5527
5584
|
};
|
|
5528
5585
|
const serializeAws_restXmlS3Grantee = (input, context) => {
|
|
5529
5586
|
const bodyNode = new xml_builder_1.XmlNode("S3Grantee");
|
|
5530
|
-
if (input.TypeIdentifier
|
|
5587
|
+
if (input.TypeIdentifier != null) {
|
|
5531
5588
|
const node = new xml_builder_1.XmlNode("S3GranteeTypeIdentifier")
|
|
5532
5589
|
.addChildNode(new xml_builder_1.XmlText(input.TypeIdentifier))
|
|
5533
5590
|
.withName("TypeIdentifier");
|
|
5534
5591
|
bodyNode.addChildNode(node);
|
|
5535
5592
|
}
|
|
5536
|
-
if (input.Identifier
|
|
5593
|
+
if (input.Identifier != null) {
|
|
5537
5594
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5538
5595
|
.addChildNode(new xml_builder_1.XmlText(input.Identifier))
|
|
5539
5596
|
.withName("Identifier");
|
|
5540
5597
|
bodyNode.addChildNode(node);
|
|
5541
5598
|
}
|
|
5542
|
-
if (input.DisplayName
|
|
5599
|
+
if (input.DisplayName != null) {
|
|
5543
5600
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5544
5601
|
.addChildNode(new xml_builder_1.XmlText(input.DisplayName))
|
|
5545
5602
|
.withName("DisplayName");
|
|
@@ -5560,13 +5617,13 @@ const serializeAws_restXmlS3GrantList = (input, context) => {
|
|
|
5560
5617
|
};
|
|
5561
5618
|
const serializeAws_restXmlS3InitiateRestoreObjectOperation = (input, context) => {
|
|
5562
5619
|
const bodyNode = new xml_builder_1.XmlNode("S3InitiateRestoreObjectOperation");
|
|
5563
|
-
if (input.ExpirationInDays
|
|
5620
|
+
if (input.ExpirationInDays != null) {
|
|
5564
5621
|
const node = new xml_builder_1.XmlNode("S3ExpirationInDays")
|
|
5565
5622
|
.addChildNode(new xml_builder_1.XmlText(String(input.ExpirationInDays)))
|
|
5566
5623
|
.withName("ExpirationInDays");
|
|
5567
5624
|
bodyNode.addChildNode(node);
|
|
5568
5625
|
}
|
|
5569
|
-
if (input.GlacierJobTier
|
|
5626
|
+
if (input.GlacierJobTier != null) {
|
|
5570
5627
|
const node = new xml_builder_1.XmlNode("S3GlacierJobTier")
|
|
5571
5628
|
.addChildNode(new xml_builder_1.XmlText(input.GlacierJobTier))
|
|
5572
5629
|
.withName("GlacierJobTier");
|
|
@@ -5576,27 +5633,27 @@ const serializeAws_restXmlS3InitiateRestoreObjectOperation = (input, context) =>
|
|
|
5576
5633
|
};
|
|
5577
5634
|
const serializeAws_restXmlS3JobManifestGenerator = (input, context) => {
|
|
5578
5635
|
const bodyNode = new xml_builder_1.XmlNode("S3JobManifestGenerator");
|
|
5579
|
-
if (input.ExpectedBucketOwner
|
|
5636
|
+
if (input.ExpectedBucketOwner != null) {
|
|
5580
5637
|
const node = new xml_builder_1.XmlNode("AccountId")
|
|
5581
5638
|
.addChildNode(new xml_builder_1.XmlText(input.ExpectedBucketOwner))
|
|
5582
5639
|
.withName("ExpectedBucketOwner");
|
|
5583
5640
|
bodyNode.addChildNode(node);
|
|
5584
5641
|
}
|
|
5585
|
-
if (input.SourceBucket
|
|
5642
|
+
if (input.SourceBucket != null) {
|
|
5586
5643
|
const node = new xml_builder_1.XmlNode("S3BucketArnString")
|
|
5587
5644
|
.addChildNode(new xml_builder_1.XmlText(input.SourceBucket))
|
|
5588
5645
|
.withName("SourceBucket");
|
|
5589
5646
|
bodyNode.addChildNode(node);
|
|
5590
5647
|
}
|
|
5591
|
-
if (input.ManifestOutputLocation
|
|
5648
|
+
if (input.ManifestOutputLocation != null) {
|
|
5592
5649
|
const node = serializeAws_restXmlS3ManifestOutputLocation(input.ManifestOutputLocation, context).withName("ManifestOutputLocation");
|
|
5593
5650
|
bodyNode.addChildNode(node);
|
|
5594
5651
|
}
|
|
5595
|
-
if (input.Filter
|
|
5652
|
+
if (input.Filter != null) {
|
|
5596
5653
|
const node = serializeAws_restXmlJobManifestGeneratorFilter(input.Filter, context).withName("Filter");
|
|
5597
5654
|
bodyNode.addChildNode(node);
|
|
5598
5655
|
}
|
|
5599
|
-
if (input.EnableManifestOutput
|
|
5656
|
+
if (input.EnableManifestOutput != null) {
|
|
5600
5657
|
const node = new xml_builder_1.XmlNode("Boolean")
|
|
5601
5658
|
.addChildNode(new xml_builder_1.XmlText(String(input.EnableManifestOutput)))
|
|
5602
5659
|
.withName("EnableManifestOutput");
|
|
@@ -5606,27 +5663,27 @@ const serializeAws_restXmlS3JobManifestGenerator = (input, context) => {
|
|
|
5606
5663
|
};
|
|
5607
5664
|
const serializeAws_restXmlS3ManifestOutputLocation = (input, context) => {
|
|
5608
5665
|
const bodyNode = new xml_builder_1.XmlNode("S3ManifestOutputLocation");
|
|
5609
|
-
if (input.ExpectedManifestBucketOwner
|
|
5666
|
+
if (input.ExpectedManifestBucketOwner != null) {
|
|
5610
5667
|
const node = new xml_builder_1.XmlNode("AccountId")
|
|
5611
5668
|
.addChildNode(new xml_builder_1.XmlText(input.ExpectedManifestBucketOwner))
|
|
5612
5669
|
.withName("ExpectedManifestBucketOwner");
|
|
5613
5670
|
bodyNode.addChildNode(node);
|
|
5614
5671
|
}
|
|
5615
|
-
if (input.Bucket
|
|
5672
|
+
if (input.Bucket != null) {
|
|
5616
5673
|
const node = new xml_builder_1.XmlNode("S3BucketArnString").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
|
|
5617
5674
|
bodyNode.addChildNode(node);
|
|
5618
5675
|
}
|
|
5619
|
-
if (input.ManifestPrefix
|
|
5676
|
+
if (input.ManifestPrefix != null) {
|
|
5620
5677
|
const node = new xml_builder_1.XmlNode("ManifestPrefixString")
|
|
5621
5678
|
.addChildNode(new xml_builder_1.XmlText(input.ManifestPrefix))
|
|
5622
5679
|
.withName("ManifestPrefix");
|
|
5623
5680
|
bodyNode.addChildNode(node);
|
|
5624
5681
|
}
|
|
5625
|
-
if (input.ManifestEncryption
|
|
5682
|
+
if (input.ManifestEncryption != null) {
|
|
5626
5683
|
const node = serializeAws_restXmlGeneratedManifestEncryption(input.ManifestEncryption, context).withName("ManifestEncryption");
|
|
5627
5684
|
bodyNode.addChildNode(node);
|
|
5628
5685
|
}
|
|
5629
|
-
if (input.ManifestFormat
|
|
5686
|
+
if (input.ManifestFormat != null) {
|
|
5630
5687
|
const node = new xml_builder_1.XmlNode("GeneratedManifestFormat")
|
|
5631
5688
|
.addChildNode(new xml_builder_1.XmlText(input.ManifestFormat))
|
|
5632
5689
|
.withName("ManifestFormat");
|
|
@@ -5636,7 +5693,7 @@ const serializeAws_restXmlS3ManifestOutputLocation = (input, context) => {
|
|
|
5636
5693
|
};
|
|
5637
5694
|
const serializeAws_restXmlS3ObjectLockLegalHold = (input, context) => {
|
|
5638
5695
|
const bodyNode = new xml_builder_1.XmlNode("S3ObjectLockLegalHold");
|
|
5639
|
-
if (input.Status
|
|
5696
|
+
if (input.Status != null) {
|
|
5640
5697
|
const node = new xml_builder_1.XmlNode("S3ObjectLockLegalHoldStatus")
|
|
5641
5698
|
.addChildNode(new xml_builder_1.XmlText(input.Status))
|
|
5642
5699
|
.withName("Status");
|
|
@@ -5646,31 +5703,31 @@ const serializeAws_restXmlS3ObjectLockLegalHold = (input, context) => {
|
|
|
5646
5703
|
};
|
|
5647
5704
|
const serializeAws_restXmlS3ObjectMetadata = (input, context) => {
|
|
5648
5705
|
const bodyNode = new xml_builder_1.XmlNode("S3ObjectMetadata");
|
|
5649
|
-
if (input.CacheControl
|
|
5706
|
+
if (input.CacheControl != null) {
|
|
5650
5707
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5651
5708
|
.addChildNode(new xml_builder_1.XmlText(input.CacheControl))
|
|
5652
5709
|
.withName("CacheControl");
|
|
5653
5710
|
bodyNode.addChildNode(node);
|
|
5654
5711
|
}
|
|
5655
|
-
if (input.ContentDisposition
|
|
5712
|
+
if (input.ContentDisposition != null) {
|
|
5656
5713
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5657
5714
|
.addChildNode(new xml_builder_1.XmlText(input.ContentDisposition))
|
|
5658
5715
|
.withName("ContentDisposition");
|
|
5659
5716
|
bodyNode.addChildNode(node);
|
|
5660
5717
|
}
|
|
5661
|
-
if (input.ContentEncoding
|
|
5718
|
+
if (input.ContentEncoding != null) {
|
|
5662
5719
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5663
5720
|
.addChildNode(new xml_builder_1.XmlText(input.ContentEncoding))
|
|
5664
5721
|
.withName("ContentEncoding");
|
|
5665
5722
|
bodyNode.addChildNode(node);
|
|
5666
5723
|
}
|
|
5667
|
-
if (input.ContentLanguage
|
|
5724
|
+
if (input.ContentLanguage != null) {
|
|
5668
5725
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5669
5726
|
.addChildNode(new xml_builder_1.XmlText(input.ContentLanguage))
|
|
5670
5727
|
.withName("ContentLanguage");
|
|
5671
5728
|
bodyNode.addChildNode(node);
|
|
5672
5729
|
}
|
|
5673
|
-
if (input.UserMetadata
|
|
5730
|
+
if (input.UserMetadata != null) {
|
|
5674
5731
|
const nodes = serializeAws_restXmlS3UserMetadata(input.UserMetadata, context);
|
|
5675
5732
|
const containerNode = new xml_builder_1.XmlNode("UserMetadata");
|
|
5676
5733
|
nodes.map((node) => {
|
|
@@ -5678,37 +5735,37 @@ const serializeAws_restXmlS3ObjectMetadata = (input, context) => {
|
|
|
5678
5735
|
});
|
|
5679
5736
|
bodyNode.addChildNode(containerNode);
|
|
5680
5737
|
}
|
|
5681
|
-
if (input.ContentLength
|
|
5738
|
+
if (input.ContentLength != null) {
|
|
5682
5739
|
const node = new xml_builder_1.XmlNode("S3ContentLength")
|
|
5683
5740
|
.addChildNode(new xml_builder_1.XmlText(String(input.ContentLength)))
|
|
5684
5741
|
.withName("ContentLength");
|
|
5685
5742
|
bodyNode.addChildNode(node);
|
|
5686
5743
|
}
|
|
5687
|
-
if (input.ContentMD5
|
|
5744
|
+
if (input.ContentMD5 != null) {
|
|
5688
5745
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5689
5746
|
.addChildNode(new xml_builder_1.XmlText(input.ContentMD5))
|
|
5690
5747
|
.withName("ContentMD5");
|
|
5691
5748
|
bodyNode.addChildNode(node);
|
|
5692
5749
|
}
|
|
5693
|
-
if (input.ContentType
|
|
5750
|
+
if (input.ContentType != null) {
|
|
5694
5751
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5695
5752
|
.addChildNode(new xml_builder_1.XmlText(input.ContentType))
|
|
5696
5753
|
.withName("ContentType");
|
|
5697
5754
|
bodyNode.addChildNode(node);
|
|
5698
5755
|
}
|
|
5699
|
-
if (input.HttpExpiresDate
|
|
5756
|
+
if (input.HttpExpiresDate != null) {
|
|
5700
5757
|
const node = new xml_builder_1.XmlNode("TimeStamp")
|
|
5701
5758
|
.addChildNode(new xml_builder_1.XmlText(input.HttpExpiresDate.toISOString().split(".")[0] + "Z"))
|
|
5702
5759
|
.withName("HttpExpiresDate");
|
|
5703
5760
|
bodyNode.addChildNode(node);
|
|
5704
5761
|
}
|
|
5705
|
-
if (input.RequesterCharged
|
|
5762
|
+
if (input.RequesterCharged != null) {
|
|
5706
5763
|
const node = new xml_builder_1.XmlNode("Boolean")
|
|
5707
5764
|
.addChildNode(new xml_builder_1.XmlText(String(input.RequesterCharged)))
|
|
5708
5765
|
.withName("RequesterCharged");
|
|
5709
5766
|
bodyNode.addChildNode(node);
|
|
5710
5767
|
}
|
|
5711
|
-
if (input.SSEAlgorithm
|
|
5768
|
+
if (input.SSEAlgorithm != null) {
|
|
5712
5769
|
const node = new xml_builder_1.XmlNode("S3SSEAlgorithm")
|
|
5713
5770
|
.addChildNode(new xml_builder_1.XmlText(input.SSEAlgorithm))
|
|
5714
5771
|
.withName("SSEAlgorithm");
|
|
@@ -5718,11 +5775,11 @@ const serializeAws_restXmlS3ObjectMetadata = (input, context) => {
|
|
|
5718
5775
|
};
|
|
5719
5776
|
const serializeAws_restXmlS3ObjectOwner = (input, context) => {
|
|
5720
5777
|
const bodyNode = new xml_builder_1.XmlNode("S3ObjectOwner");
|
|
5721
|
-
if (input.ID
|
|
5778
|
+
if (input.ID != null) {
|
|
5722
5779
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
|
|
5723
5780
|
bodyNode.addChildNode(node);
|
|
5724
5781
|
}
|
|
5725
|
-
if (input.DisplayName
|
|
5782
|
+
if (input.DisplayName != null) {
|
|
5726
5783
|
const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
|
|
5727
5784
|
.addChildNode(new xml_builder_1.XmlText(input.DisplayName))
|
|
5728
5785
|
.withName("DisplayName");
|
|
@@ -5736,13 +5793,13 @@ const serializeAws_restXmlS3ReplicateObjectOperation = (input, context) => {
|
|
|
5736
5793
|
};
|
|
5737
5794
|
const serializeAws_restXmlS3Retention = (input, context) => {
|
|
5738
5795
|
const bodyNode = new xml_builder_1.XmlNode("S3Retention");
|
|
5739
|
-
if (input.RetainUntilDate
|
|
5796
|
+
if (input.RetainUntilDate != null) {
|
|
5740
5797
|
const node = new xml_builder_1.XmlNode("TimeStamp")
|
|
5741
5798
|
.addChildNode(new xml_builder_1.XmlText(input.RetainUntilDate.toISOString().split(".")[0] + "Z"))
|
|
5742
5799
|
.withName("RetainUntilDate");
|
|
5743
5800
|
bodyNode.addChildNode(node);
|
|
5744
5801
|
}
|
|
5745
|
-
if (input.Mode
|
|
5802
|
+
if (input.Mode != null) {
|
|
5746
5803
|
const node = new xml_builder_1.XmlNode("S3ObjectLockRetentionMode").addChildNode(new xml_builder_1.XmlText(input.Mode)).withName("Mode");
|
|
5747
5804
|
bodyNode.addChildNode(node);
|
|
5748
5805
|
}
|
|
@@ -5750,7 +5807,7 @@ const serializeAws_restXmlS3Retention = (input, context) => {
|
|
|
5750
5807
|
};
|
|
5751
5808
|
const serializeAws_restXmlS3SetObjectAclOperation = (input, context) => {
|
|
5752
5809
|
const bodyNode = new xml_builder_1.XmlNode("S3SetObjectAclOperation");
|
|
5753
|
-
if (input.AccessControlPolicy
|
|
5810
|
+
if (input.AccessControlPolicy != null) {
|
|
5754
5811
|
const node = serializeAws_restXmlS3AccessControlPolicy(input.AccessControlPolicy, context).withName("AccessControlPolicy");
|
|
5755
5812
|
bodyNode.addChildNode(node);
|
|
5756
5813
|
}
|
|
@@ -5758,7 +5815,7 @@ const serializeAws_restXmlS3SetObjectAclOperation = (input, context) => {
|
|
|
5758
5815
|
};
|
|
5759
5816
|
const serializeAws_restXmlS3SetObjectLegalHoldOperation = (input, context) => {
|
|
5760
5817
|
const bodyNode = new xml_builder_1.XmlNode("S3SetObjectLegalHoldOperation");
|
|
5761
|
-
if (input.LegalHold
|
|
5818
|
+
if (input.LegalHold != null) {
|
|
5762
5819
|
const node = serializeAws_restXmlS3ObjectLockLegalHold(input.LegalHold, context).withName("LegalHold");
|
|
5763
5820
|
bodyNode.addChildNode(node);
|
|
5764
5821
|
}
|
|
@@ -5766,13 +5823,13 @@ const serializeAws_restXmlS3SetObjectLegalHoldOperation = (input, context) => {
|
|
|
5766
5823
|
};
|
|
5767
5824
|
const serializeAws_restXmlS3SetObjectRetentionOperation = (input, context) => {
|
|
5768
5825
|
const bodyNode = new xml_builder_1.XmlNode("S3SetObjectRetentionOperation");
|
|
5769
|
-
if (input.BypassGovernanceRetention
|
|
5826
|
+
if (input.BypassGovernanceRetention != null) {
|
|
5770
5827
|
const node = new xml_builder_1.XmlNode("Boolean")
|
|
5771
5828
|
.addChildNode(new xml_builder_1.XmlText(String(input.BypassGovernanceRetention)))
|
|
5772
5829
|
.withName("BypassGovernanceRetention");
|
|
5773
5830
|
bodyNode.addChildNode(node);
|
|
5774
5831
|
}
|
|
5775
|
-
if (input.Retention
|
|
5832
|
+
if (input.Retention != null) {
|
|
5776
5833
|
const node = serializeAws_restXmlS3Retention(input.Retention, context).withName("Retention");
|
|
5777
5834
|
bodyNode.addChildNode(node);
|
|
5778
5835
|
}
|
|
@@ -5780,7 +5837,7 @@ const serializeAws_restXmlS3SetObjectRetentionOperation = (input, context) => {
|
|
|
5780
5837
|
};
|
|
5781
5838
|
const serializeAws_restXmlS3SetObjectTaggingOperation = (input, context) => {
|
|
5782
5839
|
const bodyNode = new xml_builder_1.XmlNode("S3SetObjectTaggingOperation");
|
|
5783
|
-
if (input.TagSet
|
|
5840
|
+
if (input.TagSet != null) {
|
|
5784
5841
|
const nodes = serializeAws_restXmlS3TagSet(input.TagSet, context);
|
|
5785
5842
|
const containerNode = new xml_builder_1.XmlNode("TagSet");
|
|
5786
5843
|
nodes.map((node) => {
|
|
@@ -5792,11 +5849,11 @@ const serializeAws_restXmlS3SetObjectTaggingOperation = (input, context) => {
|
|
|
5792
5849
|
};
|
|
5793
5850
|
const serializeAws_restXmlS3Tag = (input, context) => {
|
|
5794
5851
|
const bodyNode = new xml_builder_1.XmlNode("S3Tag");
|
|
5795
|
-
if (input.Key
|
|
5852
|
+
if (input.Key != null) {
|
|
5796
5853
|
const node = new xml_builder_1.XmlNode("TagKeyString").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
|
|
5797
5854
|
bodyNode.addChildNode(node);
|
|
5798
5855
|
}
|
|
5799
|
-
if (input.Value
|
|
5856
|
+
if (input.Value != null) {
|
|
5800
5857
|
const node = new xml_builder_1.XmlNode("TagValueString").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
|
|
5801
5858
|
bodyNode.addChildNode(node);
|
|
5802
5859
|
}
|
|
@@ -5828,19 +5885,19 @@ const serializeAws_restXmlS3UserMetadata = (input, context) => {
|
|
|
5828
5885
|
};
|
|
5829
5886
|
const serializeAws_restXmlSelectionCriteria = (input, context) => {
|
|
5830
5887
|
const bodyNode = new xml_builder_1.XmlNode("SelectionCriteria");
|
|
5831
|
-
if (input.Delimiter
|
|
5888
|
+
if (input.Delimiter != null) {
|
|
5832
5889
|
const node = new xml_builder_1.XmlNode("StorageLensPrefixLevelDelimiter")
|
|
5833
5890
|
.addChildNode(new xml_builder_1.XmlText(input.Delimiter))
|
|
5834
5891
|
.withName("Delimiter");
|
|
5835
5892
|
bodyNode.addChildNode(node);
|
|
5836
5893
|
}
|
|
5837
|
-
if (input.MaxDepth
|
|
5894
|
+
if (input.MaxDepth != null) {
|
|
5838
5895
|
const node = new xml_builder_1.XmlNode("StorageLensPrefixLevelMaxDepth")
|
|
5839
5896
|
.addChildNode(new xml_builder_1.XmlText(String(input.MaxDepth)))
|
|
5840
5897
|
.withName("MaxDepth");
|
|
5841
5898
|
bodyNode.addChildNode(node);
|
|
5842
5899
|
}
|
|
5843
|
-
if (input.MinStorageBytesPercentage
|
|
5900
|
+
if (input.MinStorageBytesPercentage != null) {
|
|
5844
5901
|
const node = new xml_builder_1.XmlNode("MinStorageBytesPercentage")
|
|
5845
5902
|
.addChildNode(new xml_builder_1.XmlText(String(input.MinStorageBytesPercentage)))
|
|
5846
5903
|
.withName("MinStorageBytesPercentage");
|
|
@@ -5850,7 +5907,7 @@ const serializeAws_restXmlSelectionCriteria = (input, context) => {
|
|
|
5850
5907
|
};
|
|
5851
5908
|
const serializeAws_restXmlSSEKMS = (input, context) => {
|
|
5852
5909
|
const bodyNode = new xml_builder_1.XmlNode("SSE-KMS");
|
|
5853
|
-
if (input.KeyId
|
|
5910
|
+
if (input.KeyId != null) {
|
|
5854
5911
|
const node = new xml_builder_1.XmlNode("SSEKMSKeyId").addChildNode(new xml_builder_1.XmlText(input.KeyId)).withName("KeyId");
|
|
5855
5912
|
bodyNode.addChildNode(node);
|
|
5856
5913
|
}
|
|
@@ -5858,7 +5915,7 @@ const serializeAws_restXmlSSEKMS = (input, context) => {
|
|
|
5858
5915
|
};
|
|
5859
5916
|
const serializeAws_restXmlSSEKMSEncryption = (input, context) => {
|
|
5860
5917
|
const bodyNode = new xml_builder_1.XmlNode("SSE-KMS");
|
|
5861
|
-
if (input.KeyId
|
|
5918
|
+
if (input.KeyId != null) {
|
|
5862
5919
|
const node = new xml_builder_1.XmlNode("KmsKeyArnString").addChildNode(new xml_builder_1.XmlText(input.KeyId)).withName("KeyId");
|
|
5863
5920
|
bodyNode.addChildNode(node);
|
|
5864
5921
|
}
|
|
@@ -5874,7 +5931,7 @@ const serializeAws_restXmlSSES3Encryption = (input, context) => {
|
|
|
5874
5931
|
};
|
|
5875
5932
|
const serializeAws_restXmlStorageLensAwsOrg = (input, context) => {
|
|
5876
5933
|
const bodyNode = new xml_builder_1.XmlNode("StorageLensAwsOrg");
|
|
5877
|
-
if (input.Arn
|
|
5934
|
+
if (input.Arn != null) {
|
|
5878
5935
|
const node = new xml_builder_1.XmlNode("AwsOrgArn").addChildNode(new xml_builder_1.XmlText(input.Arn)).withName("Arn");
|
|
5879
5936
|
bodyNode.addChildNode(node);
|
|
5880
5937
|
}
|
|
@@ -5882,35 +5939,35 @@ const serializeAws_restXmlStorageLensAwsOrg = (input, context) => {
|
|
|
5882
5939
|
};
|
|
5883
5940
|
const serializeAws_restXmlStorageLensConfiguration = (input, context) => {
|
|
5884
5941
|
const bodyNode = new xml_builder_1.XmlNode("StorageLensConfiguration");
|
|
5885
|
-
if (input.Id
|
|
5942
|
+
if (input.Id != null) {
|
|
5886
5943
|
const node = new xml_builder_1.XmlNode("ConfigId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
|
|
5887
5944
|
bodyNode.addChildNode(node);
|
|
5888
5945
|
}
|
|
5889
|
-
if (input.AccountLevel
|
|
5946
|
+
if (input.AccountLevel != null) {
|
|
5890
5947
|
const node = serializeAws_restXmlAccountLevel(input.AccountLevel, context).withName("AccountLevel");
|
|
5891
5948
|
bodyNode.addChildNode(node);
|
|
5892
5949
|
}
|
|
5893
|
-
if (input.Include
|
|
5950
|
+
if (input.Include != null) {
|
|
5894
5951
|
const node = serializeAws_restXmlInclude(input.Include, context).withName("Include");
|
|
5895
5952
|
bodyNode.addChildNode(node);
|
|
5896
5953
|
}
|
|
5897
|
-
if (input.Exclude
|
|
5954
|
+
if (input.Exclude != null) {
|
|
5898
5955
|
const node = serializeAws_restXml_Exclude(input.Exclude, context).withName("Exclude");
|
|
5899
5956
|
bodyNode.addChildNode(node);
|
|
5900
5957
|
}
|
|
5901
|
-
if (input.DataExport
|
|
5958
|
+
if (input.DataExport != null) {
|
|
5902
5959
|
const node = serializeAws_restXmlStorageLensDataExport(input.DataExport, context).withName("DataExport");
|
|
5903
5960
|
bodyNode.addChildNode(node);
|
|
5904
5961
|
}
|
|
5905
|
-
if (input.IsEnabled
|
|
5962
|
+
if (input.IsEnabled != null) {
|
|
5906
5963
|
const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
|
|
5907
5964
|
bodyNode.addChildNode(node);
|
|
5908
5965
|
}
|
|
5909
|
-
if (input.AwsOrg
|
|
5966
|
+
if (input.AwsOrg != null) {
|
|
5910
5967
|
const node = serializeAws_restXmlStorageLensAwsOrg(input.AwsOrg, context).withName("AwsOrg");
|
|
5911
5968
|
bodyNode.addChildNode(node);
|
|
5912
5969
|
}
|
|
5913
|
-
if (input.StorageLensArn
|
|
5970
|
+
if (input.StorageLensArn != null) {
|
|
5914
5971
|
const node = new xml_builder_1.XmlNode("StorageLensArn")
|
|
5915
5972
|
.addChildNode(new xml_builder_1.XmlText(input.StorageLensArn))
|
|
5916
5973
|
.withName("StorageLensArn");
|
|
@@ -5920,11 +5977,11 @@ const serializeAws_restXmlStorageLensConfiguration = (input, context) => {
|
|
|
5920
5977
|
};
|
|
5921
5978
|
const serializeAws_restXmlStorageLensDataExport = (input, context) => {
|
|
5922
5979
|
const bodyNode = new xml_builder_1.XmlNode("StorageLensDataExport");
|
|
5923
|
-
if (input.S3BucketDestination
|
|
5980
|
+
if (input.S3BucketDestination != null) {
|
|
5924
5981
|
const node = serializeAws_restXmlS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination");
|
|
5925
5982
|
bodyNode.addChildNode(node);
|
|
5926
5983
|
}
|
|
5927
|
-
if (input.CloudWatchMetrics
|
|
5984
|
+
if (input.CloudWatchMetrics != null) {
|
|
5928
5985
|
const node = serializeAws_restXmlCloudWatchMetrics(input.CloudWatchMetrics, context).withName("CloudWatchMetrics");
|
|
5929
5986
|
bodyNode.addChildNode(node);
|
|
5930
5987
|
}
|
|
@@ -5932,11 +5989,11 @@ const serializeAws_restXmlStorageLensDataExport = (input, context) => {
|
|
|
5932
5989
|
};
|
|
5933
5990
|
const serializeAws_restXmlStorageLensDataExportEncryption = (input, context) => {
|
|
5934
5991
|
const bodyNode = new xml_builder_1.XmlNode("StorageLensDataExportEncryption");
|
|
5935
|
-
if (input.SSES3
|
|
5992
|
+
if (input.SSES3 != null) {
|
|
5936
5993
|
const node = serializeAws_restXmlSSES3(input.SSES3, context).withName("SSE-S3");
|
|
5937
5994
|
bodyNode.addChildNode(node);
|
|
5938
5995
|
}
|
|
5939
|
-
if (input.SSEKMS
|
|
5996
|
+
if (input.SSEKMS != null) {
|
|
5940
5997
|
const node = serializeAws_restXmlSSEKMS(input.SSEKMS, context).withName("SSE-KMS");
|
|
5941
5998
|
bodyNode.addChildNode(node);
|
|
5942
5999
|
}
|
|
@@ -5944,11 +6001,11 @@ const serializeAws_restXmlStorageLensDataExportEncryption = (input, context) =>
|
|
|
5944
6001
|
};
|
|
5945
6002
|
const serializeAws_restXmlStorageLensTag = (input, context) => {
|
|
5946
6003
|
const bodyNode = new xml_builder_1.XmlNode("StorageLensTag");
|
|
5947
|
-
if (input.Key
|
|
6004
|
+
if (input.Key != null) {
|
|
5948
6005
|
const node = new xml_builder_1.XmlNode("TagKeyString").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
|
|
5949
6006
|
bodyNode.addChildNode(node);
|
|
5950
6007
|
}
|
|
5951
|
-
if (input.Value
|
|
6008
|
+
if (input.Value != null) {
|
|
5952
6009
|
const node = new xml_builder_1.XmlNode("TagValueString").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
|
|
5953
6010
|
bodyNode.addChildNode(node);
|
|
5954
6011
|
}
|
|
@@ -5967,7 +6024,7 @@ const serializeAws_restXmlStorageLensTags = (input, context) => {
|
|
|
5967
6024
|
};
|
|
5968
6025
|
const serializeAws_restXmlTagging = (input, context) => {
|
|
5969
6026
|
const bodyNode = new xml_builder_1.XmlNode("Tagging");
|
|
5970
|
-
if (input.TagSet
|
|
6027
|
+
if (input.TagSet != null) {
|
|
5971
6028
|
const nodes = serializeAws_restXmlS3TagSet(input.TagSet, context);
|
|
5972
6029
|
const containerNode = new xml_builder_1.XmlNode("TagSet");
|
|
5973
6030
|
nodes.map((node) => {
|
|
@@ -5979,17 +6036,17 @@ const serializeAws_restXmlTagging = (input, context) => {
|
|
|
5979
6036
|
};
|
|
5980
6037
|
const serializeAws_restXmlTransition = (input, context) => {
|
|
5981
6038
|
const bodyNode = new xml_builder_1.XmlNode("Transition");
|
|
5982
|
-
if (input.Date
|
|
6039
|
+
if (input.Date != null) {
|
|
5983
6040
|
const node = new xml_builder_1.XmlNode("Date")
|
|
5984
6041
|
.addChildNode(new xml_builder_1.XmlText(input.Date.toISOString().split(".")[0] + "Z"))
|
|
5985
6042
|
.withName("Date");
|
|
5986
6043
|
bodyNode.addChildNode(node);
|
|
5987
6044
|
}
|
|
5988
|
-
if (input.Days
|
|
6045
|
+
if (input.Days != null) {
|
|
5989
6046
|
const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
|
|
5990
6047
|
bodyNode.addChildNode(node);
|
|
5991
6048
|
}
|
|
5992
|
-
if (input.StorageClass
|
|
6049
|
+
if (input.StorageClass != null) {
|
|
5993
6050
|
const node = new xml_builder_1.XmlNode("TransitionStorageClass")
|
|
5994
6051
|
.addChildNode(new xml_builder_1.XmlText(input.StorageClass))
|
|
5995
6052
|
.withName("StorageClass");
|
|
@@ -6010,7 +6067,7 @@ const serializeAws_restXmlTransitionList = (input, context) => {
|
|
|
6010
6067
|
};
|
|
6011
6068
|
const serializeAws_restXmlVpcConfiguration = (input, context) => {
|
|
6012
6069
|
const bodyNode = new xml_builder_1.XmlNode("VpcConfiguration");
|
|
6013
|
-
if (input.VpcId
|
|
6070
|
+
if (input.VpcId != null) {
|
|
6014
6071
|
const node = new xml_builder_1.XmlNode("VpcId").addChildNode(new xml_builder_1.XmlText(input.VpcId)).withName("VpcId");
|
|
6015
6072
|
bodyNode.addChildNode(node);
|
|
6016
6073
|
}
|
|
@@ -7847,5 +7904,4 @@ const loadRestXmlErrorCode = (output, data) => {
|
|
|
7847
7904
|
if (output.statusCode == 404) {
|
|
7848
7905
|
return "NotFound";
|
|
7849
7906
|
}
|
|
7850
|
-
return "";
|
|
7851
7907
|
};
|