@@ -9294,12 +9294,10 @@ const serializeAws_restXmlAliasList = (
9294
9294
input : string [ ] ,
9295
9295
context : __SerdeContext
9296
9296
) : any => {
9297
- const collectedNodes : any = [ ] ;
9298
- for ( let entry of input ) {
9297
+ return input . map ( entry => {
9299
9298
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
9300
- collectedNodes . push ( node . withName ( "CNAME" ) ) ;
9301
- }
9302
- return collectedNodes ;
9299
+ return node . withName ( "CNAME" ) ;
9300
+ } ) ;
9303
9301
} ;
9304
9302
9305
9303
const serializeAws_restXmlAliases = (
@@ -9357,12 +9355,10 @@ const serializeAws_restXmlAwsAccountNumberList = (
9357
9355
input : string [ ] ,
9358
9356
context : __SerdeContext
9359
9357
) : any => {
9360
- const collectedNodes : any = [ ] ;
9361
- for ( let entry of input ) {
9358
+ return input . map ( entry => {
9362
9359
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
9363
- collectedNodes . push ( node . withName ( "AwsAccountNumber" ) ) ;
9364
- }
9365
- return collectedNodes ;
9360
+ return node . withName ( "AwsAccountNumber" ) ;
9361
+ } ) ;
9366
9362
} ;
9367
9363
9368
9364
const serializeAws_restXmlCacheBehavior = (
@@ -9459,12 +9455,10 @@ const serializeAws_restXmlCacheBehaviorList = (
9459
9455
input : CacheBehavior [ ] ,
9460
9456
context : __SerdeContext
9461
9457
) : any => {
9462
- const collectedNodes : any = [ ] ;
9463
- for ( let entry of input ) {
9458
+ return input . map ( entry => {
9464
9459
const node = serializeAws_restXmlCacheBehavior ( entry , context ) ;
9465
- collectedNodes . push ( node . withName ( "CacheBehavior" ) ) ;
9466
- }
9467
- return collectedNodes ;
9460
+ return node . withName ( "CacheBehavior" ) ;
9461
+ } ) ;
9468
9462
} ;
9469
9463
9470
9464
const serializeAws_restXmlCacheBehaviors = (
@@ -9584,12 +9578,10 @@ const serializeAws_restXmlContentTypeProfileList = (
9584
9578
input : ContentTypeProfile [ ] ,
9585
9579
context : __SerdeContext
9586
9580
) : any => {
9587
- const collectedNodes : any = [ ] ;
9588
- for ( let entry of input ) {
9581
+ return input . map ( entry => {
9589
9582
const node = serializeAws_restXmlContentTypeProfile ( entry , context ) ;
9590
- collectedNodes . push ( node . withName ( "ContentTypeProfile" ) ) ;
9591
- }
9592
- return collectedNodes ;
9583
+ return node . withName ( "ContentTypeProfile" ) ;
9584
+ } ) ;
9593
9585
} ;
9594
9586
9595
9587
const serializeAws_restXmlContentTypeProfiles = (
@@ -9621,12 +9613,10 @@ const serializeAws_restXmlCookieNameList = (
9621
9613
input : string [ ] ,
9622
9614
context : __SerdeContext
9623
9615
) : any => {
9624
- const collectedNodes : any = [ ] ;
9625
- for ( let entry of input ) {
9616
+ return input . map ( entry => {
9626
9617
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
9627
- collectedNodes . push ( node . withName ( "Name" ) ) ;
9628
- }
9629
- return collectedNodes ;
9618
+ return node . withName ( "Name" ) ;
9619
+ } ) ;
9630
9620
} ;
9631
9621
9632
9622
const serializeAws_restXmlCookieNames = (
@@ -9708,12 +9698,10 @@ const serializeAws_restXmlCustomErrorResponseList = (
9708
9698
input : CustomErrorResponse [ ] ,
9709
9699
context : __SerdeContext
9710
9700
) : any => {
9711
- const collectedNodes : any = [ ] ;
9712
- for ( let entry of input ) {
9701
+ return input . map ( entry => {
9713
9702
const node = serializeAws_restXmlCustomErrorResponse ( entry , context ) ;
9714
- collectedNodes . push ( node . withName ( "CustomErrorResponse" ) ) ;
9715
- }
9716
- return collectedNodes ;
9703
+ return node . withName ( "CustomErrorResponse" ) ;
9704
+ } ) ;
9717
9705
} ;
9718
9706
9719
9707
const serializeAws_restXmlCustomErrorResponses = (
@@ -10087,12 +10075,10 @@ const serializeAws_restXmlEncryptionEntityList = (
10087
10075
input : EncryptionEntity [ ] ,
10088
10076
context : __SerdeContext
10089
10077
) : any => {
10090
- const collectedNodes : any = [ ] ;
10091
- for ( let entry of input ) {
10078
+ return input . map ( entry => {
10092
10079
const node = serializeAws_restXmlEncryptionEntity ( entry , context ) ;
10093
- collectedNodes . push ( node . withName ( "EncryptionEntity" ) ) ;
10094
- }
10095
- return collectedNodes ;
10080
+ return node . withName ( "EncryptionEntity" ) ;
10081
+ } ) ;
10096
10082
} ;
10097
10083
10098
10084
const serializeAws_restXmlFieldLevelEncryptionConfig = (
@@ -10166,12 +10152,10 @@ const serializeAws_restXmlFieldPatternList = (
10166
10152
input : string [ ] ,
10167
10153
context : __SerdeContext
10168
10154
) : any => {
10169
- const collectedNodes : any = [ ] ;
10170
- for ( let entry of input ) {
10155
+ return input . map ( entry => {
10171
10156
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
10172
- collectedNodes . push ( node . withName ( "FieldPattern" ) ) ;
10173
- }
10174
- return collectedNodes ;
10157
+ return node . withName ( "FieldPattern" ) ;
10158
+ } ) ;
10175
10159
} ;
10176
10160
10177
10161
const serializeAws_restXmlFieldPatterns = (
@@ -10262,12 +10246,10 @@ const serializeAws_restXmlHeaderList = (
10262
10246
input : string [ ] ,
10263
10247
context : __SerdeContext
10264
10248
) : any => {
10265
- const collectedNodes : any = [ ] ;
10266
- for ( let entry of input ) {
10249
+ return input . map ( entry => {
10267
10250
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
10268
- collectedNodes . push ( node . withName ( "Name" ) ) ;
10269
- }
10270
- return collectedNodes ;
10251
+ return node . withName ( "Name" ) ;
10252
+ } ) ;
10271
10253
} ;
10272
10254
10273
10255
const serializeAws_restXmlHeaders = (
@@ -10342,12 +10324,10 @@ const serializeAws_restXmlLambdaFunctionAssociationList = (
10342
10324
input : LambdaFunctionAssociation [ ] ,
10343
10325
context : __SerdeContext
10344
10326
) : any => {
10345
- const collectedNodes : any = [ ] ;
10346
- for ( let entry of input ) {
10327
+ return input . map ( entry => {
10347
10328
const node = serializeAws_restXmlLambdaFunctionAssociation ( entry , context ) ;
10348
- collectedNodes . push ( node . withName ( "LambdaFunctionAssociation" ) ) ;
10349
- }
10350
- return collectedNodes ;
10329
+ return node . withName ( "LambdaFunctionAssociation" ) ;
10330
+ } ) ;
10351
10331
} ;
10352
10332
10353
10333
const serializeAws_restXmlLambdaFunctionAssociations = (
@@ -10379,12 +10359,10 @@ const serializeAws_restXmlLocationList = (
10379
10359
input : string [ ] ,
10380
10360
context : __SerdeContext
10381
10361
) : any => {
10382
- const collectedNodes : any = [ ] ;
10383
- for ( let entry of input ) {
10362
+ return input . map ( entry => {
10384
10363
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
10385
- collectedNodes . push ( node . withName ( "Location" ) ) ;
10386
- }
10387
- return collectedNodes ;
10364
+ return node . withName ( "Location" ) ;
10365
+ } ) ;
10388
10366
} ;
10389
10367
10390
10368
const serializeAws_restXmlLoggingConfig = (
@@ -10423,12 +10401,10 @@ const serializeAws_restXmlMethodsList = (
10423
10401
input : ( Method | string ) [ ] ,
10424
10402
context : __SerdeContext
10425
10403
) : any => {
10426
- const collectedNodes : any = [ ] ;
10427
- for ( let entry of input ) {
10404
+ return input . map ( entry => {
10428
10405
const node = new __XmlNode ( "Method" ) . addChildNode ( new __XmlText ( entry ) ) ;
10429
- collectedNodes . push ( node . withName ( "Method" ) ) ;
10430
- }
10431
- return collectedNodes ;
10406
+ return node . withName ( "Method" ) ;
10407
+ } ) ;
10432
10408
} ;
10433
10409
10434
10410
const serializeAws_restXmlOrigin = (
@@ -10502,12 +10478,10 @@ const serializeAws_restXmlOriginCustomHeadersList = (
10502
10478
input : OriginCustomHeader [ ] ,
10503
10479
context : __SerdeContext
10504
10480
) : any => {
10505
- const collectedNodes : any = [ ] ;
10506
- for ( let entry of input ) {
10481
+ return input . map ( entry => {
10507
10482
const node = serializeAws_restXmlOriginCustomHeader ( entry , context ) ;
10508
- collectedNodes . push ( node . withName ( "OriginCustomHeader" ) ) ;
10509
- }
10510
- return collectedNodes ;
10483
+ return node . withName ( "OriginCustomHeader" ) ;
10484
+ } ) ;
10511
10485
} ;
10512
10486
10513
10487
const serializeAws_restXmlOriginGroup = (
@@ -10557,12 +10531,10 @@ const serializeAws_restXmlOriginGroupList = (
10557
10531
input : OriginGroup [ ] ,
10558
10532
context : __SerdeContext
10559
10533
) : any => {
10560
- const collectedNodes : any = [ ] ;
10561
- for ( let entry of input ) {
10534
+ return input . map ( entry => {
10562
10535
const node = serializeAws_restXmlOriginGroup ( entry , context ) ;
10563
- collectedNodes . push ( node . withName ( "OriginGroup" ) ) ;
10564
- }
10565
- return collectedNodes ;
10536
+ return node . withName ( "OriginGroup" ) ;
10537
+ } ) ;
10566
10538
} ;
10567
10539
10568
10540
const serializeAws_restXmlOriginGroupMember = (
@@ -10583,12 +10555,10 @@ const serializeAws_restXmlOriginGroupMemberList = (
10583
10555
input : OriginGroupMember [ ] ,
10584
10556
context : __SerdeContext
10585
10557
) : any => {
10586
- const collectedNodes : any = [ ] ;
10587
- for ( let entry of input ) {
10558
+ return input . map ( entry => {
10588
10559
const node = serializeAws_restXmlOriginGroupMember ( entry , context ) ;
10589
- collectedNodes . push ( node . withName ( "OriginGroupMember" ) ) ;
10590
- }
10591
- return collectedNodes ;
10560
+ return node . withName ( "OriginGroupMember" ) ;
10561
+ } ) ;
10592
10562
} ;
10593
10563
10594
10564
const serializeAws_restXmlOriginGroupMembers = (
@@ -10642,12 +10612,10 @@ const serializeAws_restXmlOriginList = (
10642
10612
input : Origin [ ] ,
10643
10613
context : __SerdeContext
10644
10614
) : any => {
10645
- const collectedNodes : any = [ ] ;
10646
- for ( let entry of input ) {
10615
+ return input . map ( entry => {
10647
10616
const node = serializeAws_restXmlOrigin ( entry , context ) ;
10648
- collectedNodes . push ( node . withName ( "Origin" ) ) ;
10649
- }
10650
- return collectedNodes ;
10617
+ return node . withName ( "Origin" ) ;
10618
+ } ) ;
10651
10619
} ;
10652
10620
10653
10621
const serializeAws_restXmlOriginSslProtocols = (
@@ -10698,12 +10666,10 @@ const serializeAws_restXmlPathList = (
10698
10666
input : string [ ] ,
10699
10667
context : __SerdeContext
10700
10668
) : any => {
10701
- const collectedNodes : any = [ ] ;
10702
- for ( let entry of input ) {
10669
+ return input . map ( entry => {
10703
10670
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
10704
- collectedNodes . push ( node . withName ( "Path" ) ) ;
10705
- }
10706
- return collectedNodes ;
10671
+ return node . withName ( "Path" ) ;
10672
+ } ) ;
10707
10673
} ;
10708
10674
10709
10675
const serializeAws_restXmlPaths = (
@@ -10807,12 +10773,10 @@ const serializeAws_restXmlQueryArgProfileList = (
10807
10773
input : QueryArgProfile [ ] ,
10808
10774
context : __SerdeContext
10809
10775
) : any => {
10810
- const collectedNodes : any = [ ] ;
10811
- for ( let entry of input ) {
10776
+ return input . map ( entry => {
10812
10777
const node = serializeAws_restXmlQueryArgProfile ( entry , context ) ;
10813
- collectedNodes . push ( node . withName ( "QueryArgProfile" ) ) ;
10814
- }
10815
- return collectedNodes ;
10778
+ return node . withName ( "QueryArgProfile" ) ;
10779
+ } ) ;
10816
10780
} ;
10817
10781
10818
10782
const serializeAws_restXmlQueryArgProfiles = (
@@ -10866,12 +10830,10 @@ const serializeAws_restXmlQueryStringCacheKeysList = (
10866
10830
input : string [ ] ,
10867
10831
context : __SerdeContext
10868
10832
) : any => {
10869
- const collectedNodes : any = [ ] ;
10870
- for ( let entry of input ) {
10833
+ return input . map ( entry => {
10871
10834
const node = new __XmlNode ( "string" ) . addChildNode ( new __XmlText ( entry ) ) ;
10872
- collectedNodes . push ( node . withName ( "Name" ) ) ;
10873
- }
10874
- return collectedNodes ;
10835
+ return node . withName ( "Name" ) ;
10836
+ } ) ;
10875
10837
} ;
10876
10838
10877
10839
const serializeAws_restXmlRestrictions = (
@@ -10927,28 +10889,24 @@ const serializeAws_restXmlSslProtocolsList = (
10927
10889
input : ( SslProtocol | string ) [ ] ,
10928
10890
context : __SerdeContext
10929
10891
) : any => {
10930
- const collectedNodes : any = [ ] ;
10931
- for ( let entry of input ) {
10892
+ return input . map ( entry => {
10932
10893
const node = new __XmlNode ( "SslProtocol" ) . addChildNode (
10933
10894
new __XmlText ( entry )
10934
10895
) ;
10935
- collectedNodes . push ( node . withName ( "SslProtocol" ) ) ;
10936
- }
10937
- return collectedNodes ;
10896
+ return node . withName ( "SslProtocol" ) ;
10897
+ } ) ;
10938
10898
} ;
10939
10899
10940
10900
const serializeAws_restXmlStatusCodeList = (
10941
10901
input : number [ ] ,
10942
10902
context : __SerdeContext
10943
10903
) : any => {
10944
- const collectedNodes : any = [ ] ;
10945
- for ( let entry of input ) {
10904
+ return input . map ( entry => {
10946
10905
const node = new __XmlNode ( "integer" ) . addChildNode (
10947
10906
new __XmlText ( String ( entry ) )
10948
10907
) ;
10949
- collectedNodes . push ( node . withName ( "StatusCode" ) ) ;
10950
- }
10951
- return collectedNodes ;
10908
+ return node . withName ( "StatusCode" ) ;
10909
+ } ) ;
10952
10910
} ;
10953
10911
10954
10912
const serializeAws_restXmlStatusCodes = (
@@ -11097,12 +11055,10 @@ const serializeAws_restXmlTagKeyList = (
11097
11055
input : string [ ] ,
11098
11056
context : __SerdeContext
11099
11057
) : any => {
11100
- const collectedNodes : any = [ ] ;
11101
- for ( let entry of input ) {
11058
+ return input . map ( entry => {
11102
11059
const node = new __XmlNode ( "TagKey" ) . addChildNode ( new __XmlText ( entry ) ) ;
11103
- collectedNodes . push ( node . withName ( "Key" ) ) ;
11104
- }
11105
- return collectedNodes ;
11060
+ return node . withName ( "Key" ) ;
11061
+ } ) ;
11106
11062
} ;
11107
11063
11108
11064
const serializeAws_restXmlTagKeys = (
@@ -11125,12 +11081,10 @@ const serializeAws_restXmlTagList = (
11125
11081
input : Tag [ ] ,
11126
11082
context : __SerdeContext
11127
11083
) : any => {
11128
- const collectedNodes : any = [ ] ;
11129
- for ( let entry of input ) {
11084
+ return input . map ( entry => {
11130
11085
const node = serializeAws_restXmlTag ( entry , context ) ;
11131
- collectedNodes . push ( node . withName ( "Tag" ) ) ;
11132
- }
11133
- return collectedNodes ;
11086
+ return node . withName ( "Tag" ) ;
11087
+ } ) ;
11134
11088
} ;
11135
11089
11136
11090
const serializeAws_restXmlTags = (
0 commit comments