@aws-sdk/client-cloudfront 3.121.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restXml.js +297 -298
- package/dist-es/protocols/Aws_restXml.js +297 -298
- package/package.json +27 -27
|
@@ -9253,11 +9253,11 @@ const serializeAws_restXmlAccessControlExposeHeadersList = (input, context) => {
|
|
|
9253
9253
|
};
|
|
9254
9254
|
const serializeAws_restXmlAliases = (input, context) => {
|
|
9255
9255
|
const bodyNode = new xml_builder_1.XmlNode("Aliases");
|
|
9256
|
-
if (input.Quantity
|
|
9256
|
+
if (input.Quantity != null) {
|
|
9257
9257
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9258
9258
|
bodyNode.addChildNode(node);
|
|
9259
9259
|
}
|
|
9260
|
-
if (input.Items
|
|
9260
|
+
if (input.Items != null) {
|
|
9261
9261
|
const nodes = serializeAws_restXmlAliasList(input.Items, context);
|
|
9262
9262
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9263
9263
|
nodes.map((node) => {
|
|
@@ -9280,11 +9280,11 @@ const serializeAws_restXmlAliasList = (input, context) => {
|
|
|
9280
9280
|
};
|
|
9281
9281
|
const serializeAws_restXmlAllowedMethods = (input, context) => {
|
|
9282
9282
|
const bodyNode = new xml_builder_1.XmlNode("AllowedMethods");
|
|
9283
|
-
if (input.Quantity
|
|
9283
|
+
if (input.Quantity != null) {
|
|
9284
9284
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9285
9285
|
bodyNode.addChildNode(node);
|
|
9286
9286
|
}
|
|
9287
|
-
if (input.Items
|
|
9287
|
+
if (input.Items != null) {
|
|
9288
9288
|
const nodes = serializeAws_restXmlMethodsList(input.Items, context);
|
|
9289
9289
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9290
9290
|
nodes.map((node) => {
|
|
@@ -9292,7 +9292,7 @@ const serializeAws_restXmlAllowedMethods = (input, context) => {
|
|
|
9292
9292
|
});
|
|
9293
9293
|
bodyNode.addChildNode(containerNode);
|
|
9294
9294
|
}
|
|
9295
|
-
if (input.CachedMethods
|
|
9295
|
+
if (input.CachedMethods != null) {
|
|
9296
9296
|
const node = serializeAws_restXmlCachedMethods(input.CachedMethods, context).withName("CachedMethods");
|
|
9297
9297
|
bodyNode.addChildNode(node);
|
|
9298
9298
|
}
|
|
@@ -9311,91 +9311,91 @@ const serializeAws_restXmlAwsAccountNumberList = (input, context) => {
|
|
|
9311
9311
|
};
|
|
9312
9312
|
const serializeAws_restXmlCacheBehavior = (input, context) => {
|
|
9313
9313
|
const bodyNode = new xml_builder_1.XmlNode("CacheBehavior");
|
|
9314
|
-
if (input.PathPattern
|
|
9314
|
+
if (input.PathPattern != null) {
|
|
9315
9315
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.PathPattern)).withName("PathPattern");
|
|
9316
9316
|
bodyNode.addChildNode(node);
|
|
9317
9317
|
}
|
|
9318
|
-
if (input.TargetOriginId
|
|
9318
|
+
if (input.TargetOriginId != null) {
|
|
9319
9319
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.TargetOriginId)).withName("TargetOriginId");
|
|
9320
9320
|
bodyNode.addChildNode(node);
|
|
9321
9321
|
}
|
|
9322
|
-
if (input.TrustedSigners
|
|
9322
|
+
if (input.TrustedSigners != null) {
|
|
9323
9323
|
const node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
9324
9324
|
bodyNode.addChildNode(node);
|
|
9325
9325
|
}
|
|
9326
|
-
if (input.TrustedKeyGroups
|
|
9326
|
+
if (input.TrustedKeyGroups != null) {
|
|
9327
9327
|
const node = serializeAws_restXmlTrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups");
|
|
9328
9328
|
bodyNode.addChildNode(node);
|
|
9329
9329
|
}
|
|
9330
|
-
if (input.ViewerProtocolPolicy
|
|
9330
|
+
if (input.ViewerProtocolPolicy != null) {
|
|
9331
9331
|
const node = new xml_builder_1.XmlNode("ViewerProtocolPolicy")
|
|
9332
9332
|
.addChildNode(new xml_builder_1.XmlText(input.ViewerProtocolPolicy))
|
|
9333
9333
|
.withName("ViewerProtocolPolicy");
|
|
9334
9334
|
bodyNode.addChildNode(node);
|
|
9335
9335
|
}
|
|
9336
|
-
if (input.AllowedMethods
|
|
9336
|
+
if (input.AllowedMethods != null) {
|
|
9337
9337
|
const node = serializeAws_restXmlAllowedMethods(input.AllowedMethods, context).withName("AllowedMethods");
|
|
9338
9338
|
bodyNode.addChildNode(node);
|
|
9339
9339
|
}
|
|
9340
|
-
if (input.SmoothStreaming
|
|
9340
|
+
if (input.SmoothStreaming != null) {
|
|
9341
9341
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9342
9342
|
.addChildNode(new xml_builder_1.XmlText(String(input.SmoothStreaming)))
|
|
9343
9343
|
.withName("SmoothStreaming");
|
|
9344
9344
|
bodyNode.addChildNode(node);
|
|
9345
9345
|
}
|
|
9346
|
-
if (input.Compress
|
|
9346
|
+
if (input.Compress != null) {
|
|
9347
9347
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Compress))).withName("Compress");
|
|
9348
9348
|
bodyNode.addChildNode(node);
|
|
9349
9349
|
}
|
|
9350
|
-
if (input.LambdaFunctionAssociations
|
|
9350
|
+
if (input.LambdaFunctionAssociations != null) {
|
|
9351
9351
|
const node = serializeAws_restXmlLambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName("LambdaFunctionAssociations");
|
|
9352
9352
|
bodyNode.addChildNode(node);
|
|
9353
9353
|
}
|
|
9354
|
-
if (input.FunctionAssociations
|
|
9354
|
+
if (input.FunctionAssociations != null) {
|
|
9355
9355
|
const node = serializeAws_restXmlFunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations");
|
|
9356
9356
|
bodyNode.addChildNode(node);
|
|
9357
9357
|
}
|
|
9358
|
-
if (input.FieldLevelEncryptionId
|
|
9358
|
+
if (input.FieldLevelEncryptionId != null) {
|
|
9359
9359
|
const node = new xml_builder_1.XmlNode("string")
|
|
9360
9360
|
.addChildNode(new xml_builder_1.XmlText(input.FieldLevelEncryptionId))
|
|
9361
9361
|
.withName("FieldLevelEncryptionId");
|
|
9362
9362
|
bodyNode.addChildNode(node);
|
|
9363
9363
|
}
|
|
9364
|
-
if (input.RealtimeLogConfigArn
|
|
9364
|
+
if (input.RealtimeLogConfigArn != null) {
|
|
9365
9365
|
const node = new xml_builder_1.XmlNode("string")
|
|
9366
9366
|
.addChildNode(new xml_builder_1.XmlText(input.RealtimeLogConfigArn))
|
|
9367
9367
|
.withName("RealtimeLogConfigArn");
|
|
9368
9368
|
bodyNode.addChildNode(node);
|
|
9369
9369
|
}
|
|
9370
|
-
if (input.CachePolicyId
|
|
9370
|
+
if (input.CachePolicyId != null) {
|
|
9371
9371
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CachePolicyId)).withName("CachePolicyId");
|
|
9372
9372
|
bodyNode.addChildNode(node);
|
|
9373
9373
|
}
|
|
9374
|
-
if (input.OriginRequestPolicyId
|
|
9374
|
+
if (input.OriginRequestPolicyId != null) {
|
|
9375
9375
|
const node = new xml_builder_1.XmlNode("string")
|
|
9376
9376
|
.addChildNode(new xml_builder_1.XmlText(input.OriginRequestPolicyId))
|
|
9377
9377
|
.withName("OriginRequestPolicyId");
|
|
9378
9378
|
bodyNode.addChildNode(node);
|
|
9379
9379
|
}
|
|
9380
|
-
if (input.ResponseHeadersPolicyId
|
|
9380
|
+
if (input.ResponseHeadersPolicyId != null) {
|
|
9381
9381
|
const node = new xml_builder_1.XmlNode("string")
|
|
9382
9382
|
.addChildNode(new xml_builder_1.XmlText(input.ResponseHeadersPolicyId))
|
|
9383
9383
|
.withName("ResponseHeadersPolicyId");
|
|
9384
9384
|
bodyNode.addChildNode(node);
|
|
9385
9385
|
}
|
|
9386
|
-
if (input.ForwardedValues
|
|
9386
|
+
if (input.ForwardedValues != null) {
|
|
9387
9387
|
const node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
9388
9388
|
bodyNode.addChildNode(node);
|
|
9389
9389
|
}
|
|
9390
|
-
if (input.MinTTL
|
|
9390
|
+
if (input.MinTTL != null) {
|
|
9391
9391
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
9392
9392
|
bodyNode.addChildNode(node);
|
|
9393
9393
|
}
|
|
9394
|
-
if (input.DefaultTTL
|
|
9394
|
+
if (input.DefaultTTL != null) {
|
|
9395
9395
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
9396
9396
|
bodyNode.addChildNode(node);
|
|
9397
9397
|
}
|
|
9398
|
-
if (input.MaxTTL
|
|
9398
|
+
if (input.MaxTTL != null) {
|
|
9399
9399
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
9400
9400
|
bodyNode.addChildNode(node);
|
|
9401
9401
|
}
|
|
@@ -9414,11 +9414,11 @@ const serializeAws_restXmlCacheBehaviorList = (input, context) => {
|
|
|
9414
9414
|
};
|
|
9415
9415
|
const serializeAws_restXmlCacheBehaviors = (input, context) => {
|
|
9416
9416
|
const bodyNode = new xml_builder_1.XmlNode("CacheBehaviors");
|
|
9417
|
-
if (input.Quantity
|
|
9417
|
+
if (input.Quantity != null) {
|
|
9418
9418
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9419
9419
|
bodyNode.addChildNode(node);
|
|
9420
9420
|
}
|
|
9421
|
-
if (input.Items
|
|
9421
|
+
if (input.Items != null) {
|
|
9422
9422
|
const nodes = serializeAws_restXmlCacheBehaviorList(input.Items, context);
|
|
9423
9423
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9424
9424
|
nodes.map((node) => {
|
|
@@ -9430,11 +9430,11 @@ const serializeAws_restXmlCacheBehaviors = (input, context) => {
|
|
|
9430
9430
|
};
|
|
9431
9431
|
const serializeAws_restXmlCachedMethods = (input, context) => {
|
|
9432
9432
|
const bodyNode = new xml_builder_1.XmlNode("CachedMethods");
|
|
9433
|
-
if (input.Quantity
|
|
9433
|
+
if (input.Quantity != null) {
|
|
9434
9434
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9435
9435
|
bodyNode.addChildNode(node);
|
|
9436
9436
|
}
|
|
9437
|
-
if (input.Items
|
|
9437
|
+
if (input.Items != null) {
|
|
9438
9438
|
const nodes = serializeAws_restXmlMethodsList(input.Items, context);
|
|
9439
9439
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9440
9440
|
nodes.map((node) => {
|
|
@@ -9446,28 +9446,27 @@ const serializeAws_restXmlCachedMethods = (input, context) => {
|
|
|
9446
9446
|
};
|
|
9447
9447
|
const serializeAws_restXmlCachePolicyConfig = (input, context) => {
|
|
9448
9448
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyConfig");
|
|
9449
|
-
if (input.Comment
|
|
9449
|
+
if (input.Comment != null) {
|
|
9450
9450
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9451
9451
|
bodyNode.addChildNode(node);
|
|
9452
9452
|
}
|
|
9453
|
-
if (input.Name
|
|
9453
|
+
if (input.Name != null) {
|
|
9454
9454
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
9455
9455
|
bodyNode.addChildNode(node);
|
|
9456
9456
|
}
|
|
9457
|
-
if (input.DefaultTTL
|
|
9457
|
+
if (input.DefaultTTL != null) {
|
|
9458
9458
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
9459
9459
|
bodyNode.addChildNode(node);
|
|
9460
9460
|
}
|
|
9461
|
-
if (input.MaxTTL
|
|
9461
|
+
if (input.MaxTTL != null) {
|
|
9462
9462
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
9463
9463
|
bodyNode.addChildNode(node);
|
|
9464
9464
|
}
|
|
9465
|
-
if (input.MinTTL
|
|
9465
|
+
if (input.MinTTL != null) {
|
|
9466
9466
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
9467
9467
|
bodyNode.addChildNode(node);
|
|
9468
9468
|
}
|
|
9469
|
-
if (input.ParametersInCacheKeyAndForwardedToOrigin
|
|
9470
|
-
input.ParametersInCacheKeyAndForwardedToOrigin !== null) {
|
|
9469
|
+
if (input.ParametersInCacheKeyAndForwardedToOrigin != null) {
|
|
9471
9470
|
const node = serializeAws_restXmlParametersInCacheKeyAndForwardedToOrigin(input.ParametersInCacheKeyAndForwardedToOrigin, context).withName("ParametersInCacheKeyAndForwardedToOrigin");
|
|
9472
9471
|
bodyNode.addChildNode(node);
|
|
9473
9472
|
}
|
|
@@ -9475,13 +9474,13 @@ const serializeAws_restXmlCachePolicyConfig = (input, context) => {
|
|
|
9475
9474
|
};
|
|
9476
9475
|
const serializeAws_restXmlCachePolicyCookiesConfig = (input, context) => {
|
|
9477
9476
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyCookiesConfig");
|
|
9478
|
-
if (input.CookieBehavior
|
|
9477
|
+
if (input.CookieBehavior != null) {
|
|
9479
9478
|
const node = new xml_builder_1.XmlNode("CachePolicyCookieBehavior")
|
|
9480
9479
|
.addChildNode(new xml_builder_1.XmlText(input.CookieBehavior))
|
|
9481
9480
|
.withName("CookieBehavior");
|
|
9482
9481
|
bodyNode.addChildNode(node);
|
|
9483
9482
|
}
|
|
9484
|
-
if (input.Cookies
|
|
9483
|
+
if (input.Cookies != null) {
|
|
9485
9484
|
const node = serializeAws_restXmlCookieNames(input.Cookies, context).withName("Cookies");
|
|
9486
9485
|
bodyNode.addChildNode(node);
|
|
9487
9486
|
}
|
|
@@ -9489,13 +9488,13 @@ const serializeAws_restXmlCachePolicyCookiesConfig = (input, context) => {
|
|
|
9489
9488
|
};
|
|
9490
9489
|
const serializeAws_restXmlCachePolicyHeadersConfig = (input, context) => {
|
|
9491
9490
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyHeadersConfig");
|
|
9492
|
-
if (input.HeaderBehavior
|
|
9491
|
+
if (input.HeaderBehavior != null) {
|
|
9493
9492
|
const node = new xml_builder_1.XmlNode("CachePolicyHeaderBehavior")
|
|
9494
9493
|
.addChildNode(new xml_builder_1.XmlText(input.HeaderBehavior))
|
|
9495
9494
|
.withName("HeaderBehavior");
|
|
9496
9495
|
bodyNode.addChildNode(node);
|
|
9497
9496
|
}
|
|
9498
|
-
if (input.Headers
|
|
9497
|
+
if (input.Headers != null) {
|
|
9499
9498
|
const node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
9500
9499
|
bodyNode.addChildNode(node);
|
|
9501
9500
|
}
|
|
@@ -9503,13 +9502,13 @@ const serializeAws_restXmlCachePolicyHeadersConfig = (input, context) => {
|
|
|
9503
9502
|
};
|
|
9504
9503
|
const serializeAws_restXmlCachePolicyQueryStringsConfig = (input, context) => {
|
|
9505
9504
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyQueryStringsConfig");
|
|
9506
|
-
if (input.QueryStringBehavior
|
|
9505
|
+
if (input.QueryStringBehavior != null) {
|
|
9507
9506
|
const node = new xml_builder_1.XmlNode("CachePolicyQueryStringBehavior")
|
|
9508
9507
|
.addChildNode(new xml_builder_1.XmlText(input.QueryStringBehavior))
|
|
9509
9508
|
.withName("QueryStringBehavior");
|
|
9510
9509
|
bodyNode.addChildNode(node);
|
|
9511
9510
|
}
|
|
9512
|
-
if (input.QueryStrings
|
|
9511
|
+
if (input.QueryStrings != null) {
|
|
9513
9512
|
const node = serializeAws_restXmlQueryStringNames(input.QueryStrings, context).withName("QueryStrings");
|
|
9514
9513
|
bodyNode.addChildNode(node);
|
|
9515
9514
|
}
|
|
@@ -9517,11 +9516,11 @@ const serializeAws_restXmlCachePolicyQueryStringsConfig = (input, context) => {
|
|
|
9517
9516
|
};
|
|
9518
9517
|
const serializeAws_restXmlCloudFrontOriginAccessIdentityConfig = (input, context) => {
|
|
9519
9518
|
const bodyNode = new xml_builder_1.XmlNode("CloudFrontOriginAccessIdentityConfig");
|
|
9520
|
-
if (input.CallerReference
|
|
9519
|
+
if (input.CallerReference != null) {
|
|
9521
9520
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9522
9521
|
bodyNode.addChildNode(node);
|
|
9523
9522
|
}
|
|
9524
|
-
if (input.Comment
|
|
9523
|
+
if (input.Comment != null) {
|
|
9525
9524
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9526
9525
|
bodyNode.addChildNode(node);
|
|
9527
9526
|
}
|
|
@@ -9529,15 +9528,15 @@ const serializeAws_restXmlCloudFrontOriginAccessIdentityConfig = (input, context
|
|
|
9529
9528
|
};
|
|
9530
9529
|
const serializeAws_restXmlContentTypeProfile = (input, context) => {
|
|
9531
9530
|
const bodyNode = new xml_builder_1.XmlNode("ContentTypeProfile");
|
|
9532
|
-
if (input.Format
|
|
9531
|
+
if (input.Format != null) {
|
|
9533
9532
|
const node = new xml_builder_1.XmlNode("Format").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
|
|
9534
9533
|
bodyNode.addChildNode(node);
|
|
9535
9534
|
}
|
|
9536
|
-
if (input.ProfileId
|
|
9535
|
+
if (input.ProfileId != null) {
|
|
9537
9536
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ProfileId)).withName("ProfileId");
|
|
9538
9537
|
bodyNode.addChildNode(node);
|
|
9539
9538
|
}
|
|
9540
|
-
if (input.ContentType
|
|
9539
|
+
if (input.ContentType != null) {
|
|
9541
9540
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ContentType)).withName("ContentType");
|
|
9542
9541
|
bodyNode.addChildNode(node);
|
|
9543
9542
|
}
|
|
@@ -9545,13 +9544,13 @@ const serializeAws_restXmlContentTypeProfile = (input, context) => {
|
|
|
9545
9544
|
};
|
|
9546
9545
|
const serializeAws_restXmlContentTypeProfileConfig = (input, context) => {
|
|
9547
9546
|
const bodyNode = new xml_builder_1.XmlNode("ContentTypeProfileConfig");
|
|
9548
|
-
if (input.ForwardWhenContentTypeIsUnknown
|
|
9547
|
+
if (input.ForwardWhenContentTypeIsUnknown != null) {
|
|
9549
9548
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9550
9549
|
.addChildNode(new xml_builder_1.XmlText(String(input.ForwardWhenContentTypeIsUnknown)))
|
|
9551
9550
|
.withName("ForwardWhenContentTypeIsUnknown");
|
|
9552
9551
|
bodyNode.addChildNode(node);
|
|
9553
9552
|
}
|
|
9554
|
-
if (input.ContentTypeProfiles
|
|
9553
|
+
if (input.ContentTypeProfiles != null) {
|
|
9555
9554
|
const node = serializeAws_restXmlContentTypeProfiles(input.ContentTypeProfiles, context).withName("ContentTypeProfiles");
|
|
9556
9555
|
bodyNode.addChildNode(node);
|
|
9557
9556
|
}
|
|
@@ -9570,11 +9569,11 @@ const serializeAws_restXmlContentTypeProfileList = (input, context) => {
|
|
|
9570
9569
|
};
|
|
9571
9570
|
const serializeAws_restXmlContentTypeProfiles = (input, context) => {
|
|
9572
9571
|
const bodyNode = new xml_builder_1.XmlNode("ContentTypeProfiles");
|
|
9573
|
-
if (input.Quantity
|
|
9572
|
+
if (input.Quantity != null) {
|
|
9574
9573
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9575
9574
|
bodyNode.addChildNode(node);
|
|
9576
9575
|
}
|
|
9577
|
-
if (input.Items
|
|
9576
|
+
if (input.Items != null) {
|
|
9578
9577
|
const nodes = serializeAws_restXmlContentTypeProfileList(input.Items, context);
|
|
9579
9578
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9580
9579
|
nodes.map((node) => {
|
|
@@ -9597,11 +9596,11 @@ const serializeAws_restXmlCookieNameList = (input, context) => {
|
|
|
9597
9596
|
};
|
|
9598
9597
|
const serializeAws_restXmlCookieNames = (input, context) => {
|
|
9599
9598
|
const bodyNode = new xml_builder_1.XmlNode("CookieNames");
|
|
9600
|
-
if (input.Quantity
|
|
9599
|
+
if (input.Quantity != null) {
|
|
9601
9600
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9602
9601
|
bodyNode.addChildNode(node);
|
|
9603
9602
|
}
|
|
9604
|
-
if (input.Items
|
|
9603
|
+
if (input.Items != null) {
|
|
9605
9604
|
const nodes = serializeAws_restXmlCookieNameList(input.Items, context);
|
|
9606
9605
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9607
9606
|
nodes.map((node) => {
|
|
@@ -9613,11 +9612,11 @@ const serializeAws_restXmlCookieNames = (input, context) => {
|
|
|
9613
9612
|
};
|
|
9614
9613
|
const serializeAws_restXmlCookiePreference = (input, context) => {
|
|
9615
9614
|
const bodyNode = new xml_builder_1.XmlNode("CookiePreference");
|
|
9616
|
-
if (input.Forward
|
|
9615
|
+
if (input.Forward != null) {
|
|
9617
9616
|
const node = new xml_builder_1.XmlNode("ItemSelection").addChildNode(new xml_builder_1.XmlText(input.Forward)).withName("Forward");
|
|
9618
9617
|
bodyNode.addChildNode(node);
|
|
9619
9618
|
}
|
|
9620
|
-
if (input.WhitelistedNames
|
|
9619
|
+
if (input.WhitelistedNames != null) {
|
|
9621
9620
|
const node = serializeAws_restXmlCookieNames(input.WhitelistedNames, context).withName("WhitelistedNames");
|
|
9622
9621
|
bodyNode.addChildNode(node);
|
|
9623
9622
|
}
|
|
@@ -9625,21 +9624,21 @@ const serializeAws_restXmlCookiePreference = (input, context) => {
|
|
|
9625
9624
|
};
|
|
9626
9625
|
const serializeAws_restXmlCustomErrorResponse = (input, context) => {
|
|
9627
9626
|
const bodyNode = new xml_builder_1.XmlNode("CustomErrorResponse");
|
|
9628
|
-
if (input.ErrorCode
|
|
9627
|
+
if (input.ErrorCode != null) {
|
|
9629
9628
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.ErrorCode))).withName("ErrorCode");
|
|
9630
9629
|
bodyNode.addChildNode(node);
|
|
9631
9630
|
}
|
|
9632
|
-
if (input.ResponsePagePath
|
|
9631
|
+
if (input.ResponsePagePath != null) {
|
|
9633
9632
|
const node = new xml_builder_1.XmlNode("string")
|
|
9634
9633
|
.addChildNode(new xml_builder_1.XmlText(input.ResponsePagePath))
|
|
9635
9634
|
.withName("ResponsePagePath");
|
|
9636
9635
|
bodyNode.addChildNode(node);
|
|
9637
9636
|
}
|
|
9638
|
-
if (input.ResponseCode
|
|
9637
|
+
if (input.ResponseCode != null) {
|
|
9639
9638
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ResponseCode)).withName("ResponseCode");
|
|
9640
9639
|
bodyNode.addChildNode(node);
|
|
9641
9640
|
}
|
|
9642
|
-
if (input.ErrorCachingMinTTL
|
|
9641
|
+
if (input.ErrorCachingMinTTL != null) {
|
|
9643
9642
|
const node = new xml_builder_1.XmlNode("long")
|
|
9644
9643
|
.addChildNode(new xml_builder_1.XmlText(String(input.ErrorCachingMinTTL)))
|
|
9645
9644
|
.withName("ErrorCachingMinTTL");
|
|
@@ -9660,11 +9659,11 @@ const serializeAws_restXmlCustomErrorResponseList = (input, context) => {
|
|
|
9660
9659
|
};
|
|
9661
9660
|
const serializeAws_restXmlCustomErrorResponses = (input, context) => {
|
|
9662
9661
|
const bodyNode = new xml_builder_1.XmlNode("CustomErrorResponses");
|
|
9663
|
-
if (input.Quantity
|
|
9662
|
+
if (input.Quantity != null) {
|
|
9664
9663
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9665
9664
|
bodyNode.addChildNode(node);
|
|
9666
9665
|
}
|
|
9667
|
-
if (input.Items
|
|
9666
|
+
if (input.Items != null) {
|
|
9668
9667
|
const nodes = serializeAws_restXmlCustomErrorResponseList(input.Items, context);
|
|
9669
9668
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9670
9669
|
nodes.map((node) => {
|
|
@@ -9676,11 +9675,11 @@ const serializeAws_restXmlCustomErrorResponses = (input, context) => {
|
|
|
9676
9675
|
};
|
|
9677
9676
|
const serializeAws_restXmlCustomHeaders = (input, context) => {
|
|
9678
9677
|
const bodyNode = new xml_builder_1.XmlNode("CustomHeaders");
|
|
9679
|
-
if (input.Quantity
|
|
9678
|
+
if (input.Quantity != null) {
|
|
9680
9679
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9681
9680
|
bodyNode.addChildNode(node);
|
|
9682
9681
|
}
|
|
9683
|
-
if (input.Items
|
|
9682
|
+
if (input.Items != null) {
|
|
9684
9683
|
const nodes = serializeAws_restXmlOriginCustomHeadersList(input.Items, context);
|
|
9685
9684
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9686
9685
|
nodes.map((node) => {
|
|
@@ -9692,31 +9691,31 @@ const serializeAws_restXmlCustomHeaders = (input, context) => {
|
|
|
9692
9691
|
};
|
|
9693
9692
|
const serializeAws_restXmlCustomOriginConfig = (input, context) => {
|
|
9694
9693
|
const bodyNode = new xml_builder_1.XmlNode("CustomOriginConfig");
|
|
9695
|
-
if (input.HTTPPort
|
|
9694
|
+
if (input.HTTPPort != null) {
|
|
9696
9695
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.HTTPPort))).withName("HTTPPort");
|
|
9697
9696
|
bodyNode.addChildNode(node);
|
|
9698
9697
|
}
|
|
9699
|
-
if (input.HTTPSPort
|
|
9698
|
+
if (input.HTTPSPort != null) {
|
|
9700
9699
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.HTTPSPort))).withName("HTTPSPort");
|
|
9701
9700
|
bodyNode.addChildNode(node);
|
|
9702
9701
|
}
|
|
9703
|
-
if (input.OriginProtocolPolicy
|
|
9702
|
+
if (input.OriginProtocolPolicy != null) {
|
|
9704
9703
|
const node = new xml_builder_1.XmlNode("OriginProtocolPolicy")
|
|
9705
9704
|
.addChildNode(new xml_builder_1.XmlText(input.OriginProtocolPolicy))
|
|
9706
9705
|
.withName("OriginProtocolPolicy");
|
|
9707
9706
|
bodyNode.addChildNode(node);
|
|
9708
9707
|
}
|
|
9709
|
-
if (input.OriginSslProtocols
|
|
9708
|
+
if (input.OriginSslProtocols != null) {
|
|
9710
9709
|
const node = serializeAws_restXmlOriginSslProtocols(input.OriginSslProtocols, context).withName("OriginSslProtocols");
|
|
9711
9710
|
bodyNode.addChildNode(node);
|
|
9712
9711
|
}
|
|
9713
|
-
if (input.OriginReadTimeout
|
|
9712
|
+
if (input.OriginReadTimeout != null) {
|
|
9714
9713
|
const node = new xml_builder_1.XmlNode("integer")
|
|
9715
9714
|
.addChildNode(new xml_builder_1.XmlText(String(input.OriginReadTimeout)))
|
|
9716
9715
|
.withName("OriginReadTimeout");
|
|
9717
9716
|
bodyNode.addChildNode(node);
|
|
9718
9717
|
}
|
|
9719
|
-
if (input.OriginKeepaliveTimeout
|
|
9718
|
+
if (input.OriginKeepaliveTimeout != null) {
|
|
9720
9719
|
const node = new xml_builder_1.XmlNode("integer")
|
|
9721
9720
|
.addChildNode(new xml_builder_1.XmlText(String(input.OriginKeepaliveTimeout)))
|
|
9722
9721
|
.withName("OriginKeepaliveTimeout");
|
|
@@ -9726,87 +9725,87 @@ const serializeAws_restXmlCustomOriginConfig = (input, context) => {
|
|
|
9726
9725
|
};
|
|
9727
9726
|
const serializeAws_restXmlDefaultCacheBehavior = (input, context) => {
|
|
9728
9727
|
const bodyNode = new xml_builder_1.XmlNode("DefaultCacheBehavior");
|
|
9729
|
-
if (input.TargetOriginId
|
|
9728
|
+
if (input.TargetOriginId != null) {
|
|
9730
9729
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.TargetOriginId)).withName("TargetOriginId");
|
|
9731
9730
|
bodyNode.addChildNode(node);
|
|
9732
9731
|
}
|
|
9733
|
-
if (input.TrustedSigners
|
|
9732
|
+
if (input.TrustedSigners != null) {
|
|
9734
9733
|
const node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
9735
9734
|
bodyNode.addChildNode(node);
|
|
9736
9735
|
}
|
|
9737
|
-
if (input.TrustedKeyGroups
|
|
9736
|
+
if (input.TrustedKeyGroups != null) {
|
|
9738
9737
|
const node = serializeAws_restXmlTrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups");
|
|
9739
9738
|
bodyNode.addChildNode(node);
|
|
9740
9739
|
}
|
|
9741
|
-
if (input.ViewerProtocolPolicy
|
|
9740
|
+
if (input.ViewerProtocolPolicy != null) {
|
|
9742
9741
|
const node = new xml_builder_1.XmlNode("ViewerProtocolPolicy")
|
|
9743
9742
|
.addChildNode(new xml_builder_1.XmlText(input.ViewerProtocolPolicy))
|
|
9744
9743
|
.withName("ViewerProtocolPolicy");
|
|
9745
9744
|
bodyNode.addChildNode(node);
|
|
9746
9745
|
}
|
|
9747
|
-
if (input.AllowedMethods
|
|
9746
|
+
if (input.AllowedMethods != null) {
|
|
9748
9747
|
const node = serializeAws_restXmlAllowedMethods(input.AllowedMethods, context).withName("AllowedMethods");
|
|
9749
9748
|
bodyNode.addChildNode(node);
|
|
9750
9749
|
}
|
|
9751
|
-
if (input.SmoothStreaming
|
|
9750
|
+
if (input.SmoothStreaming != null) {
|
|
9752
9751
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9753
9752
|
.addChildNode(new xml_builder_1.XmlText(String(input.SmoothStreaming)))
|
|
9754
9753
|
.withName("SmoothStreaming");
|
|
9755
9754
|
bodyNode.addChildNode(node);
|
|
9756
9755
|
}
|
|
9757
|
-
if (input.Compress
|
|
9756
|
+
if (input.Compress != null) {
|
|
9758
9757
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Compress))).withName("Compress");
|
|
9759
9758
|
bodyNode.addChildNode(node);
|
|
9760
9759
|
}
|
|
9761
|
-
if (input.LambdaFunctionAssociations
|
|
9760
|
+
if (input.LambdaFunctionAssociations != null) {
|
|
9762
9761
|
const node = serializeAws_restXmlLambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName("LambdaFunctionAssociations");
|
|
9763
9762
|
bodyNode.addChildNode(node);
|
|
9764
9763
|
}
|
|
9765
|
-
if (input.FunctionAssociations
|
|
9764
|
+
if (input.FunctionAssociations != null) {
|
|
9766
9765
|
const node = serializeAws_restXmlFunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations");
|
|
9767
9766
|
bodyNode.addChildNode(node);
|
|
9768
9767
|
}
|
|
9769
|
-
if (input.FieldLevelEncryptionId
|
|
9768
|
+
if (input.FieldLevelEncryptionId != null) {
|
|
9770
9769
|
const node = new xml_builder_1.XmlNode("string")
|
|
9771
9770
|
.addChildNode(new xml_builder_1.XmlText(input.FieldLevelEncryptionId))
|
|
9772
9771
|
.withName("FieldLevelEncryptionId");
|
|
9773
9772
|
bodyNode.addChildNode(node);
|
|
9774
9773
|
}
|
|
9775
|
-
if (input.RealtimeLogConfigArn
|
|
9774
|
+
if (input.RealtimeLogConfigArn != null) {
|
|
9776
9775
|
const node = new xml_builder_1.XmlNode("string")
|
|
9777
9776
|
.addChildNode(new xml_builder_1.XmlText(input.RealtimeLogConfigArn))
|
|
9778
9777
|
.withName("RealtimeLogConfigArn");
|
|
9779
9778
|
bodyNode.addChildNode(node);
|
|
9780
9779
|
}
|
|
9781
|
-
if (input.CachePolicyId
|
|
9780
|
+
if (input.CachePolicyId != null) {
|
|
9782
9781
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CachePolicyId)).withName("CachePolicyId");
|
|
9783
9782
|
bodyNode.addChildNode(node);
|
|
9784
9783
|
}
|
|
9785
|
-
if (input.OriginRequestPolicyId
|
|
9784
|
+
if (input.OriginRequestPolicyId != null) {
|
|
9786
9785
|
const node = new xml_builder_1.XmlNode("string")
|
|
9787
9786
|
.addChildNode(new xml_builder_1.XmlText(input.OriginRequestPolicyId))
|
|
9788
9787
|
.withName("OriginRequestPolicyId");
|
|
9789
9788
|
bodyNode.addChildNode(node);
|
|
9790
9789
|
}
|
|
9791
|
-
if (input.ResponseHeadersPolicyId
|
|
9790
|
+
if (input.ResponseHeadersPolicyId != null) {
|
|
9792
9791
|
const node = new xml_builder_1.XmlNode("string")
|
|
9793
9792
|
.addChildNode(new xml_builder_1.XmlText(input.ResponseHeadersPolicyId))
|
|
9794
9793
|
.withName("ResponseHeadersPolicyId");
|
|
9795
9794
|
bodyNode.addChildNode(node);
|
|
9796
9795
|
}
|
|
9797
|
-
if (input.ForwardedValues
|
|
9796
|
+
if (input.ForwardedValues != null) {
|
|
9798
9797
|
const node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
9799
9798
|
bodyNode.addChildNode(node);
|
|
9800
9799
|
}
|
|
9801
|
-
if (input.MinTTL
|
|
9800
|
+
if (input.MinTTL != null) {
|
|
9802
9801
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
9803
9802
|
bodyNode.addChildNode(node);
|
|
9804
9803
|
}
|
|
9805
|
-
if (input.DefaultTTL
|
|
9804
|
+
if (input.DefaultTTL != null) {
|
|
9806
9805
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
9807
9806
|
bodyNode.addChildNode(node);
|
|
9808
9807
|
}
|
|
9809
|
-
if (input.MaxTTL
|
|
9808
|
+
if (input.MaxTTL != null) {
|
|
9810
9809
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
9811
9810
|
bodyNode.addChildNode(node);
|
|
9812
9811
|
}
|
|
@@ -9814,73 +9813,73 @@ const serializeAws_restXmlDefaultCacheBehavior = (input, context) => {
|
|
|
9814
9813
|
};
|
|
9815
9814
|
const serializeAws_restXmlDistributionConfig = (input, context) => {
|
|
9816
9815
|
const bodyNode = new xml_builder_1.XmlNode("DistributionConfig");
|
|
9817
|
-
if (input.CallerReference
|
|
9816
|
+
if (input.CallerReference != null) {
|
|
9818
9817
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9819
9818
|
bodyNode.addChildNode(node);
|
|
9820
9819
|
}
|
|
9821
|
-
if (input.Aliases
|
|
9820
|
+
if (input.Aliases != null) {
|
|
9822
9821
|
const node = serializeAws_restXmlAliases(input.Aliases, context).withName("Aliases");
|
|
9823
9822
|
bodyNode.addChildNode(node);
|
|
9824
9823
|
}
|
|
9825
|
-
if (input.DefaultRootObject
|
|
9824
|
+
if (input.DefaultRootObject != null) {
|
|
9826
9825
|
const node = new xml_builder_1.XmlNode("string")
|
|
9827
9826
|
.addChildNode(new xml_builder_1.XmlText(input.DefaultRootObject))
|
|
9828
9827
|
.withName("DefaultRootObject");
|
|
9829
9828
|
bodyNode.addChildNode(node);
|
|
9830
9829
|
}
|
|
9831
|
-
if (input.Origins
|
|
9830
|
+
if (input.Origins != null) {
|
|
9832
9831
|
const node = serializeAws_restXmlOrigins(input.Origins, context).withName("Origins");
|
|
9833
9832
|
bodyNode.addChildNode(node);
|
|
9834
9833
|
}
|
|
9835
|
-
if (input.OriginGroups
|
|
9834
|
+
if (input.OriginGroups != null) {
|
|
9836
9835
|
const node = serializeAws_restXmlOriginGroups(input.OriginGroups, context).withName("OriginGroups");
|
|
9837
9836
|
bodyNode.addChildNode(node);
|
|
9838
9837
|
}
|
|
9839
|
-
if (input.DefaultCacheBehavior
|
|
9838
|
+
if (input.DefaultCacheBehavior != null) {
|
|
9840
9839
|
const node = serializeAws_restXmlDefaultCacheBehavior(input.DefaultCacheBehavior, context).withName("DefaultCacheBehavior");
|
|
9841
9840
|
bodyNode.addChildNode(node);
|
|
9842
9841
|
}
|
|
9843
|
-
if (input.CacheBehaviors
|
|
9842
|
+
if (input.CacheBehaviors != null) {
|
|
9844
9843
|
const node = serializeAws_restXmlCacheBehaviors(input.CacheBehaviors, context).withName("CacheBehaviors");
|
|
9845
9844
|
bodyNode.addChildNode(node);
|
|
9846
9845
|
}
|
|
9847
|
-
if (input.CustomErrorResponses
|
|
9846
|
+
if (input.CustomErrorResponses != null) {
|
|
9848
9847
|
const node = serializeAws_restXmlCustomErrorResponses(input.CustomErrorResponses, context).withName("CustomErrorResponses");
|
|
9849
9848
|
bodyNode.addChildNode(node);
|
|
9850
9849
|
}
|
|
9851
|
-
if (input.Comment
|
|
9850
|
+
if (input.Comment != null) {
|
|
9852
9851
|
const node = new xml_builder_1.XmlNode("CommentType").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9853
9852
|
bodyNode.addChildNode(node);
|
|
9854
9853
|
}
|
|
9855
|
-
if (input.Logging
|
|
9854
|
+
if (input.Logging != null) {
|
|
9856
9855
|
const node = serializeAws_restXmlLoggingConfig(input.Logging, context).withName("Logging");
|
|
9857
9856
|
bodyNode.addChildNode(node);
|
|
9858
9857
|
}
|
|
9859
|
-
if (input.PriceClass
|
|
9858
|
+
if (input.PriceClass != null) {
|
|
9860
9859
|
const node = new xml_builder_1.XmlNode("PriceClass").addChildNode(new xml_builder_1.XmlText(input.PriceClass)).withName("PriceClass");
|
|
9861
9860
|
bodyNode.addChildNode(node);
|
|
9862
9861
|
}
|
|
9863
|
-
if (input.Enabled
|
|
9862
|
+
if (input.Enabled != null) {
|
|
9864
9863
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
9865
9864
|
bodyNode.addChildNode(node);
|
|
9866
9865
|
}
|
|
9867
|
-
if (input.ViewerCertificate
|
|
9866
|
+
if (input.ViewerCertificate != null) {
|
|
9868
9867
|
const node = serializeAws_restXmlViewerCertificate(input.ViewerCertificate, context).withName("ViewerCertificate");
|
|
9869
9868
|
bodyNode.addChildNode(node);
|
|
9870
9869
|
}
|
|
9871
|
-
if (input.Restrictions
|
|
9870
|
+
if (input.Restrictions != null) {
|
|
9872
9871
|
const node = serializeAws_restXmlRestrictions(input.Restrictions, context).withName("Restrictions");
|
|
9873
9872
|
bodyNode.addChildNode(node);
|
|
9874
9873
|
}
|
|
9875
|
-
if (input.WebACLId
|
|
9874
|
+
if (input.WebACLId != null) {
|
|
9876
9875
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.WebACLId)).withName("WebACLId");
|
|
9877
9876
|
bodyNode.addChildNode(node);
|
|
9878
9877
|
}
|
|
9879
|
-
if (input.HttpVersion
|
|
9878
|
+
if (input.HttpVersion != null) {
|
|
9880
9879
|
const node = new xml_builder_1.XmlNode("HttpVersion").addChildNode(new xml_builder_1.XmlText(input.HttpVersion)).withName("HttpVersion");
|
|
9881
9880
|
bodyNode.addChildNode(node);
|
|
9882
9881
|
}
|
|
9883
|
-
if (input.IsIPV6Enabled
|
|
9882
|
+
if (input.IsIPV6Enabled != null) {
|
|
9884
9883
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9885
9884
|
.addChildNode(new xml_builder_1.XmlText(String(input.IsIPV6Enabled)))
|
|
9886
9885
|
.withName("IsIPV6Enabled");
|
|
@@ -9890,11 +9889,11 @@ const serializeAws_restXmlDistributionConfig = (input, context) => {
|
|
|
9890
9889
|
};
|
|
9891
9890
|
const serializeAws_restXmlDistributionConfigWithTags = (input, context) => {
|
|
9892
9891
|
const bodyNode = new xml_builder_1.XmlNode("DistributionConfigWithTags");
|
|
9893
|
-
if (input.DistributionConfig
|
|
9892
|
+
if (input.DistributionConfig != null) {
|
|
9894
9893
|
const node = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context).withName("DistributionConfig");
|
|
9895
9894
|
bodyNode.addChildNode(node);
|
|
9896
9895
|
}
|
|
9897
|
-
if (input.Tags
|
|
9896
|
+
if (input.Tags != null) {
|
|
9898
9897
|
const node = serializeAws_restXmlTags(input.Tags, context).withName("Tags");
|
|
9899
9898
|
bodyNode.addChildNode(node);
|
|
9900
9899
|
}
|
|
@@ -9902,11 +9901,11 @@ const serializeAws_restXmlDistributionConfigWithTags = (input, context) => {
|
|
|
9902
9901
|
};
|
|
9903
9902
|
const serializeAws_restXmlEncryptionEntities = (input, context) => {
|
|
9904
9903
|
const bodyNode = new xml_builder_1.XmlNode("EncryptionEntities");
|
|
9905
|
-
if (input.Quantity
|
|
9904
|
+
if (input.Quantity != null) {
|
|
9906
9905
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9907
9906
|
bodyNode.addChildNode(node);
|
|
9908
9907
|
}
|
|
9909
|
-
if (input.Items
|
|
9908
|
+
if (input.Items != null) {
|
|
9910
9909
|
const nodes = serializeAws_restXmlEncryptionEntityList(input.Items, context);
|
|
9911
9910
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9912
9911
|
nodes.map((node) => {
|
|
@@ -9918,15 +9917,15 @@ const serializeAws_restXmlEncryptionEntities = (input, context) => {
|
|
|
9918
9917
|
};
|
|
9919
9918
|
const serializeAws_restXmlEncryptionEntity = (input, context) => {
|
|
9920
9919
|
const bodyNode = new xml_builder_1.XmlNode("EncryptionEntity");
|
|
9921
|
-
if (input.PublicKeyId
|
|
9920
|
+
if (input.PublicKeyId != null) {
|
|
9922
9921
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.PublicKeyId)).withName("PublicKeyId");
|
|
9923
9922
|
bodyNode.addChildNode(node);
|
|
9924
9923
|
}
|
|
9925
|
-
if (input.ProviderId
|
|
9924
|
+
if (input.ProviderId != null) {
|
|
9926
9925
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ProviderId)).withName("ProviderId");
|
|
9927
9926
|
bodyNode.addChildNode(node);
|
|
9928
9927
|
}
|
|
9929
|
-
if (input.FieldPatterns
|
|
9928
|
+
if (input.FieldPatterns != null) {
|
|
9930
9929
|
const node = serializeAws_restXmlFieldPatterns(input.FieldPatterns, context).withName("FieldPatterns");
|
|
9931
9930
|
bodyNode.addChildNode(node);
|
|
9932
9931
|
}
|
|
@@ -9945,11 +9944,11 @@ const serializeAws_restXmlEncryptionEntityList = (input, context) => {
|
|
|
9945
9944
|
};
|
|
9946
9945
|
const serializeAws_restXmlEndPoint = (input, context) => {
|
|
9947
9946
|
const bodyNode = new xml_builder_1.XmlNode("EndPoint");
|
|
9948
|
-
if (input.StreamType
|
|
9947
|
+
if (input.StreamType != null) {
|
|
9949
9948
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.StreamType)).withName("StreamType");
|
|
9950
9949
|
bodyNode.addChildNode(node);
|
|
9951
9950
|
}
|
|
9952
|
-
if (input.KinesisStreamConfig
|
|
9951
|
+
if (input.KinesisStreamConfig != null) {
|
|
9953
9952
|
const node = serializeAws_restXmlKinesisStreamConfig(input.KinesisStreamConfig, context).withName("KinesisStreamConfig");
|
|
9954
9953
|
bodyNode.addChildNode(node);
|
|
9955
9954
|
}
|
|
@@ -9968,19 +9967,19 @@ const serializeAws_restXmlEndPointList = (input, context) => {
|
|
|
9968
9967
|
};
|
|
9969
9968
|
const serializeAws_restXmlFieldLevelEncryptionConfig = (input, context) => {
|
|
9970
9969
|
const bodyNode = new xml_builder_1.XmlNode("FieldLevelEncryptionConfig");
|
|
9971
|
-
if (input.CallerReference
|
|
9970
|
+
if (input.CallerReference != null) {
|
|
9972
9971
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9973
9972
|
bodyNode.addChildNode(node);
|
|
9974
9973
|
}
|
|
9975
|
-
if (input.Comment
|
|
9974
|
+
if (input.Comment != null) {
|
|
9976
9975
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9977
9976
|
bodyNode.addChildNode(node);
|
|
9978
9977
|
}
|
|
9979
|
-
if (input.QueryArgProfileConfig
|
|
9978
|
+
if (input.QueryArgProfileConfig != null) {
|
|
9980
9979
|
const node = serializeAws_restXmlQueryArgProfileConfig(input.QueryArgProfileConfig, context).withName("QueryArgProfileConfig");
|
|
9981
9980
|
bodyNode.addChildNode(node);
|
|
9982
9981
|
}
|
|
9983
|
-
if (input.ContentTypeProfileConfig
|
|
9982
|
+
if (input.ContentTypeProfileConfig != null) {
|
|
9984
9983
|
const node = serializeAws_restXmlContentTypeProfileConfig(input.ContentTypeProfileConfig, context).withName("ContentTypeProfileConfig");
|
|
9985
9984
|
bodyNode.addChildNode(node);
|
|
9986
9985
|
}
|
|
@@ -9988,19 +9987,19 @@ const serializeAws_restXmlFieldLevelEncryptionConfig = (input, context) => {
|
|
|
9988
9987
|
};
|
|
9989
9988
|
const serializeAws_restXmlFieldLevelEncryptionProfileConfig = (input, context) => {
|
|
9990
9989
|
const bodyNode = new xml_builder_1.XmlNode("FieldLevelEncryptionProfileConfig");
|
|
9991
|
-
if (input.Name
|
|
9990
|
+
if (input.Name != null) {
|
|
9992
9991
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
9993
9992
|
bodyNode.addChildNode(node);
|
|
9994
9993
|
}
|
|
9995
|
-
if (input.CallerReference
|
|
9994
|
+
if (input.CallerReference != null) {
|
|
9996
9995
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9997
9996
|
bodyNode.addChildNode(node);
|
|
9998
9997
|
}
|
|
9999
|
-
if (input.Comment
|
|
9998
|
+
if (input.Comment != null) {
|
|
10000
9999
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10001
10000
|
bodyNode.addChildNode(node);
|
|
10002
10001
|
}
|
|
10003
|
-
if (input.EncryptionEntities
|
|
10002
|
+
if (input.EncryptionEntities != null) {
|
|
10004
10003
|
const node = serializeAws_restXmlEncryptionEntities(input.EncryptionEntities, context).withName("EncryptionEntities");
|
|
10005
10004
|
bodyNode.addChildNode(node);
|
|
10006
10005
|
}
|
|
@@ -10030,11 +10029,11 @@ const serializeAws_restXmlFieldPatternList = (input, context) => {
|
|
|
10030
10029
|
};
|
|
10031
10030
|
const serializeAws_restXmlFieldPatterns = (input, context) => {
|
|
10032
10031
|
const bodyNode = new xml_builder_1.XmlNode("FieldPatterns");
|
|
10033
|
-
if (input.Quantity
|
|
10032
|
+
if (input.Quantity != null) {
|
|
10034
10033
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10035
10034
|
bodyNode.addChildNode(node);
|
|
10036
10035
|
}
|
|
10037
|
-
if (input.Items
|
|
10036
|
+
if (input.Items != null) {
|
|
10038
10037
|
const nodes = serializeAws_restXmlFieldPatternList(input.Items, context);
|
|
10039
10038
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10040
10039
|
nodes.map((node) => {
|
|
@@ -10046,21 +10045,21 @@ const serializeAws_restXmlFieldPatterns = (input, context) => {
|
|
|
10046
10045
|
};
|
|
10047
10046
|
const serializeAws_restXmlForwardedValues = (input, context) => {
|
|
10048
10047
|
const bodyNode = new xml_builder_1.XmlNode("ForwardedValues");
|
|
10049
|
-
if (input.QueryString
|
|
10048
|
+
if (input.QueryString != null) {
|
|
10050
10049
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10051
10050
|
.addChildNode(new xml_builder_1.XmlText(String(input.QueryString)))
|
|
10052
10051
|
.withName("QueryString");
|
|
10053
10052
|
bodyNode.addChildNode(node);
|
|
10054
10053
|
}
|
|
10055
|
-
if (input.Cookies
|
|
10054
|
+
if (input.Cookies != null) {
|
|
10056
10055
|
const node = serializeAws_restXmlCookiePreference(input.Cookies, context).withName("Cookies");
|
|
10057
10056
|
bodyNode.addChildNode(node);
|
|
10058
10057
|
}
|
|
10059
|
-
if (input.Headers
|
|
10058
|
+
if (input.Headers != null) {
|
|
10060
10059
|
const node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
10061
10060
|
bodyNode.addChildNode(node);
|
|
10062
10061
|
}
|
|
10063
|
-
if (input.QueryStringCacheKeys
|
|
10062
|
+
if (input.QueryStringCacheKeys != null) {
|
|
10064
10063
|
const node = serializeAws_restXmlQueryStringCacheKeys(input.QueryStringCacheKeys, context).withName("QueryStringCacheKeys");
|
|
10065
10064
|
bodyNode.addChildNode(node);
|
|
10066
10065
|
}
|
|
@@ -10068,11 +10067,11 @@ const serializeAws_restXmlForwardedValues = (input, context) => {
|
|
|
10068
10067
|
};
|
|
10069
10068
|
const serializeAws_restXmlFunctionAssociation = (input, context) => {
|
|
10070
10069
|
const bodyNode = new xml_builder_1.XmlNode("FunctionAssociation");
|
|
10071
|
-
if (input.FunctionARN
|
|
10070
|
+
if (input.FunctionARN != null) {
|
|
10072
10071
|
const node = new xml_builder_1.XmlNode("FunctionARN").addChildNode(new xml_builder_1.XmlText(input.FunctionARN)).withName("FunctionARN");
|
|
10073
10072
|
bodyNode.addChildNode(node);
|
|
10074
10073
|
}
|
|
10075
|
-
if (input.EventType
|
|
10074
|
+
if (input.EventType != null) {
|
|
10076
10075
|
const node = new xml_builder_1.XmlNode("EventType").addChildNode(new xml_builder_1.XmlText(input.EventType)).withName("EventType");
|
|
10077
10076
|
bodyNode.addChildNode(node);
|
|
10078
10077
|
}
|
|
@@ -10091,11 +10090,11 @@ const serializeAws_restXmlFunctionAssociationList = (input, context) => {
|
|
|
10091
10090
|
};
|
|
10092
10091
|
const serializeAws_restXmlFunctionAssociations = (input, context) => {
|
|
10093
10092
|
const bodyNode = new xml_builder_1.XmlNode("FunctionAssociations");
|
|
10094
|
-
if (input.Quantity
|
|
10093
|
+
if (input.Quantity != null) {
|
|
10095
10094
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10096
10095
|
bodyNode.addChildNode(node);
|
|
10097
10096
|
}
|
|
10098
|
-
if (input.Items
|
|
10097
|
+
if (input.Items != null) {
|
|
10099
10098
|
const nodes = serializeAws_restXmlFunctionAssociationList(input.Items, context);
|
|
10100
10099
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10101
10100
|
nodes.map((node) => {
|
|
@@ -10107,11 +10106,11 @@ const serializeAws_restXmlFunctionAssociations = (input, context) => {
|
|
|
10107
10106
|
};
|
|
10108
10107
|
const serializeAws_restXmlFunctionConfig = (input, context) => {
|
|
10109
10108
|
const bodyNode = new xml_builder_1.XmlNode("FunctionConfig");
|
|
10110
|
-
if (input.Comment
|
|
10109
|
+
if (input.Comment != null) {
|
|
10111
10110
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10112
10111
|
bodyNode.addChildNode(node);
|
|
10113
10112
|
}
|
|
10114
|
-
if (input.Runtime
|
|
10113
|
+
if (input.Runtime != null) {
|
|
10115
10114
|
const node = new xml_builder_1.XmlNode("FunctionRuntime").addChildNode(new xml_builder_1.XmlText(input.Runtime)).withName("Runtime");
|
|
10116
10115
|
bodyNode.addChildNode(node);
|
|
10117
10116
|
}
|
|
@@ -10119,17 +10118,17 @@ const serializeAws_restXmlFunctionConfig = (input, context) => {
|
|
|
10119
10118
|
};
|
|
10120
10119
|
const serializeAws_restXmlGeoRestriction = (input, context) => {
|
|
10121
10120
|
const bodyNode = new xml_builder_1.XmlNode("GeoRestriction");
|
|
10122
|
-
if (input.RestrictionType
|
|
10121
|
+
if (input.RestrictionType != null) {
|
|
10123
10122
|
const node = new xml_builder_1.XmlNode("GeoRestrictionType")
|
|
10124
10123
|
.addChildNode(new xml_builder_1.XmlText(input.RestrictionType))
|
|
10125
10124
|
.withName("RestrictionType");
|
|
10126
10125
|
bodyNode.addChildNode(node);
|
|
10127
10126
|
}
|
|
10128
|
-
if (input.Quantity
|
|
10127
|
+
if (input.Quantity != null) {
|
|
10129
10128
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10130
10129
|
bodyNode.addChildNode(node);
|
|
10131
10130
|
}
|
|
10132
|
-
if (input.Items
|
|
10131
|
+
if (input.Items != null) {
|
|
10133
10132
|
const nodes = serializeAws_restXmlLocationList(input.Items, context);
|
|
10134
10133
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10135
10134
|
nodes.map((node) => {
|
|
@@ -10152,11 +10151,11 @@ const serializeAws_restXmlHeaderList = (input, context) => {
|
|
|
10152
10151
|
};
|
|
10153
10152
|
const serializeAws_restXmlHeaders = (input, context) => {
|
|
10154
10153
|
const bodyNode = new xml_builder_1.XmlNode("Headers");
|
|
10155
|
-
if (input.Quantity
|
|
10154
|
+
if (input.Quantity != null) {
|
|
10156
10155
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10157
10156
|
bodyNode.addChildNode(node);
|
|
10158
10157
|
}
|
|
10159
|
-
if (input.Items
|
|
10158
|
+
if (input.Items != null) {
|
|
10160
10159
|
const nodes = serializeAws_restXmlHeaderList(input.Items, context);
|
|
10161
10160
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10162
10161
|
nodes.map((node) => {
|
|
@@ -10168,11 +10167,11 @@ const serializeAws_restXmlHeaders = (input, context) => {
|
|
|
10168
10167
|
};
|
|
10169
10168
|
const serializeAws_restXmlInvalidationBatch = (input, context) => {
|
|
10170
10169
|
const bodyNode = new xml_builder_1.XmlNode("InvalidationBatch");
|
|
10171
|
-
if (input.Paths
|
|
10170
|
+
if (input.Paths != null) {
|
|
10172
10171
|
const node = serializeAws_restXmlPaths(input.Paths, context).withName("Paths");
|
|
10173
10172
|
bodyNode.addChildNode(node);
|
|
10174
10173
|
}
|
|
10175
|
-
if (input.CallerReference
|
|
10174
|
+
if (input.CallerReference != null) {
|
|
10176
10175
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
10177
10176
|
bodyNode.addChildNode(node);
|
|
10178
10177
|
}
|
|
@@ -10180,11 +10179,11 @@ const serializeAws_restXmlInvalidationBatch = (input, context) => {
|
|
|
10180
10179
|
};
|
|
10181
10180
|
const serializeAws_restXmlKeyGroupConfig = (input, context) => {
|
|
10182
10181
|
const bodyNode = new xml_builder_1.XmlNode("KeyGroupConfig");
|
|
10183
|
-
if (input.Name
|
|
10182
|
+
if (input.Name != null) {
|
|
10184
10183
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10185
10184
|
bodyNode.addChildNode(node);
|
|
10186
10185
|
}
|
|
10187
|
-
if (input.Items
|
|
10186
|
+
if (input.Items != null) {
|
|
10188
10187
|
const nodes = serializeAws_restXmlPublicKeyIdList(input.Items, context);
|
|
10189
10188
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10190
10189
|
nodes.map((node) => {
|
|
@@ -10192,7 +10191,7 @@ const serializeAws_restXmlKeyGroupConfig = (input, context) => {
|
|
|
10192
10191
|
});
|
|
10193
10192
|
bodyNode.addChildNode(containerNode);
|
|
10194
10193
|
}
|
|
10195
|
-
if (input.Comment
|
|
10194
|
+
if (input.Comment != null) {
|
|
10196
10195
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10197
10196
|
bodyNode.addChildNode(node);
|
|
10198
10197
|
}
|
|
@@ -10200,11 +10199,11 @@ const serializeAws_restXmlKeyGroupConfig = (input, context) => {
|
|
|
10200
10199
|
};
|
|
10201
10200
|
const serializeAws_restXmlKinesisStreamConfig = (input, context) => {
|
|
10202
10201
|
const bodyNode = new xml_builder_1.XmlNode("KinesisStreamConfig");
|
|
10203
|
-
if (input.RoleARN
|
|
10202
|
+
if (input.RoleARN != null) {
|
|
10204
10203
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.RoleARN)).withName("RoleARN");
|
|
10205
10204
|
bodyNode.addChildNode(node);
|
|
10206
10205
|
}
|
|
10207
|
-
if (input.StreamARN
|
|
10206
|
+
if (input.StreamARN != null) {
|
|
10208
10207
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.StreamARN)).withName("StreamARN");
|
|
10209
10208
|
bodyNode.addChildNode(node);
|
|
10210
10209
|
}
|
|
@@ -10212,17 +10211,17 @@ const serializeAws_restXmlKinesisStreamConfig = (input, context) => {
|
|
|
10212
10211
|
};
|
|
10213
10212
|
const serializeAws_restXmlLambdaFunctionAssociation = (input, context) => {
|
|
10214
10213
|
const bodyNode = new xml_builder_1.XmlNode("LambdaFunctionAssociation");
|
|
10215
|
-
if (input.LambdaFunctionARN
|
|
10214
|
+
if (input.LambdaFunctionARN != null) {
|
|
10216
10215
|
const node = new xml_builder_1.XmlNode("LambdaFunctionARN")
|
|
10217
10216
|
.addChildNode(new xml_builder_1.XmlText(input.LambdaFunctionARN))
|
|
10218
10217
|
.withName("LambdaFunctionARN");
|
|
10219
10218
|
bodyNode.addChildNode(node);
|
|
10220
10219
|
}
|
|
10221
|
-
if (input.EventType
|
|
10220
|
+
if (input.EventType != null) {
|
|
10222
10221
|
const node = new xml_builder_1.XmlNode("EventType").addChildNode(new xml_builder_1.XmlText(input.EventType)).withName("EventType");
|
|
10223
10222
|
bodyNode.addChildNode(node);
|
|
10224
10223
|
}
|
|
10225
|
-
if (input.IncludeBody
|
|
10224
|
+
if (input.IncludeBody != null) {
|
|
10226
10225
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10227
10226
|
.addChildNode(new xml_builder_1.XmlText(String(input.IncludeBody)))
|
|
10228
10227
|
.withName("IncludeBody");
|
|
@@ -10243,11 +10242,11 @@ const serializeAws_restXmlLambdaFunctionAssociationList = (input, context) => {
|
|
|
10243
10242
|
};
|
|
10244
10243
|
const serializeAws_restXmlLambdaFunctionAssociations = (input, context) => {
|
|
10245
10244
|
const bodyNode = new xml_builder_1.XmlNode("LambdaFunctionAssociations");
|
|
10246
|
-
if (input.Quantity
|
|
10245
|
+
if (input.Quantity != null) {
|
|
10247
10246
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10248
10247
|
bodyNode.addChildNode(node);
|
|
10249
10248
|
}
|
|
10250
|
-
if (input.Items
|
|
10249
|
+
if (input.Items != null) {
|
|
10251
10250
|
const nodes = serializeAws_restXmlLambdaFunctionAssociationList(input.Items, context);
|
|
10252
10251
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10253
10252
|
nodes.map((node) => {
|
|
@@ -10270,21 +10269,21 @@ const serializeAws_restXmlLocationList = (input, context) => {
|
|
|
10270
10269
|
};
|
|
10271
10270
|
const serializeAws_restXmlLoggingConfig = (input, context) => {
|
|
10272
10271
|
const bodyNode = new xml_builder_1.XmlNode("LoggingConfig");
|
|
10273
|
-
if (input.Enabled
|
|
10272
|
+
if (input.Enabled != null) {
|
|
10274
10273
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
10275
10274
|
bodyNode.addChildNode(node);
|
|
10276
10275
|
}
|
|
10277
|
-
if (input.IncludeCookies
|
|
10276
|
+
if (input.IncludeCookies != null) {
|
|
10278
10277
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10279
10278
|
.addChildNode(new xml_builder_1.XmlText(String(input.IncludeCookies)))
|
|
10280
10279
|
.withName("IncludeCookies");
|
|
10281
10280
|
bodyNode.addChildNode(node);
|
|
10282
10281
|
}
|
|
10283
|
-
if (input.Bucket
|
|
10282
|
+
if (input.Bucket != null) {
|
|
10284
10283
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
|
|
10285
10284
|
bodyNode.addChildNode(node);
|
|
10286
10285
|
}
|
|
10287
|
-
if (input.Prefix
|
|
10286
|
+
if (input.Prefix != null) {
|
|
10288
10287
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
10289
10288
|
bodyNode.addChildNode(node);
|
|
10290
10289
|
}
|
|
@@ -10303,7 +10302,7 @@ const serializeAws_restXmlMethodsList = (input, context) => {
|
|
|
10303
10302
|
};
|
|
10304
10303
|
const serializeAws_restXmlMonitoringSubscription = (input, context) => {
|
|
10305
10304
|
const bodyNode = new xml_builder_1.XmlNode("MonitoringSubscription");
|
|
10306
|
-
if (input.RealtimeMetricsSubscriptionConfig
|
|
10305
|
+
if (input.RealtimeMetricsSubscriptionConfig != null) {
|
|
10307
10306
|
const node = serializeAws_restXmlRealtimeMetricsSubscriptionConfig(input.RealtimeMetricsSubscriptionConfig, context).withName("RealtimeMetricsSubscriptionConfig");
|
|
10308
10307
|
bodyNode.addChildNode(node);
|
|
10309
10308
|
}
|
|
@@ -10311,43 +10310,43 @@ const serializeAws_restXmlMonitoringSubscription = (input, context) => {
|
|
|
10311
10310
|
};
|
|
10312
10311
|
const serializeAws_restXmlOrigin = (input, context) => {
|
|
10313
10312
|
const bodyNode = new xml_builder_1.XmlNode("Origin");
|
|
10314
|
-
if (input.Id
|
|
10313
|
+
if (input.Id != null) {
|
|
10315
10314
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
|
|
10316
10315
|
bodyNode.addChildNode(node);
|
|
10317
10316
|
}
|
|
10318
|
-
if (input.DomainName
|
|
10317
|
+
if (input.DomainName != null) {
|
|
10319
10318
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.DomainName)).withName("DomainName");
|
|
10320
10319
|
bodyNode.addChildNode(node);
|
|
10321
10320
|
}
|
|
10322
|
-
if (input.OriginPath
|
|
10321
|
+
if (input.OriginPath != null) {
|
|
10323
10322
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.OriginPath)).withName("OriginPath");
|
|
10324
10323
|
bodyNode.addChildNode(node);
|
|
10325
10324
|
}
|
|
10326
|
-
if (input.CustomHeaders
|
|
10325
|
+
if (input.CustomHeaders != null) {
|
|
10327
10326
|
const node = serializeAws_restXmlCustomHeaders(input.CustomHeaders, context).withName("CustomHeaders");
|
|
10328
10327
|
bodyNode.addChildNode(node);
|
|
10329
10328
|
}
|
|
10330
|
-
if (input.S3OriginConfig
|
|
10329
|
+
if (input.S3OriginConfig != null) {
|
|
10331
10330
|
const node = serializeAws_restXmlS3OriginConfig(input.S3OriginConfig, context).withName("S3OriginConfig");
|
|
10332
10331
|
bodyNode.addChildNode(node);
|
|
10333
10332
|
}
|
|
10334
|
-
if (input.CustomOriginConfig
|
|
10333
|
+
if (input.CustomOriginConfig != null) {
|
|
10335
10334
|
const node = serializeAws_restXmlCustomOriginConfig(input.CustomOriginConfig, context).withName("CustomOriginConfig");
|
|
10336
10335
|
bodyNode.addChildNode(node);
|
|
10337
10336
|
}
|
|
10338
|
-
if (input.ConnectionAttempts
|
|
10337
|
+
if (input.ConnectionAttempts != null) {
|
|
10339
10338
|
const node = new xml_builder_1.XmlNode("integer")
|
|
10340
10339
|
.addChildNode(new xml_builder_1.XmlText(String(input.ConnectionAttempts)))
|
|
10341
10340
|
.withName("ConnectionAttempts");
|
|
10342
10341
|
bodyNode.addChildNode(node);
|
|
10343
10342
|
}
|
|
10344
|
-
if (input.ConnectionTimeout
|
|
10343
|
+
if (input.ConnectionTimeout != null) {
|
|
10345
10344
|
const node = new xml_builder_1.XmlNode("integer")
|
|
10346
10345
|
.addChildNode(new xml_builder_1.XmlText(String(input.ConnectionTimeout)))
|
|
10347
10346
|
.withName("ConnectionTimeout");
|
|
10348
10347
|
bodyNode.addChildNode(node);
|
|
10349
10348
|
}
|
|
10350
|
-
if (input.OriginShield
|
|
10349
|
+
if (input.OriginShield != null) {
|
|
10351
10350
|
const node = serializeAws_restXmlOriginShield(input.OriginShield, context).withName("OriginShield");
|
|
10352
10351
|
bodyNode.addChildNode(node);
|
|
10353
10352
|
}
|
|
@@ -10355,11 +10354,11 @@ const serializeAws_restXmlOrigin = (input, context) => {
|
|
|
10355
10354
|
};
|
|
10356
10355
|
const serializeAws_restXmlOriginCustomHeader = (input, context) => {
|
|
10357
10356
|
const bodyNode = new xml_builder_1.XmlNode("OriginCustomHeader");
|
|
10358
|
-
if (input.HeaderName
|
|
10357
|
+
if (input.HeaderName != null) {
|
|
10359
10358
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.HeaderName)).withName("HeaderName");
|
|
10360
10359
|
bodyNode.addChildNode(node);
|
|
10361
10360
|
}
|
|
10362
|
-
if (input.HeaderValue
|
|
10361
|
+
if (input.HeaderValue != null) {
|
|
10363
10362
|
const node = new xml_builder_1.XmlNode("sensitiveStringType")
|
|
10364
10363
|
.addChildNode(new xml_builder_1.XmlText(input.HeaderValue))
|
|
10365
10364
|
.withName("HeaderValue");
|
|
@@ -10380,15 +10379,15 @@ const serializeAws_restXmlOriginCustomHeadersList = (input, context) => {
|
|
|
10380
10379
|
};
|
|
10381
10380
|
const serializeAws_restXmlOriginGroup = (input, context) => {
|
|
10382
10381
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroup");
|
|
10383
|
-
if (input.Id
|
|
10382
|
+
if (input.Id != null) {
|
|
10384
10383
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
|
|
10385
10384
|
bodyNode.addChildNode(node);
|
|
10386
10385
|
}
|
|
10387
|
-
if (input.FailoverCriteria
|
|
10386
|
+
if (input.FailoverCriteria != null) {
|
|
10388
10387
|
const node = serializeAws_restXmlOriginGroupFailoverCriteria(input.FailoverCriteria, context).withName("FailoverCriteria");
|
|
10389
10388
|
bodyNode.addChildNode(node);
|
|
10390
10389
|
}
|
|
10391
|
-
if (input.Members
|
|
10390
|
+
if (input.Members != null) {
|
|
10392
10391
|
const node = serializeAws_restXmlOriginGroupMembers(input.Members, context).withName("Members");
|
|
10393
10392
|
bodyNode.addChildNode(node);
|
|
10394
10393
|
}
|
|
@@ -10396,7 +10395,7 @@ const serializeAws_restXmlOriginGroup = (input, context) => {
|
|
|
10396
10395
|
};
|
|
10397
10396
|
const serializeAws_restXmlOriginGroupFailoverCriteria = (input, context) => {
|
|
10398
10397
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroupFailoverCriteria");
|
|
10399
|
-
if (input.StatusCodes
|
|
10398
|
+
if (input.StatusCodes != null) {
|
|
10400
10399
|
const node = serializeAws_restXmlStatusCodes(input.StatusCodes, context).withName("StatusCodes");
|
|
10401
10400
|
bodyNode.addChildNode(node);
|
|
10402
10401
|
}
|
|
@@ -10415,7 +10414,7 @@ const serializeAws_restXmlOriginGroupList = (input, context) => {
|
|
|
10415
10414
|
};
|
|
10416
10415
|
const serializeAws_restXmlOriginGroupMember = (input, context) => {
|
|
10417
10416
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroupMember");
|
|
10418
|
-
if (input.OriginId
|
|
10417
|
+
if (input.OriginId != null) {
|
|
10419
10418
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.OriginId)).withName("OriginId");
|
|
10420
10419
|
bodyNode.addChildNode(node);
|
|
10421
10420
|
}
|
|
@@ -10434,11 +10433,11 @@ const serializeAws_restXmlOriginGroupMemberList = (input, context) => {
|
|
|
10434
10433
|
};
|
|
10435
10434
|
const serializeAws_restXmlOriginGroupMembers = (input, context) => {
|
|
10436
10435
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroupMembers");
|
|
10437
|
-
if (input.Quantity
|
|
10436
|
+
if (input.Quantity != null) {
|
|
10438
10437
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10439
10438
|
bodyNode.addChildNode(node);
|
|
10440
10439
|
}
|
|
10441
|
-
if (input.Items
|
|
10440
|
+
if (input.Items != null) {
|
|
10442
10441
|
const nodes = serializeAws_restXmlOriginGroupMemberList(input.Items, context);
|
|
10443
10442
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10444
10443
|
nodes.map((node) => {
|
|
@@ -10450,11 +10449,11 @@ const serializeAws_restXmlOriginGroupMembers = (input, context) => {
|
|
|
10450
10449
|
};
|
|
10451
10450
|
const serializeAws_restXmlOriginGroups = (input, context) => {
|
|
10452
10451
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroups");
|
|
10453
|
-
if (input.Quantity
|
|
10452
|
+
if (input.Quantity != null) {
|
|
10454
10453
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10455
10454
|
bodyNode.addChildNode(node);
|
|
10456
10455
|
}
|
|
10457
|
-
if (input.Items
|
|
10456
|
+
if (input.Items != null) {
|
|
10458
10457
|
const nodes = serializeAws_restXmlOriginGroupList(input.Items, context);
|
|
10459
10458
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10460
10459
|
nodes.map((node) => {
|
|
@@ -10477,23 +10476,23 @@ const serializeAws_restXmlOriginList = (input, context) => {
|
|
|
10477
10476
|
};
|
|
10478
10477
|
const serializeAws_restXmlOriginRequestPolicyConfig = (input, context) => {
|
|
10479
10478
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyConfig");
|
|
10480
|
-
if (input.Comment
|
|
10479
|
+
if (input.Comment != null) {
|
|
10481
10480
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10482
10481
|
bodyNode.addChildNode(node);
|
|
10483
10482
|
}
|
|
10484
|
-
if (input.Name
|
|
10483
|
+
if (input.Name != null) {
|
|
10485
10484
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10486
10485
|
bodyNode.addChildNode(node);
|
|
10487
10486
|
}
|
|
10488
|
-
if (input.HeadersConfig
|
|
10487
|
+
if (input.HeadersConfig != null) {
|
|
10489
10488
|
const node = serializeAws_restXmlOriginRequestPolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig");
|
|
10490
10489
|
bodyNode.addChildNode(node);
|
|
10491
10490
|
}
|
|
10492
|
-
if (input.CookiesConfig
|
|
10491
|
+
if (input.CookiesConfig != null) {
|
|
10493
10492
|
const node = serializeAws_restXmlOriginRequestPolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig");
|
|
10494
10493
|
bodyNode.addChildNode(node);
|
|
10495
10494
|
}
|
|
10496
|
-
if (input.QueryStringsConfig
|
|
10495
|
+
if (input.QueryStringsConfig != null) {
|
|
10497
10496
|
const node = serializeAws_restXmlOriginRequestPolicyQueryStringsConfig(input.QueryStringsConfig, context).withName("QueryStringsConfig");
|
|
10498
10497
|
bodyNode.addChildNode(node);
|
|
10499
10498
|
}
|
|
@@ -10501,13 +10500,13 @@ const serializeAws_restXmlOriginRequestPolicyConfig = (input, context) => {
|
|
|
10501
10500
|
};
|
|
10502
10501
|
const serializeAws_restXmlOriginRequestPolicyCookiesConfig = (input, context) => {
|
|
10503
10502
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyCookiesConfig");
|
|
10504
|
-
if (input.CookieBehavior
|
|
10503
|
+
if (input.CookieBehavior != null) {
|
|
10505
10504
|
const node = new xml_builder_1.XmlNode("OriginRequestPolicyCookieBehavior")
|
|
10506
10505
|
.addChildNode(new xml_builder_1.XmlText(input.CookieBehavior))
|
|
10507
10506
|
.withName("CookieBehavior");
|
|
10508
10507
|
bodyNode.addChildNode(node);
|
|
10509
10508
|
}
|
|
10510
|
-
if (input.Cookies
|
|
10509
|
+
if (input.Cookies != null) {
|
|
10511
10510
|
const node = serializeAws_restXmlCookieNames(input.Cookies, context).withName("Cookies");
|
|
10512
10511
|
bodyNode.addChildNode(node);
|
|
10513
10512
|
}
|
|
@@ -10515,13 +10514,13 @@ const serializeAws_restXmlOriginRequestPolicyCookiesConfig = (input, context) =>
|
|
|
10515
10514
|
};
|
|
10516
10515
|
const serializeAws_restXmlOriginRequestPolicyHeadersConfig = (input, context) => {
|
|
10517
10516
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyHeadersConfig");
|
|
10518
|
-
if (input.HeaderBehavior
|
|
10517
|
+
if (input.HeaderBehavior != null) {
|
|
10519
10518
|
const node = new xml_builder_1.XmlNode("OriginRequestPolicyHeaderBehavior")
|
|
10520
10519
|
.addChildNode(new xml_builder_1.XmlText(input.HeaderBehavior))
|
|
10521
10520
|
.withName("HeaderBehavior");
|
|
10522
10521
|
bodyNode.addChildNode(node);
|
|
10523
10522
|
}
|
|
10524
|
-
if (input.Headers
|
|
10523
|
+
if (input.Headers != null) {
|
|
10525
10524
|
const node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
10526
10525
|
bodyNode.addChildNode(node);
|
|
10527
10526
|
}
|
|
@@ -10529,13 +10528,13 @@ const serializeAws_restXmlOriginRequestPolicyHeadersConfig = (input, context) =>
|
|
|
10529
10528
|
};
|
|
10530
10529
|
const serializeAws_restXmlOriginRequestPolicyQueryStringsConfig = (input, context) => {
|
|
10531
10530
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyQueryStringsConfig");
|
|
10532
|
-
if (input.QueryStringBehavior
|
|
10531
|
+
if (input.QueryStringBehavior != null) {
|
|
10533
10532
|
const node = new xml_builder_1.XmlNode("OriginRequestPolicyQueryStringBehavior")
|
|
10534
10533
|
.addChildNode(new xml_builder_1.XmlText(input.QueryStringBehavior))
|
|
10535
10534
|
.withName("QueryStringBehavior");
|
|
10536
10535
|
bodyNode.addChildNode(node);
|
|
10537
10536
|
}
|
|
10538
|
-
if (input.QueryStrings
|
|
10537
|
+
if (input.QueryStrings != null) {
|
|
10539
10538
|
const node = serializeAws_restXmlQueryStringNames(input.QueryStrings, context).withName("QueryStrings");
|
|
10540
10539
|
bodyNode.addChildNode(node);
|
|
10541
10540
|
}
|
|
@@ -10543,11 +10542,11 @@ const serializeAws_restXmlOriginRequestPolicyQueryStringsConfig = (input, contex
|
|
|
10543
10542
|
};
|
|
10544
10543
|
const serializeAws_restXmlOrigins = (input, context) => {
|
|
10545
10544
|
const bodyNode = new xml_builder_1.XmlNode("Origins");
|
|
10546
|
-
if (input.Quantity
|
|
10545
|
+
if (input.Quantity != null) {
|
|
10547
10546
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10548
10547
|
bodyNode.addChildNode(node);
|
|
10549
10548
|
}
|
|
10550
|
-
if (input.Items
|
|
10549
|
+
if (input.Items != null) {
|
|
10551
10550
|
const nodes = serializeAws_restXmlOriginList(input.Items, context);
|
|
10552
10551
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10553
10552
|
nodes.map((node) => {
|
|
@@ -10559,11 +10558,11 @@ const serializeAws_restXmlOrigins = (input, context) => {
|
|
|
10559
10558
|
};
|
|
10560
10559
|
const serializeAws_restXmlOriginShield = (input, context) => {
|
|
10561
10560
|
const bodyNode = new xml_builder_1.XmlNode("OriginShield");
|
|
10562
|
-
if (input.Enabled
|
|
10561
|
+
if (input.Enabled != null) {
|
|
10563
10562
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
10564
10563
|
bodyNode.addChildNode(node);
|
|
10565
10564
|
}
|
|
10566
|
-
if (input.OriginShieldRegion
|
|
10565
|
+
if (input.OriginShieldRegion != null) {
|
|
10567
10566
|
const node = new xml_builder_1.XmlNode("OriginShieldRegion")
|
|
10568
10567
|
.addChildNode(new xml_builder_1.XmlText(input.OriginShieldRegion))
|
|
10569
10568
|
.withName("OriginShieldRegion");
|
|
@@ -10573,11 +10572,11 @@ const serializeAws_restXmlOriginShield = (input, context) => {
|
|
|
10573
10572
|
};
|
|
10574
10573
|
const serializeAws_restXmlOriginSslProtocols = (input, context) => {
|
|
10575
10574
|
const bodyNode = new xml_builder_1.XmlNode("OriginSslProtocols");
|
|
10576
|
-
if (input.Quantity
|
|
10575
|
+
if (input.Quantity != null) {
|
|
10577
10576
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10578
10577
|
bodyNode.addChildNode(node);
|
|
10579
10578
|
}
|
|
10580
|
-
if (input.Items
|
|
10579
|
+
if (input.Items != null) {
|
|
10581
10580
|
const nodes = serializeAws_restXmlSslProtocolsList(input.Items, context);
|
|
10582
10581
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10583
10582
|
nodes.map((node) => {
|
|
@@ -10589,27 +10588,27 @@ const serializeAws_restXmlOriginSslProtocols = (input, context) => {
|
|
|
10589
10588
|
};
|
|
10590
10589
|
const serializeAws_restXmlParametersInCacheKeyAndForwardedToOrigin = (input, context) => {
|
|
10591
10590
|
const bodyNode = new xml_builder_1.XmlNode("ParametersInCacheKeyAndForwardedToOrigin");
|
|
10592
|
-
if (input.EnableAcceptEncodingGzip
|
|
10591
|
+
if (input.EnableAcceptEncodingGzip != null) {
|
|
10593
10592
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10594
10593
|
.addChildNode(new xml_builder_1.XmlText(String(input.EnableAcceptEncodingGzip)))
|
|
10595
10594
|
.withName("EnableAcceptEncodingGzip");
|
|
10596
10595
|
bodyNode.addChildNode(node);
|
|
10597
10596
|
}
|
|
10598
|
-
if (input.EnableAcceptEncodingBrotli
|
|
10597
|
+
if (input.EnableAcceptEncodingBrotli != null) {
|
|
10599
10598
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10600
10599
|
.addChildNode(new xml_builder_1.XmlText(String(input.EnableAcceptEncodingBrotli)))
|
|
10601
10600
|
.withName("EnableAcceptEncodingBrotli");
|
|
10602
10601
|
bodyNode.addChildNode(node);
|
|
10603
10602
|
}
|
|
10604
|
-
if (input.HeadersConfig
|
|
10603
|
+
if (input.HeadersConfig != null) {
|
|
10605
10604
|
const node = serializeAws_restXmlCachePolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig");
|
|
10606
10605
|
bodyNode.addChildNode(node);
|
|
10607
10606
|
}
|
|
10608
|
-
if (input.CookiesConfig
|
|
10607
|
+
if (input.CookiesConfig != null) {
|
|
10609
10608
|
const node = serializeAws_restXmlCachePolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig");
|
|
10610
10609
|
bodyNode.addChildNode(node);
|
|
10611
10610
|
}
|
|
10612
|
-
if (input.QueryStringsConfig
|
|
10611
|
+
if (input.QueryStringsConfig != null) {
|
|
10613
10612
|
const node = serializeAws_restXmlCachePolicyQueryStringsConfig(input.QueryStringsConfig, context).withName("QueryStringsConfig");
|
|
10614
10613
|
bodyNode.addChildNode(node);
|
|
10615
10614
|
}
|
|
@@ -10628,11 +10627,11 @@ const serializeAws_restXmlPathList = (input, context) => {
|
|
|
10628
10627
|
};
|
|
10629
10628
|
const serializeAws_restXmlPaths = (input, context) => {
|
|
10630
10629
|
const bodyNode = new xml_builder_1.XmlNode("Paths");
|
|
10631
|
-
if (input.Quantity
|
|
10630
|
+
if (input.Quantity != null) {
|
|
10632
10631
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10633
10632
|
bodyNode.addChildNode(node);
|
|
10634
10633
|
}
|
|
10635
|
-
if (input.Items
|
|
10634
|
+
if (input.Items != null) {
|
|
10636
10635
|
const nodes = serializeAws_restXmlPathList(input.Items, context);
|
|
10637
10636
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10638
10637
|
nodes.map((node) => {
|
|
@@ -10644,19 +10643,19 @@ const serializeAws_restXmlPaths = (input, context) => {
|
|
|
10644
10643
|
};
|
|
10645
10644
|
const serializeAws_restXmlPublicKeyConfig = (input, context) => {
|
|
10646
10645
|
const bodyNode = new xml_builder_1.XmlNode("PublicKeyConfig");
|
|
10647
|
-
if (input.CallerReference
|
|
10646
|
+
if (input.CallerReference != null) {
|
|
10648
10647
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
10649
10648
|
bodyNode.addChildNode(node);
|
|
10650
10649
|
}
|
|
10651
|
-
if (input.Name
|
|
10650
|
+
if (input.Name != null) {
|
|
10652
10651
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10653
10652
|
bodyNode.addChildNode(node);
|
|
10654
10653
|
}
|
|
10655
|
-
if (input.EncodedKey
|
|
10654
|
+
if (input.EncodedKey != null) {
|
|
10656
10655
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.EncodedKey)).withName("EncodedKey");
|
|
10657
10656
|
bodyNode.addChildNode(node);
|
|
10658
10657
|
}
|
|
10659
|
-
if (input.Comment
|
|
10658
|
+
if (input.Comment != null) {
|
|
10660
10659
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10661
10660
|
bodyNode.addChildNode(node);
|
|
10662
10661
|
}
|
|
@@ -10675,11 +10674,11 @@ const serializeAws_restXmlPublicKeyIdList = (input, context) => {
|
|
|
10675
10674
|
};
|
|
10676
10675
|
const serializeAws_restXmlQueryArgProfile = (input, context) => {
|
|
10677
10676
|
const bodyNode = new xml_builder_1.XmlNode("QueryArgProfile");
|
|
10678
|
-
if (input.QueryArg
|
|
10677
|
+
if (input.QueryArg != null) {
|
|
10679
10678
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.QueryArg)).withName("QueryArg");
|
|
10680
10679
|
bodyNode.addChildNode(node);
|
|
10681
10680
|
}
|
|
10682
|
-
if (input.ProfileId
|
|
10681
|
+
if (input.ProfileId != null) {
|
|
10683
10682
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ProfileId)).withName("ProfileId");
|
|
10684
10683
|
bodyNode.addChildNode(node);
|
|
10685
10684
|
}
|
|
@@ -10687,13 +10686,13 @@ const serializeAws_restXmlQueryArgProfile = (input, context) => {
|
|
|
10687
10686
|
};
|
|
10688
10687
|
const serializeAws_restXmlQueryArgProfileConfig = (input, context) => {
|
|
10689
10688
|
const bodyNode = new xml_builder_1.XmlNode("QueryArgProfileConfig");
|
|
10690
|
-
if (input.ForwardWhenQueryArgProfileIsUnknown
|
|
10689
|
+
if (input.ForwardWhenQueryArgProfileIsUnknown != null) {
|
|
10691
10690
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10692
10691
|
.addChildNode(new xml_builder_1.XmlText(String(input.ForwardWhenQueryArgProfileIsUnknown)))
|
|
10693
10692
|
.withName("ForwardWhenQueryArgProfileIsUnknown");
|
|
10694
10693
|
bodyNode.addChildNode(node);
|
|
10695
10694
|
}
|
|
10696
|
-
if (input.QueryArgProfiles
|
|
10695
|
+
if (input.QueryArgProfiles != null) {
|
|
10697
10696
|
const node = serializeAws_restXmlQueryArgProfiles(input.QueryArgProfiles, context).withName("QueryArgProfiles");
|
|
10698
10697
|
bodyNode.addChildNode(node);
|
|
10699
10698
|
}
|
|
@@ -10712,11 +10711,11 @@ const serializeAws_restXmlQueryArgProfileList = (input, context) => {
|
|
|
10712
10711
|
};
|
|
10713
10712
|
const serializeAws_restXmlQueryArgProfiles = (input, context) => {
|
|
10714
10713
|
const bodyNode = new xml_builder_1.XmlNode("QueryArgProfiles");
|
|
10715
|
-
if (input.Quantity
|
|
10714
|
+
if (input.Quantity != null) {
|
|
10716
10715
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10717
10716
|
bodyNode.addChildNode(node);
|
|
10718
10717
|
}
|
|
10719
|
-
if (input.Items
|
|
10718
|
+
if (input.Items != null) {
|
|
10720
10719
|
const nodes = serializeAws_restXmlQueryArgProfileList(input.Items, context);
|
|
10721
10720
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10722
10721
|
nodes.map((node) => {
|
|
@@ -10728,11 +10727,11 @@ const serializeAws_restXmlQueryArgProfiles = (input, context) => {
|
|
|
10728
10727
|
};
|
|
10729
10728
|
const serializeAws_restXmlQueryStringCacheKeys = (input, context) => {
|
|
10730
10729
|
const bodyNode = new xml_builder_1.XmlNode("QueryStringCacheKeys");
|
|
10731
|
-
if (input.Quantity
|
|
10730
|
+
if (input.Quantity != null) {
|
|
10732
10731
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10733
10732
|
bodyNode.addChildNode(node);
|
|
10734
10733
|
}
|
|
10735
|
-
if (input.Items
|
|
10734
|
+
if (input.Items != null) {
|
|
10736
10735
|
const nodes = serializeAws_restXmlQueryStringCacheKeysList(input.Items, context);
|
|
10737
10736
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10738
10737
|
nodes.map((node) => {
|
|
@@ -10755,11 +10754,11 @@ const serializeAws_restXmlQueryStringCacheKeysList = (input, context) => {
|
|
|
10755
10754
|
};
|
|
10756
10755
|
const serializeAws_restXmlQueryStringNames = (input, context) => {
|
|
10757
10756
|
const bodyNode = new xml_builder_1.XmlNode("QueryStringNames");
|
|
10758
|
-
if (input.Quantity
|
|
10757
|
+
if (input.Quantity != null) {
|
|
10759
10758
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10760
10759
|
bodyNode.addChildNode(node);
|
|
10761
10760
|
}
|
|
10762
|
-
if (input.Items
|
|
10761
|
+
if (input.Items != null) {
|
|
10763
10762
|
const nodes = serializeAws_restXmlQueryStringNamesList(input.Items, context);
|
|
10764
10763
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10765
10764
|
nodes.map((node) => {
|
|
@@ -10782,7 +10781,7 @@ const serializeAws_restXmlQueryStringNamesList = (input, context) => {
|
|
|
10782
10781
|
};
|
|
10783
10782
|
const serializeAws_restXmlRealtimeMetricsSubscriptionConfig = (input, context) => {
|
|
10784
10783
|
const bodyNode = new xml_builder_1.XmlNode("RealtimeMetricsSubscriptionConfig");
|
|
10785
|
-
if (input.RealtimeMetricsSubscriptionStatus
|
|
10784
|
+
if (input.RealtimeMetricsSubscriptionStatus != null) {
|
|
10786
10785
|
const node = new xml_builder_1.XmlNode("RealtimeMetricsSubscriptionStatus")
|
|
10787
10786
|
.addChildNode(new xml_builder_1.XmlText(input.RealtimeMetricsSubscriptionStatus))
|
|
10788
10787
|
.withName("RealtimeMetricsSubscriptionStatus");
|
|
@@ -10792,11 +10791,11 @@ const serializeAws_restXmlRealtimeMetricsSubscriptionConfig = (input, context) =
|
|
|
10792
10791
|
};
|
|
10793
10792
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = (input, context) => {
|
|
10794
10793
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowHeaders");
|
|
10795
|
-
if (input.Quantity
|
|
10794
|
+
if (input.Quantity != null) {
|
|
10796
10795
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10797
10796
|
bodyNode.addChildNode(node);
|
|
10798
10797
|
}
|
|
10799
|
-
if (input.Items
|
|
10798
|
+
if (input.Items != null) {
|
|
10800
10799
|
const nodes = serializeAws_restXmlAccessControlAllowHeadersList(input.Items, context);
|
|
10801
10800
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10802
10801
|
nodes.map((node) => {
|
|
@@ -10808,11 +10807,11 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = (inpu
|
|
|
10808
10807
|
};
|
|
10809
10808
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = (input, context) => {
|
|
10810
10809
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowMethods");
|
|
10811
|
-
if (input.Quantity
|
|
10810
|
+
if (input.Quantity != null) {
|
|
10812
10811
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10813
10812
|
bodyNode.addChildNode(node);
|
|
10814
10813
|
}
|
|
10815
|
-
if (input.Items
|
|
10814
|
+
if (input.Items != null) {
|
|
10816
10815
|
const nodes = serializeAws_restXmlAccessControlAllowMethodsList(input.Items, context);
|
|
10817
10816
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10818
10817
|
nodes.map((node) => {
|
|
@@ -10824,11 +10823,11 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = (inpu
|
|
|
10824
10823
|
};
|
|
10825
10824
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = (input, context) => {
|
|
10826
10825
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowOrigins");
|
|
10827
|
-
if (input.Quantity
|
|
10826
|
+
if (input.Quantity != null) {
|
|
10828
10827
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10829
10828
|
bodyNode.addChildNode(node);
|
|
10830
10829
|
}
|
|
10831
|
-
if (input.Items
|
|
10830
|
+
if (input.Items != null) {
|
|
10832
10831
|
const nodes = serializeAws_restXmlAccessControlAllowOriginsList(input.Items, context);
|
|
10833
10832
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10834
10833
|
nodes.map((node) => {
|
|
@@ -10840,11 +10839,11 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = (inpu
|
|
|
10840
10839
|
};
|
|
10841
10840
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = (input, context) => {
|
|
10842
10841
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlExposeHeaders");
|
|
10843
|
-
if (input.Quantity
|
|
10842
|
+
if (input.Quantity != null) {
|
|
10844
10843
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10845
10844
|
bodyNode.addChildNode(node);
|
|
10846
10845
|
}
|
|
10847
|
-
if (input.Items
|
|
10846
|
+
if (input.Items != null) {
|
|
10848
10847
|
const nodes = serializeAws_restXmlAccessControlExposeHeadersList(input.Items, context);
|
|
10849
10848
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10850
10849
|
nodes.map((node) => {
|
|
@@ -10856,27 +10855,27 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = (inp
|
|
|
10856
10855
|
};
|
|
10857
10856
|
const serializeAws_restXmlResponseHeadersPolicyConfig = (input, context) => {
|
|
10858
10857
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyConfig");
|
|
10859
|
-
if (input.Comment
|
|
10858
|
+
if (input.Comment != null) {
|
|
10860
10859
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10861
10860
|
bodyNode.addChildNode(node);
|
|
10862
10861
|
}
|
|
10863
|
-
if (input.Name
|
|
10862
|
+
if (input.Name != null) {
|
|
10864
10863
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10865
10864
|
bodyNode.addChildNode(node);
|
|
10866
10865
|
}
|
|
10867
|
-
if (input.CorsConfig
|
|
10866
|
+
if (input.CorsConfig != null) {
|
|
10868
10867
|
const node = serializeAws_restXmlResponseHeadersPolicyCorsConfig(input.CorsConfig, context).withName("CorsConfig");
|
|
10869
10868
|
bodyNode.addChildNode(node);
|
|
10870
10869
|
}
|
|
10871
|
-
if (input.SecurityHeadersConfig
|
|
10870
|
+
if (input.SecurityHeadersConfig != null) {
|
|
10872
10871
|
const node = serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName("SecurityHeadersConfig");
|
|
10873
10872
|
bodyNode.addChildNode(node);
|
|
10874
10873
|
}
|
|
10875
|
-
if (input.CustomHeadersConfig
|
|
10874
|
+
if (input.CustomHeadersConfig != null) {
|
|
10876
10875
|
const node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
10877
10876
|
bodyNode.addChildNode(node);
|
|
10878
10877
|
}
|
|
10879
|
-
if (input.ServerTimingHeadersConfig
|
|
10878
|
+
if (input.ServerTimingHeadersConfig != null) {
|
|
10880
10879
|
const node = serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig(input.ServerTimingHeadersConfig, context).withName("ServerTimingHeadersConfig");
|
|
10881
10880
|
bodyNode.addChildNode(node);
|
|
10882
10881
|
}
|
|
@@ -10884,11 +10883,11 @@ const serializeAws_restXmlResponseHeadersPolicyConfig = (input, context) => {
|
|
|
10884
10883
|
};
|
|
10885
10884
|
const serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (input, context) => {
|
|
10886
10885
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyContentSecurityPolicy");
|
|
10887
|
-
if (input.Override
|
|
10886
|
+
if (input.Override != null) {
|
|
10888
10887
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10889
10888
|
bodyNode.addChildNode(node);
|
|
10890
10889
|
}
|
|
10891
|
-
if (input.ContentSecurityPolicy
|
|
10890
|
+
if (input.ContentSecurityPolicy != null) {
|
|
10892
10891
|
const node = new xml_builder_1.XmlNode("string")
|
|
10893
10892
|
.addChildNode(new xml_builder_1.XmlText(input.ContentSecurityPolicy))
|
|
10894
10893
|
.withName("ContentSecurityPolicy");
|
|
@@ -10898,7 +10897,7 @@ const serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (input, c
|
|
|
10898
10897
|
};
|
|
10899
10898
|
const serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = (input, context) => {
|
|
10900
10899
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyContentTypeOptions");
|
|
10901
|
-
if (input.Override
|
|
10900
|
+
if (input.Override != null) {
|
|
10902
10901
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10903
10902
|
bodyNode.addChildNode(node);
|
|
10904
10903
|
}
|
|
@@ -10906,35 +10905,35 @@ const serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = (input, cont
|
|
|
10906
10905
|
};
|
|
10907
10906
|
const serializeAws_restXmlResponseHeadersPolicyCorsConfig = (input, context) => {
|
|
10908
10907
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCorsConfig");
|
|
10909
|
-
if (input.AccessControlAllowOrigins
|
|
10908
|
+
if (input.AccessControlAllowOrigins != null) {
|
|
10910
10909
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins(input.AccessControlAllowOrigins, context).withName("AccessControlAllowOrigins");
|
|
10911
10910
|
bodyNode.addChildNode(node);
|
|
10912
10911
|
}
|
|
10913
|
-
if (input.AccessControlAllowHeaders
|
|
10912
|
+
if (input.AccessControlAllowHeaders != null) {
|
|
10914
10913
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders(input.AccessControlAllowHeaders, context).withName("AccessControlAllowHeaders");
|
|
10915
10914
|
bodyNode.addChildNode(node);
|
|
10916
10915
|
}
|
|
10917
|
-
if (input.AccessControlAllowMethods
|
|
10916
|
+
if (input.AccessControlAllowMethods != null) {
|
|
10918
10917
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods(input.AccessControlAllowMethods, context).withName("AccessControlAllowMethods");
|
|
10919
10918
|
bodyNode.addChildNode(node);
|
|
10920
10919
|
}
|
|
10921
|
-
if (input.AccessControlAllowCredentials
|
|
10920
|
+
if (input.AccessControlAllowCredentials != null) {
|
|
10922
10921
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10923
10922
|
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlAllowCredentials)))
|
|
10924
10923
|
.withName("AccessControlAllowCredentials");
|
|
10925
10924
|
bodyNode.addChildNode(node);
|
|
10926
10925
|
}
|
|
10927
|
-
if (input.AccessControlExposeHeaders
|
|
10926
|
+
if (input.AccessControlExposeHeaders != null) {
|
|
10928
10927
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders(input.AccessControlExposeHeaders, context).withName("AccessControlExposeHeaders");
|
|
10929
10928
|
bodyNode.addChildNode(node);
|
|
10930
10929
|
}
|
|
10931
|
-
if (input.AccessControlMaxAgeSec
|
|
10930
|
+
if (input.AccessControlMaxAgeSec != null) {
|
|
10932
10931
|
const node = new xml_builder_1.XmlNode("integer")
|
|
10933
10932
|
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlMaxAgeSec)))
|
|
10934
10933
|
.withName("AccessControlMaxAgeSec");
|
|
10935
10934
|
bodyNode.addChildNode(node);
|
|
10936
10935
|
}
|
|
10937
|
-
if (input.OriginOverride
|
|
10936
|
+
if (input.OriginOverride != null) {
|
|
10938
10937
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10939
10938
|
.addChildNode(new xml_builder_1.XmlText(String(input.OriginOverride)))
|
|
10940
10939
|
.withName("OriginOverride");
|
|
@@ -10944,15 +10943,15 @@ const serializeAws_restXmlResponseHeadersPolicyCorsConfig = (input, context) =>
|
|
|
10944
10943
|
};
|
|
10945
10944
|
const serializeAws_restXmlResponseHeadersPolicyCustomHeader = (input, context) => {
|
|
10946
10945
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCustomHeader");
|
|
10947
|
-
if (input.Header
|
|
10946
|
+
if (input.Header != null) {
|
|
10948
10947
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Header)).withName("Header");
|
|
10949
10948
|
bodyNode.addChildNode(node);
|
|
10950
10949
|
}
|
|
10951
|
-
if (input.Value
|
|
10950
|
+
if (input.Value != null) {
|
|
10952
10951
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
|
|
10953
10952
|
bodyNode.addChildNode(node);
|
|
10954
10953
|
}
|
|
10955
|
-
if (input.Override
|
|
10954
|
+
if (input.Override != null) {
|
|
10956
10955
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10957
10956
|
bodyNode.addChildNode(node);
|
|
10958
10957
|
}
|
|
@@ -10971,11 +10970,11 @@ const serializeAws_restXmlResponseHeadersPolicyCustomHeaderList = (input, contex
|
|
|
10971
10970
|
};
|
|
10972
10971
|
const serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = (input, context) => {
|
|
10973
10972
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCustomHeadersConfig");
|
|
10974
|
-
if (input.Quantity
|
|
10973
|
+
if (input.Quantity != null) {
|
|
10975
10974
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10976
10975
|
bodyNode.addChildNode(node);
|
|
10977
10976
|
}
|
|
10978
|
-
if (input.Items
|
|
10977
|
+
if (input.Items != null) {
|
|
10979
10978
|
const nodes = serializeAws_restXmlResponseHeadersPolicyCustomHeaderList(input.Items, context);
|
|
10980
10979
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10981
10980
|
nodes.map((node) => {
|
|
@@ -10987,11 +10986,11 @@ const serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = (input, con
|
|
|
10987
10986
|
};
|
|
10988
10987
|
const serializeAws_restXmlResponseHeadersPolicyFrameOptions = (input, context) => {
|
|
10989
10988
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyFrameOptions");
|
|
10990
|
-
if (input.Override
|
|
10989
|
+
if (input.Override != null) {
|
|
10991
10990
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10992
10991
|
bodyNode.addChildNode(node);
|
|
10993
10992
|
}
|
|
10994
|
-
if (input.FrameOption
|
|
10993
|
+
if (input.FrameOption != null) {
|
|
10995
10994
|
const node = new xml_builder_1.XmlNode("FrameOptionsList")
|
|
10996
10995
|
.addChildNode(new xml_builder_1.XmlText(input.FrameOption))
|
|
10997
10996
|
.withName("FrameOption");
|
|
@@ -11001,11 +11000,11 @@ const serializeAws_restXmlResponseHeadersPolicyFrameOptions = (input, context) =
|
|
|
11001
11000
|
};
|
|
11002
11001
|
const serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = (input, context) => {
|
|
11003
11002
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyReferrerPolicy");
|
|
11004
|
-
if (input.Override
|
|
11003
|
+
if (input.Override != null) {
|
|
11005
11004
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
11006
11005
|
bodyNode.addChildNode(node);
|
|
11007
11006
|
}
|
|
11008
|
-
if (input.ReferrerPolicy
|
|
11007
|
+
if (input.ReferrerPolicy != null) {
|
|
11009
11008
|
const node = new xml_builder_1.XmlNode("ReferrerPolicyList")
|
|
11010
11009
|
.addChildNode(new xml_builder_1.XmlText(input.ReferrerPolicy))
|
|
11011
11010
|
.withName("ReferrerPolicy");
|
|
@@ -11015,27 +11014,27 @@ const serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = (input, context)
|
|
|
11015
11014
|
};
|
|
11016
11015
|
const serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = (input, context) => {
|
|
11017
11016
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicySecurityHeadersConfig");
|
|
11018
|
-
if (input.XSSProtection
|
|
11017
|
+
if (input.XSSProtection != null) {
|
|
11019
11018
|
const node = serializeAws_restXmlResponseHeadersPolicyXSSProtection(input.XSSProtection, context).withName("XSSProtection");
|
|
11020
11019
|
bodyNode.addChildNode(node);
|
|
11021
11020
|
}
|
|
11022
|
-
if (input.FrameOptions
|
|
11021
|
+
if (input.FrameOptions != null) {
|
|
11023
11022
|
const node = serializeAws_restXmlResponseHeadersPolicyFrameOptions(input.FrameOptions, context).withName("FrameOptions");
|
|
11024
11023
|
bodyNode.addChildNode(node);
|
|
11025
11024
|
}
|
|
11026
|
-
if (input.ReferrerPolicy
|
|
11025
|
+
if (input.ReferrerPolicy != null) {
|
|
11027
11026
|
const node = serializeAws_restXmlResponseHeadersPolicyReferrerPolicy(input.ReferrerPolicy, context).withName("ReferrerPolicy");
|
|
11028
11027
|
bodyNode.addChildNode(node);
|
|
11029
11028
|
}
|
|
11030
|
-
if (input.ContentSecurityPolicy
|
|
11029
|
+
if (input.ContentSecurityPolicy != null) {
|
|
11031
11030
|
const node = serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy(input.ContentSecurityPolicy, context).withName("ContentSecurityPolicy");
|
|
11032
11031
|
bodyNode.addChildNode(node);
|
|
11033
11032
|
}
|
|
11034
|
-
if (input.ContentTypeOptions
|
|
11033
|
+
if (input.ContentTypeOptions != null) {
|
|
11035
11034
|
const node = serializeAws_restXmlResponseHeadersPolicyContentTypeOptions(input.ContentTypeOptions, context).withName("ContentTypeOptions");
|
|
11036
11035
|
bodyNode.addChildNode(node);
|
|
11037
11036
|
}
|
|
11038
|
-
if (input.StrictTransportSecurity
|
|
11037
|
+
if (input.StrictTransportSecurity != null) {
|
|
11039
11038
|
const node = serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity(input.StrictTransportSecurity, context).withName("StrictTransportSecurity");
|
|
11040
11039
|
bodyNode.addChildNode(node);
|
|
11041
11040
|
}
|
|
@@ -11043,11 +11042,11 @@ const serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = (input, c
|
|
|
11043
11042
|
};
|
|
11044
11043
|
const serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig = (input, context) => {
|
|
11045
11044
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyServerTimingHeadersConfig");
|
|
11046
|
-
if (input.Enabled
|
|
11045
|
+
if (input.Enabled != null) {
|
|
11047
11046
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11048
11047
|
bodyNode.addChildNode(node);
|
|
11049
11048
|
}
|
|
11050
|
-
if (input.SamplingRate
|
|
11049
|
+
if (input.SamplingRate != null) {
|
|
11051
11050
|
const node = new xml_builder_1.XmlNode("SamplingRate")
|
|
11052
11051
|
.addChildNode(new xml_builder_1.XmlText(String(input.SamplingRate)))
|
|
11053
11052
|
.withName("SamplingRate");
|
|
@@ -11057,21 +11056,21 @@ const serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig = (inpu
|
|
|
11057
11056
|
};
|
|
11058
11057
|
const serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = (input, context) => {
|
|
11059
11058
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyStrictTransportSecurity");
|
|
11060
|
-
if (input.Override
|
|
11059
|
+
if (input.Override != null) {
|
|
11061
11060
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
11062
11061
|
bodyNode.addChildNode(node);
|
|
11063
11062
|
}
|
|
11064
|
-
if (input.IncludeSubdomains
|
|
11063
|
+
if (input.IncludeSubdomains != null) {
|
|
11065
11064
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
11066
11065
|
.addChildNode(new xml_builder_1.XmlText(String(input.IncludeSubdomains)))
|
|
11067
11066
|
.withName("IncludeSubdomains");
|
|
11068
11067
|
bodyNode.addChildNode(node);
|
|
11069
11068
|
}
|
|
11070
|
-
if (input.Preload
|
|
11069
|
+
if (input.Preload != null) {
|
|
11071
11070
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Preload))).withName("Preload");
|
|
11072
11071
|
bodyNode.addChildNode(node);
|
|
11073
11072
|
}
|
|
11074
|
-
if (input.AccessControlMaxAgeSec
|
|
11073
|
+
if (input.AccessControlMaxAgeSec != null) {
|
|
11075
11074
|
const node = new xml_builder_1.XmlNode("integer")
|
|
11076
11075
|
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlMaxAgeSec)))
|
|
11077
11076
|
.withName("AccessControlMaxAgeSec");
|
|
@@ -11081,19 +11080,19 @@ const serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = (input,
|
|
|
11081
11080
|
};
|
|
11082
11081
|
const serializeAws_restXmlResponseHeadersPolicyXSSProtection = (input, context) => {
|
|
11083
11082
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyXSSProtection");
|
|
11084
|
-
if (input.Override
|
|
11083
|
+
if (input.Override != null) {
|
|
11085
11084
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
11086
11085
|
bodyNode.addChildNode(node);
|
|
11087
11086
|
}
|
|
11088
|
-
if (input.Protection
|
|
11087
|
+
if (input.Protection != null) {
|
|
11089
11088
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Protection))).withName("Protection");
|
|
11090
11089
|
bodyNode.addChildNode(node);
|
|
11091
11090
|
}
|
|
11092
|
-
if (input.ModeBlock
|
|
11091
|
+
if (input.ModeBlock != null) {
|
|
11093
11092
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.ModeBlock))).withName("ModeBlock");
|
|
11094
11093
|
bodyNode.addChildNode(node);
|
|
11095
11094
|
}
|
|
11096
|
-
if (input.ReportUri
|
|
11095
|
+
if (input.ReportUri != null) {
|
|
11097
11096
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ReportUri)).withName("ReportUri");
|
|
11098
11097
|
bodyNode.addChildNode(node);
|
|
11099
11098
|
}
|
|
@@ -11101,7 +11100,7 @@ const serializeAws_restXmlResponseHeadersPolicyXSSProtection = (input, context)
|
|
|
11101
11100
|
};
|
|
11102
11101
|
const serializeAws_restXmlRestrictions = (input, context) => {
|
|
11103
11102
|
const bodyNode = new xml_builder_1.XmlNode("Restrictions");
|
|
11104
|
-
if (input.GeoRestriction
|
|
11103
|
+
if (input.GeoRestriction != null) {
|
|
11105
11104
|
const node = serializeAws_restXmlGeoRestriction(input.GeoRestriction, context).withName("GeoRestriction");
|
|
11106
11105
|
bodyNode.addChildNode(node);
|
|
11107
11106
|
}
|
|
@@ -11109,11 +11108,11 @@ const serializeAws_restXmlRestrictions = (input, context) => {
|
|
|
11109
11108
|
};
|
|
11110
11109
|
const serializeAws_restXmlS3Origin = (input, context) => {
|
|
11111
11110
|
const bodyNode = new xml_builder_1.XmlNode("S3Origin");
|
|
11112
|
-
if (input.DomainName
|
|
11111
|
+
if (input.DomainName != null) {
|
|
11113
11112
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.DomainName)).withName("DomainName");
|
|
11114
11113
|
bodyNode.addChildNode(node);
|
|
11115
11114
|
}
|
|
11116
|
-
if (input.OriginAccessIdentity
|
|
11115
|
+
if (input.OriginAccessIdentity != null) {
|
|
11117
11116
|
const node = new xml_builder_1.XmlNode("string")
|
|
11118
11117
|
.addChildNode(new xml_builder_1.XmlText(input.OriginAccessIdentity))
|
|
11119
11118
|
.withName("OriginAccessIdentity");
|
|
@@ -11123,7 +11122,7 @@ const serializeAws_restXmlS3Origin = (input, context) => {
|
|
|
11123
11122
|
};
|
|
11124
11123
|
const serializeAws_restXmlS3OriginConfig = (input, context) => {
|
|
11125
11124
|
const bodyNode = new xml_builder_1.XmlNode("S3OriginConfig");
|
|
11126
|
-
if (input.OriginAccessIdentity
|
|
11125
|
+
if (input.OriginAccessIdentity != null) {
|
|
11127
11126
|
const node = new xml_builder_1.XmlNode("string")
|
|
11128
11127
|
.addChildNode(new xml_builder_1.XmlText(input.OriginAccessIdentity))
|
|
11129
11128
|
.withName("OriginAccessIdentity");
|
|
@@ -11155,11 +11154,11 @@ const serializeAws_restXmlStatusCodeList = (input, context) => {
|
|
|
11155
11154
|
};
|
|
11156
11155
|
const serializeAws_restXmlStatusCodes = (input, context) => {
|
|
11157
11156
|
const bodyNode = new xml_builder_1.XmlNode("StatusCodes");
|
|
11158
|
-
if (input.Quantity
|
|
11157
|
+
if (input.Quantity != null) {
|
|
11159
11158
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
11160
11159
|
bodyNode.addChildNode(node);
|
|
11161
11160
|
}
|
|
11162
|
-
if (input.Items
|
|
11161
|
+
if (input.Items != null) {
|
|
11163
11162
|
const nodes = serializeAws_restXmlStatusCodeList(input.Items, context);
|
|
11164
11163
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11165
11164
|
nodes.map((node) => {
|
|
@@ -11171,35 +11170,35 @@ const serializeAws_restXmlStatusCodes = (input, context) => {
|
|
|
11171
11170
|
};
|
|
11172
11171
|
const serializeAws_restXmlStreamingDistributionConfig = (input, context) => {
|
|
11173
11172
|
const bodyNode = new xml_builder_1.XmlNode("StreamingDistributionConfig");
|
|
11174
|
-
if (input.CallerReference
|
|
11173
|
+
if (input.CallerReference != null) {
|
|
11175
11174
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
11176
11175
|
bodyNode.addChildNode(node);
|
|
11177
11176
|
}
|
|
11178
|
-
if (input.S3Origin
|
|
11177
|
+
if (input.S3Origin != null) {
|
|
11179
11178
|
const node = serializeAws_restXmlS3Origin(input.S3Origin, context).withName("S3Origin");
|
|
11180
11179
|
bodyNode.addChildNode(node);
|
|
11181
11180
|
}
|
|
11182
|
-
if (input.Aliases
|
|
11181
|
+
if (input.Aliases != null) {
|
|
11183
11182
|
const node = serializeAws_restXmlAliases(input.Aliases, context).withName("Aliases");
|
|
11184
11183
|
bodyNode.addChildNode(node);
|
|
11185
11184
|
}
|
|
11186
|
-
if (input.Comment
|
|
11185
|
+
if (input.Comment != null) {
|
|
11187
11186
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
11188
11187
|
bodyNode.addChildNode(node);
|
|
11189
11188
|
}
|
|
11190
|
-
if (input.Logging
|
|
11189
|
+
if (input.Logging != null) {
|
|
11191
11190
|
const node = serializeAws_restXmlStreamingLoggingConfig(input.Logging, context).withName("Logging");
|
|
11192
11191
|
bodyNode.addChildNode(node);
|
|
11193
11192
|
}
|
|
11194
|
-
if (input.TrustedSigners
|
|
11193
|
+
if (input.TrustedSigners != null) {
|
|
11195
11194
|
const node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
11196
11195
|
bodyNode.addChildNode(node);
|
|
11197
11196
|
}
|
|
11198
|
-
if (input.PriceClass
|
|
11197
|
+
if (input.PriceClass != null) {
|
|
11199
11198
|
const node = new xml_builder_1.XmlNode("PriceClass").addChildNode(new xml_builder_1.XmlText(input.PriceClass)).withName("PriceClass");
|
|
11200
11199
|
bodyNode.addChildNode(node);
|
|
11201
11200
|
}
|
|
11202
|
-
if (input.Enabled
|
|
11201
|
+
if (input.Enabled != null) {
|
|
11203
11202
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11204
11203
|
bodyNode.addChildNode(node);
|
|
11205
11204
|
}
|
|
@@ -11207,11 +11206,11 @@ const serializeAws_restXmlStreamingDistributionConfig = (input, context) => {
|
|
|
11207
11206
|
};
|
|
11208
11207
|
const serializeAws_restXmlStreamingDistributionConfigWithTags = (input, context) => {
|
|
11209
11208
|
const bodyNode = new xml_builder_1.XmlNode("StreamingDistributionConfigWithTags");
|
|
11210
|
-
if (input.StreamingDistributionConfig
|
|
11209
|
+
if (input.StreamingDistributionConfig != null) {
|
|
11211
11210
|
const node = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context).withName("StreamingDistributionConfig");
|
|
11212
11211
|
bodyNode.addChildNode(node);
|
|
11213
11212
|
}
|
|
11214
|
-
if (input.Tags
|
|
11213
|
+
if (input.Tags != null) {
|
|
11215
11214
|
const node = serializeAws_restXmlTags(input.Tags, context).withName("Tags");
|
|
11216
11215
|
bodyNode.addChildNode(node);
|
|
11217
11216
|
}
|
|
@@ -11219,15 +11218,15 @@ const serializeAws_restXmlStreamingDistributionConfigWithTags = (input, context)
|
|
|
11219
11218
|
};
|
|
11220
11219
|
const serializeAws_restXmlStreamingLoggingConfig = (input, context) => {
|
|
11221
11220
|
const bodyNode = new xml_builder_1.XmlNode("StreamingLoggingConfig");
|
|
11222
|
-
if (input.Enabled
|
|
11221
|
+
if (input.Enabled != null) {
|
|
11223
11222
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11224
11223
|
bodyNode.addChildNode(node);
|
|
11225
11224
|
}
|
|
11226
|
-
if (input.Bucket
|
|
11225
|
+
if (input.Bucket != null) {
|
|
11227
11226
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
|
|
11228
11227
|
bodyNode.addChildNode(node);
|
|
11229
11228
|
}
|
|
11230
|
-
if (input.Prefix
|
|
11229
|
+
if (input.Prefix != null) {
|
|
11231
11230
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
11232
11231
|
bodyNode.addChildNode(node);
|
|
11233
11232
|
}
|
|
@@ -11235,11 +11234,11 @@ const serializeAws_restXmlStreamingLoggingConfig = (input, context) => {
|
|
|
11235
11234
|
};
|
|
11236
11235
|
const serializeAws_restXmlTag = (input, context) => {
|
|
11237
11236
|
const bodyNode = new xml_builder_1.XmlNode("Tag");
|
|
11238
|
-
if (input.Key
|
|
11237
|
+
if (input.Key != null) {
|
|
11239
11238
|
const node = new xml_builder_1.XmlNode("TagKey").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
|
|
11240
11239
|
bodyNode.addChildNode(node);
|
|
11241
11240
|
}
|
|
11242
|
-
if (input.Value
|
|
11241
|
+
if (input.Value != null) {
|
|
11243
11242
|
const node = new xml_builder_1.XmlNode("TagValue").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
|
|
11244
11243
|
bodyNode.addChildNode(node);
|
|
11245
11244
|
}
|
|
@@ -11258,7 +11257,7 @@ const serializeAws_restXmlTagKeyList = (input, context) => {
|
|
|
11258
11257
|
};
|
|
11259
11258
|
const serializeAws_restXmlTagKeys = (input, context) => {
|
|
11260
11259
|
const bodyNode = new xml_builder_1.XmlNode("TagKeys");
|
|
11261
|
-
if (input.Items
|
|
11260
|
+
if (input.Items != null) {
|
|
11262
11261
|
const nodes = serializeAws_restXmlTagKeyList(input.Items, context);
|
|
11263
11262
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11264
11263
|
nodes.map((node) => {
|
|
@@ -11281,7 +11280,7 @@ const serializeAws_restXmlTagList = (input, context) => {
|
|
|
11281
11280
|
};
|
|
11282
11281
|
const serializeAws_restXmlTags = (input, context) => {
|
|
11283
11282
|
const bodyNode = new xml_builder_1.XmlNode("Tags");
|
|
11284
|
-
if (input.Items
|
|
11283
|
+
if (input.Items != null) {
|
|
11285
11284
|
const nodes = serializeAws_restXmlTagList(input.Items, context);
|
|
11286
11285
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11287
11286
|
nodes.map((node) => {
|
|
@@ -11304,15 +11303,15 @@ const serializeAws_restXmlTrustedKeyGroupIdList = (input, context) => {
|
|
|
11304
11303
|
};
|
|
11305
11304
|
const serializeAws_restXmlTrustedKeyGroups = (input, context) => {
|
|
11306
11305
|
const bodyNode = new xml_builder_1.XmlNode("TrustedKeyGroups");
|
|
11307
|
-
if (input.Enabled
|
|
11306
|
+
if (input.Enabled != null) {
|
|
11308
11307
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11309
11308
|
bodyNode.addChildNode(node);
|
|
11310
11309
|
}
|
|
11311
|
-
if (input.Quantity
|
|
11310
|
+
if (input.Quantity != null) {
|
|
11312
11311
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
11313
11312
|
bodyNode.addChildNode(node);
|
|
11314
11313
|
}
|
|
11315
|
-
if (input.Items
|
|
11314
|
+
if (input.Items != null) {
|
|
11316
11315
|
const nodes = serializeAws_restXmlTrustedKeyGroupIdList(input.Items, context);
|
|
11317
11316
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11318
11317
|
nodes.map((node) => {
|
|
@@ -11324,15 +11323,15 @@ const serializeAws_restXmlTrustedKeyGroups = (input, context) => {
|
|
|
11324
11323
|
};
|
|
11325
11324
|
const serializeAws_restXmlTrustedSigners = (input, context) => {
|
|
11326
11325
|
const bodyNode = new xml_builder_1.XmlNode("TrustedSigners");
|
|
11327
|
-
if (input.Enabled
|
|
11326
|
+
if (input.Enabled != null) {
|
|
11328
11327
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11329
11328
|
bodyNode.addChildNode(node);
|
|
11330
11329
|
}
|
|
11331
|
-
if (input.Quantity
|
|
11330
|
+
if (input.Quantity != null) {
|
|
11332
11331
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
11333
11332
|
bodyNode.addChildNode(node);
|
|
11334
11333
|
}
|
|
11335
|
-
if (input.Items
|
|
11334
|
+
if (input.Items != null) {
|
|
11336
11335
|
const nodes = serializeAws_restXmlAwsAccountNumberList(input.Items, context);
|
|
11337
11336
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11338
11337
|
nodes.map((node) => {
|
|
@@ -11344,41 +11343,41 @@ const serializeAws_restXmlTrustedSigners = (input, context) => {
|
|
|
11344
11343
|
};
|
|
11345
11344
|
const serializeAws_restXmlViewerCertificate = (input, context) => {
|
|
11346
11345
|
const bodyNode = new xml_builder_1.XmlNode("ViewerCertificate");
|
|
11347
|
-
if (input.CloudFrontDefaultCertificate
|
|
11346
|
+
if (input.CloudFrontDefaultCertificate != null) {
|
|
11348
11347
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
11349
11348
|
.addChildNode(new xml_builder_1.XmlText(String(input.CloudFrontDefaultCertificate)))
|
|
11350
11349
|
.withName("CloudFrontDefaultCertificate");
|
|
11351
11350
|
bodyNode.addChildNode(node);
|
|
11352
11351
|
}
|
|
11353
|
-
if (input.IAMCertificateId
|
|
11352
|
+
if (input.IAMCertificateId != null) {
|
|
11354
11353
|
const node = new xml_builder_1.XmlNode("string")
|
|
11355
11354
|
.addChildNode(new xml_builder_1.XmlText(input.IAMCertificateId))
|
|
11356
11355
|
.withName("IAMCertificateId");
|
|
11357
11356
|
bodyNode.addChildNode(node);
|
|
11358
11357
|
}
|
|
11359
|
-
if (input.ACMCertificateArn
|
|
11358
|
+
if (input.ACMCertificateArn != null) {
|
|
11360
11359
|
const node = new xml_builder_1.XmlNode("string")
|
|
11361
11360
|
.addChildNode(new xml_builder_1.XmlText(input.ACMCertificateArn))
|
|
11362
11361
|
.withName("ACMCertificateArn");
|
|
11363
11362
|
bodyNode.addChildNode(node);
|
|
11364
11363
|
}
|
|
11365
|
-
if (input.SSLSupportMethod
|
|
11364
|
+
if (input.SSLSupportMethod != null) {
|
|
11366
11365
|
const node = new xml_builder_1.XmlNode("SSLSupportMethod")
|
|
11367
11366
|
.addChildNode(new xml_builder_1.XmlText(input.SSLSupportMethod))
|
|
11368
11367
|
.withName("SSLSupportMethod");
|
|
11369
11368
|
bodyNode.addChildNode(node);
|
|
11370
11369
|
}
|
|
11371
|
-
if (input.MinimumProtocolVersion
|
|
11370
|
+
if (input.MinimumProtocolVersion != null) {
|
|
11372
11371
|
const node = new xml_builder_1.XmlNode("MinimumProtocolVersion")
|
|
11373
11372
|
.addChildNode(new xml_builder_1.XmlText(input.MinimumProtocolVersion))
|
|
11374
11373
|
.withName("MinimumProtocolVersion");
|
|
11375
11374
|
bodyNode.addChildNode(node);
|
|
11376
11375
|
}
|
|
11377
|
-
if (input.Certificate
|
|
11376
|
+
if (input.Certificate != null) {
|
|
11378
11377
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Certificate)).withName("Certificate");
|
|
11379
11378
|
bodyNode.addChildNode(node);
|
|
11380
11379
|
}
|
|
11381
|
-
if (input.CertificateSource
|
|
11380
|
+
if (input.CertificateSource != null) {
|
|
11382
11381
|
const node = new xml_builder_1.XmlNode("CertificateSource")
|
|
11383
11382
|
.addChildNode(new xml_builder_1.XmlText(input.CertificateSource))
|
|
11384
11383
|
.withName("CertificateSource");
|