@aws-sdk/client-cloudfront 3.121.0 → 3.130.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 +24 -0
- package/dist-cjs/protocols/Aws_restXml.js +297 -298
- package/dist-es/protocols/Aws_restXml.js +297 -298
- package/package.json +27 -27
|
@@ -11648,11 +11648,11 @@ var serializeAws_restXmlAccessControlExposeHeadersList = function (input, contex
|
|
|
11648
11648
|
};
|
|
11649
11649
|
var serializeAws_restXmlAliases = function (input, context) {
|
|
11650
11650
|
var bodyNode = new __XmlNode("Aliases");
|
|
11651
|
-
if (input.Quantity
|
|
11651
|
+
if (input.Quantity != null) {
|
|
11652
11652
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
11653
11653
|
bodyNode.addChildNode(node);
|
|
11654
11654
|
}
|
|
11655
|
-
if (input.Items
|
|
11655
|
+
if (input.Items != null) {
|
|
11656
11656
|
var nodes = serializeAws_restXmlAliasList(input.Items, context);
|
|
11657
11657
|
var containerNode_5 = new __XmlNode("Items");
|
|
11658
11658
|
nodes.map(function (node) {
|
|
@@ -11675,11 +11675,11 @@ var serializeAws_restXmlAliasList = function (input, context) {
|
|
|
11675
11675
|
};
|
|
11676
11676
|
var serializeAws_restXmlAllowedMethods = function (input, context) {
|
|
11677
11677
|
var bodyNode = new __XmlNode("AllowedMethods");
|
|
11678
|
-
if (input.Quantity
|
|
11678
|
+
if (input.Quantity != null) {
|
|
11679
11679
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
11680
11680
|
bodyNode.addChildNode(node);
|
|
11681
11681
|
}
|
|
11682
|
-
if (input.Items
|
|
11682
|
+
if (input.Items != null) {
|
|
11683
11683
|
var nodes = serializeAws_restXmlMethodsList(input.Items, context);
|
|
11684
11684
|
var containerNode_6 = new __XmlNode("Items");
|
|
11685
11685
|
nodes.map(function (node) {
|
|
@@ -11687,7 +11687,7 @@ var serializeAws_restXmlAllowedMethods = function (input, context) {
|
|
|
11687
11687
|
});
|
|
11688
11688
|
bodyNode.addChildNode(containerNode_6);
|
|
11689
11689
|
}
|
|
11690
|
-
if (input.CachedMethods
|
|
11690
|
+
if (input.CachedMethods != null) {
|
|
11691
11691
|
var node = serializeAws_restXmlCachedMethods(input.CachedMethods, context).withName("CachedMethods");
|
|
11692
11692
|
bodyNode.addChildNode(node);
|
|
11693
11693
|
}
|
|
@@ -11706,91 +11706,91 @@ var serializeAws_restXmlAwsAccountNumberList = function (input, context) {
|
|
|
11706
11706
|
};
|
|
11707
11707
|
var serializeAws_restXmlCacheBehavior = function (input, context) {
|
|
11708
11708
|
var bodyNode = new __XmlNode("CacheBehavior");
|
|
11709
|
-
if (input.PathPattern
|
|
11709
|
+
if (input.PathPattern != null) {
|
|
11710
11710
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.PathPattern)).withName("PathPattern");
|
|
11711
11711
|
bodyNode.addChildNode(node);
|
|
11712
11712
|
}
|
|
11713
|
-
if (input.TargetOriginId
|
|
11713
|
+
if (input.TargetOriginId != null) {
|
|
11714
11714
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.TargetOriginId)).withName("TargetOriginId");
|
|
11715
11715
|
bodyNode.addChildNode(node);
|
|
11716
11716
|
}
|
|
11717
|
-
if (input.TrustedSigners
|
|
11717
|
+
if (input.TrustedSigners != null) {
|
|
11718
11718
|
var node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
11719
11719
|
bodyNode.addChildNode(node);
|
|
11720
11720
|
}
|
|
11721
|
-
if (input.TrustedKeyGroups
|
|
11721
|
+
if (input.TrustedKeyGroups != null) {
|
|
11722
11722
|
var node = serializeAws_restXmlTrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups");
|
|
11723
11723
|
bodyNode.addChildNode(node);
|
|
11724
11724
|
}
|
|
11725
|
-
if (input.ViewerProtocolPolicy
|
|
11725
|
+
if (input.ViewerProtocolPolicy != null) {
|
|
11726
11726
|
var node = new __XmlNode("ViewerProtocolPolicy")
|
|
11727
11727
|
.addChildNode(new __XmlText(input.ViewerProtocolPolicy))
|
|
11728
11728
|
.withName("ViewerProtocolPolicy");
|
|
11729
11729
|
bodyNode.addChildNode(node);
|
|
11730
11730
|
}
|
|
11731
|
-
if (input.AllowedMethods
|
|
11731
|
+
if (input.AllowedMethods != null) {
|
|
11732
11732
|
var node = serializeAws_restXmlAllowedMethods(input.AllowedMethods, context).withName("AllowedMethods");
|
|
11733
11733
|
bodyNode.addChildNode(node);
|
|
11734
11734
|
}
|
|
11735
|
-
if (input.SmoothStreaming
|
|
11735
|
+
if (input.SmoothStreaming != null) {
|
|
11736
11736
|
var node = new __XmlNode("boolean")
|
|
11737
11737
|
.addChildNode(new __XmlText(String(input.SmoothStreaming)))
|
|
11738
11738
|
.withName("SmoothStreaming");
|
|
11739
11739
|
bodyNode.addChildNode(node);
|
|
11740
11740
|
}
|
|
11741
|
-
if (input.Compress
|
|
11741
|
+
if (input.Compress != null) {
|
|
11742
11742
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Compress))).withName("Compress");
|
|
11743
11743
|
bodyNode.addChildNode(node);
|
|
11744
11744
|
}
|
|
11745
|
-
if (input.LambdaFunctionAssociations
|
|
11745
|
+
if (input.LambdaFunctionAssociations != null) {
|
|
11746
11746
|
var node = serializeAws_restXmlLambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName("LambdaFunctionAssociations");
|
|
11747
11747
|
bodyNode.addChildNode(node);
|
|
11748
11748
|
}
|
|
11749
|
-
if (input.FunctionAssociations
|
|
11749
|
+
if (input.FunctionAssociations != null) {
|
|
11750
11750
|
var node = serializeAws_restXmlFunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations");
|
|
11751
11751
|
bodyNode.addChildNode(node);
|
|
11752
11752
|
}
|
|
11753
|
-
if (input.FieldLevelEncryptionId
|
|
11753
|
+
if (input.FieldLevelEncryptionId != null) {
|
|
11754
11754
|
var node = new __XmlNode("string")
|
|
11755
11755
|
.addChildNode(new __XmlText(input.FieldLevelEncryptionId))
|
|
11756
11756
|
.withName("FieldLevelEncryptionId");
|
|
11757
11757
|
bodyNode.addChildNode(node);
|
|
11758
11758
|
}
|
|
11759
|
-
if (input.RealtimeLogConfigArn
|
|
11759
|
+
if (input.RealtimeLogConfigArn != null) {
|
|
11760
11760
|
var node = new __XmlNode("string")
|
|
11761
11761
|
.addChildNode(new __XmlText(input.RealtimeLogConfigArn))
|
|
11762
11762
|
.withName("RealtimeLogConfigArn");
|
|
11763
11763
|
bodyNode.addChildNode(node);
|
|
11764
11764
|
}
|
|
11765
|
-
if (input.CachePolicyId
|
|
11765
|
+
if (input.CachePolicyId != null) {
|
|
11766
11766
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CachePolicyId)).withName("CachePolicyId");
|
|
11767
11767
|
bodyNode.addChildNode(node);
|
|
11768
11768
|
}
|
|
11769
|
-
if (input.OriginRequestPolicyId
|
|
11769
|
+
if (input.OriginRequestPolicyId != null) {
|
|
11770
11770
|
var node = new __XmlNode("string")
|
|
11771
11771
|
.addChildNode(new __XmlText(input.OriginRequestPolicyId))
|
|
11772
11772
|
.withName("OriginRequestPolicyId");
|
|
11773
11773
|
bodyNode.addChildNode(node);
|
|
11774
11774
|
}
|
|
11775
|
-
if (input.ResponseHeadersPolicyId
|
|
11775
|
+
if (input.ResponseHeadersPolicyId != null) {
|
|
11776
11776
|
var node = new __XmlNode("string")
|
|
11777
11777
|
.addChildNode(new __XmlText(input.ResponseHeadersPolicyId))
|
|
11778
11778
|
.withName("ResponseHeadersPolicyId");
|
|
11779
11779
|
bodyNode.addChildNode(node);
|
|
11780
11780
|
}
|
|
11781
|
-
if (input.ForwardedValues
|
|
11781
|
+
if (input.ForwardedValues != null) {
|
|
11782
11782
|
var node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
11783
11783
|
bodyNode.addChildNode(node);
|
|
11784
11784
|
}
|
|
11785
|
-
if (input.MinTTL
|
|
11785
|
+
if (input.MinTTL != null) {
|
|
11786
11786
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
11787
11787
|
bodyNode.addChildNode(node);
|
|
11788
11788
|
}
|
|
11789
|
-
if (input.DefaultTTL
|
|
11789
|
+
if (input.DefaultTTL != null) {
|
|
11790
11790
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
11791
11791
|
bodyNode.addChildNode(node);
|
|
11792
11792
|
}
|
|
11793
|
-
if (input.MaxTTL
|
|
11793
|
+
if (input.MaxTTL != null) {
|
|
11794
11794
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
11795
11795
|
bodyNode.addChildNode(node);
|
|
11796
11796
|
}
|
|
@@ -11809,11 +11809,11 @@ var serializeAws_restXmlCacheBehaviorList = function (input, context) {
|
|
|
11809
11809
|
};
|
|
11810
11810
|
var serializeAws_restXmlCacheBehaviors = function (input, context) {
|
|
11811
11811
|
var bodyNode = new __XmlNode("CacheBehaviors");
|
|
11812
|
-
if (input.Quantity
|
|
11812
|
+
if (input.Quantity != null) {
|
|
11813
11813
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
11814
11814
|
bodyNode.addChildNode(node);
|
|
11815
11815
|
}
|
|
11816
|
-
if (input.Items
|
|
11816
|
+
if (input.Items != null) {
|
|
11817
11817
|
var nodes = serializeAws_restXmlCacheBehaviorList(input.Items, context);
|
|
11818
11818
|
var containerNode_7 = new __XmlNode("Items");
|
|
11819
11819
|
nodes.map(function (node) {
|
|
@@ -11825,11 +11825,11 @@ var serializeAws_restXmlCacheBehaviors = function (input, context) {
|
|
|
11825
11825
|
};
|
|
11826
11826
|
var serializeAws_restXmlCachedMethods = function (input, context) {
|
|
11827
11827
|
var bodyNode = new __XmlNode("CachedMethods");
|
|
11828
|
-
if (input.Quantity
|
|
11828
|
+
if (input.Quantity != null) {
|
|
11829
11829
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
11830
11830
|
bodyNode.addChildNode(node);
|
|
11831
11831
|
}
|
|
11832
|
-
if (input.Items
|
|
11832
|
+
if (input.Items != null) {
|
|
11833
11833
|
var nodes = serializeAws_restXmlMethodsList(input.Items, context);
|
|
11834
11834
|
var containerNode_8 = new __XmlNode("Items");
|
|
11835
11835
|
nodes.map(function (node) {
|
|
@@ -11841,28 +11841,27 @@ var serializeAws_restXmlCachedMethods = function (input, context) {
|
|
|
11841
11841
|
};
|
|
11842
11842
|
var serializeAws_restXmlCachePolicyConfig = function (input, context) {
|
|
11843
11843
|
var bodyNode = new __XmlNode("CachePolicyConfig");
|
|
11844
|
-
if (input.Comment
|
|
11844
|
+
if (input.Comment != null) {
|
|
11845
11845
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
11846
11846
|
bodyNode.addChildNode(node);
|
|
11847
11847
|
}
|
|
11848
|
-
if (input.Name
|
|
11848
|
+
if (input.Name != null) {
|
|
11849
11849
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Name)).withName("Name");
|
|
11850
11850
|
bodyNode.addChildNode(node);
|
|
11851
11851
|
}
|
|
11852
|
-
if (input.DefaultTTL
|
|
11852
|
+
if (input.DefaultTTL != null) {
|
|
11853
11853
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
11854
11854
|
bodyNode.addChildNode(node);
|
|
11855
11855
|
}
|
|
11856
|
-
if (input.MaxTTL
|
|
11856
|
+
if (input.MaxTTL != null) {
|
|
11857
11857
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
11858
11858
|
bodyNode.addChildNode(node);
|
|
11859
11859
|
}
|
|
11860
|
-
if (input.MinTTL
|
|
11860
|
+
if (input.MinTTL != null) {
|
|
11861
11861
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
11862
11862
|
bodyNode.addChildNode(node);
|
|
11863
11863
|
}
|
|
11864
|
-
if (input.ParametersInCacheKeyAndForwardedToOrigin
|
|
11865
|
-
input.ParametersInCacheKeyAndForwardedToOrigin !== null) {
|
|
11864
|
+
if (input.ParametersInCacheKeyAndForwardedToOrigin != null) {
|
|
11866
11865
|
var node = serializeAws_restXmlParametersInCacheKeyAndForwardedToOrigin(input.ParametersInCacheKeyAndForwardedToOrigin, context).withName("ParametersInCacheKeyAndForwardedToOrigin");
|
|
11867
11866
|
bodyNode.addChildNode(node);
|
|
11868
11867
|
}
|
|
@@ -11870,13 +11869,13 @@ var serializeAws_restXmlCachePolicyConfig = function (input, context) {
|
|
|
11870
11869
|
};
|
|
11871
11870
|
var serializeAws_restXmlCachePolicyCookiesConfig = function (input, context) {
|
|
11872
11871
|
var bodyNode = new __XmlNode("CachePolicyCookiesConfig");
|
|
11873
|
-
if (input.CookieBehavior
|
|
11872
|
+
if (input.CookieBehavior != null) {
|
|
11874
11873
|
var node = new __XmlNode("CachePolicyCookieBehavior")
|
|
11875
11874
|
.addChildNode(new __XmlText(input.CookieBehavior))
|
|
11876
11875
|
.withName("CookieBehavior");
|
|
11877
11876
|
bodyNode.addChildNode(node);
|
|
11878
11877
|
}
|
|
11879
|
-
if (input.Cookies
|
|
11878
|
+
if (input.Cookies != null) {
|
|
11880
11879
|
var node = serializeAws_restXmlCookieNames(input.Cookies, context).withName("Cookies");
|
|
11881
11880
|
bodyNode.addChildNode(node);
|
|
11882
11881
|
}
|
|
@@ -11884,13 +11883,13 @@ var serializeAws_restXmlCachePolicyCookiesConfig = function (input, context) {
|
|
|
11884
11883
|
};
|
|
11885
11884
|
var serializeAws_restXmlCachePolicyHeadersConfig = function (input, context) {
|
|
11886
11885
|
var bodyNode = new __XmlNode("CachePolicyHeadersConfig");
|
|
11887
|
-
if (input.HeaderBehavior
|
|
11886
|
+
if (input.HeaderBehavior != null) {
|
|
11888
11887
|
var node = new __XmlNode("CachePolicyHeaderBehavior")
|
|
11889
11888
|
.addChildNode(new __XmlText(input.HeaderBehavior))
|
|
11890
11889
|
.withName("HeaderBehavior");
|
|
11891
11890
|
bodyNode.addChildNode(node);
|
|
11892
11891
|
}
|
|
11893
|
-
if (input.Headers
|
|
11892
|
+
if (input.Headers != null) {
|
|
11894
11893
|
var node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
11895
11894
|
bodyNode.addChildNode(node);
|
|
11896
11895
|
}
|
|
@@ -11898,13 +11897,13 @@ var serializeAws_restXmlCachePolicyHeadersConfig = function (input, context) {
|
|
|
11898
11897
|
};
|
|
11899
11898
|
var serializeAws_restXmlCachePolicyQueryStringsConfig = function (input, context) {
|
|
11900
11899
|
var bodyNode = new __XmlNode("CachePolicyQueryStringsConfig");
|
|
11901
|
-
if (input.QueryStringBehavior
|
|
11900
|
+
if (input.QueryStringBehavior != null) {
|
|
11902
11901
|
var node = new __XmlNode("CachePolicyQueryStringBehavior")
|
|
11903
11902
|
.addChildNode(new __XmlText(input.QueryStringBehavior))
|
|
11904
11903
|
.withName("QueryStringBehavior");
|
|
11905
11904
|
bodyNode.addChildNode(node);
|
|
11906
11905
|
}
|
|
11907
|
-
if (input.QueryStrings
|
|
11906
|
+
if (input.QueryStrings != null) {
|
|
11908
11907
|
var node = serializeAws_restXmlQueryStringNames(input.QueryStrings, context).withName("QueryStrings");
|
|
11909
11908
|
bodyNode.addChildNode(node);
|
|
11910
11909
|
}
|
|
@@ -11912,11 +11911,11 @@ var serializeAws_restXmlCachePolicyQueryStringsConfig = function (input, context
|
|
|
11912
11911
|
};
|
|
11913
11912
|
var serializeAws_restXmlCloudFrontOriginAccessIdentityConfig = function (input, context) {
|
|
11914
11913
|
var bodyNode = new __XmlNode("CloudFrontOriginAccessIdentityConfig");
|
|
11915
|
-
if (input.CallerReference
|
|
11914
|
+
if (input.CallerReference != null) {
|
|
11916
11915
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CallerReference)).withName("CallerReference");
|
|
11917
11916
|
bodyNode.addChildNode(node);
|
|
11918
11917
|
}
|
|
11919
|
-
if (input.Comment
|
|
11918
|
+
if (input.Comment != null) {
|
|
11920
11919
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
11921
11920
|
bodyNode.addChildNode(node);
|
|
11922
11921
|
}
|
|
@@ -11924,15 +11923,15 @@ var serializeAws_restXmlCloudFrontOriginAccessIdentityConfig = function (input,
|
|
|
11924
11923
|
};
|
|
11925
11924
|
var serializeAws_restXmlContentTypeProfile = function (input, context) {
|
|
11926
11925
|
var bodyNode = new __XmlNode("ContentTypeProfile");
|
|
11927
|
-
if (input.Format
|
|
11926
|
+
if (input.Format != null) {
|
|
11928
11927
|
var node = new __XmlNode("Format").addChildNode(new __XmlText(input.Format)).withName("Format");
|
|
11929
11928
|
bodyNode.addChildNode(node);
|
|
11930
11929
|
}
|
|
11931
|
-
if (input.ProfileId
|
|
11930
|
+
if (input.ProfileId != null) {
|
|
11932
11931
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.ProfileId)).withName("ProfileId");
|
|
11933
11932
|
bodyNode.addChildNode(node);
|
|
11934
11933
|
}
|
|
11935
|
-
if (input.ContentType
|
|
11934
|
+
if (input.ContentType != null) {
|
|
11936
11935
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.ContentType)).withName("ContentType");
|
|
11937
11936
|
bodyNode.addChildNode(node);
|
|
11938
11937
|
}
|
|
@@ -11940,13 +11939,13 @@ var serializeAws_restXmlContentTypeProfile = function (input, context) {
|
|
|
11940
11939
|
};
|
|
11941
11940
|
var serializeAws_restXmlContentTypeProfileConfig = function (input, context) {
|
|
11942
11941
|
var bodyNode = new __XmlNode("ContentTypeProfileConfig");
|
|
11943
|
-
if (input.ForwardWhenContentTypeIsUnknown
|
|
11942
|
+
if (input.ForwardWhenContentTypeIsUnknown != null) {
|
|
11944
11943
|
var node = new __XmlNode("boolean")
|
|
11945
11944
|
.addChildNode(new __XmlText(String(input.ForwardWhenContentTypeIsUnknown)))
|
|
11946
11945
|
.withName("ForwardWhenContentTypeIsUnknown");
|
|
11947
11946
|
bodyNode.addChildNode(node);
|
|
11948
11947
|
}
|
|
11949
|
-
if (input.ContentTypeProfiles
|
|
11948
|
+
if (input.ContentTypeProfiles != null) {
|
|
11950
11949
|
var node = serializeAws_restXmlContentTypeProfiles(input.ContentTypeProfiles, context).withName("ContentTypeProfiles");
|
|
11951
11950
|
bodyNode.addChildNode(node);
|
|
11952
11951
|
}
|
|
@@ -11965,11 +11964,11 @@ var serializeAws_restXmlContentTypeProfileList = function (input, context) {
|
|
|
11965
11964
|
};
|
|
11966
11965
|
var serializeAws_restXmlContentTypeProfiles = function (input, context) {
|
|
11967
11966
|
var bodyNode = new __XmlNode("ContentTypeProfiles");
|
|
11968
|
-
if (input.Quantity
|
|
11967
|
+
if (input.Quantity != null) {
|
|
11969
11968
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
11970
11969
|
bodyNode.addChildNode(node);
|
|
11971
11970
|
}
|
|
11972
|
-
if (input.Items
|
|
11971
|
+
if (input.Items != null) {
|
|
11973
11972
|
var nodes = serializeAws_restXmlContentTypeProfileList(input.Items, context);
|
|
11974
11973
|
var containerNode_9 = new __XmlNode("Items");
|
|
11975
11974
|
nodes.map(function (node) {
|
|
@@ -11992,11 +11991,11 @@ var serializeAws_restXmlCookieNameList = function (input, context) {
|
|
|
11992
11991
|
};
|
|
11993
11992
|
var serializeAws_restXmlCookieNames = function (input, context) {
|
|
11994
11993
|
var bodyNode = new __XmlNode("CookieNames");
|
|
11995
|
-
if (input.Quantity
|
|
11994
|
+
if (input.Quantity != null) {
|
|
11996
11995
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
11997
11996
|
bodyNode.addChildNode(node);
|
|
11998
11997
|
}
|
|
11999
|
-
if (input.Items
|
|
11998
|
+
if (input.Items != null) {
|
|
12000
11999
|
var nodes = serializeAws_restXmlCookieNameList(input.Items, context);
|
|
12001
12000
|
var containerNode_10 = new __XmlNode("Items");
|
|
12002
12001
|
nodes.map(function (node) {
|
|
@@ -12008,11 +12007,11 @@ var serializeAws_restXmlCookieNames = function (input, context) {
|
|
|
12008
12007
|
};
|
|
12009
12008
|
var serializeAws_restXmlCookiePreference = function (input, context) {
|
|
12010
12009
|
var bodyNode = new __XmlNode("CookiePreference");
|
|
12011
|
-
if (input.Forward
|
|
12010
|
+
if (input.Forward != null) {
|
|
12012
12011
|
var node = new __XmlNode("ItemSelection").addChildNode(new __XmlText(input.Forward)).withName("Forward");
|
|
12013
12012
|
bodyNode.addChildNode(node);
|
|
12014
12013
|
}
|
|
12015
|
-
if (input.WhitelistedNames
|
|
12014
|
+
if (input.WhitelistedNames != null) {
|
|
12016
12015
|
var node = serializeAws_restXmlCookieNames(input.WhitelistedNames, context).withName("WhitelistedNames");
|
|
12017
12016
|
bodyNode.addChildNode(node);
|
|
12018
12017
|
}
|
|
@@ -12020,21 +12019,21 @@ var serializeAws_restXmlCookiePreference = function (input, context) {
|
|
|
12020
12019
|
};
|
|
12021
12020
|
var serializeAws_restXmlCustomErrorResponse = function (input, context) {
|
|
12022
12021
|
var bodyNode = new __XmlNode("CustomErrorResponse");
|
|
12023
|
-
if (input.ErrorCode
|
|
12022
|
+
if (input.ErrorCode != null) {
|
|
12024
12023
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.ErrorCode))).withName("ErrorCode");
|
|
12025
12024
|
bodyNode.addChildNode(node);
|
|
12026
12025
|
}
|
|
12027
|
-
if (input.ResponsePagePath
|
|
12026
|
+
if (input.ResponsePagePath != null) {
|
|
12028
12027
|
var node = new __XmlNode("string")
|
|
12029
12028
|
.addChildNode(new __XmlText(input.ResponsePagePath))
|
|
12030
12029
|
.withName("ResponsePagePath");
|
|
12031
12030
|
bodyNode.addChildNode(node);
|
|
12032
12031
|
}
|
|
12033
|
-
if (input.ResponseCode
|
|
12032
|
+
if (input.ResponseCode != null) {
|
|
12034
12033
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.ResponseCode)).withName("ResponseCode");
|
|
12035
12034
|
bodyNode.addChildNode(node);
|
|
12036
12035
|
}
|
|
12037
|
-
if (input.ErrorCachingMinTTL
|
|
12036
|
+
if (input.ErrorCachingMinTTL != null) {
|
|
12038
12037
|
var node = new __XmlNode("long")
|
|
12039
12038
|
.addChildNode(new __XmlText(String(input.ErrorCachingMinTTL)))
|
|
12040
12039
|
.withName("ErrorCachingMinTTL");
|
|
@@ -12055,11 +12054,11 @@ var serializeAws_restXmlCustomErrorResponseList = function (input, context) {
|
|
|
12055
12054
|
};
|
|
12056
12055
|
var serializeAws_restXmlCustomErrorResponses = function (input, context) {
|
|
12057
12056
|
var bodyNode = new __XmlNode("CustomErrorResponses");
|
|
12058
|
-
if (input.Quantity
|
|
12057
|
+
if (input.Quantity != null) {
|
|
12059
12058
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12060
12059
|
bodyNode.addChildNode(node);
|
|
12061
12060
|
}
|
|
12062
|
-
if (input.Items
|
|
12061
|
+
if (input.Items != null) {
|
|
12063
12062
|
var nodes = serializeAws_restXmlCustomErrorResponseList(input.Items, context);
|
|
12064
12063
|
var containerNode_11 = new __XmlNode("Items");
|
|
12065
12064
|
nodes.map(function (node) {
|
|
@@ -12071,11 +12070,11 @@ var serializeAws_restXmlCustomErrorResponses = function (input, context) {
|
|
|
12071
12070
|
};
|
|
12072
12071
|
var serializeAws_restXmlCustomHeaders = function (input, context) {
|
|
12073
12072
|
var bodyNode = new __XmlNode("CustomHeaders");
|
|
12074
|
-
if (input.Quantity
|
|
12073
|
+
if (input.Quantity != null) {
|
|
12075
12074
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12076
12075
|
bodyNode.addChildNode(node);
|
|
12077
12076
|
}
|
|
12078
|
-
if (input.Items
|
|
12077
|
+
if (input.Items != null) {
|
|
12079
12078
|
var nodes = serializeAws_restXmlOriginCustomHeadersList(input.Items, context);
|
|
12080
12079
|
var containerNode_12 = new __XmlNode("Items");
|
|
12081
12080
|
nodes.map(function (node) {
|
|
@@ -12087,31 +12086,31 @@ var serializeAws_restXmlCustomHeaders = function (input, context) {
|
|
|
12087
12086
|
};
|
|
12088
12087
|
var serializeAws_restXmlCustomOriginConfig = function (input, context) {
|
|
12089
12088
|
var bodyNode = new __XmlNode("CustomOriginConfig");
|
|
12090
|
-
if (input.HTTPPort
|
|
12089
|
+
if (input.HTTPPort != null) {
|
|
12091
12090
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.HTTPPort))).withName("HTTPPort");
|
|
12092
12091
|
bodyNode.addChildNode(node);
|
|
12093
12092
|
}
|
|
12094
|
-
if (input.HTTPSPort
|
|
12093
|
+
if (input.HTTPSPort != null) {
|
|
12095
12094
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.HTTPSPort))).withName("HTTPSPort");
|
|
12096
12095
|
bodyNode.addChildNode(node);
|
|
12097
12096
|
}
|
|
12098
|
-
if (input.OriginProtocolPolicy
|
|
12097
|
+
if (input.OriginProtocolPolicy != null) {
|
|
12099
12098
|
var node = new __XmlNode("OriginProtocolPolicy")
|
|
12100
12099
|
.addChildNode(new __XmlText(input.OriginProtocolPolicy))
|
|
12101
12100
|
.withName("OriginProtocolPolicy");
|
|
12102
12101
|
bodyNode.addChildNode(node);
|
|
12103
12102
|
}
|
|
12104
|
-
if (input.OriginSslProtocols
|
|
12103
|
+
if (input.OriginSslProtocols != null) {
|
|
12105
12104
|
var node = serializeAws_restXmlOriginSslProtocols(input.OriginSslProtocols, context).withName("OriginSslProtocols");
|
|
12106
12105
|
bodyNode.addChildNode(node);
|
|
12107
12106
|
}
|
|
12108
|
-
if (input.OriginReadTimeout
|
|
12107
|
+
if (input.OriginReadTimeout != null) {
|
|
12109
12108
|
var node = new __XmlNode("integer")
|
|
12110
12109
|
.addChildNode(new __XmlText(String(input.OriginReadTimeout)))
|
|
12111
12110
|
.withName("OriginReadTimeout");
|
|
12112
12111
|
bodyNode.addChildNode(node);
|
|
12113
12112
|
}
|
|
12114
|
-
if (input.OriginKeepaliveTimeout
|
|
12113
|
+
if (input.OriginKeepaliveTimeout != null) {
|
|
12115
12114
|
var node = new __XmlNode("integer")
|
|
12116
12115
|
.addChildNode(new __XmlText(String(input.OriginKeepaliveTimeout)))
|
|
12117
12116
|
.withName("OriginKeepaliveTimeout");
|
|
@@ -12121,87 +12120,87 @@ var serializeAws_restXmlCustomOriginConfig = function (input, context) {
|
|
|
12121
12120
|
};
|
|
12122
12121
|
var serializeAws_restXmlDefaultCacheBehavior = function (input, context) {
|
|
12123
12122
|
var bodyNode = new __XmlNode("DefaultCacheBehavior");
|
|
12124
|
-
if (input.TargetOriginId
|
|
12123
|
+
if (input.TargetOriginId != null) {
|
|
12125
12124
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.TargetOriginId)).withName("TargetOriginId");
|
|
12126
12125
|
bodyNode.addChildNode(node);
|
|
12127
12126
|
}
|
|
12128
|
-
if (input.TrustedSigners
|
|
12127
|
+
if (input.TrustedSigners != null) {
|
|
12129
12128
|
var node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
12130
12129
|
bodyNode.addChildNode(node);
|
|
12131
12130
|
}
|
|
12132
|
-
if (input.TrustedKeyGroups
|
|
12131
|
+
if (input.TrustedKeyGroups != null) {
|
|
12133
12132
|
var node = serializeAws_restXmlTrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups");
|
|
12134
12133
|
bodyNode.addChildNode(node);
|
|
12135
12134
|
}
|
|
12136
|
-
if (input.ViewerProtocolPolicy
|
|
12135
|
+
if (input.ViewerProtocolPolicy != null) {
|
|
12137
12136
|
var node = new __XmlNode("ViewerProtocolPolicy")
|
|
12138
12137
|
.addChildNode(new __XmlText(input.ViewerProtocolPolicy))
|
|
12139
12138
|
.withName("ViewerProtocolPolicy");
|
|
12140
12139
|
bodyNode.addChildNode(node);
|
|
12141
12140
|
}
|
|
12142
|
-
if (input.AllowedMethods
|
|
12141
|
+
if (input.AllowedMethods != null) {
|
|
12143
12142
|
var node = serializeAws_restXmlAllowedMethods(input.AllowedMethods, context).withName("AllowedMethods");
|
|
12144
12143
|
bodyNode.addChildNode(node);
|
|
12145
12144
|
}
|
|
12146
|
-
if (input.SmoothStreaming
|
|
12145
|
+
if (input.SmoothStreaming != null) {
|
|
12147
12146
|
var node = new __XmlNode("boolean")
|
|
12148
12147
|
.addChildNode(new __XmlText(String(input.SmoothStreaming)))
|
|
12149
12148
|
.withName("SmoothStreaming");
|
|
12150
12149
|
bodyNode.addChildNode(node);
|
|
12151
12150
|
}
|
|
12152
|
-
if (input.Compress
|
|
12151
|
+
if (input.Compress != null) {
|
|
12153
12152
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Compress))).withName("Compress");
|
|
12154
12153
|
bodyNode.addChildNode(node);
|
|
12155
12154
|
}
|
|
12156
|
-
if (input.LambdaFunctionAssociations
|
|
12155
|
+
if (input.LambdaFunctionAssociations != null) {
|
|
12157
12156
|
var node = serializeAws_restXmlLambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName("LambdaFunctionAssociations");
|
|
12158
12157
|
bodyNode.addChildNode(node);
|
|
12159
12158
|
}
|
|
12160
|
-
if (input.FunctionAssociations
|
|
12159
|
+
if (input.FunctionAssociations != null) {
|
|
12161
12160
|
var node = serializeAws_restXmlFunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations");
|
|
12162
12161
|
bodyNode.addChildNode(node);
|
|
12163
12162
|
}
|
|
12164
|
-
if (input.FieldLevelEncryptionId
|
|
12163
|
+
if (input.FieldLevelEncryptionId != null) {
|
|
12165
12164
|
var node = new __XmlNode("string")
|
|
12166
12165
|
.addChildNode(new __XmlText(input.FieldLevelEncryptionId))
|
|
12167
12166
|
.withName("FieldLevelEncryptionId");
|
|
12168
12167
|
bodyNode.addChildNode(node);
|
|
12169
12168
|
}
|
|
12170
|
-
if (input.RealtimeLogConfigArn
|
|
12169
|
+
if (input.RealtimeLogConfigArn != null) {
|
|
12171
12170
|
var node = new __XmlNode("string")
|
|
12172
12171
|
.addChildNode(new __XmlText(input.RealtimeLogConfigArn))
|
|
12173
12172
|
.withName("RealtimeLogConfigArn");
|
|
12174
12173
|
bodyNode.addChildNode(node);
|
|
12175
12174
|
}
|
|
12176
|
-
if (input.CachePolicyId
|
|
12175
|
+
if (input.CachePolicyId != null) {
|
|
12177
12176
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CachePolicyId)).withName("CachePolicyId");
|
|
12178
12177
|
bodyNode.addChildNode(node);
|
|
12179
12178
|
}
|
|
12180
|
-
if (input.OriginRequestPolicyId
|
|
12179
|
+
if (input.OriginRequestPolicyId != null) {
|
|
12181
12180
|
var node = new __XmlNode("string")
|
|
12182
12181
|
.addChildNode(new __XmlText(input.OriginRequestPolicyId))
|
|
12183
12182
|
.withName("OriginRequestPolicyId");
|
|
12184
12183
|
bodyNode.addChildNode(node);
|
|
12185
12184
|
}
|
|
12186
|
-
if (input.ResponseHeadersPolicyId
|
|
12185
|
+
if (input.ResponseHeadersPolicyId != null) {
|
|
12187
12186
|
var node = new __XmlNode("string")
|
|
12188
12187
|
.addChildNode(new __XmlText(input.ResponseHeadersPolicyId))
|
|
12189
12188
|
.withName("ResponseHeadersPolicyId");
|
|
12190
12189
|
bodyNode.addChildNode(node);
|
|
12191
12190
|
}
|
|
12192
|
-
if (input.ForwardedValues
|
|
12191
|
+
if (input.ForwardedValues != null) {
|
|
12193
12192
|
var node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
12194
12193
|
bodyNode.addChildNode(node);
|
|
12195
12194
|
}
|
|
12196
|
-
if (input.MinTTL
|
|
12195
|
+
if (input.MinTTL != null) {
|
|
12197
12196
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
12198
12197
|
bodyNode.addChildNode(node);
|
|
12199
12198
|
}
|
|
12200
|
-
if (input.DefaultTTL
|
|
12199
|
+
if (input.DefaultTTL != null) {
|
|
12201
12200
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
12202
12201
|
bodyNode.addChildNode(node);
|
|
12203
12202
|
}
|
|
12204
|
-
if (input.MaxTTL
|
|
12203
|
+
if (input.MaxTTL != null) {
|
|
12205
12204
|
var node = new __XmlNode("long").addChildNode(new __XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
12206
12205
|
bodyNode.addChildNode(node);
|
|
12207
12206
|
}
|
|
@@ -12209,73 +12208,73 @@ var serializeAws_restXmlDefaultCacheBehavior = function (input, context) {
|
|
|
12209
12208
|
};
|
|
12210
12209
|
var serializeAws_restXmlDistributionConfig = function (input, context) {
|
|
12211
12210
|
var bodyNode = new __XmlNode("DistributionConfig");
|
|
12212
|
-
if (input.CallerReference
|
|
12211
|
+
if (input.CallerReference != null) {
|
|
12213
12212
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CallerReference)).withName("CallerReference");
|
|
12214
12213
|
bodyNode.addChildNode(node);
|
|
12215
12214
|
}
|
|
12216
|
-
if (input.Aliases
|
|
12215
|
+
if (input.Aliases != null) {
|
|
12217
12216
|
var node = serializeAws_restXmlAliases(input.Aliases, context).withName("Aliases");
|
|
12218
12217
|
bodyNode.addChildNode(node);
|
|
12219
12218
|
}
|
|
12220
|
-
if (input.DefaultRootObject
|
|
12219
|
+
if (input.DefaultRootObject != null) {
|
|
12221
12220
|
var node = new __XmlNode("string")
|
|
12222
12221
|
.addChildNode(new __XmlText(input.DefaultRootObject))
|
|
12223
12222
|
.withName("DefaultRootObject");
|
|
12224
12223
|
bodyNode.addChildNode(node);
|
|
12225
12224
|
}
|
|
12226
|
-
if (input.Origins
|
|
12225
|
+
if (input.Origins != null) {
|
|
12227
12226
|
var node = serializeAws_restXmlOrigins(input.Origins, context).withName("Origins");
|
|
12228
12227
|
bodyNode.addChildNode(node);
|
|
12229
12228
|
}
|
|
12230
|
-
if (input.OriginGroups
|
|
12229
|
+
if (input.OriginGroups != null) {
|
|
12231
12230
|
var node = serializeAws_restXmlOriginGroups(input.OriginGroups, context).withName("OriginGroups");
|
|
12232
12231
|
bodyNode.addChildNode(node);
|
|
12233
12232
|
}
|
|
12234
|
-
if (input.DefaultCacheBehavior
|
|
12233
|
+
if (input.DefaultCacheBehavior != null) {
|
|
12235
12234
|
var node = serializeAws_restXmlDefaultCacheBehavior(input.DefaultCacheBehavior, context).withName("DefaultCacheBehavior");
|
|
12236
12235
|
bodyNode.addChildNode(node);
|
|
12237
12236
|
}
|
|
12238
|
-
if (input.CacheBehaviors
|
|
12237
|
+
if (input.CacheBehaviors != null) {
|
|
12239
12238
|
var node = serializeAws_restXmlCacheBehaviors(input.CacheBehaviors, context).withName("CacheBehaviors");
|
|
12240
12239
|
bodyNode.addChildNode(node);
|
|
12241
12240
|
}
|
|
12242
|
-
if (input.CustomErrorResponses
|
|
12241
|
+
if (input.CustomErrorResponses != null) {
|
|
12243
12242
|
var node = serializeAws_restXmlCustomErrorResponses(input.CustomErrorResponses, context).withName("CustomErrorResponses");
|
|
12244
12243
|
bodyNode.addChildNode(node);
|
|
12245
12244
|
}
|
|
12246
|
-
if (input.Comment
|
|
12245
|
+
if (input.Comment != null) {
|
|
12247
12246
|
var node = new __XmlNode("CommentType").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
12248
12247
|
bodyNode.addChildNode(node);
|
|
12249
12248
|
}
|
|
12250
|
-
if (input.Logging
|
|
12249
|
+
if (input.Logging != null) {
|
|
12251
12250
|
var node = serializeAws_restXmlLoggingConfig(input.Logging, context).withName("Logging");
|
|
12252
12251
|
bodyNode.addChildNode(node);
|
|
12253
12252
|
}
|
|
12254
|
-
if (input.PriceClass
|
|
12253
|
+
if (input.PriceClass != null) {
|
|
12255
12254
|
var node = new __XmlNode("PriceClass").addChildNode(new __XmlText(input.PriceClass)).withName("PriceClass");
|
|
12256
12255
|
bodyNode.addChildNode(node);
|
|
12257
12256
|
}
|
|
12258
|
-
if (input.Enabled
|
|
12257
|
+
if (input.Enabled != null) {
|
|
12259
12258
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
12260
12259
|
bodyNode.addChildNode(node);
|
|
12261
12260
|
}
|
|
12262
|
-
if (input.ViewerCertificate
|
|
12261
|
+
if (input.ViewerCertificate != null) {
|
|
12263
12262
|
var node = serializeAws_restXmlViewerCertificate(input.ViewerCertificate, context).withName("ViewerCertificate");
|
|
12264
12263
|
bodyNode.addChildNode(node);
|
|
12265
12264
|
}
|
|
12266
|
-
if (input.Restrictions
|
|
12265
|
+
if (input.Restrictions != null) {
|
|
12267
12266
|
var node = serializeAws_restXmlRestrictions(input.Restrictions, context).withName("Restrictions");
|
|
12268
12267
|
bodyNode.addChildNode(node);
|
|
12269
12268
|
}
|
|
12270
|
-
if (input.WebACLId
|
|
12269
|
+
if (input.WebACLId != null) {
|
|
12271
12270
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.WebACLId)).withName("WebACLId");
|
|
12272
12271
|
bodyNode.addChildNode(node);
|
|
12273
12272
|
}
|
|
12274
|
-
if (input.HttpVersion
|
|
12273
|
+
if (input.HttpVersion != null) {
|
|
12275
12274
|
var node = new __XmlNode("HttpVersion").addChildNode(new __XmlText(input.HttpVersion)).withName("HttpVersion");
|
|
12276
12275
|
bodyNode.addChildNode(node);
|
|
12277
12276
|
}
|
|
12278
|
-
if (input.IsIPV6Enabled
|
|
12277
|
+
if (input.IsIPV6Enabled != null) {
|
|
12279
12278
|
var node = new __XmlNode("boolean")
|
|
12280
12279
|
.addChildNode(new __XmlText(String(input.IsIPV6Enabled)))
|
|
12281
12280
|
.withName("IsIPV6Enabled");
|
|
@@ -12285,11 +12284,11 @@ var serializeAws_restXmlDistributionConfig = function (input, context) {
|
|
|
12285
12284
|
};
|
|
12286
12285
|
var serializeAws_restXmlDistributionConfigWithTags = function (input, context) {
|
|
12287
12286
|
var bodyNode = new __XmlNode("DistributionConfigWithTags");
|
|
12288
|
-
if (input.DistributionConfig
|
|
12287
|
+
if (input.DistributionConfig != null) {
|
|
12289
12288
|
var node = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context).withName("DistributionConfig");
|
|
12290
12289
|
bodyNode.addChildNode(node);
|
|
12291
12290
|
}
|
|
12292
|
-
if (input.Tags
|
|
12291
|
+
if (input.Tags != null) {
|
|
12293
12292
|
var node = serializeAws_restXmlTags(input.Tags, context).withName("Tags");
|
|
12294
12293
|
bodyNode.addChildNode(node);
|
|
12295
12294
|
}
|
|
@@ -12297,11 +12296,11 @@ var serializeAws_restXmlDistributionConfigWithTags = function (input, context) {
|
|
|
12297
12296
|
};
|
|
12298
12297
|
var serializeAws_restXmlEncryptionEntities = function (input, context) {
|
|
12299
12298
|
var bodyNode = new __XmlNode("EncryptionEntities");
|
|
12300
|
-
if (input.Quantity
|
|
12299
|
+
if (input.Quantity != null) {
|
|
12301
12300
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12302
12301
|
bodyNode.addChildNode(node);
|
|
12303
12302
|
}
|
|
12304
|
-
if (input.Items
|
|
12303
|
+
if (input.Items != null) {
|
|
12305
12304
|
var nodes = serializeAws_restXmlEncryptionEntityList(input.Items, context);
|
|
12306
12305
|
var containerNode_13 = new __XmlNode("Items");
|
|
12307
12306
|
nodes.map(function (node) {
|
|
@@ -12313,15 +12312,15 @@ var serializeAws_restXmlEncryptionEntities = function (input, context) {
|
|
|
12313
12312
|
};
|
|
12314
12313
|
var serializeAws_restXmlEncryptionEntity = function (input, context) {
|
|
12315
12314
|
var bodyNode = new __XmlNode("EncryptionEntity");
|
|
12316
|
-
if (input.PublicKeyId
|
|
12315
|
+
if (input.PublicKeyId != null) {
|
|
12317
12316
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.PublicKeyId)).withName("PublicKeyId");
|
|
12318
12317
|
bodyNode.addChildNode(node);
|
|
12319
12318
|
}
|
|
12320
|
-
if (input.ProviderId
|
|
12319
|
+
if (input.ProviderId != null) {
|
|
12321
12320
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.ProviderId)).withName("ProviderId");
|
|
12322
12321
|
bodyNode.addChildNode(node);
|
|
12323
12322
|
}
|
|
12324
|
-
if (input.FieldPatterns
|
|
12323
|
+
if (input.FieldPatterns != null) {
|
|
12325
12324
|
var node = serializeAws_restXmlFieldPatterns(input.FieldPatterns, context).withName("FieldPatterns");
|
|
12326
12325
|
bodyNode.addChildNode(node);
|
|
12327
12326
|
}
|
|
@@ -12340,11 +12339,11 @@ var serializeAws_restXmlEncryptionEntityList = function (input, context) {
|
|
|
12340
12339
|
};
|
|
12341
12340
|
var serializeAws_restXmlEndPoint = function (input, context) {
|
|
12342
12341
|
var bodyNode = new __XmlNode("EndPoint");
|
|
12343
|
-
if (input.StreamType
|
|
12342
|
+
if (input.StreamType != null) {
|
|
12344
12343
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.StreamType)).withName("StreamType");
|
|
12345
12344
|
bodyNode.addChildNode(node);
|
|
12346
12345
|
}
|
|
12347
|
-
if (input.KinesisStreamConfig
|
|
12346
|
+
if (input.KinesisStreamConfig != null) {
|
|
12348
12347
|
var node = serializeAws_restXmlKinesisStreamConfig(input.KinesisStreamConfig, context).withName("KinesisStreamConfig");
|
|
12349
12348
|
bodyNode.addChildNode(node);
|
|
12350
12349
|
}
|
|
@@ -12363,19 +12362,19 @@ var serializeAws_restXmlEndPointList = function (input, context) {
|
|
|
12363
12362
|
};
|
|
12364
12363
|
var serializeAws_restXmlFieldLevelEncryptionConfig = function (input, context) {
|
|
12365
12364
|
var bodyNode = new __XmlNode("FieldLevelEncryptionConfig");
|
|
12366
|
-
if (input.CallerReference
|
|
12365
|
+
if (input.CallerReference != null) {
|
|
12367
12366
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CallerReference)).withName("CallerReference");
|
|
12368
12367
|
bodyNode.addChildNode(node);
|
|
12369
12368
|
}
|
|
12370
|
-
if (input.Comment
|
|
12369
|
+
if (input.Comment != null) {
|
|
12371
12370
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
12372
12371
|
bodyNode.addChildNode(node);
|
|
12373
12372
|
}
|
|
12374
|
-
if (input.QueryArgProfileConfig
|
|
12373
|
+
if (input.QueryArgProfileConfig != null) {
|
|
12375
12374
|
var node = serializeAws_restXmlQueryArgProfileConfig(input.QueryArgProfileConfig, context).withName("QueryArgProfileConfig");
|
|
12376
12375
|
bodyNode.addChildNode(node);
|
|
12377
12376
|
}
|
|
12378
|
-
if (input.ContentTypeProfileConfig
|
|
12377
|
+
if (input.ContentTypeProfileConfig != null) {
|
|
12379
12378
|
var node = serializeAws_restXmlContentTypeProfileConfig(input.ContentTypeProfileConfig, context).withName("ContentTypeProfileConfig");
|
|
12380
12379
|
bodyNode.addChildNode(node);
|
|
12381
12380
|
}
|
|
@@ -12383,19 +12382,19 @@ var serializeAws_restXmlFieldLevelEncryptionConfig = function (input, context) {
|
|
|
12383
12382
|
};
|
|
12384
12383
|
var serializeAws_restXmlFieldLevelEncryptionProfileConfig = function (input, context) {
|
|
12385
12384
|
var bodyNode = new __XmlNode("FieldLevelEncryptionProfileConfig");
|
|
12386
|
-
if (input.Name
|
|
12385
|
+
if (input.Name != null) {
|
|
12387
12386
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Name)).withName("Name");
|
|
12388
12387
|
bodyNode.addChildNode(node);
|
|
12389
12388
|
}
|
|
12390
|
-
if (input.CallerReference
|
|
12389
|
+
if (input.CallerReference != null) {
|
|
12391
12390
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CallerReference)).withName("CallerReference");
|
|
12392
12391
|
bodyNode.addChildNode(node);
|
|
12393
12392
|
}
|
|
12394
|
-
if (input.Comment
|
|
12393
|
+
if (input.Comment != null) {
|
|
12395
12394
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
12396
12395
|
bodyNode.addChildNode(node);
|
|
12397
12396
|
}
|
|
12398
|
-
if (input.EncryptionEntities
|
|
12397
|
+
if (input.EncryptionEntities != null) {
|
|
12399
12398
|
var node = serializeAws_restXmlEncryptionEntities(input.EncryptionEntities, context).withName("EncryptionEntities");
|
|
12400
12399
|
bodyNode.addChildNode(node);
|
|
12401
12400
|
}
|
|
@@ -12425,11 +12424,11 @@ var serializeAws_restXmlFieldPatternList = function (input, context) {
|
|
|
12425
12424
|
};
|
|
12426
12425
|
var serializeAws_restXmlFieldPatterns = function (input, context) {
|
|
12427
12426
|
var bodyNode = new __XmlNode("FieldPatterns");
|
|
12428
|
-
if (input.Quantity
|
|
12427
|
+
if (input.Quantity != null) {
|
|
12429
12428
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12430
12429
|
bodyNode.addChildNode(node);
|
|
12431
12430
|
}
|
|
12432
|
-
if (input.Items
|
|
12431
|
+
if (input.Items != null) {
|
|
12433
12432
|
var nodes = serializeAws_restXmlFieldPatternList(input.Items, context);
|
|
12434
12433
|
var containerNode_14 = new __XmlNode("Items");
|
|
12435
12434
|
nodes.map(function (node) {
|
|
@@ -12441,21 +12440,21 @@ var serializeAws_restXmlFieldPatterns = function (input, context) {
|
|
|
12441
12440
|
};
|
|
12442
12441
|
var serializeAws_restXmlForwardedValues = function (input, context) {
|
|
12443
12442
|
var bodyNode = new __XmlNode("ForwardedValues");
|
|
12444
|
-
if (input.QueryString
|
|
12443
|
+
if (input.QueryString != null) {
|
|
12445
12444
|
var node = new __XmlNode("boolean")
|
|
12446
12445
|
.addChildNode(new __XmlText(String(input.QueryString)))
|
|
12447
12446
|
.withName("QueryString");
|
|
12448
12447
|
bodyNode.addChildNode(node);
|
|
12449
12448
|
}
|
|
12450
|
-
if (input.Cookies
|
|
12449
|
+
if (input.Cookies != null) {
|
|
12451
12450
|
var node = serializeAws_restXmlCookiePreference(input.Cookies, context).withName("Cookies");
|
|
12452
12451
|
bodyNode.addChildNode(node);
|
|
12453
12452
|
}
|
|
12454
|
-
if (input.Headers
|
|
12453
|
+
if (input.Headers != null) {
|
|
12455
12454
|
var node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
12456
12455
|
bodyNode.addChildNode(node);
|
|
12457
12456
|
}
|
|
12458
|
-
if (input.QueryStringCacheKeys
|
|
12457
|
+
if (input.QueryStringCacheKeys != null) {
|
|
12459
12458
|
var node = serializeAws_restXmlQueryStringCacheKeys(input.QueryStringCacheKeys, context).withName("QueryStringCacheKeys");
|
|
12460
12459
|
bodyNode.addChildNode(node);
|
|
12461
12460
|
}
|
|
@@ -12463,11 +12462,11 @@ var serializeAws_restXmlForwardedValues = function (input, context) {
|
|
|
12463
12462
|
};
|
|
12464
12463
|
var serializeAws_restXmlFunctionAssociation = function (input, context) {
|
|
12465
12464
|
var bodyNode = new __XmlNode("FunctionAssociation");
|
|
12466
|
-
if (input.FunctionARN
|
|
12465
|
+
if (input.FunctionARN != null) {
|
|
12467
12466
|
var node = new __XmlNode("FunctionARN").addChildNode(new __XmlText(input.FunctionARN)).withName("FunctionARN");
|
|
12468
12467
|
bodyNode.addChildNode(node);
|
|
12469
12468
|
}
|
|
12470
|
-
if (input.EventType
|
|
12469
|
+
if (input.EventType != null) {
|
|
12471
12470
|
var node = new __XmlNode("EventType").addChildNode(new __XmlText(input.EventType)).withName("EventType");
|
|
12472
12471
|
bodyNode.addChildNode(node);
|
|
12473
12472
|
}
|
|
@@ -12486,11 +12485,11 @@ var serializeAws_restXmlFunctionAssociationList = function (input, context) {
|
|
|
12486
12485
|
};
|
|
12487
12486
|
var serializeAws_restXmlFunctionAssociations = function (input, context) {
|
|
12488
12487
|
var bodyNode = new __XmlNode("FunctionAssociations");
|
|
12489
|
-
if (input.Quantity
|
|
12488
|
+
if (input.Quantity != null) {
|
|
12490
12489
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12491
12490
|
bodyNode.addChildNode(node);
|
|
12492
12491
|
}
|
|
12493
|
-
if (input.Items
|
|
12492
|
+
if (input.Items != null) {
|
|
12494
12493
|
var nodes = serializeAws_restXmlFunctionAssociationList(input.Items, context);
|
|
12495
12494
|
var containerNode_15 = new __XmlNode("Items");
|
|
12496
12495
|
nodes.map(function (node) {
|
|
@@ -12502,11 +12501,11 @@ var serializeAws_restXmlFunctionAssociations = function (input, context) {
|
|
|
12502
12501
|
};
|
|
12503
12502
|
var serializeAws_restXmlFunctionConfig = function (input, context) {
|
|
12504
12503
|
var bodyNode = new __XmlNode("FunctionConfig");
|
|
12505
|
-
if (input.Comment
|
|
12504
|
+
if (input.Comment != null) {
|
|
12506
12505
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
12507
12506
|
bodyNode.addChildNode(node);
|
|
12508
12507
|
}
|
|
12509
|
-
if (input.Runtime
|
|
12508
|
+
if (input.Runtime != null) {
|
|
12510
12509
|
var node = new __XmlNode("FunctionRuntime").addChildNode(new __XmlText(input.Runtime)).withName("Runtime");
|
|
12511
12510
|
bodyNode.addChildNode(node);
|
|
12512
12511
|
}
|
|
@@ -12514,17 +12513,17 @@ var serializeAws_restXmlFunctionConfig = function (input, context) {
|
|
|
12514
12513
|
};
|
|
12515
12514
|
var serializeAws_restXmlGeoRestriction = function (input, context) {
|
|
12516
12515
|
var bodyNode = new __XmlNode("GeoRestriction");
|
|
12517
|
-
if (input.RestrictionType
|
|
12516
|
+
if (input.RestrictionType != null) {
|
|
12518
12517
|
var node = new __XmlNode("GeoRestrictionType")
|
|
12519
12518
|
.addChildNode(new __XmlText(input.RestrictionType))
|
|
12520
12519
|
.withName("RestrictionType");
|
|
12521
12520
|
bodyNode.addChildNode(node);
|
|
12522
12521
|
}
|
|
12523
|
-
if (input.Quantity
|
|
12522
|
+
if (input.Quantity != null) {
|
|
12524
12523
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12525
12524
|
bodyNode.addChildNode(node);
|
|
12526
12525
|
}
|
|
12527
|
-
if (input.Items
|
|
12526
|
+
if (input.Items != null) {
|
|
12528
12527
|
var nodes = serializeAws_restXmlLocationList(input.Items, context);
|
|
12529
12528
|
var containerNode_16 = new __XmlNode("Items");
|
|
12530
12529
|
nodes.map(function (node) {
|
|
@@ -12547,11 +12546,11 @@ var serializeAws_restXmlHeaderList = function (input, context) {
|
|
|
12547
12546
|
};
|
|
12548
12547
|
var serializeAws_restXmlHeaders = function (input, context) {
|
|
12549
12548
|
var bodyNode = new __XmlNode("Headers");
|
|
12550
|
-
if (input.Quantity
|
|
12549
|
+
if (input.Quantity != null) {
|
|
12551
12550
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12552
12551
|
bodyNode.addChildNode(node);
|
|
12553
12552
|
}
|
|
12554
|
-
if (input.Items
|
|
12553
|
+
if (input.Items != null) {
|
|
12555
12554
|
var nodes = serializeAws_restXmlHeaderList(input.Items, context);
|
|
12556
12555
|
var containerNode_17 = new __XmlNode("Items");
|
|
12557
12556
|
nodes.map(function (node) {
|
|
@@ -12563,11 +12562,11 @@ var serializeAws_restXmlHeaders = function (input, context) {
|
|
|
12563
12562
|
};
|
|
12564
12563
|
var serializeAws_restXmlInvalidationBatch = function (input, context) {
|
|
12565
12564
|
var bodyNode = new __XmlNode("InvalidationBatch");
|
|
12566
|
-
if (input.Paths
|
|
12565
|
+
if (input.Paths != null) {
|
|
12567
12566
|
var node = serializeAws_restXmlPaths(input.Paths, context).withName("Paths");
|
|
12568
12567
|
bodyNode.addChildNode(node);
|
|
12569
12568
|
}
|
|
12570
|
-
if (input.CallerReference
|
|
12569
|
+
if (input.CallerReference != null) {
|
|
12571
12570
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CallerReference)).withName("CallerReference");
|
|
12572
12571
|
bodyNode.addChildNode(node);
|
|
12573
12572
|
}
|
|
@@ -12575,11 +12574,11 @@ var serializeAws_restXmlInvalidationBatch = function (input, context) {
|
|
|
12575
12574
|
};
|
|
12576
12575
|
var serializeAws_restXmlKeyGroupConfig = function (input, context) {
|
|
12577
12576
|
var bodyNode = new __XmlNode("KeyGroupConfig");
|
|
12578
|
-
if (input.Name
|
|
12577
|
+
if (input.Name != null) {
|
|
12579
12578
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Name)).withName("Name");
|
|
12580
12579
|
bodyNode.addChildNode(node);
|
|
12581
12580
|
}
|
|
12582
|
-
if (input.Items
|
|
12581
|
+
if (input.Items != null) {
|
|
12583
12582
|
var nodes = serializeAws_restXmlPublicKeyIdList(input.Items, context);
|
|
12584
12583
|
var containerNode_18 = new __XmlNode("Items");
|
|
12585
12584
|
nodes.map(function (node) {
|
|
@@ -12587,7 +12586,7 @@ var serializeAws_restXmlKeyGroupConfig = function (input, context) {
|
|
|
12587
12586
|
});
|
|
12588
12587
|
bodyNode.addChildNode(containerNode_18);
|
|
12589
12588
|
}
|
|
12590
|
-
if (input.Comment
|
|
12589
|
+
if (input.Comment != null) {
|
|
12591
12590
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
12592
12591
|
bodyNode.addChildNode(node);
|
|
12593
12592
|
}
|
|
@@ -12595,11 +12594,11 @@ var serializeAws_restXmlKeyGroupConfig = function (input, context) {
|
|
|
12595
12594
|
};
|
|
12596
12595
|
var serializeAws_restXmlKinesisStreamConfig = function (input, context) {
|
|
12597
12596
|
var bodyNode = new __XmlNode("KinesisStreamConfig");
|
|
12598
|
-
if (input.RoleARN
|
|
12597
|
+
if (input.RoleARN != null) {
|
|
12599
12598
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.RoleARN)).withName("RoleARN");
|
|
12600
12599
|
bodyNode.addChildNode(node);
|
|
12601
12600
|
}
|
|
12602
|
-
if (input.StreamARN
|
|
12601
|
+
if (input.StreamARN != null) {
|
|
12603
12602
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.StreamARN)).withName("StreamARN");
|
|
12604
12603
|
bodyNode.addChildNode(node);
|
|
12605
12604
|
}
|
|
@@ -12607,17 +12606,17 @@ var serializeAws_restXmlKinesisStreamConfig = function (input, context) {
|
|
|
12607
12606
|
};
|
|
12608
12607
|
var serializeAws_restXmlLambdaFunctionAssociation = function (input, context) {
|
|
12609
12608
|
var bodyNode = new __XmlNode("LambdaFunctionAssociation");
|
|
12610
|
-
if (input.LambdaFunctionARN
|
|
12609
|
+
if (input.LambdaFunctionARN != null) {
|
|
12611
12610
|
var node = new __XmlNode("LambdaFunctionARN")
|
|
12612
12611
|
.addChildNode(new __XmlText(input.LambdaFunctionARN))
|
|
12613
12612
|
.withName("LambdaFunctionARN");
|
|
12614
12613
|
bodyNode.addChildNode(node);
|
|
12615
12614
|
}
|
|
12616
|
-
if (input.EventType
|
|
12615
|
+
if (input.EventType != null) {
|
|
12617
12616
|
var node = new __XmlNode("EventType").addChildNode(new __XmlText(input.EventType)).withName("EventType");
|
|
12618
12617
|
bodyNode.addChildNode(node);
|
|
12619
12618
|
}
|
|
12620
|
-
if (input.IncludeBody
|
|
12619
|
+
if (input.IncludeBody != null) {
|
|
12621
12620
|
var node = new __XmlNode("boolean")
|
|
12622
12621
|
.addChildNode(new __XmlText(String(input.IncludeBody)))
|
|
12623
12622
|
.withName("IncludeBody");
|
|
@@ -12638,11 +12637,11 @@ var serializeAws_restXmlLambdaFunctionAssociationList = function (input, context
|
|
|
12638
12637
|
};
|
|
12639
12638
|
var serializeAws_restXmlLambdaFunctionAssociations = function (input, context) {
|
|
12640
12639
|
var bodyNode = new __XmlNode("LambdaFunctionAssociations");
|
|
12641
|
-
if (input.Quantity
|
|
12640
|
+
if (input.Quantity != null) {
|
|
12642
12641
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12643
12642
|
bodyNode.addChildNode(node);
|
|
12644
12643
|
}
|
|
12645
|
-
if (input.Items
|
|
12644
|
+
if (input.Items != null) {
|
|
12646
12645
|
var nodes = serializeAws_restXmlLambdaFunctionAssociationList(input.Items, context);
|
|
12647
12646
|
var containerNode_19 = new __XmlNode("Items");
|
|
12648
12647
|
nodes.map(function (node) {
|
|
@@ -12665,21 +12664,21 @@ var serializeAws_restXmlLocationList = function (input, context) {
|
|
|
12665
12664
|
};
|
|
12666
12665
|
var serializeAws_restXmlLoggingConfig = function (input, context) {
|
|
12667
12666
|
var bodyNode = new __XmlNode("LoggingConfig");
|
|
12668
|
-
if (input.Enabled
|
|
12667
|
+
if (input.Enabled != null) {
|
|
12669
12668
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
12670
12669
|
bodyNode.addChildNode(node);
|
|
12671
12670
|
}
|
|
12672
|
-
if (input.IncludeCookies
|
|
12671
|
+
if (input.IncludeCookies != null) {
|
|
12673
12672
|
var node = new __XmlNode("boolean")
|
|
12674
12673
|
.addChildNode(new __XmlText(String(input.IncludeCookies)))
|
|
12675
12674
|
.withName("IncludeCookies");
|
|
12676
12675
|
bodyNode.addChildNode(node);
|
|
12677
12676
|
}
|
|
12678
|
-
if (input.Bucket
|
|
12677
|
+
if (input.Bucket != null) {
|
|
12679
12678
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Bucket)).withName("Bucket");
|
|
12680
12679
|
bodyNode.addChildNode(node);
|
|
12681
12680
|
}
|
|
12682
|
-
if (input.Prefix
|
|
12681
|
+
if (input.Prefix != null) {
|
|
12683
12682
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Prefix)).withName("Prefix");
|
|
12684
12683
|
bodyNode.addChildNode(node);
|
|
12685
12684
|
}
|
|
@@ -12698,7 +12697,7 @@ var serializeAws_restXmlMethodsList = function (input, context) {
|
|
|
12698
12697
|
};
|
|
12699
12698
|
var serializeAws_restXmlMonitoringSubscription = function (input, context) {
|
|
12700
12699
|
var bodyNode = new __XmlNode("MonitoringSubscription");
|
|
12701
|
-
if (input.RealtimeMetricsSubscriptionConfig
|
|
12700
|
+
if (input.RealtimeMetricsSubscriptionConfig != null) {
|
|
12702
12701
|
var node = serializeAws_restXmlRealtimeMetricsSubscriptionConfig(input.RealtimeMetricsSubscriptionConfig, context).withName("RealtimeMetricsSubscriptionConfig");
|
|
12703
12702
|
bodyNode.addChildNode(node);
|
|
12704
12703
|
}
|
|
@@ -12706,43 +12705,43 @@ var serializeAws_restXmlMonitoringSubscription = function (input, context) {
|
|
|
12706
12705
|
};
|
|
12707
12706
|
var serializeAws_restXmlOrigin = function (input, context) {
|
|
12708
12707
|
var bodyNode = new __XmlNode("Origin");
|
|
12709
|
-
if (input.Id
|
|
12708
|
+
if (input.Id != null) {
|
|
12710
12709
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Id)).withName("Id");
|
|
12711
12710
|
bodyNode.addChildNode(node);
|
|
12712
12711
|
}
|
|
12713
|
-
if (input.DomainName
|
|
12712
|
+
if (input.DomainName != null) {
|
|
12714
12713
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.DomainName)).withName("DomainName");
|
|
12715
12714
|
bodyNode.addChildNode(node);
|
|
12716
12715
|
}
|
|
12717
|
-
if (input.OriginPath
|
|
12716
|
+
if (input.OriginPath != null) {
|
|
12718
12717
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.OriginPath)).withName("OriginPath");
|
|
12719
12718
|
bodyNode.addChildNode(node);
|
|
12720
12719
|
}
|
|
12721
|
-
if (input.CustomHeaders
|
|
12720
|
+
if (input.CustomHeaders != null) {
|
|
12722
12721
|
var node = serializeAws_restXmlCustomHeaders(input.CustomHeaders, context).withName("CustomHeaders");
|
|
12723
12722
|
bodyNode.addChildNode(node);
|
|
12724
12723
|
}
|
|
12725
|
-
if (input.S3OriginConfig
|
|
12724
|
+
if (input.S3OriginConfig != null) {
|
|
12726
12725
|
var node = serializeAws_restXmlS3OriginConfig(input.S3OriginConfig, context).withName("S3OriginConfig");
|
|
12727
12726
|
bodyNode.addChildNode(node);
|
|
12728
12727
|
}
|
|
12729
|
-
if (input.CustomOriginConfig
|
|
12728
|
+
if (input.CustomOriginConfig != null) {
|
|
12730
12729
|
var node = serializeAws_restXmlCustomOriginConfig(input.CustomOriginConfig, context).withName("CustomOriginConfig");
|
|
12731
12730
|
bodyNode.addChildNode(node);
|
|
12732
12731
|
}
|
|
12733
|
-
if (input.ConnectionAttempts
|
|
12732
|
+
if (input.ConnectionAttempts != null) {
|
|
12734
12733
|
var node = new __XmlNode("integer")
|
|
12735
12734
|
.addChildNode(new __XmlText(String(input.ConnectionAttempts)))
|
|
12736
12735
|
.withName("ConnectionAttempts");
|
|
12737
12736
|
bodyNode.addChildNode(node);
|
|
12738
12737
|
}
|
|
12739
|
-
if (input.ConnectionTimeout
|
|
12738
|
+
if (input.ConnectionTimeout != null) {
|
|
12740
12739
|
var node = new __XmlNode("integer")
|
|
12741
12740
|
.addChildNode(new __XmlText(String(input.ConnectionTimeout)))
|
|
12742
12741
|
.withName("ConnectionTimeout");
|
|
12743
12742
|
bodyNode.addChildNode(node);
|
|
12744
12743
|
}
|
|
12745
|
-
if (input.OriginShield
|
|
12744
|
+
if (input.OriginShield != null) {
|
|
12746
12745
|
var node = serializeAws_restXmlOriginShield(input.OriginShield, context).withName("OriginShield");
|
|
12747
12746
|
bodyNode.addChildNode(node);
|
|
12748
12747
|
}
|
|
@@ -12750,11 +12749,11 @@ var serializeAws_restXmlOrigin = function (input, context) {
|
|
|
12750
12749
|
};
|
|
12751
12750
|
var serializeAws_restXmlOriginCustomHeader = function (input, context) {
|
|
12752
12751
|
var bodyNode = new __XmlNode("OriginCustomHeader");
|
|
12753
|
-
if (input.HeaderName
|
|
12752
|
+
if (input.HeaderName != null) {
|
|
12754
12753
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.HeaderName)).withName("HeaderName");
|
|
12755
12754
|
bodyNode.addChildNode(node);
|
|
12756
12755
|
}
|
|
12757
|
-
if (input.HeaderValue
|
|
12756
|
+
if (input.HeaderValue != null) {
|
|
12758
12757
|
var node = new __XmlNode("sensitiveStringType")
|
|
12759
12758
|
.addChildNode(new __XmlText(input.HeaderValue))
|
|
12760
12759
|
.withName("HeaderValue");
|
|
@@ -12775,15 +12774,15 @@ var serializeAws_restXmlOriginCustomHeadersList = function (input, context) {
|
|
|
12775
12774
|
};
|
|
12776
12775
|
var serializeAws_restXmlOriginGroup = function (input, context) {
|
|
12777
12776
|
var bodyNode = new __XmlNode("OriginGroup");
|
|
12778
|
-
if (input.Id
|
|
12777
|
+
if (input.Id != null) {
|
|
12779
12778
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Id)).withName("Id");
|
|
12780
12779
|
bodyNode.addChildNode(node);
|
|
12781
12780
|
}
|
|
12782
|
-
if (input.FailoverCriteria
|
|
12781
|
+
if (input.FailoverCriteria != null) {
|
|
12783
12782
|
var node = serializeAws_restXmlOriginGroupFailoverCriteria(input.FailoverCriteria, context).withName("FailoverCriteria");
|
|
12784
12783
|
bodyNode.addChildNode(node);
|
|
12785
12784
|
}
|
|
12786
|
-
if (input.Members
|
|
12785
|
+
if (input.Members != null) {
|
|
12787
12786
|
var node = serializeAws_restXmlOriginGroupMembers(input.Members, context).withName("Members");
|
|
12788
12787
|
bodyNode.addChildNode(node);
|
|
12789
12788
|
}
|
|
@@ -12791,7 +12790,7 @@ var serializeAws_restXmlOriginGroup = function (input, context) {
|
|
|
12791
12790
|
};
|
|
12792
12791
|
var serializeAws_restXmlOriginGroupFailoverCriteria = function (input, context) {
|
|
12793
12792
|
var bodyNode = new __XmlNode("OriginGroupFailoverCriteria");
|
|
12794
|
-
if (input.StatusCodes
|
|
12793
|
+
if (input.StatusCodes != null) {
|
|
12795
12794
|
var node = serializeAws_restXmlStatusCodes(input.StatusCodes, context).withName("StatusCodes");
|
|
12796
12795
|
bodyNode.addChildNode(node);
|
|
12797
12796
|
}
|
|
@@ -12810,7 +12809,7 @@ var serializeAws_restXmlOriginGroupList = function (input, context) {
|
|
|
12810
12809
|
};
|
|
12811
12810
|
var serializeAws_restXmlOriginGroupMember = function (input, context) {
|
|
12812
12811
|
var bodyNode = new __XmlNode("OriginGroupMember");
|
|
12813
|
-
if (input.OriginId
|
|
12812
|
+
if (input.OriginId != null) {
|
|
12814
12813
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.OriginId)).withName("OriginId");
|
|
12815
12814
|
bodyNode.addChildNode(node);
|
|
12816
12815
|
}
|
|
@@ -12829,11 +12828,11 @@ var serializeAws_restXmlOriginGroupMemberList = function (input, context) {
|
|
|
12829
12828
|
};
|
|
12830
12829
|
var serializeAws_restXmlOriginGroupMembers = function (input, context) {
|
|
12831
12830
|
var bodyNode = new __XmlNode("OriginGroupMembers");
|
|
12832
|
-
if (input.Quantity
|
|
12831
|
+
if (input.Quantity != null) {
|
|
12833
12832
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12834
12833
|
bodyNode.addChildNode(node);
|
|
12835
12834
|
}
|
|
12836
|
-
if (input.Items
|
|
12835
|
+
if (input.Items != null) {
|
|
12837
12836
|
var nodes = serializeAws_restXmlOriginGroupMemberList(input.Items, context);
|
|
12838
12837
|
var containerNode_20 = new __XmlNode("Items");
|
|
12839
12838
|
nodes.map(function (node) {
|
|
@@ -12845,11 +12844,11 @@ var serializeAws_restXmlOriginGroupMembers = function (input, context) {
|
|
|
12845
12844
|
};
|
|
12846
12845
|
var serializeAws_restXmlOriginGroups = function (input, context) {
|
|
12847
12846
|
var bodyNode = new __XmlNode("OriginGroups");
|
|
12848
|
-
if (input.Quantity
|
|
12847
|
+
if (input.Quantity != null) {
|
|
12849
12848
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12850
12849
|
bodyNode.addChildNode(node);
|
|
12851
12850
|
}
|
|
12852
|
-
if (input.Items
|
|
12851
|
+
if (input.Items != null) {
|
|
12853
12852
|
var nodes = serializeAws_restXmlOriginGroupList(input.Items, context);
|
|
12854
12853
|
var containerNode_21 = new __XmlNode("Items");
|
|
12855
12854
|
nodes.map(function (node) {
|
|
@@ -12872,23 +12871,23 @@ var serializeAws_restXmlOriginList = function (input, context) {
|
|
|
12872
12871
|
};
|
|
12873
12872
|
var serializeAws_restXmlOriginRequestPolicyConfig = function (input, context) {
|
|
12874
12873
|
var bodyNode = new __XmlNode("OriginRequestPolicyConfig");
|
|
12875
|
-
if (input.Comment
|
|
12874
|
+
if (input.Comment != null) {
|
|
12876
12875
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
12877
12876
|
bodyNode.addChildNode(node);
|
|
12878
12877
|
}
|
|
12879
|
-
if (input.Name
|
|
12878
|
+
if (input.Name != null) {
|
|
12880
12879
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Name)).withName("Name");
|
|
12881
12880
|
bodyNode.addChildNode(node);
|
|
12882
12881
|
}
|
|
12883
|
-
if (input.HeadersConfig
|
|
12882
|
+
if (input.HeadersConfig != null) {
|
|
12884
12883
|
var node = serializeAws_restXmlOriginRequestPolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig");
|
|
12885
12884
|
bodyNode.addChildNode(node);
|
|
12886
12885
|
}
|
|
12887
|
-
if (input.CookiesConfig
|
|
12886
|
+
if (input.CookiesConfig != null) {
|
|
12888
12887
|
var node = serializeAws_restXmlOriginRequestPolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig");
|
|
12889
12888
|
bodyNode.addChildNode(node);
|
|
12890
12889
|
}
|
|
12891
|
-
if (input.QueryStringsConfig
|
|
12890
|
+
if (input.QueryStringsConfig != null) {
|
|
12892
12891
|
var node = serializeAws_restXmlOriginRequestPolicyQueryStringsConfig(input.QueryStringsConfig, context).withName("QueryStringsConfig");
|
|
12893
12892
|
bodyNode.addChildNode(node);
|
|
12894
12893
|
}
|
|
@@ -12896,13 +12895,13 @@ var serializeAws_restXmlOriginRequestPolicyConfig = function (input, context) {
|
|
|
12896
12895
|
};
|
|
12897
12896
|
var serializeAws_restXmlOriginRequestPolicyCookiesConfig = function (input, context) {
|
|
12898
12897
|
var bodyNode = new __XmlNode("OriginRequestPolicyCookiesConfig");
|
|
12899
|
-
if (input.CookieBehavior
|
|
12898
|
+
if (input.CookieBehavior != null) {
|
|
12900
12899
|
var node = new __XmlNode("OriginRequestPolicyCookieBehavior")
|
|
12901
12900
|
.addChildNode(new __XmlText(input.CookieBehavior))
|
|
12902
12901
|
.withName("CookieBehavior");
|
|
12903
12902
|
bodyNode.addChildNode(node);
|
|
12904
12903
|
}
|
|
12905
|
-
if (input.Cookies
|
|
12904
|
+
if (input.Cookies != null) {
|
|
12906
12905
|
var node = serializeAws_restXmlCookieNames(input.Cookies, context).withName("Cookies");
|
|
12907
12906
|
bodyNode.addChildNode(node);
|
|
12908
12907
|
}
|
|
@@ -12910,13 +12909,13 @@ var serializeAws_restXmlOriginRequestPolicyCookiesConfig = function (input, cont
|
|
|
12910
12909
|
};
|
|
12911
12910
|
var serializeAws_restXmlOriginRequestPolicyHeadersConfig = function (input, context) {
|
|
12912
12911
|
var bodyNode = new __XmlNode("OriginRequestPolicyHeadersConfig");
|
|
12913
|
-
if (input.HeaderBehavior
|
|
12912
|
+
if (input.HeaderBehavior != null) {
|
|
12914
12913
|
var node = new __XmlNode("OriginRequestPolicyHeaderBehavior")
|
|
12915
12914
|
.addChildNode(new __XmlText(input.HeaderBehavior))
|
|
12916
12915
|
.withName("HeaderBehavior");
|
|
12917
12916
|
bodyNode.addChildNode(node);
|
|
12918
12917
|
}
|
|
12919
|
-
if (input.Headers
|
|
12918
|
+
if (input.Headers != null) {
|
|
12920
12919
|
var node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
12921
12920
|
bodyNode.addChildNode(node);
|
|
12922
12921
|
}
|
|
@@ -12924,13 +12923,13 @@ var serializeAws_restXmlOriginRequestPolicyHeadersConfig = function (input, cont
|
|
|
12924
12923
|
};
|
|
12925
12924
|
var serializeAws_restXmlOriginRequestPolicyQueryStringsConfig = function (input, context) {
|
|
12926
12925
|
var bodyNode = new __XmlNode("OriginRequestPolicyQueryStringsConfig");
|
|
12927
|
-
if (input.QueryStringBehavior
|
|
12926
|
+
if (input.QueryStringBehavior != null) {
|
|
12928
12927
|
var node = new __XmlNode("OriginRequestPolicyQueryStringBehavior")
|
|
12929
12928
|
.addChildNode(new __XmlText(input.QueryStringBehavior))
|
|
12930
12929
|
.withName("QueryStringBehavior");
|
|
12931
12930
|
bodyNode.addChildNode(node);
|
|
12932
12931
|
}
|
|
12933
|
-
if (input.QueryStrings
|
|
12932
|
+
if (input.QueryStrings != null) {
|
|
12934
12933
|
var node = serializeAws_restXmlQueryStringNames(input.QueryStrings, context).withName("QueryStrings");
|
|
12935
12934
|
bodyNode.addChildNode(node);
|
|
12936
12935
|
}
|
|
@@ -12938,11 +12937,11 @@ var serializeAws_restXmlOriginRequestPolicyQueryStringsConfig = function (input,
|
|
|
12938
12937
|
};
|
|
12939
12938
|
var serializeAws_restXmlOrigins = function (input, context) {
|
|
12940
12939
|
var bodyNode = new __XmlNode("Origins");
|
|
12941
|
-
if (input.Quantity
|
|
12940
|
+
if (input.Quantity != null) {
|
|
12942
12941
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12943
12942
|
bodyNode.addChildNode(node);
|
|
12944
12943
|
}
|
|
12945
|
-
if (input.Items
|
|
12944
|
+
if (input.Items != null) {
|
|
12946
12945
|
var nodes = serializeAws_restXmlOriginList(input.Items, context);
|
|
12947
12946
|
var containerNode_22 = new __XmlNode("Items");
|
|
12948
12947
|
nodes.map(function (node) {
|
|
@@ -12954,11 +12953,11 @@ var serializeAws_restXmlOrigins = function (input, context) {
|
|
|
12954
12953
|
};
|
|
12955
12954
|
var serializeAws_restXmlOriginShield = function (input, context) {
|
|
12956
12955
|
var bodyNode = new __XmlNode("OriginShield");
|
|
12957
|
-
if (input.Enabled
|
|
12956
|
+
if (input.Enabled != null) {
|
|
12958
12957
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
12959
12958
|
bodyNode.addChildNode(node);
|
|
12960
12959
|
}
|
|
12961
|
-
if (input.OriginShieldRegion
|
|
12960
|
+
if (input.OriginShieldRegion != null) {
|
|
12962
12961
|
var node = new __XmlNode("OriginShieldRegion")
|
|
12963
12962
|
.addChildNode(new __XmlText(input.OriginShieldRegion))
|
|
12964
12963
|
.withName("OriginShieldRegion");
|
|
@@ -12968,11 +12967,11 @@ var serializeAws_restXmlOriginShield = function (input, context) {
|
|
|
12968
12967
|
};
|
|
12969
12968
|
var serializeAws_restXmlOriginSslProtocols = function (input, context) {
|
|
12970
12969
|
var bodyNode = new __XmlNode("OriginSslProtocols");
|
|
12971
|
-
if (input.Quantity
|
|
12970
|
+
if (input.Quantity != null) {
|
|
12972
12971
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
12973
12972
|
bodyNode.addChildNode(node);
|
|
12974
12973
|
}
|
|
12975
|
-
if (input.Items
|
|
12974
|
+
if (input.Items != null) {
|
|
12976
12975
|
var nodes = serializeAws_restXmlSslProtocolsList(input.Items, context);
|
|
12977
12976
|
var containerNode_23 = new __XmlNode("Items");
|
|
12978
12977
|
nodes.map(function (node) {
|
|
@@ -12984,27 +12983,27 @@ var serializeAws_restXmlOriginSslProtocols = function (input, context) {
|
|
|
12984
12983
|
};
|
|
12985
12984
|
var serializeAws_restXmlParametersInCacheKeyAndForwardedToOrigin = function (input, context) {
|
|
12986
12985
|
var bodyNode = new __XmlNode("ParametersInCacheKeyAndForwardedToOrigin");
|
|
12987
|
-
if (input.EnableAcceptEncodingGzip
|
|
12986
|
+
if (input.EnableAcceptEncodingGzip != null) {
|
|
12988
12987
|
var node = new __XmlNode("boolean")
|
|
12989
12988
|
.addChildNode(new __XmlText(String(input.EnableAcceptEncodingGzip)))
|
|
12990
12989
|
.withName("EnableAcceptEncodingGzip");
|
|
12991
12990
|
bodyNode.addChildNode(node);
|
|
12992
12991
|
}
|
|
12993
|
-
if (input.EnableAcceptEncodingBrotli
|
|
12992
|
+
if (input.EnableAcceptEncodingBrotli != null) {
|
|
12994
12993
|
var node = new __XmlNode("boolean")
|
|
12995
12994
|
.addChildNode(new __XmlText(String(input.EnableAcceptEncodingBrotli)))
|
|
12996
12995
|
.withName("EnableAcceptEncodingBrotli");
|
|
12997
12996
|
bodyNode.addChildNode(node);
|
|
12998
12997
|
}
|
|
12999
|
-
if (input.HeadersConfig
|
|
12998
|
+
if (input.HeadersConfig != null) {
|
|
13000
12999
|
var node = serializeAws_restXmlCachePolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig");
|
|
13001
13000
|
bodyNode.addChildNode(node);
|
|
13002
13001
|
}
|
|
13003
|
-
if (input.CookiesConfig
|
|
13002
|
+
if (input.CookiesConfig != null) {
|
|
13004
13003
|
var node = serializeAws_restXmlCachePolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig");
|
|
13005
13004
|
bodyNode.addChildNode(node);
|
|
13006
13005
|
}
|
|
13007
|
-
if (input.QueryStringsConfig
|
|
13006
|
+
if (input.QueryStringsConfig != null) {
|
|
13008
13007
|
var node = serializeAws_restXmlCachePolicyQueryStringsConfig(input.QueryStringsConfig, context).withName("QueryStringsConfig");
|
|
13009
13008
|
bodyNode.addChildNode(node);
|
|
13010
13009
|
}
|
|
@@ -13023,11 +13022,11 @@ var serializeAws_restXmlPathList = function (input, context) {
|
|
|
13023
13022
|
};
|
|
13024
13023
|
var serializeAws_restXmlPaths = function (input, context) {
|
|
13025
13024
|
var bodyNode = new __XmlNode("Paths");
|
|
13026
|
-
if (input.Quantity
|
|
13025
|
+
if (input.Quantity != null) {
|
|
13027
13026
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13028
13027
|
bodyNode.addChildNode(node);
|
|
13029
13028
|
}
|
|
13030
|
-
if (input.Items
|
|
13029
|
+
if (input.Items != null) {
|
|
13031
13030
|
var nodes = serializeAws_restXmlPathList(input.Items, context);
|
|
13032
13031
|
var containerNode_24 = new __XmlNode("Items");
|
|
13033
13032
|
nodes.map(function (node) {
|
|
@@ -13039,19 +13038,19 @@ var serializeAws_restXmlPaths = function (input, context) {
|
|
|
13039
13038
|
};
|
|
13040
13039
|
var serializeAws_restXmlPublicKeyConfig = function (input, context) {
|
|
13041
13040
|
var bodyNode = new __XmlNode("PublicKeyConfig");
|
|
13042
|
-
if (input.CallerReference
|
|
13041
|
+
if (input.CallerReference != null) {
|
|
13043
13042
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CallerReference)).withName("CallerReference");
|
|
13044
13043
|
bodyNode.addChildNode(node);
|
|
13045
13044
|
}
|
|
13046
|
-
if (input.Name
|
|
13045
|
+
if (input.Name != null) {
|
|
13047
13046
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Name)).withName("Name");
|
|
13048
13047
|
bodyNode.addChildNode(node);
|
|
13049
13048
|
}
|
|
13050
|
-
if (input.EncodedKey
|
|
13049
|
+
if (input.EncodedKey != null) {
|
|
13051
13050
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.EncodedKey)).withName("EncodedKey");
|
|
13052
13051
|
bodyNode.addChildNode(node);
|
|
13053
13052
|
}
|
|
13054
|
-
if (input.Comment
|
|
13053
|
+
if (input.Comment != null) {
|
|
13055
13054
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
13056
13055
|
bodyNode.addChildNode(node);
|
|
13057
13056
|
}
|
|
@@ -13070,11 +13069,11 @@ var serializeAws_restXmlPublicKeyIdList = function (input, context) {
|
|
|
13070
13069
|
};
|
|
13071
13070
|
var serializeAws_restXmlQueryArgProfile = function (input, context) {
|
|
13072
13071
|
var bodyNode = new __XmlNode("QueryArgProfile");
|
|
13073
|
-
if (input.QueryArg
|
|
13072
|
+
if (input.QueryArg != null) {
|
|
13074
13073
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.QueryArg)).withName("QueryArg");
|
|
13075
13074
|
bodyNode.addChildNode(node);
|
|
13076
13075
|
}
|
|
13077
|
-
if (input.ProfileId
|
|
13076
|
+
if (input.ProfileId != null) {
|
|
13078
13077
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.ProfileId)).withName("ProfileId");
|
|
13079
13078
|
bodyNode.addChildNode(node);
|
|
13080
13079
|
}
|
|
@@ -13082,13 +13081,13 @@ var serializeAws_restXmlQueryArgProfile = function (input, context) {
|
|
|
13082
13081
|
};
|
|
13083
13082
|
var serializeAws_restXmlQueryArgProfileConfig = function (input, context) {
|
|
13084
13083
|
var bodyNode = new __XmlNode("QueryArgProfileConfig");
|
|
13085
|
-
if (input.ForwardWhenQueryArgProfileIsUnknown
|
|
13084
|
+
if (input.ForwardWhenQueryArgProfileIsUnknown != null) {
|
|
13086
13085
|
var node = new __XmlNode("boolean")
|
|
13087
13086
|
.addChildNode(new __XmlText(String(input.ForwardWhenQueryArgProfileIsUnknown)))
|
|
13088
13087
|
.withName("ForwardWhenQueryArgProfileIsUnknown");
|
|
13089
13088
|
bodyNode.addChildNode(node);
|
|
13090
13089
|
}
|
|
13091
|
-
if (input.QueryArgProfiles
|
|
13090
|
+
if (input.QueryArgProfiles != null) {
|
|
13092
13091
|
var node = serializeAws_restXmlQueryArgProfiles(input.QueryArgProfiles, context).withName("QueryArgProfiles");
|
|
13093
13092
|
bodyNode.addChildNode(node);
|
|
13094
13093
|
}
|
|
@@ -13107,11 +13106,11 @@ var serializeAws_restXmlQueryArgProfileList = function (input, context) {
|
|
|
13107
13106
|
};
|
|
13108
13107
|
var serializeAws_restXmlQueryArgProfiles = function (input, context) {
|
|
13109
13108
|
var bodyNode = new __XmlNode("QueryArgProfiles");
|
|
13110
|
-
if (input.Quantity
|
|
13109
|
+
if (input.Quantity != null) {
|
|
13111
13110
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13112
13111
|
bodyNode.addChildNode(node);
|
|
13113
13112
|
}
|
|
13114
|
-
if (input.Items
|
|
13113
|
+
if (input.Items != null) {
|
|
13115
13114
|
var nodes = serializeAws_restXmlQueryArgProfileList(input.Items, context);
|
|
13116
13115
|
var containerNode_25 = new __XmlNode("Items");
|
|
13117
13116
|
nodes.map(function (node) {
|
|
@@ -13123,11 +13122,11 @@ var serializeAws_restXmlQueryArgProfiles = function (input, context) {
|
|
|
13123
13122
|
};
|
|
13124
13123
|
var serializeAws_restXmlQueryStringCacheKeys = function (input, context) {
|
|
13125
13124
|
var bodyNode = new __XmlNode("QueryStringCacheKeys");
|
|
13126
|
-
if (input.Quantity
|
|
13125
|
+
if (input.Quantity != null) {
|
|
13127
13126
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13128
13127
|
bodyNode.addChildNode(node);
|
|
13129
13128
|
}
|
|
13130
|
-
if (input.Items
|
|
13129
|
+
if (input.Items != null) {
|
|
13131
13130
|
var nodes = serializeAws_restXmlQueryStringCacheKeysList(input.Items, context);
|
|
13132
13131
|
var containerNode_26 = new __XmlNode("Items");
|
|
13133
13132
|
nodes.map(function (node) {
|
|
@@ -13150,11 +13149,11 @@ var serializeAws_restXmlQueryStringCacheKeysList = function (input, context) {
|
|
|
13150
13149
|
};
|
|
13151
13150
|
var serializeAws_restXmlQueryStringNames = function (input, context) {
|
|
13152
13151
|
var bodyNode = new __XmlNode("QueryStringNames");
|
|
13153
|
-
if (input.Quantity
|
|
13152
|
+
if (input.Quantity != null) {
|
|
13154
13153
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13155
13154
|
bodyNode.addChildNode(node);
|
|
13156
13155
|
}
|
|
13157
|
-
if (input.Items
|
|
13156
|
+
if (input.Items != null) {
|
|
13158
13157
|
var nodes = serializeAws_restXmlQueryStringNamesList(input.Items, context);
|
|
13159
13158
|
var containerNode_27 = new __XmlNode("Items");
|
|
13160
13159
|
nodes.map(function (node) {
|
|
@@ -13177,7 +13176,7 @@ var serializeAws_restXmlQueryStringNamesList = function (input, context) {
|
|
|
13177
13176
|
};
|
|
13178
13177
|
var serializeAws_restXmlRealtimeMetricsSubscriptionConfig = function (input, context) {
|
|
13179
13178
|
var bodyNode = new __XmlNode("RealtimeMetricsSubscriptionConfig");
|
|
13180
|
-
if (input.RealtimeMetricsSubscriptionStatus
|
|
13179
|
+
if (input.RealtimeMetricsSubscriptionStatus != null) {
|
|
13181
13180
|
var node = new __XmlNode("RealtimeMetricsSubscriptionStatus")
|
|
13182
13181
|
.addChildNode(new __XmlText(input.RealtimeMetricsSubscriptionStatus))
|
|
13183
13182
|
.withName("RealtimeMetricsSubscriptionStatus");
|
|
@@ -13187,11 +13186,11 @@ var serializeAws_restXmlRealtimeMetricsSubscriptionConfig = function (input, con
|
|
|
13187
13186
|
};
|
|
13188
13187
|
var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = function (input, context) {
|
|
13189
13188
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowHeaders");
|
|
13190
|
-
if (input.Quantity
|
|
13189
|
+
if (input.Quantity != null) {
|
|
13191
13190
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13192
13191
|
bodyNode.addChildNode(node);
|
|
13193
13192
|
}
|
|
13194
|
-
if (input.Items
|
|
13193
|
+
if (input.Items != null) {
|
|
13195
13194
|
var nodes = serializeAws_restXmlAccessControlAllowHeadersList(input.Items, context);
|
|
13196
13195
|
var containerNode_28 = new __XmlNode("Items");
|
|
13197
13196
|
nodes.map(function (node) {
|
|
@@ -13203,11 +13202,11 @@ var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = functio
|
|
|
13203
13202
|
};
|
|
13204
13203
|
var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = function (input, context) {
|
|
13205
13204
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowMethods");
|
|
13206
|
-
if (input.Quantity
|
|
13205
|
+
if (input.Quantity != null) {
|
|
13207
13206
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13208
13207
|
bodyNode.addChildNode(node);
|
|
13209
13208
|
}
|
|
13210
|
-
if (input.Items
|
|
13209
|
+
if (input.Items != null) {
|
|
13211
13210
|
var nodes = serializeAws_restXmlAccessControlAllowMethodsList(input.Items, context);
|
|
13212
13211
|
var containerNode_29 = new __XmlNode("Items");
|
|
13213
13212
|
nodes.map(function (node) {
|
|
@@ -13219,11 +13218,11 @@ var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = functio
|
|
|
13219
13218
|
};
|
|
13220
13219
|
var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = function (input, context) {
|
|
13221
13220
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowOrigins");
|
|
13222
|
-
if (input.Quantity
|
|
13221
|
+
if (input.Quantity != null) {
|
|
13223
13222
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13224
13223
|
bodyNode.addChildNode(node);
|
|
13225
13224
|
}
|
|
13226
|
-
if (input.Items
|
|
13225
|
+
if (input.Items != null) {
|
|
13227
13226
|
var nodes = serializeAws_restXmlAccessControlAllowOriginsList(input.Items, context);
|
|
13228
13227
|
var containerNode_30 = new __XmlNode("Items");
|
|
13229
13228
|
nodes.map(function (node) {
|
|
@@ -13235,11 +13234,11 @@ var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = functio
|
|
|
13235
13234
|
};
|
|
13236
13235
|
var serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = function (input, context) {
|
|
13237
13236
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlExposeHeaders");
|
|
13238
|
-
if (input.Quantity
|
|
13237
|
+
if (input.Quantity != null) {
|
|
13239
13238
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13240
13239
|
bodyNode.addChildNode(node);
|
|
13241
13240
|
}
|
|
13242
|
-
if (input.Items
|
|
13241
|
+
if (input.Items != null) {
|
|
13243
13242
|
var nodes = serializeAws_restXmlAccessControlExposeHeadersList(input.Items, context);
|
|
13244
13243
|
var containerNode_31 = new __XmlNode("Items");
|
|
13245
13244
|
nodes.map(function (node) {
|
|
@@ -13251,27 +13250,27 @@ var serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = functi
|
|
|
13251
13250
|
};
|
|
13252
13251
|
var serializeAws_restXmlResponseHeadersPolicyConfig = function (input, context) {
|
|
13253
13252
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyConfig");
|
|
13254
|
-
if (input.Comment
|
|
13253
|
+
if (input.Comment != null) {
|
|
13255
13254
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
13256
13255
|
bodyNode.addChildNode(node);
|
|
13257
13256
|
}
|
|
13258
|
-
if (input.Name
|
|
13257
|
+
if (input.Name != null) {
|
|
13259
13258
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Name)).withName("Name");
|
|
13260
13259
|
bodyNode.addChildNode(node);
|
|
13261
13260
|
}
|
|
13262
|
-
if (input.CorsConfig
|
|
13261
|
+
if (input.CorsConfig != null) {
|
|
13263
13262
|
var node = serializeAws_restXmlResponseHeadersPolicyCorsConfig(input.CorsConfig, context).withName("CorsConfig");
|
|
13264
13263
|
bodyNode.addChildNode(node);
|
|
13265
13264
|
}
|
|
13266
|
-
if (input.SecurityHeadersConfig
|
|
13265
|
+
if (input.SecurityHeadersConfig != null) {
|
|
13267
13266
|
var node = serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName("SecurityHeadersConfig");
|
|
13268
13267
|
bodyNode.addChildNode(node);
|
|
13269
13268
|
}
|
|
13270
|
-
if (input.CustomHeadersConfig
|
|
13269
|
+
if (input.CustomHeadersConfig != null) {
|
|
13271
13270
|
var node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
13272
13271
|
bodyNode.addChildNode(node);
|
|
13273
13272
|
}
|
|
13274
|
-
if (input.ServerTimingHeadersConfig
|
|
13273
|
+
if (input.ServerTimingHeadersConfig != null) {
|
|
13275
13274
|
var node = serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig(input.ServerTimingHeadersConfig, context).withName("ServerTimingHeadersConfig");
|
|
13276
13275
|
bodyNode.addChildNode(node);
|
|
13277
13276
|
}
|
|
@@ -13279,11 +13278,11 @@ var serializeAws_restXmlResponseHeadersPolicyConfig = function (input, context)
|
|
|
13279
13278
|
};
|
|
13280
13279
|
var serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = function (input, context) {
|
|
13281
13280
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyContentSecurityPolicy");
|
|
13282
|
-
if (input.Override
|
|
13281
|
+
if (input.Override != null) {
|
|
13283
13282
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
13284
13283
|
bodyNode.addChildNode(node);
|
|
13285
13284
|
}
|
|
13286
|
-
if (input.ContentSecurityPolicy
|
|
13285
|
+
if (input.ContentSecurityPolicy != null) {
|
|
13287
13286
|
var node = new __XmlNode("string")
|
|
13288
13287
|
.addChildNode(new __XmlText(input.ContentSecurityPolicy))
|
|
13289
13288
|
.withName("ContentSecurityPolicy");
|
|
@@ -13293,7 +13292,7 @@ var serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = function (i
|
|
|
13293
13292
|
};
|
|
13294
13293
|
var serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = function (input, context) {
|
|
13295
13294
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyContentTypeOptions");
|
|
13296
|
-
if (input.Override
|
|
13295
|
+
if (input.Override != null) {
|
|
13297
13296
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
13298
13297
|
bodyNode.addChildNode(node);
|
|
13299
13298
|
}
|
|
@@ -13301,35 +13300,35 @@ var serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = function (inpu
|
|
|
13301
13300
|
};
|
|
13302
13301
|
var serializeAws_restXmlResponseHeadersPolicyCorsConfig = function (input, context) {
|
|
13303
13302
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyCorsConfig");
|
|
13304
|
-
if (input.AccessControlAllowOrigins
|
|
13303
|
+
if (input.AccessControlAllowOrigins != null) {
|
|
13305
13304
|
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins(input.AccessControlAllowOrigins, context).withName("AccessControlAllowOrigins");
|
|
13306
13305
|
bodyNode.addChildNode(node);
|
|
13307
13306
|
}
|
|
13308
|
-
if (input.AccessControlAllowHeaders
|
|
13307
|
+
if (input.AccessControlAllowHeaders != null) {
|
|
13309
13308
|
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders(input.AccessControlAllowHeaders, context).withName("AccessControlAllowHeaders");
|
|
13310
13309
|
bodyNode.addChildNode(node);
|
|
13311
13310
|
}
|
|
13312
|
-
if (input.AccessControlAllowMethods
|
|
13311
|
+
if (input.AccessControlAllowMethods != null) {
|
|
13313
13312
|
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods(input.AccessControlAllowMethods, context).withName("AccessControlAllowMethods");
|
|
13314
13313
|
bodyNode.addChildNode(node);
|
|
13315
13314
|
}
|
|
13316
|
-
if (input.AccessControlAllowCredentials
|
|
13315
|
+
if (input.AccessControlAllowCredentials != null) {
|
|
13317
13316
|
var node = new __XmlNode("boolean")
|
|
13318
13317
|
.addChildNode(new __XmlText(String(input.AccessControlAllowCredentials)))
|
|
13319
13318
|
.withName("AccessControlAllowCredentials");
|
|
13320
13319
|
bodyNode.addChildNode(node);
|
|
13321
13320
|
}
|
|
13322
|
-
if (input.AccessControlExposeHeaders
|
|
13321
|
+
if (input.AccessControlExposeHeaders != null) {
|
|
13323
13322
|
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders(input.AccessControlExposeHeaders, context).withName("AccessControlExposeHeaders");
|
|
13324
13323
|
bodyNode.addChildNode(node);
|
|
13325
13324
|
}
|
|
13326
|
-
if (input.AccessControlMaxAgeSec
|
|
13325
|
+
if (input.AccessControlMaxAgeSec != null) {
|
|
13327
13326
|
var node = new __XmlNode("integer")
|
|
13328
13327
|
.addChildNode(new __XmlText(String(input.AccessControlMaxAgeSec)))
|
|
13329
13328
|
.withName("AccessControlMaxAgeSec");
|
|
13330
13329
|
bodyNode.addChildNode(node);
|
|
13331
13330
|
}
|
|
13332
|
-
if (input.OriginOverride
|
|
13331
|
+
if (input.OriginOverride != null) {
|
|
13333
13332
|
var node = new __XmlNode("boolean")
|
|
13334
13333
|
.addChildNode(new __XmlText(String(input.OriginOverride)))
|
|
13335
13334
|
.withName("OriginOverride");
|
|
@@ -13339,15 +13338,15 @@ var serializeAws_restXmlResponseHeadersPolicyCorsConfig = function (input, conte
|
|
|
13339
13338
|
};
|
|
13340
13339
|
var serializeAws_restXmlResponseHeadersPolicyCustomHeader = function (input, context) {
|
|
13341
13340
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyCustomHeader");
|
|
13342
|
-
if (input.Header
|
|
13341
|
+
if (input.Header != null) {
|
|
13343
13342
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Header)).withName("Header");
|
|
13344
13343
|
bodyNode.addChildNode(node);
|
|
13345
13344
|
}
|
|
13346
|
-
if (input.Value
|
|
13345
|
+
if (input.Value != null) {
|
|
13347
13346
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Value)).withName("Value");
|
|
13348
13347
|
bodyNode.addChildNode(node);
|
|
13349
13348
|
}
|
|
13350
|
-
if (input.Override
|
|
13349
|
+
if (input.Override != null) {
|
|
13351
13350
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
13352
13351
|
bodyNode.addChildNode(node);
|
|
13353
13352
|
}
|
|
@@ -13366,11 +13365,11 @@ var serializeAws_restXmlResponseHeadersPolicyCustomHeaderList = function (input,
|
|
|
13366
13365
|
};
|
|
13367
13366
|
var serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = function (input, context) {
|
|
13368
13367
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyCustomHeadersConfig");
|
|
13369
|
-
if (input.Quantity
|
|
13368
|
+
if (input.Quantity != null) {
|
|
13370
13369
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13371
13370
|
bodyNode.addChildNode(node);
|
|
13372
13371
|
}
|
|
13373
|
-
if (input.Items
|
|
13372
|
+
if (input.Items != null) {
|
|
13374
13373
|
var nodes = serializeAws_restXmlResponseHeadersPolicyCustomHeaderList(input.Items, context);
|
|
13375
13374
|
var containerNode_32 = new __XmlNode("Items");
|
|
13376
13375
|
nodes.map(function (node) {
|
|
@@ -13382,11 +13381,11 @@ var serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = function (inp
|
|
|
13382
13381
|
};
|
|
13383
13382
|
var serializeAws_restXmlResponseHeadersPolicyFrameOptions = function (input, context) {
|
|
13384
13383
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyFrameOptions");
|
|
13385
|
-
if (input.Override
|
|
13384
|
+
if (input.Override != null) {
|
|
13386
13385
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
13387
13386
|
bodyNode.addChildNode(node);
|
|
13388
13387
|
}
|
|
13389
|
-
if (input.FrameOption
|
|
13388
|
+
if (input.FrameOption != null) {
|
|
13390
13389
|
var node = new __XmlNode("FrameOptionsList")
|
|
13391
13390
|
.addChildNode(new __XmlText(input.FrameOption))
|
|
13392
13391
|
.withName("FrameOption");
|
|
@@ -13396,11 +13395,11 @@ var serializeAws_restXmlResponseHeadersPolicyFrameOptions = function (input, con
|
|
|
13396
13395
|
};
|
|
13397
13396
|
var serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = function (input, context) {
|
|
13398
13397
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyReferrerPolicy");
|
|
13399
|
-
if (input.Override
|
|
13398
|
+
if (input.Override != null) {
|
|
13400
13399
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
13401
13400
|
bodyNode.addChildNode(node);
|
|
13402
13401
|
}
|
|
13403
|
-
if (input.ReferrerPolicy
|
|
13402
|
+
if (input.ReferrerPolicy != null) {
|
|
13404
13403
|
var node = new __XmlNode("ReferrerPolicyList")
|
|
13405
13404
|
.addChildNode(new __XmlText(input.ReferrerPolicy))
|
|
13406
13405
|
.withName("ReferrerPolicy");
|
|
@@ -13410,27 +13409,27 @@ var serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = function (input, c
|
|
|
13410
13409
|
};
|
|
13411
13410
|
var serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = function (input, context) {
|
|
13412
13411
|
var bodyNode = new __XmlNode("ResponseHeadersPolicySecurityHeadersConfig");
|
|
13413
|
-
if (input.XSSProtection
|
|
13412
|
+
if (input.XSSProtection != null) {
|
|
13414
13413
|
var node = serializeAws_restXmlResponseHeadersPolicyXSSProtection(input.XSSProtection, context).withName("XSSProtection");
|
|
13415
13414
|
bodyNode.addChildNode(node);
|
|
13416
13415
|
}
|
|
13417
|
-
if (input.FrameOptions
|
|
13416
|
+
if (input.FrameOptions != null) {
|
|
13418
13417
|
var node = serializeAws_restXmlResponseHeadersPolicyFrameOptions(input.FrameOptions, context).withName("FrameOptions");
|
|
13419
13418
|
bodyNode.addChildNode(node);
|
|
13420
13419
|
}
|
|
13421
|
-
if (input.ReferrerPolicy
|
|
13420
|
+
if (input.ReferrerPolicy != null) {
|
|
13422
13421
|
var node = serializeAws_restXmlResponseHeadersPolicyReferrerPolicy(input.ReferrerPolicy, context).withName("ReferrerPolicy");
|
|
13423
13422
|
bodyNode.addChildNode(node);
|
|
13424
13423
|
}
|
|
13425
|
-
if (input.ContentSecurityPolicy
|
|
13424
|
+
if (input.ContentSecurityPolicy != null) {
|
|
13426
13425
|
var node = serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy(input.ContentSecurityPolicy, context).withName("ContentSecurityPolicy");
|
|
13427
13426
|
bodyNode.addChildNode(node);
|
|
13428
13427
|
}
|
|
13429
|
-
if (input.ContentTypeOptions
|
|
13428
|
+
if (input.ContentTypeOptions != null) {
|
|
13430
13429
|
var node = serializeAws_restXmlResponseHeadersPolicyContentTypeOptions(input.ContentTypeOptions, context).withName("ContentTypeOptions");
|
|
13431
13430
|
bodyNode.addChildNode(node);
|
|
13432
13431
|
}
|
|
13433
|
-
if (input.StrictTransportSecurity
|
|
13432
|
+
if (input.StrictTransportSecurity != null) {
|
|
13434
13433
|
var node = serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity(input.StrictTransportSecurity, context).withName("StrictTransportSecurity");
|
|
13435
13434
|
bodyNode.addChildNode(node);
|
|
13436
13435
|
}
|
|
@@ -13438,11 +13437,11 @@ var serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = function (i
|
|
|
13438
13437
|
};
|
|
13439
13438
|
var serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig = function (input, context) {
|
|
13440
13439
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyServerTimingHeadersConfig");
|
|
13441
|
-
if (input.Enabled
|
|
13440
|
+
if (input.Enabled != null) {
|
|
13442
13441
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
13443
13442
|
bodyNode.addChildNode(node);
|
|
13444
13443
|
}
|
|
13445
|
-
if (input.SamplingRate
|
|
13444
|
+
if (input.SamplingRate != null) {
|
|
13446
13445
|
var node = new __XmlNode("SamplingRate")
|
|
13447
13446
|
.addChildNode(new __XmlText(String(input.SamplingRate)))
|
|
13448
13447
|
.withName("SamplingRate");
|
|
@@ -13452,21 +13451,21 @@ var serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig = functio
|
|
|
13452
13451
|
};
|
|
13453
13452
|
var serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = function (input, context) {
|
|
13454
13453
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyStrictTransportSecurity");
|
|
13455
|
-
if (input.Override
|
|
13454
|
+
if (input.Override != null) {
|
|
13456
13455
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
13457
13456
|
bodyNode.addChildNode(node);
|
|
13458
13457
|
}
|
|
13459
|
-
if (input.IncludeSubdomains
|
|
13458
|
+
if (input.IncludeSubdomains != null) {
|
|
13460
13459
|
var node = new __XmlNode("boolean")
|
|
13461
13460
|
.addChildNode(new __XmlText(String(input.IncludeSubdomains)))
|
|
13462
13461
|
.withName("IncludeSubdomains");
|
|
13463
13462
|
bodyNode.addChildNode(node);
|
|
13464
13463
|
}
|
|
13465
|
-
if (input.Preload
|
|
13464
|
+
if (input.Preload != null) {
|
|
13466
13465
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Preload))).withName("Preload");
|
|
13467
13466
|
bodyNode.addChildNode(node);
|
|
13468
13467
|
}
|
|
13469
|
-
if (input.AccessControlMaxAgeSec
|
|
13468
|
+
if (input.AccessControlMaxAgeSec != null) {
|
|
13470
13469
|
var node = new __XmlNode("integer")
|
|
13471
13470
|
.addChildNode(new __XmlText(String(input.AccessControlMaxAgeSec)))
|
|
13472
13471
|
.withName("AccessControlMaxAgeSec");
|
|
@@ -13476,19 +13475,19 @@ var serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = function
|
|
|
13476
13475
|
};
|
|
13477
13476
|
var serializeAws_restXmlResponseHeadersPolicyXSSProtection = function (input, context) {
|
|
13478
13477
|
var bodyNode = new __XmlNode("ResponseHeadersPolicyXSSProtection");
|
|
13479
|
-
if (input.Override
|
|
13478
|
+
if (input.Override != null) {
|
|
13480
13479
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
13481
13480
|
bodyNode.addChildNode(node);
|
|
13482
13481
|
}
|
|
13483
|
-
if (input.Protection
|
|
13482
|
+
if (input.Protection != null) {
|
|
13484
13483
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Protection))).withName("Protection");
|
|
13485
13484
|
bodyNode.addChildNode(node);
|
|
13486
13485
|
}
|
|
13487
|
-
if (input.ModeBlock
|
|
13486
|
+
if (input.ModeBlock != null) {
|
|
13488
13487
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.ModeBlock))).withName("ModeBlock");
|
|
13489
13488
|
bodyNode.addChildNode(node);
|
|
13490
13489
|
}
|
|
13491
|
-
if (input.ReportUri
|
|
13490
|
+
if (input.ReportUri != null) {
|
|
13492
13491
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.ReportUri)).withName("ReportUri");
|
|
13493
13492
|
bodyNode.addChildNode(node);
|
|
13494
13493
|
}
|
|
@@ -13496,7 +13495,7 @@ var serializeAws_restXmlResponseHeadersPolicyXSSProtection = function (input, co
|
|
|
13496
13495
|
};
|
|
13497
13496
|
var serializeAws_restXmlRestrictions = function (input, context) {
|
|
13498
13497
|
var bodyNode = new __XmlNode("Restrictions");
|
|
13499
|
-
if (input.GeoRestriction
|
|
13498
|
+
if (input.GeoRestriction != null) {
|
|
13500
13499
|
var node = serializeAws_restXmlGeoRestriction(input.GeoRestriction, context).withName("GeoRestriction");
|
|
13501
13500
|
bodyNode.addChildNode(node);
|
|
13502
13501
|
}
|
|
@@ -13504,11 +13503,11 @@ var serializeAws_restXmlRestrictions = function (input, context) {
|
|
|
13504
13503
|
};
|
|
13505
13504
|
var serializeAws_restXmlS3Origin = function (input, context) {
|
|
13506
13505
|
var bodyNode = new __XmlNode("S3Origin");
|
|
13507
|
-
if (input.DomainName
|
|
13506
|
+
if (input.DomainName != null) {
|
|
13508
13507
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.DomainName)).withName("DomainName");
|
|
13509
13508
|
bodyNode.addChildNode(node);
|
|
13510
13509
|
}
|
|
13511
|
-
if (input.OriginAccessIdentity
|
|
13510
|
+
if (input.OriginAccessIdentity != null) {
|
|
13512
13511
|
var node = new __XmlNode("string")
|
|
13513
13512
|
.addChildNode(new __XmlText(input.OriginAccessIdentity))
|
|
13514
13513
|
.withName("OriginAccessIdentity");
|
|
@@ -13518,7 +13517,7 @@ var serializeAws_restXmlS3Origin = function (input, context) {
|
|
|
13518
13517
|
};
|
|
13519
13518
|
var serializeAws_restXmlS3OriginConfig = function (input, context) {
|
|
13520
13519
|
var bodyNode = new __XmlNode("S3OriginConfig");
|
|
13521
|
-
if (input.OriginAccessIdentity
|
|
13520
|
+
if (input.OriginAccessIdentity != null) {
|
|
13522
13521
|
var node = new __XmlNode("string")
|
|
13523
13522
|
.addChildNode(new __XmlText(input.OriginAccessIdentity))
|
|
13524
13523
|
.withName("OriginAccessIdentity");
|
|
@@ -13550,11 +13549,11 @@ var serializeAws_restXmlStatusCodeList = function (input, context) {
|
|
|
13550
13549
|
};
|
|
13551
13550
|
var serializeAws_restXmlStatusCodes = function (input, context) {
|
|
13552
13551
|
var bodyNode = new __XmlNode("StatusCodes");
|
|
13553
|
-
if (input.Quantity
|
|
13552
|
+
if (input.Quantity != null) {
|
|
13554
13553
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13555
13554
|
bodyNode.addChildNode(node);
|
|
13556
13555
|
}
|
|
13557
|
-
if (input.Items
|
|
13556
|
+
if (input.Items != null) {
|
|
13558
13557
|
var nodes = serializeAws_restXmlStatusCodeList(input.Items, context);
|
|
13559
13558
|
var containerNode_33 = new __XmlNode("Items");
|
|
13560
13559
|
nodes.map(function (node) {
|
|
@@ -13566,35 +13565,35 @@ var serializeAws_restXmlStatusCodes = function (input, context) {
|
|
|
13566
13565
|
};
|
|
13567
13566
|
var serializeAws_restXmlStreamingDistributionConfig = function (input, context) {
|
|
13568
13567
|
var bodyNode = new __XmlNode("StreamingDistributionConfig");
|
|
13569
|
-
if (input.CallerReference
|
|
13568
|
+
if (input.CallerReference != null) {
|
|
13570
13569
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.CallerReference)).withName("CallerReference");
|
|
13571
13570
|
bodyNode.addChildNode(node);
|
|
13572
13571
|
}
|
|
13573
|
-
if (input.S3Origin
|
|
13572
|
+
if (input.S3Origin != null) {
|
|
13574
13573
|
var node = serializeAws_restXmlS3Origin(input.S3Origin, context).withName("S3Origin");
|
|
13575
13574
|
bodyNode.addChildNode(node);
|
|
13576
13575
|
}
|
|
13577
|
-
if (input.Aliases
|
|
13576
|
+
if (input.Aliases != null) {
|
|
13578
13577
|
var node = serializeAws_restXmlAliases(input.Aliases, context).withName("Aliases");
|
|
13579
13578
|
bodyNode.addChildNode(node);
|
|
13580
13579
|
}
|
|
13581
|
-
if (input.Comment
|
|
13580
|
+
if (input.Comment != null) {
|
|
13582
13581
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
13583
13582
|
bodyNode.addChildNode(node);
|
|
13584
13583
|
}
|
|
13585
|
-
if (input.Logging
|
|
13584
|
+
if (input.Logging != null) {
|
|
13586
13585
|
var node = serializeAws_restXmlStreamingLoggingConfig(input.Logging, context).withName("Logging");
|
|
13587
13586
|
bodyNode.addChildNode(node);
|
|
13588
13587
|
}
|
|
13589
|
-
if (input.TrustedSigners
|
|
13588
|
+
if (input.TrustedSigners != null) {
|
|
13590
13589
|
var node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
13591
13590
|
bodyNode.addChildNode(node);
|
|
13592
13591
|
}
|
|
13593
|
-
if (input.PriceClass
|
|
13592
|
+
if (input.PriceClass != null) {
|
|
13594
13593
|
var node = new __XmlNode("PriceClass").addChildNode(new __XmlText(input.PriceClass)).withName("PriceClass");
|
|
13595
13594
|
bodyNode.addChildNode(node);
|
|
13596
13595
|
}
|
|
13597
|
-
if (input.Enabled
|
|
13596
|
+
if (input.Enabled != null) {
|
|
13598
13597
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
13599
13598
|
bodyNode.addChildNode(node);
|
|
13600
13599
|
}
|
|
@@ -13602,11 +13601,11 @@ var serializeAws_restXmlStreamingDistributionConfig = function (input, context)
|
|
|
13602
13601
|
};
|
|
13603
13602
|
var serializeAws_restXmlStreamingDistributionConfigWithTags = function (input, context) {
|
|
13604
13603
|
var bodyNode = new __XmlNode("StreamingDistributionConfigWithTags");
|
|
13605
|
-
if (input.StreamingDistributionConfig
|
|
13604
|
+
if (input.StreamingDistributionConfig != null) {
|
|
13606
13605
|
var node = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context).withName("StreamingDistributionConfig");
|
|
13607
13606
|
bodyNode.addChildNode(node);
|
|
13608
13607
|
}
|
|
13609
|
-
if (input.Tags
|
|
13608
|
+
if (input.Tags != null) {
|
|
13610
13609
|
var node = serializeAws_restXmlTags(input.Tags, context).withName("Tags");
|
|
13611
13610
|
bodyNode.addChildNode(node);
|
|
13612
13611
|
}
|
|
@@ -13614,15 +13613,15 @@ var serializeAws_restXmlStreamingDistributionConfigWithTags = function (input, c
|
|
|
13614
13613
|
};
|
|
13615
13614
|
var serializeAws_restXmlStreamingLoggingConfig = function (input, context) {
|
|
13616
13615
|
var bodyNode = new __XmlNode("StreamingLoggingConfig");
|
|
13617
|
-
if (input.Enabled
|
|
13616
|
+
if (input.Enabled != null) {
|
|
13618
13617
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
13619
13618
|
bodyNode.addChildNode(node);
|
|
13620
13619
|
}
|
|
13621
|
-
if (input.Bucket
|
|
13620
|
+
if (input.Bucket != null) {
|
|
13622
13621
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Bucket)).withName("Bucket");
|
|
13623
13622
|
bodyNode.addChildNode(node);
|
|
13624
13623
|
}
|
|
13625
|
-
if (input.Prefix
|
|
13624
|
+
if (input.Prefix != null) {
|
|
13626
13625
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Prefix)).withName("Prefix");
|
|
13627
13626
|
bodyNode.addChildNode(node);
|
|
13628
13627
|
}
|
|
@@ -13630,11 +13629,11 @@ var serializeAws_restXmlStreamingLoggingConfig = function (input, context) {
|
|
|
13630
13629
|
};
|
|
13631
13630
|
var serializeAws_restXmlTag = function (input, context) {
|
|
13632
13631
|
var bodyNode = new __XmlNode("Tag");
|
|
13633
|
-
if (input.Key
|
|
13632
|
+
if (input.Key != null) {
|
|
13634
13633
|
var node = new __XmlNode("TagKey").addChildNode(new __XmlText(input.Key)).withName("Key");
|
|
13635
13634
|
bodyNode.addChildNode(node);
|
|
13636
13635
|
}
|
|
13637
|
-
if (input.Value
|
|
13636
|
+
if (input.Value != null) {
|
|
13638
13637
|
var node = new __XmlNode("TagValue").addChildNode(new __XmlText(input.Value)).withName("Value");
|
|
13639
13638
|
bodyNode.addChildNode(node);
|
|
13640
13639
|
}
|
|
@@ -13653,7 +13652,7 @@ var serializeAws_restXmlTagKeyList = function (input, context) {
|
|
|
13653
13652
|
};
|
|
13654
13653
|
var serializeAws_restXmlTagKeys = function (input, context) {
|
|
13655
13654
|
var bodyNode = new __XmlNode("TagKeys");
|
|
13656
|
-
if (input.Items
|
|
13655
|
+
if (input.Items != null) {
|
|
13657
13656
|
var nodes = serializeAws_restXmlTagKeyList(input.Items, context);
|
|
13658
13657
|
var containerNode_34 = new __XmlNode("Items");
|
|
13659
13658
|
nodes.map(function (node) {
|
|
@@ -13676,7 +13675,7 @@ var serializeAws_restXmlTagList = function (input, context) {
|
|
|
13676
13675
|
};
|
|
13677
13676
|
var serializeAws_restXmlTags = function (input, context) {
|
|
13678
13677
|
var bodyNode = new __XmlNode("Tags");
|
|
13679
|
-
if (input.Items
|
|
13678
|
+
if (input.Items != null) {
|
|
13680
13679
|
var nodes = serializeAws_restXmlTagList(input.Items, context);
|
|
13681
13680
|
var containerNode_35 = new __XmlNode("Items");
|
|
13682
13681
|
nodes.map(function (node) {
|
|
@@ -13699,15 +13698,15 @@ var serializeAws_restXmlTrustedKeyGroupIdList = function (input, context) {
|
|
|
13699
13698
|
};
|
|
13700
13699
|
var serializeAws_restXmlTrustedKeyGroups = function (input, context) {
|
|
13701
13700
|
var bodyNode = new __XmlNode("TrustedKeyGroups");
|
|
13702
|
-
if (input.Enabled
|
|
13701
|
+
if (input.Enabled != null) {
|
|
13703
13702
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
13704
13703
|
bodyNode.addChildNode(node);
|
|
13705
13704
|
}
|
|
13706
|
-
if (input.Quantity
|
|
13705
|
+
if (input.Quantity != null) {
|
|
13707
13706
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13708
13707
|
bodyNode.addChildNode(node);
|
|
13709
13708
|
}
|
|
13710
|
-
if (input.Items
|
|
13709
|
+
if (input.Items != null) {
|
|
13711
13710
|
var nodes = serializeAws_restXmlTrustedKeyGroupIdList(input.Items, context);
|
|
13712
13711
|
var containerNode_36 = new __XmlNode("Items");
|
|
13713
13712
|
nodes.map(function (node) {
|
|
@@ -13719,15 +13718,15 @@ var serializeAws_restXmlTrustedKeyGroups = function (input, context) {
|
|
|
13719
13718
|
};
|
|
13720
13719
|
var serializeAws_restXmlTrustedSigners = function (input, context) {
|
|
13721
13720
|
var bodyNode = new __XmlNode("TrustedSigners");
|
|
13722
|
-
if (input.Enabled
|
|
13721
|
+
if (input.Enabled != null) {
|
|
13723
13722
|
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Enabled))).withName("Enabled");
|
|
13724
13723
|
bodyNode.addChildNode(node);
|
|
13725
13724
|
}
|
|
13726
|
-
if (input.Quantity
|
|
13725
|
+
if (input.Quantity != null) {
|
|
13727
13726
|
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
13728
13727
|
bodyNode.addChildNode(node);
|
|
13729
13728
|
}
|
|
13730
|
-
if (input.Items
|
|
13729
|
+
if (input.Items != null) {
|
|
13731
13730
|
var nodes = serializeAws_restXmlAwsAccountNumberList(input.Items, context);
|
|
13732
13731
|
var containerNode_37 = new __XmlNode("Items");
|
|
13733
13732
|
nodes.map(function (node) {
|
|
@@ -13739,41 +13738,41 @@ var serializeAws_restXmlTrustedSigners = function (input, context) {
|
|
|
13739
13738
|
};
|
|
13740
13739
|
var serializeAws_restXmlViewerCertificate = function (input, context) {
|
|
13741
13740
|
var bodyNode = new __XmlNode("ViewerCertificate");
|
|
13742
|
-
if (input.CloudFrontDefaultCertificate
|
|
13741
|
+
if (input.CloudFrontDefaultCertificate != null) {
|
|
13743
13742
|
var node = new __XmlNode("boolean")
|
|
13744
13743
|
.addChildNode(new __XmlText(String(input.CloudFrontDefaultCertificate)))
|
|
13745
13744
|
.withName("CloudFrontDefaultCertificate");
|
|
13746
13745
|
bodyNode.addChildNode(node);
|
|
13747
13746
|
}
|
|
13748
|
-
if (input.IAMCertificateId
|
|
13747
|
+
if (input.IAMCertificateId != null) {
|
|
13749
13748
|
var node = new __XmlNode("string")
|
|
13750
13749
|
.addChildNode(new __XmlText(input.IAMCertificateId))
|
|
13751
13750
|
.withName("IAMCertificateId");
|
|
13752
13751
|
bodyNode.addChildNode(node);
|
|
13753
13752
|
}
|
|
13754
|
-
if (input.ACMCertificateArn
|
|
13753
|
+
if (input.ACMCertificateArn != null) {
|
|
13755
13754
|
var node = new __XmlNode("string")
|
|
13756
13755
|
.addChildNode(new __XmlText(input.ACMCertificateArn))
|
|
13757
13756
|
.withName("ACMCertificateArn");
|
|
13758
13757
|
bodyNode.addChildNode(node);
|
|
13759
13758
|
}
|
|
13760
|
-
if (input.SSLSupportMethod
|
|
13759
|
+
if (input.SSLSupportMethod != null) {
|
|
13761
13760
|
var node = new __XmlNode("SSLSupportMethod")
|
|
13762
13761
|
.addChildNode(new __XmlText(input.SSLSupportMethod))
|
|
13763
13762
|
.withName("SSLSupportMethod");
|
|
13764
13763
|
bodyNode.addChildNode(node);
|
|
13765
13764
|
}
|
|
13766
|
-
if (input.MinimumProtocolVersion
|
|
13765
|
+
if (input.MinimumProtocolVersion != null) {
|
|
13767
13766
|
var node = new __XmlNode("MinimumProtocolVersion")
|
|
13768
13767
|
.addChildNode(new __XmlText(input.MinimumProtocolVersion))
|
|
13769
13768
|
.withName("MinimumProtocolVersion");
|
|
13770
13769
|
bodyNode.addChildNode(node);
|
|
13771
13770
|
}
|
|
13772
|
-
if (input.Certificate
|
|
13771
|
+
if (input.Certificate != null) {
|
|
13773
13772
|
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Certificate)).withName("Certificate");
|
|
13774
13773
|
bodyNode.addChildNode(node);
|
|
13775
13774
|
}
|
|
13776
|
-
if (input.CertificateSource
|
|
13775
|
+
if (input.CertificateSource != null) {
|
|
13777
13776
|
var node = new __XmlNode("CertificateSource")
|
|
13778
13777
|
.addChildNode(new __XmlText(input.CertificateSource))
|
|
13779
13778
|
.withName("CertificateSource");
|