@@ -9458,6 +9458,10 @@ const deserializeAws_restXmlActiveTrustedSigners = (
9458
9458
if ( output [ "Enabled" ] !== undefined ) {
9459
9459
contents . Enabled = output [ "Enabled" ] == "true" ;
9460
9460
}
9461
+ if ( output . Items === "" ) {
9462
+ contents . Items = [ ] ;
9463
+ return contents ;
9464
+ }
9461
9465
if (
9462
9466
output [ "Items" ] !== undefined &&
9463
9467
output [ "Items" ] [ "Signer" ] !== undefined
@@ -9517,6 +9521,10 @@ const deserializeAws_restXmlAliases = (
9517
9521
Items : undefined ,
9518
9522
Quantity : undefined
9519
9523
} ;
9524
+ if ( output . Items === "" ) {
9525
+ contents . Items = [ ] ;
9526
+ return contents ;
9527
+ }
9520
9528
if ( output [ "Items" ] !== undefined && output [ "Items" ] [ "CNAME" ] !== undefined ) {
9521
9529
const wrappedItem =
9522
9530
output [ "Items" ] [ "CNAME" ] instanceof Array
@@ -9546,6 +9554,10 @@ const deserializeAws_restXmlAllowedMethods = (
9546
9554
context
9547
9555
) ;
9548
9556
}
9557
+ if ( output . Items === "" ) {
9558
+ contents . Items = [ ] ;
9559
+ return contents ;
9560
+ }
9549
9561
if (
9550
9562
output [ "Items" ] !== undefined &&
9551
9563
output [ "Items" ] [ "Method" ] !== undefined
@@ -9661,6 +9673,10 @@ const deserializeAws_restXmlCacheBehaviors = (
9661
9673
Items : undefined ,
9662
9674
Quantity : undefined
9663
9675
} ;
9676
+ if ( output . Items === "" ) {
9677
+ contents . Items = [ ] ;
9678
+ return contents ;
9679
+ }
9664
9680
if (
9665
9681
output [ "Items" ] !== undefined &&
9666
9682
output [ "Items" ] [ "CacheBehavior" ] !== undefined
@@ -9689,6 +9705,10 @@ const deserializeAws_restXmlCachedMethods = (
9689
9705
Items : undefined ,
9690
9706
Quantity : undefined
9691
9707
} ;
9708
+ if ( output . Items === "" ) {
9709
+ contents . Items = [ ] ;
9710
+ return contents ;
9711
+ }
9692
9712
if (
9693
9713
output [ "Items" ] !== undefined &&
9694
9714
output [ "Items" ] [ "Method" ] !== undefined
@@ -9764,6 +9784,10 @@ const deserializeAws_restXmlCloudFrontOriginAccessIdentityList = (
9764
9784
if ( output [ "IsTruncated" ] !== undefined ) {
9765
9785
contents . IsTruncated = output [ "IsTruncated" ] == "true" ;
9766
9786
}
9787
+ if ( output . Items === "" ) {
9788
+ contents . Items = [ ] ;
9789
+ return contents ;
9790
+ }
9767
9791
if (
9768
9792
output [ "Items" ] !== undefined &&
9769
9793
output [ "Items" ] [ "CloudFrontOriginAccessIdentitySummary" ] !== undefined
@@ -9885,6 +9909,10 @@ const deserializeAws_restXmlContentTypeProfiles = (
9885
9909
Items : undefined ,
9886
9910
Quantity : undefined
9887
9911
} ;
9912
+ if ( output . Items === "" ) {
9913
+ contents . Items = [ ] ;
9914
+ return contents ;
9915
+ }
9888
9916
if (
9889
9917
output [ "Items" ] !== undefined &&
9890
9918
output [ "Items" ] [ "ContentTypeProfile" ] !== undefined
@@ -9920,6 +9948,10 @@ const deserializeAws_restXmlCookieNames = (
9920
9948
Items : undefined ,
9921
9949
Quantity : undefined
9922
9950
} ;
9951
+ if ( output . Items === "" ) {
9952
+ contents . Items = [ ] ;
9953
+ return contents ;
9954
+ }
9923
9955
if ( output [ "Items" ] !== undefined && output [ "Items" ] [ "Name" ] !== undefined ) {
9924
9956
const wrappedItem =
9925
9957
output [ "Items" ] [ "Name" ] instanceof Array
@@ -9998,6 +10030,10 @@ const deserializeAws_restXmlCustomErrorResponses = (
9998
10030
Items : undefined ,
9999
10031
Quantity : undefined
10000
10032
} ;
10033
+ if ( output . Items === "" ) {
10034
+ contents . Items = [ ] ;
10035
+ return contents ;
10036
+ }
10001
10037
if (
10002
10038
output [ "Items" ] !== undefined &&
10003
10039
output [ "Items" ] [ "CustomErrorResponse" ] !== undefined
@@ -10026,6 +10062,10 @@ const deserializeAws_restXmlCustomHeaders = (
10026
10062
Items : undefined ,
10027
10063
Quantity : undefined
10028
10064
} ;
10065
+ if ( output . Items === "" ) {
10066
+ contents . Items = [ ] ;
10067
+ return contents ;
10068
+ }
10029
10069
if (
10030
10070
output [ "Items" ] !== undefined &&
10031
10071
output [ "Items" ] [ "OriginCustomHeader" ] !== undefined
@@ -10179,6 +10219,10 @@ const deserializeAws_restXmlDistribution = (
10179
10219
context
10180
10220
) ;
10181
10221
}
10222
+ if ( output . AliasICPRecordals === "" ) {
10223
+ contents . AliasICPRecordals = [ ] ;
10224
+ return contents ;
10225
+ }
10182
10226
if (
10183
10227
output [ "AliasICPRecordals" ] !== undefined &&
10184
10228
output [ "AliasICPRecordals" ] [ "AliasICPRecordal" ] !== undefined
@@ -10339,6 +10383,10 @@ const deserializeAws_restXmlDistributionList = (
10339
10383
if ( output [ "IsTruncated" ] !== undefined ) {
10340
10384
contents . IsTruncated = output [ "IsTruncated" ] == "true" ;
10341
10385
}
10386
+ if ( output . Items === "" ) {
10387
+ contents . Items = [ ] ;
10388
+ return contents ;
10389
+ }
10342
10390
if (
10343
10391
output [ "Items" ] !== undefined &&
10344
10392
output [ "Items" ] [ "DistributionSummary" ] !== undefined
@@ -10397,6 +10445,10 @@ const deserializeAws_restXmlDistributionSummary = (
10397
10445
if ( output [ "ARN" ] !== undefined ) {
10398
10446
contents . ARN = output [ "ARN" ] ;
10399
10447
}
10448
+ if ( output . AliasICPRecordals === "" ) {
10449
+ contents . AliasICPRecordals = [ ] ;
10450
+ return contents ;
10451
+ }
10400
10452
if (
10401
10453
output [ "AliasICPRecordals" ] !== undefined &&
10402
10454
output [ "AliasICPRecordals" ] [ "AliasICPRecordal" ] !== undefined
@@ -10509,6 +10561,10 @@ const deserializeAws_restXmlEncryptionEntities = (
10509
10561
Items : undefined ,
10510
10562
Quantity : undefined
10511
10563
} ;
10564
+ if ( output . Items === "" ) {
10565
+ contents . Items = [ ] ;
10566
+ return contents ;
10567
+ }
10512
10568
if (
10513
10569
output [ "Items" ] !== undefined &&
10514
10570
output [ "Items" ] [ "EncryptionEntity" ] !== undefined
@@ -10630,6 +10686,10 @@ const deserializeAws_restXmlFieldLevelEncryptionList = (
10630
10686
NextMarker : undefined ,
10631
10687
Quantity : undefined
10632
10688
} ;
10689
+ if ( output . Items === "" ) {
10690
+ contents . Items = [ ] ;
10691
+ return contents ;
10692
+ }
10633
10693
if (
10634
10694
output [ "Items" ] !== undefined &&
10635
10695
output [ "Items" ] [ "FieldLevelEncryptionSummary" ] !== undefined
@@ -10720,6 +10780,10 @@ const deserializeAws_restXmlFieldLevelEncryptionProfileList = (
10720
10780
NextMarker : undefined ,
10721
10781
Quantity : undefined
10722
10782
} ;
10783
+ if ( output . Items === "" ) {
10784
+ contents . Items = [ ] ;
10785
+ return contents ;
10786
+ }
10723
10787
if (
10724
10788
output [ "Items" ] !== undefined &&
10725
10789
output [ "Items" ] [ "FieldLevelEncryptionProfileSummary" ] !== undefined
@@ -10848,6 +10912,10 @@ const deserializeAws_restXmlFieldPatterns = (
10848
10912
Items : undefined ,
10849
10913
Quantity : undefined
10850
10914
} ;
10915
+ if ( output . Items === "" ) {
10916
+ contents . Items = [ ] ;
10917
+ return contents ;
10918
+ }
10851
10919
if (
10852
10920
output [ "Items" ] !== undefined &&
10853
10921
output [ "Items" ] [ "FieldPattern" ] !== undefined
@@ -10912,6 +10980,10 @@ const deserializeAws_restXmlGeoRestriction = (
10912
10980
Quantity : undefined ,
10913
10981
RestrictionType : undefined
10914
10982
} ;
10983
+ if ( output . Items === "" ) {
10984
+ contents . Items = [ ] ;
10985
+ return contents ;
10986
+ }
10915
10987
if (
10916
10988
output [ "Items" ] !== undefined &&
10917
10989
output [ "Items" ] [ "Location" ] !== undefined
@@ -10947,6 +11019,10 @@ const deserializeAws_restXmlHeaders = (
10947
11019
Items : undefined ,
10948
11020
Quantity : undefined
10949
11021
} ;
11022
+ if ( output . Items === "" ) {
11023
+ contents . Items = [ ] ;
11024
+ return contents ;
11025
+ }
10950
11026
if ( output [ "Items" ] !== undefined && output [ "Items" ] [ "Name" ] !== undefined ) {
10951
11027
const wrappedItem =
10952
11028
output [ "Items" ] [ "Name" ] instanceof Array
@@ -11023,6 +11099,10 @@ const deserializeAws_restXmlInvalidationList = (
11023
11099
if ( output [ "IsTruncated" ] !== undefined ) {
11024
11100
contents . IsTruncated = output [ "IsTruncated" ] == "true" ;
11025
11101
}
11102
+ if ( output . Items === "" ) {
11103
+ contents . Items = [ ] ;
11104
+ return contents ;
11105
+ }
11026
11106
if (
11027
11107
output [ "Items" ] !== undefined &&
11028
11108
output [ "Items" ] [ "InvalidationSummary" ] !== undefined
@@ -11098,6 +11178,10 @@ const deserializeAws_restXmlKeyPairIds = (
11098
11178
Items : undefined ,
11099
11179
Quantity : undefined
11100
11180
} ;
11181
+ if ( output . Items === "" ) {
11182
+ contents . Items = [ ] ;
11183
+ return contents ;
11184
+ }
11101
11185
if (
11102
11186
output [ "Items" ] !== undefined &&
11103
11187
output [ "Items" ] [ "KeyPairId" ] !== undefined
@@ -11154,6 +11238,10 @@ const deserializeAws_restXmlLambdaFunctionAssociations = (
11154
11238
Items : undefined ,
11155
11239
Quantity : undefined
11156
11240
} ;
11241
+ if ( output . Items === "" ) {
11242
+ contents . Items = [ ] ;
11243
+ return contents ;
11244
+ }
11157
11245
if (
11158
11246
output [ "Items" ] !== undefined &&
11159
11247
output [ "Items" ] [ "LambdaFunctionAssociation" ] !== undefined
@@ -11369,6 +11457,10 @@ const deserializeAws_restXmlOriginGroupMembers = (
11369
11457
Items : undefined ,
11370
11458
Quantity : undefined
11371
11459
} ;
11460
+ if ( output . Items === "" ) {
11461
+ contents . Items = [ ] ;
11462
+ return contents ;
11463
+ }
11372
11464
if (
11373
11465
output [ "Items" ] !== undefined &&
11374
11466
output [ "Items" ] [ "OriginGroupMember" ] !== undefined
@@ -11397,6 +11489,10 @@ const deserializeAws_restXmlOriginGroups = (
11397
11489
Items : undefined ,
11398
11490
Quantity : undefined
11399
11491
} ;
11492
+ if ( output . Items === "" ) {
11493
+ contents . Items = [ ] ;
11494
+ return contents ;
11495
+ }
11400
11496
if (
11401
11497
output [ "Items" ] !== undefined &&
11402
11498
output [ "Items" ] [ "OriginGroup" ] !== undefined
@@ -11434,6 +11530,10 @@ const deserializeAws_restXmlOriginSslProtocols = (
11434
11530
Items : undefined ,
11435
11531
Quantity : undefined
11436
11532
} ;
11533
+ if ( output . Items === "" ) {
11534
+ contents . Items = [ ] ;
11535
+ return contents ;
11536
+ }
11437
11537
if (
11438
11538
output [ "Items" ] !== undefined &&
11439
11539
output [ "Items" ] [ "SslProtocol" ] !== undefined
@@ -11462,6 +11562,10 @@ const deserializeAws_restXmlOrigins = (
11462
11562
Items : undefined ,
11463
11563
Quantity : undefined
11464
11564
} ;
11565
+ if ( output . Items === "" ) {
11566
+ contents . Items = [ ] ;
11567
+ return contents ;
11568
+ }
11465
11569
if (
11466
11570
output [ "Items" ] !== undefined &&
11467
11571
output [ "Items" ] [ "Origin" ] !== undefined
@@ -11494,6 +11598,10 @@ const deserializeAws_restXmlPaths = (
11494
11598
Items : undefined ,
11495
11599
Quantity : undefined
11496
11600
} ;
11601
+ if ( output . Items === "" ) {
11602
+ contents . Items = [ ] ;
11603
+ return contents ;
11604
+ }
11497
11605
if ( output [ "Items" ] !== undefined && output [ "Items" ] [ "Path" ] !== undefined ) {
11498
11606
const wrappedItem =
11499
11607
output [ "Items" ] [ "Path" ] instanceof Array
@@ -11569,6 +11677,10 @@ const deserializeAws_restXmlPublicKeyList = (
11569
11677
NextMarker : undefined ,
11570
11678
Quantity : undefined
11571
11679
} ;
11680
+ if ( output . Items === "" ) {
11681
+ contents . Items = [ ] ;
11682
+ return contents ;
11683
+ }
11572
11684
if (
11573
11685
output [ "Items" ] !== undefined &&
11574
11686
output [ "Items" ] [ "PublicKeySummary" ] !== undefined
@@ -11691,6 +11803,10 @@ const deserializeAws_restXmlQueryArgProfiles = (
11691
11803
Items : undefined ,
11692
11804
Quantity : undefined
11693
11805
} ;
11806
+ if ( output . Items === "" ) {
11807
+ contents . Items = [ ] ;
11808
+ return contents ;
11809
+ }
11694
11810
if (
11695
11811
output [ "Items" ] !== undefined &&
11696
11812
output [ "Items" ] [ "QueryArgProfile" ] !== undefined
@@ -11719,6 +11835,10 @@ const deserializeAws_restXmlQueryStringCacheKeys = (
11719
11835
Items : undefined ,
11720
11836
Quantity : undefined
11721
11837
} ;
11838
+ if ( output . Items === "" ) {
11839
+ contents . Items = [ ] ;
11840
+ return contents ;
11841
+ }
11722
11842
if ( output [ "Items" ] !== undefined && output [ "Items" ] [ "Name" ] !== undefined ) {
11723
11843
const wrappedItem =
11724
11844
output [ "Items" ] [ "Name" ] instanceof Array
@@ -11844,6 +11964,10 @@ const deserializeAws_restXmlStatusCodes = (
11844
11964
Items : undefined ,
11845
11965
Quantity : undefined
11846
11966
} ;
11967
+ if ( output . Items === "" ) {
11968
+ contents . Items = [ ] ;
11969
+ return contents ;
11970
+ }
11847
11971
if (
11848
11972
output [ "Items" ] !== undefined &&
11849
11973
output [ "Items" ] [ "StatusCode" ] !== undefined
@@ -11974,6 +12098,10 @@ const deserializeAws_restXmlStreamingDistributionList = (
11974
12098
if ( output [ "IsTruncated" ] !== undefined ) {
11975
12099
contents . IsTruncated = output [ "IsTruncated" ] == "true" ;
11976
12100
}
12101
+ if ( output . Items === "" ) {
12102
+ contents . Items = [ ] ;
12103
+ return contents ;
12104
+ }
11977
12105
if (
11978
12106
output [ "Items" ] !== undefined &&
11979
12107
output [ "Items" ] [ "StreamingDistributionSummary" ] !== undefined
@@ -12131,6 +12259,10 @@ const deserializeAws_restXmlTags = (
12131
12259
__type : "Tags" ,
12132
12260
Items : undefined
12133
12261
} ;
12262
+ if ( output . Items === "" ) {
12263
+ contents . Items = [ ] ;
12264
+ return contents ;
12265
+ }
12134
12266
if ( output [ "Items" ] !== undefined && output [ "Items" ] [ "Tag" ] !== undefined ) {
12135
12267
const wrappedItem =
12136
12268
output [ "Items" ] [ "Tag" ] instanceof Array
@@ -12154,6 +12286,10 @@ const deserializeAws_restXmlTrustedSigners = (
12154
12286
if ( output [ "Enabled" ] !== undefined ) {
12155
12287
contents . Enabled = output [ "Enabled" ] == "true" ;
12156
12288
}
12289
+ if ( output . Items === "" ) {
12290
+ contents . Items = [ ] ;
12291
+ return contents ;
12292
+ }
12157
12293
if (
12158
12294
output [ "Items" ] !== undefined &&
12159
12295
output [ "Items" ] [ "AwsAccountNumber" ] !== undefined
0 commit comments