@@ -497,6 +497,9 @@ export const serializeAws_restXmlCreateCachePolicyCommand = async (
497
497
};
498
498
let resolvedPath = "/2020-05-31/cache-policy";
499
499
let body: any;
500
+ if (input.CachePolicyConfig !== undefined) {
501
+ body = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
502
+ }
500
503
let contents: any;
501
504
if (input.CachePolicyConfig !== undefined) {
502
505
contents = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
@@ -525,6 +528,12 @@ export const serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = a
525
528
};
526
529
let resolvedPath = "/2020-05-31/origin-access-identity/cloudfront";
527
530
let body: any;
531
+ if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
532
+ body = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
533
+ input.CloudFrontOriginAccessIdentityConfig,
534
+ context
535
+ );
536
+ }
528
537
let contents: any;
529
538
if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
530
539
contents = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
@@ -556,6 +565,9 @@ export const serializeAws_restXmlCreateDistributionCommand = async (
556
565
};
557
566
let resolvedPath = "/2020-05-31/distribution";
558
567
let body: any;
568
+ if (input.DistributionConfig !== undefined) {
569
+ body = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
570
+ }
559
571
let contents: any;
560
572
if (input.DistributionConfig !== undefined) {
561
573
contents = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
@@ -587,6 +599,9 @@ export const serializeAws_restXmlCreateDistributionWithTagsCommand = async (
587
599
WithTags: "",
588
600
};
589
601
let body: any;
602
+ if (input.DistributionConfigWithTags !== undefined) {
603
+ body = serializeAws_restXmlDistributionConfigWithTags(input.DistributionConfigWithTags, context);
604
+ }
590
605
let contents: any;
591
606
if (input.DistributionConfigWithTags !== undefined) {
592
607
contents = serializeAws_restXmlDistributionConfigWithTags(input.DistributionConfigWithTags, context);
@@ -616,6 +631,9 @@ export const serializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = async
616
631
};
617
632
let resolvedPath = "/2020-05-31/field-level-encryption";
618
633
let body: any;
634
+ if (input.FieldLevelEncryptionConfig !== undefined) {
635
+ body = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
636
+ }
619
637
let contents: any;
620
638
if (input.FieldLevelEncryptionConfig !== undefined) {
621
639
contents = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
@@ -644,6 +662,9 @@ export const serializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = asyn
644
662
};
645
663
let resolvedPath = "/2020-05-31/field-level-encryption-profile";
646
664
let body: any;
665
+ if (input.FieldLevelEncryptionProfileConfig !== undefined) {
666
+ body = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
667
+ }
647
668
let contents: any;
648
669
if (input.FieldLevelEncryptionProfileConfig !== undefined) {
649
670
contents = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
@@ -720,6 +741,9 @@ export const serializeAws_restXmlCreateInvalidationCommand = async (
720
741
throw new Error("No value provided for input HTTP label: DistributionId.");
721
742
}
722
743
let body: any;
744
+ if (input.InvalidationBatch !== undefined) {
745
+ body = serializeAws_restXmlInvalidationBatch(input.InvalidationBatch, context);
746
+ }
723
747
let contents: any;
724
748
if (input.InvalidationBatch !== undefined) {
725
749
contents = serializeAws_restXmlInvalidationBatch(input.InvalidationBatch, context);
@@ -748,6 +772,9 @@ export const serializeAws_restXmlCreateKeyGroupCommand = async (
748
772
};
749
773
let resolvedPath = "/2020-05-31/key-group";
750
774
let body: any;
775
+ if (input.KeyGroupConfig !== undefined) {
776
+ body = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
777
+ }
751
778
let contents: any;
752
779
if (input.KeyGroupConfig !== undefined) {
753
780
contents = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
@@ -785,6 +812,9 @@ export const serializeAws_restXmlCreateMonitoringSubscriptionCommand = async (
785
812
throw new Error("No value provided for input HTTP label: DistributionId.");
786
813
}
787
814
let body: any;
815
+ if (input.MonitoringSubscription !== undefined) {
816
+ body = serializeAws_restXmlMonitoringSubscription(input.MonitoringSubscription, context);
817
+ }
788
818
let contents: any;
789
819
if (input.MonitoringSubscription !== undefined) {
790
820
contents = serializeAws_restXmlMonitoringSubscription(input.MonitoringSubscription, context);
@@ -813,6 +843,9 @@ export const serializeAws_restXmlCreateOriginRequestPolicyCommand = async (
813
843
};
814
844
let resolvedPath = "/2020-05-31/origin-request-policy";
815
845
let body: any;
846
+ if (input.OriginRequestPolicyConfig !== undefined) {
847
+ body = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
848
+ }
816
849
let contents: any;
817
850
if (input.OriginRequestPolicyConfig !== undefined) {
818
851
contents = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
@@ -841,6 +874,9 @@ export const serializeAws_restXmlCreatePublicKeyCommand = async (
841
874
};
842
875
let resolvedPath = "/2020-05-31/public-key";
843
876
let body: any;
877
+ if (input.PublicKeyConfig !== undefined) {
878
+ body = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
879
+ }
844
880
let contents: any;
845
881
if (input.PublicKeyConfig !== undefined) {
846
882
contents = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
@@ -918,6 +954,9 @@ export const serializeAws_restXmlCreateStreamingDistributionCommand = async (
918
954
};
919
955
let resolvedPath = "/2020-05-31/streaming-distribution";
920
956
let body: any;
957
+ if (input.StreamingDistributionConfig !== undefined) {
958
+ body = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
959
+ }
921
960
let contents: any;
922
961
if (input.StreamingDistributionConfig !== undefined) {
923
962
contents = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
@@ -949,6 +988,9 @@ export const serializeAws_restXmlCreateStreamingDistributionWithTagsCommand = as
949
988
WithTags: "",
950
989
};
951
990
let body: any;
991
+ if (input.StreamingDistributionConfigWithTags !== undefined) {
992
+ body = serializeAws_restXmlStreamingDistributionConfigWithTags(input.StreamingDistributionConfigWithTags, context);
993
+ }
952
994
let contents: any;
953
995
if (input.StreamingDistributionConfigWithTags !== undefined) {
954
996
contents = serializeAws_restXmlStreamingDistributionConfigWithTags(
@@ -2542,6 +2584,9 @@ export const serializeAws_restXmlTagResourceCommand = async (
2542
2584
...(input.Resource !== undefined && { Resource: input.Resource }),
2543
2585
};
2544
2586
let body: any;
2587
+ if (input.Tags !== undefined) {
2588
+ body = serializeAws_restXmlTags(input.Tags, context);
2589
+ }
2545
2590
let contents: any;
2546
2591
if (input.Tags !== undefined) {
2547
2592
contents = serializeAws_restXmlTags(input.Tags, context);
@@ -2620,6 +2665,9 @@ export const serializeAws_restXmlUntagResourceCommand = async (
2620
2665
...(input.Resource !== undefined && { Resource: input.Resource }),
2621
2666
};
2622
2667
let body: any;
2668
+ if (input.TagKeys !== undefined) {
2669
+ body = serializeAws_restXmlTagKeys(input.TagKeys, context);
2670
+ }
2623
2671
let contents: any;
2624
2672
if (input.TagKeys !== undefined) {
2625
2673
contents = serializeAws_restXmlTagKeys(input.TagKeys, context);
@@ -2659,6 +2707,9 @@ export const serializeAws_restXmlUpdateCachePolicyCommand = async (
2659
2707
throw new Error("No value provided for input HTTP label: Id.");
2660
2708
}
2661
2709
let body: any;
2710
+ if (input.CachePolicyConfig !== undefined) {
2711
+ body = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
2712
+ }
2662
2713
let contents: any;
2663
2714
if (input.CachePolicyConfig !== undefined) {
2664
2715
contents = serializeAws_restXmlCachePolicyConfig(input.CachePolicyConfig, context);
@@ -2697,6 +2748,12 @@ export const serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = a
2697
2748
throw new Error("No value provided for input HTTP label: Id.");
2698
2749
}
2699
2750
let body: any;
2751
+ if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
2752
+ body = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
2753
+ input.CloudFrontOriginAccessIdentityConfig,
2754
+ context
2755
+ );
2756
+ }
2700
2757
let contents: any;
2701
2758
if (input.CloudFrontOriginAccessIdentityConfig !== undefined) {
2702
2759
contents = serializeAws_restXmlCloudFrontOriginAccessIdentityConfig(
@@ -2738,6 +2795,9 @@ export const serializeAws_restXmlUpdateDistributionCommand = async (
2738
2795
throw new Error("No value provided for input HTTP label: Id.");
2739
2796
}
2740
2797
let body: any;
2798
+ if (input.DistributionConfig !== undefined) {
2799
+ body = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
2800
+ }
2741
2801
let contents: any;
2742
2802
if (input.DistributionConfig !== undefined) {
2743
2803
contents = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context);
@@ -2776,6 +2836,9 @@ export const serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = async
2776
2836
throw new Error("No value provided for input HTTP label: Id.");
2777
2837
}
2778
2838
let body: any;
2839
+ if (input.FieldLevelEncryptionConfig !== undefined) {
2840
+ body = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
2841
+ }
2779
2842
let contents: any;
2780
2843
if (input.FieldLevelEncryptionConfig !== undefined) {
2781
2844
contents = serializeAws_restXmlFieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context);
@@ -2814,6 +2877,9 @@ export const serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = asyn
2814
2877
throw new Error("No value provided for input HTTP label: Id.");
2815
2878
}
2816
2879
let body: any;
2880
+ if (input.FieldLevelEncryptionProfileConfig !== undefined) {
2881
+ body = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
2882
+ }
2817
2883
let contents: any;
2818
2884
if (input.FieldLevelEncryptionProfileConfig !== undefined) {
2819
2885
contents = serializeAws_restXmlFieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context);
@@ -2897,6 +2963,9 @@ export const serializeAws_restXmlUpdateKeyGroupCommand = async (
2897
2963
throw new Error("No value provided for input HTTP label: Id.");
2898
2964
}
2899
2965
let body: any;
2966
+ if (input.KeyGroupConfig !== undefined) {
2967
+ body = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
2968
+ }
2900
2969
let contents: any;
2901
2970
if (input.KeyGroupConfig !== undefined) {
2902
2971
contents = serializeAws_restXmlKeyGroupConfig(input.KeyGroupConfig, context);
@@ -2935,6 +3004,9 @@ export const serializeAws_restXmlUpdateOriginRequestPolicyCommand = async (
2935
3004
throw new Error("No value provided for input HTTP label: Id.");
2936
3005
}
2937
3006
let body: any;
3007
+ if (input.OriginRequestPolicyConfig !== undefined) {
3008
+ body = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
3009
+ }
2938
3010
let contents: any;
2939
3011
if (input.OriginRequestPolicyConfig !== undefined) {
2940
3012
contents = serializeAws_restXmlOriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context);
@@ -2973,6 +3045,9 @@ export const serializeAws_restXmlUpdatePublicKeyCommand = async (
2973
3045
throw new Error("No value provided for input HTTP label: Id.");
2974
3046
}
2975
3047
let body: any;
3048
+ if (input.PublicKeyConfig !== undefined) {
3049
+ body = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
3050
+ }
2976
3051
let contents: any;
2977
3052
if (input.PublicKeyConfig !== undefined) {
2978
3053
contents = serializeAws_restXmlPublicKeyConfig(input.PublicKeyConfig, context);
@@ -3064,6 +3139,9 @@ export const serializeAws_restXmlUpdateStreamingDistributionCommand = async (
3064
3139
throw new Error("No value provided for input HTTP label: Id.");
3065
3140
}
3066
3141
let body: any;
3142
+ if (input.StreamingDistributionConfig !== undefined) {
3143
+ body = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
3144
+ }
3067
3145
let contents: any;
3068
3146
if (input.StreamingDistributionConfig !== undefined) {
3069
3147
contents = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context);
0 commit comments