Skip to content

Commit 0ad6f73

Browse files
authored
chore(clients): set deserialization for non-primitive types (#3345)
1 parent 1e3faa1 commit 0ad6f73

File tree

270 files changed

+9609
-4895
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+9609
-4895
lines changed

clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3186,25 +3186,27 @@ const deserializeAws_restJson1AccessPreviewFindingsList = (
31863186
output: any,
31873187
context: __SerdeContext
31883188
): AccessPreviewFinding[] => {
3189-
return (output || [])
3189+
const retVal = (output || [])
31903190
.filter((e: any) => e != null)
31913191
.map((entry: any) => {
31923192
if (entry === null) {
31933193
return null as any;
31943194
}
31953195
return deserializeAws_restJson1AccessPreviewFinding(entry, context);
31963196
});
3197+
return retVal;
31973198
};
31983199

31993200
const deserializeAws_restJson1AccessPreviewsList = (output: any, context: __SerdeContext): AccessPreviewSummary[] => {
3200-
return (output || [])
3201+
const retVal = (output || [])
32013202
.filter((e: any) => e != null)
32023203
.map((entry: any) => {
32033204
if (entry === null) {
32043205
return null as any;
32053206
}
32063207
return deserializeAws_restJson1AccessPreviewSummary(entry, context);
32073208
});
3209+
return retVal;
32083210
};
32093211

32103212
const deserializeAws_restJson1AccessPreviewStatusReason = (
@@ -3243,14 +3245,15 @@ const deserializeAws_restJson1AclGrantee = (output: any, context: __SerdeContext
32433245
};
32443246

32453247
const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext): string[] => {
3246-
return (output || [])
3248+
const retVal = (output || [])
32473249
.filter((e: any) => e != null)
32483250
.map((entry: any) => {
32493251
if (entry === null) {
32503252
return null as any;
32513253
}
32523254
return __expectString(entry) as any;
32533255
});
3256+
return retVal;
32543257
};
32553258

32563259
const deserializeAws_restJson1AnalyzedResource = (output: any, context: __SerdeContext): AnalyzedResource => {
@@ -3288,14 +3291,15 @@ const deserializeAws_restJson1AnalyzedResourcesList = (
32883291
output: any,
32893292
context: __SerdeContext
32903293
): AnalyzedResourceSummary[] => {
3291-
return (output || [])
3294+
const retVal = (output || [])
32923295
.filter((e: any) => e != null)
32933296
.map((entry: any) => {
32943297
if (entry === null) {
32953298
return null as any;
32963299
}
32973300
return deserializeAws_restJson1AnalyzedResourceSummary(entry, context);
32983301
});
3302+
return retVal;
32993303
};
33003304

33013305
const deserializeAws_restJson1AnalyzedResourceSummary = (
@@ -3310,14 +3314,15 @@ const deserializeAws_restJson1AnalyzedResourceSummary = (
33103314
};
33113315

33123316
const deserializeAws_restJson1AnalyzersList = (output: any, context: __SerdeContext): AnalyzerSummary[] => {
3313-
return (output || [])
3317+
const retVal = (output || [])
33143318
.filter((e: any) => e != null)
33153319
.map((entry: any) => {
33163320
if (entry === null) {
33173321
return null as any;
33183322
}
33193323
return deserializeAws_restJson1AnalyzerSummary(entry, context);
33203324
});
3325+
return retVal;
33213326
};
33223327

33233328
const deserializeAws_restJson1AnalyzerSummary = (output: any, context: __SerdeContext): AnalyzerSummary => {
@@ -3347,14 +3352,15 @@ const deserializeAws_restJson1AnalyzerSummary = (output: any, context: __SerdeCo
33473352
};
33483353

33493354
const deserializeAws_restJson1ArchiveRulesList = (output: any, context: __SerdeContext): ArchiveRuleSummary[] => {
3350-
return (output || [])
3355+
const retVal = (output || [])
33513356
.filter((e: any) => e != null)
33523357
.map((entry: any) => {
33533358
if (entry === null) {
33543359
return null as any;
33553360
}
33563361
return deserializeAws_restJson1ArchiveRuleSummary(entry, context);
33573362
});
3363+
return retVal;
33583364
};
33593365

33603366
const deserializeAws_restJson1ArchiveRuleSummary = (output: any, context: __SerdeContext): ArchiveRuleSummary => {
@@ -3523,14 +3529,15 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext):
35233529
};
35243530

35253531
const deserializeAws_restJson1FindingsList = (output: any, context: __SerdeContext): FindingSummary[] => {
3526-
return (output || [])
3532+
const retVal = (output || [])
35273533
.filter((e: any) => e != null)
35283534
.map((entry: any) => {
35293535
if (entry === null) {
35303536
return null as any;
35313537
}
35323538
return deserializeAws_restJson1FindingSummary(entry, context);
35333539
});
3540+
return retVal;
35343541
};
35353542

35363543
const deserializeAws_restJson1FindingSource = (output: any, context: __SerdeContext): FindingSource => {
@@ -3550,14 +3557,15 @@ const deserializeAws_restJson1FindingSourceDetail = (output: any, context: __Ser
35503557
};
35513558

35523559
const deserializeAws_restJson1FindingSourceList = (output: any, context: __SerdeContext): FindingSource[] => {
3553-
return (output || [])
3560+
const retVal = (output || [])
35543561
.filter((e: any) => e != null)
35553562
.map((entry: any) => {
35563563
if (entry === null) {
35573564
return null as any;
35583565
}
35593566
return deserializeAws_restJson1FindingSource(entry, context);
35603567
});
3568+
return retVal;
35613569
};
35623570

35633571
const deserializeAws_restJson1FindingSummary = (output: any, context: __SerdeContext): FindingSummary => {
@@ -3607,14 +3615,15 @@ const deserializeAws_restJson1GeneratedPolicy = (output: any, context: __SerdeCo
36073615
};
36083616

36093617
const deserializeAws_restJson1GeneratedPolicyList = (output: any, context: __SerdeContext): GeneratedPolicy[] => {
3610-
return (output || [])
3618+
const retVal = (output || [])
36113619
.filter((e: any) => e != null)
36123620
.map((entry: any) => {
36133621
if (entry === null) {
36143622
return null as any;
36153623
}
36163624
return deserializeAws_restJson1GeneratedPolicy(entry, context);
36173625
});
3626+
return retVal;
36183627
};
36193628

36203629
const deserializeAws_restJson1GeneratedPolicyProperties = (
@@ -3712,14 +3721,15 @@ const deserializeAws_restJson1KmsGrantConfigurationsList = (
37123721
output: any,
37133722
context: __SerdeContext
37143723
): KmsGrantConfiguration[] => {
3715-
return (output || [])
3724+
const retVal = (output || [])
37163725
.filter((e: any) => e != null)
37173726
.map((entry: any) => {
37183727
if (entry === null) {
37193728
return null as any;
37203729
}
37213730
return deserializeAws_restJson1KmsGrantConfiguration(entry, context);
37223731
});
3732+
return retVal;
37233733
};
37243734

37253735
const deserializeAws_restJson1KmsGrantConstraints = (output: any, context: __SerdeContext): KmsGrantConstraints => {
@@ -3739,14 +3749,15 @@ const deserializeAws_restJson1KmsGrantOperationsList = (
37393749
output: any,
37403750
context: __SerdeContext
37413751
): (KmsGrantOperation | string)[] => {
3742-
return (output || [])
3752+
const retVal = (output || [])
37433753
.filter((e: any) => e != null)
37443754
.map((entry: any) => {
37453755
if (entry === null) {
37463756
return null as any;
37473757
}
37483758
return __expectString(entry) as any;
37493759
});
3760+
return retVal;
37503761
};
37513762

37523763
const deserializeAws_restJson1KmsKeyConfiguration = (output: any, context: __SerdeContext): KmsKeyConfiguration => {
@@ -3788,14 +3799,15 @@ const deserializeAws_restJson1Location = (output: any, context: __SerdeContext):
37883799
};
37893800

37903801
const deserializeAws_restJson1LocationList = (output: any, context: __SerdeContext): Location[] => {
3791-
return (output || [])
3802+
const retVal = (output || [])
37923803
.filter((e: any) => e != null)
37933804
.map((entry: any) => {
37943805
if (entry === null) {
37953806
return null as any;
37963807
}
37973808
return deserializeAws_restJson1Location(entry, context);
37983809
});
3810+
return retVal;
37993811
};
38003812

38013813
const deserializeAws_restJson1NetworkOriginConfiguration = (
@@ -3834,14 +3846,15 @@ const deserializeAws_restJson1PathElement = (output: any, context: __SerdeContex
38343846
};
38353847

38363848
const deserializeAws_restJson1PathElementList = (output: any, context: __SerdeContext): PathElement[] => {
3837-
return (output || [])
3849+
const retVal = (output || [])
38383850
.filter((e: any) => e != null)
38393851
.map((entry: any) => {
38403852
if (entry === null) {
38413853
return null as any;
38423854
}
38433855
return deserializeAws_restJson1PathElement(__expectUnion(entry), context);
38443856
});
3857+
return retVal;
38453858
};
38463859

38473860
const deserializeAws_restJson1PolicyGeneration = (output: any, context: __SerdeContext): PolicyGeneration => {
@@ -3861,14 +3874,15 @@ const deserializeAws_restJson1PolicyGeneration = (output: any, context: __SerdeC
38613874
};
38623875

38633876
const deserializeAws_restJson1PolicyGenerationList = (output: any, context: __SerdeContext): PolicyGeneration[] => {
3864-
return (output || [])
3877+
const retVal = (output || [])
38653878
.filter((e: any) => e != null)
38663879
.map((entry: any) => {
38673880
if (entry === null) {
38683881
return null as any;
38693882
}
38703883
return deserializeAws_restJson1PolicyGeneration(entry, context);
38713884
});
3885+
return retVal;
38723886
};
38733887

38743888
const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): Position => {
@@ -3892,14 +3906,15 @@ const deserializeAws_restJson1PrincipalMap = (output: any, context: __SerdeConte
38923906
};
38933907

38943908
const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext): string[] => {
3895-
return (output || [])
3909+
const retVal = (output || [])
38963910
.filter((e: any) => e != null)
38973911
.map((entry: any) => {
38983912
if (entry === null) {
38993913
return null as any;
39003914
}
39013915
return __expectString(entry) as any;
39023916
});
3917+
return retVal;
39033918
};
39043919

39053920
const deserializeAws_restJson1S3AccessPointConfiguration = (
@@ -3954,14 +3969,15 @@ const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = (
39543969
output: any,
39553970
context: __SerdeContext
39563971
): S3BucketAclGrantConfiguration[] => {
3957-
return (output || [])
3972+
const retVal = (output || [])
39583973
.filter((e: any) => e != null)
39593974
.map((entry: any) => {
39603975
if (entry === null) {
39613976
return null as any;
39623977
}
39633978
return deserializeAws_restJson1S3BucketAclGrantConfiguration(entry, context);
39643979
});
3980+
return retVal;
39653981
};
39663982

39673983
const deserializeAws_restJson1S3BucketConfiguration = (output: any, context: __SerdeContext): S3BucketConfiguration => {
@@ -4003,14 +4019,15 @@ const deserializeAws_restJson1SecretsManagerSecretConfiguration = (
40034019
};
40044020

40054021
const deserializeAws_restJson1SharedViaList = (output: any, context: __SerdeContext): string[] => {
4006-
return (output || [])
4022+
const retVal = (output || [])
40074023
.filter((e: any) => e != null)
40084024
.map((entry: any) => {
40094025
if (entry === null) {
40104026
return null as any;
40114027
}
40124028
return __expectString(entry) as any;
40134029
});
4030+
return retVal;
40144031
};
40154032

40164033
const deserializeAws_restJson1Span = (output: any, context: __SerdeContext): Span => {
@@ -4069,14 +4086,15 @@ const deserializeAws_restJson1TrailProperties = (output: any, context: __SerdeCo
40694086
};
40704087

40714088
const deserializeAws_restJson1TrailPropertiesList = (output: any, context: __SerdeContext): TrailProperties[] => {
4072-
return (output || [])
4089+
const retVal = (output || [])
40734090
.filter((e: any) => e != null)
40744091
.map((entry: any) => {
40754092
if (entry === null) {
40764093
return null as any;
40774094
}
40784095
return deserializeAws_restJson1TrailProperties(entry, context);
40794096
});
4097+
return retVal;
40804098
};
40814099

40824100
const deserializeAws_restJson1ValidatePolicyFinding = (output: any, context: __SerdeContext): ValidatePolicyFinding => {
@@ -4096,14 +4114,15 @@ const deserializeAws_restJson1ValidatePolicyFindingList = (
40964114
output: any,
40974115
context: __SerdeContext
40984116
): ValidatePolicyFinding[] => {
4099-
return (output || [])
4117+
const retVal = (output || [])
41004118
.filter((e: any) => e != null)
41014119
.map((entry: any) => {
41024120
if (entry === null) {
41034121
return null as any;
41044122
}
41054123
return deserializeAws_restJson1ValidatePolicyFinding(entry, context);
41064124
});
4125+
return retVal;
41074126
};
41084127

41094128
const deserializeAws_restJson1ValidationExceptionField = (
@@ -4120,25 +4139,27 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (
41204139
output: any,
41214140
context: __SerdeContext
41224141
): ValidationExceptionField[] => {
4123-
return (output || [])
4142+
const retVal = (output || [])
41244143
.filter((e: any) => e != null)
41254144
.map((entry: any) => {
41264145
if (entry === null) {
41274146
return null as any;
41284147
}
41294148
return deserializeAws_restJson1ValidationExceptionField(entry, context);
41304149
});
4150+
return retVal;
41314151
};
41324152

41334153
const deserializeAws_restJson1ValueList = (output: any, context: __SerdeContext): string[] => {
4134-
return (output || [])
4154+
const retVal = (output || [])
41354155
.filter((e: any) => e != null)
41364156
.map((entry: any) => {
41374157
if (entry === null) {
41384158
return null as any;
41394159
}
41404160
return __expectString(entry) as any;
41414161
});
4162+
return retVal;
41424163
};
41434164

41444165
const deserializeAws_restJson1VpcConfiguration = (output: any, context: __SerdeContext): VpcConfiguration => {

0 commit comments

Comments
 (0)